...
Start Delimiter | Length of Frame Data | Frame Data | Checksum | |
---|---|---|---|---|
0x7E | MSB | LSB | 0xFF - (SUM(All Frame Data Bytes) % 256) |
Except for the start delimiter, the following substitutions must be made before sending:
Raw Byte | Replacement Bytes |
---|---|
0x7E | 0x7D 0x5E |
0x7D | 0x7D 0x5D |
0x11 | 0x7D 0x31 |
0x13 | 0x7D 0x33 |
Note that the first byte is the escape character 0x7D and the second is the original byte XOR'd with 0x20.
Supported Frames : Messages from Host to OpenMote
...