Data ProtocolSerial port parameters:
|
Every character sent to the radio is echoed back to the PC. It is therefore important to always flush the input buffer and confirm the received characters match those sent. There are two types of commands that can be sent to the radio:
<CC> <type> <EE> <data> <text>
<DD>
<type> <EE>
radio responds with 18 bytes: <data> <text>
Where:
Where <0x>, <bc> and <Bb> are bytes containing the following nibbles (4 bits):
16 ASCII characters are compressed to 14 data bytes. This is possible because only 7 out of 8 bits per byte are used (value 0 to 127). Because the high bit <7> is always 0 (unused) the bytes are left-shifted. The vacated least significant bit <0> is then used to squeeze in an extra character longitudenally. In summary:
Allowable characters in text are ASCII in the range 32 to 127, with the following exceptions:
Character | Decimal | Displayed as |
---|---|---|
\ | 92 | ¥ (yen) |
~ | 126 | (right arrow) |
(del) | 127 | (left arrow) |
There are no descenders for the letters: g, j, p, q, y. They do not display well.
After sending data to the radio, unlock it (continue scanning) by sending a 0 byte.
NOTE: Data can not be sent to the radio if it happens to be locked on to the priority channel. Make sure the Priority indicator is off (press PRI).