Больной. Диагноз "Car PC"
Регистрация: 01.09.2005
Возраст: 51
Город: Москва
Регион: 77, 97, 99, 177
Машина: 08\Acura\MDX •••• 07\Honda\Civic 4D
Сообщений: 4,379
|
Цитата:
Сообщение от Bersenev
Эта ссылка работает, а вот ссылка про которую мне говорили, и которая находится в конце шапки в теме "HD Radio - USB адаптер" не работает
|
Ага, туплю чего-то.
Ну так, на всякий пожарный:
Цитата:
Comunication Protocol
RS232 Serial 115.200 baud 8 bit data no parity 1 stop bit (115200 N,8,1)
<header><length><data><cheksum>
<header> always 0xA4 (hex)
<length> total bytes of <data><checksum>
<data> <command> 2 bytes
<operation> 2 bytes
<band> 4 bytes
<constants> 4 bytes
<checksum> modular sum of all unsigned bytes of <header><length><data> discarding overflow bits
COMMAND BYTES
power 0x01, 0x00
mute 0x02, 0x00
signal strength 0x01, 0x01
tune 0x02, 0x01
seek 0x03, 0x01
volume 0x03, 0x04
bass 0x04, 0x04
treble 0x05, 0x05
OPERATION BYTES
set 0x00, 0x00
get 0x01, 0x00
reply 0x02, 0x00
BAND BYTES
fm 0x01, 0x00, 0x00, 0x00
am 0x00, 0x00, 0x00, 0x00
CONSTANTS BYTES
up 0x01, 0x00, 0x00, 0x00
down 0xFF, 0xFF, 0xFF, 0xFF
one 0x01, 0x00, 0x00, 0x00
zero 0x00, 0x00, 0x00, 0x00
Example commands:
Tune FM 88.9 command:
0xA4 0x10 0x02 0x01 0x00 0x00 0x01 0x00 0x00 0x00 0x79 0x03 0x00 0x00
------ ------ --------- --------- ------------------- ----------------------
header length cmmd_tune op_set band: FM frecuency 0x379 (889)
0x00 0x00 0x00 0x00 0x34
-------------------- ----
ctte zero checksum = 0xA4+0x10+0x02+0x01+0x01+0x79+0x03 = 0x34
For each success command send there are a response:
0xA4,0x10,0x02,0x01,0x02,0x00,0x01,0x00,0x00,0x00, 0x79,0x03,0x00,0x00,0x00,0x00,0x00,0x00, 0x36
|
|