Lexicon RV-5/MV-5 Serial Communications Protocol
6 Examples
6.1 FM Frequency Direct Example
The specification states that:
Information Field (HEX )
COMMAND
1st 2nd 3rd 4th
FM Frequency Direct
84 0A
0x222E ~ 0x2A30
0000 x10kHz (ex 87.50Mhz :0x222E,100.00Mhz:0x2710, 108.00Mhz:0x2A30)
Here are some examples:
Start
Code
Date
Type
Length
Data
Data Result
0xFF 0x02 0x04 0x84 0x0A 0x28 0xAA 104.10
0xFF 0x02 0x04 0x84 0x0A 0x24 0xEA 94.50
0xFF 0x02 0x04 0x84 0x0A 0x23 0x5A 90.50
If the direct FM frequency is 104.10
1. Remove decimal from decimal number (10410)
2. Convert to decimal 10410 to HEX (0x28AA)
3. Send word as two bytes 0x28 0xAA in the last two bytes of 4 byte data
Others:
94.50 > 9450 > 0x24EA 0x24 0xEA
90.50 > 9050 > 0x235A 0x23 0x5A
6.2 Main Volume Setting Example
The specification states that:
Information Field (HEX )
COMMAND
1st 2nd 3rd 4th
Main Volume Setting
84 05
0~0x5A
0(-80dB) ~ 0x5A(+10dB)
Here are some examples:
Start
Code
Date
Type
Length
Data
Data Result
0xFF 0x02 0x03 0x84 0x05 0x00 -80dB
0xFF 0x02 0x03 0x84 0x05 0x22 -46dB
0xFF 0x02 0x03 0x84 0x05 0x5A +10dB
14