User Interface > Control Protocol
SingleByte:

Our system sends single-byte commands to collect data and control peripherals.
Multiple-Byte:

UART Protocol:
The UART interfaces send two kinds of data: single bytes and multiple-byte packets. Our UART interfaces tend to be incredibly reliable, so we don’t usually need to check for errors. However, we would like to indicate the end of each packet, so the wireless transmitter knows when to send.
- A 255 byte indicates the end of a packet.
- An escape code 254 is used to encode 255 when it is encountered in data.
Data Byte | UART line encoding |
254 | 254 0 |
255 | 254 1 |
Other | Same as original byte |