Frame structure =============== ———————————————————————————————————————————————————————————————————————————— 0 | byte | Protocol version 1 | byte | ID From device 2 | byte | ID to device (0x00 is broadcast) 3 | byte | Payload size 4 | byte | Payload crc8 5 | byte | Header crc8 6-63 | *byte | Payload ———————————————————————————————————————————————————————————————————————————— Payload structure ================= Offset by 6 ———————————————————————————————————————————————————————————————————————————— 0 | byte | Type 1-57 | *byte | Type specific data ———————————————————————————————————————————————————————————————————————————— Payload types ------------- ———————————————————————————————————————————————————————————————————————————— 0x00 | DEBUG | Debug - data intended for the human eye 0x01 | DS18B20 | Report from temperature sensor DS18B20 0xb0 | RGB | Command to RGB LED controller 0xff | ERROR_REPORT | Error report, counters on received packet errors ———————————————————————————————————————————————————————————————————————————— ### DS18B20 ### ———————————————————————————————————————————————————————————————————————————— DS18B20 | 64bit address | HIGHBYTE | LOWBYTE 0x01 | 8 bytes | ### RGB ### ———————————————————————————————————————————————————————————————————————————— RGB | SET | R | G | B 0xb0 | 0x01 | 0x## | 0x## | 0x## ———————————————————————————————————————————————————————————————————————————— RGB | GET 0xb0 | 0x02 ———————————————————————————————————————————————————————————————————————————— RGB | FADE_RANDOM 0xb0 | 0x03 ———————————————————————————————————————————————————————————————————————————— RGB | FADE_COLORS | NUMCOLORS | R | G | B 0xb0 | 0x04 | 0x## | 0x## | 0x## | 0x## ————————————————————————————————————————————————————————————————————————————