Table of ContentsSerial Sensor Protocol (en)DescriptionThis is a 1-byte based protocol to set/get sensor values. The synchronisation is done by sending a 4-byte (SYNC) sync message before each command. Communication is always triggered by the server. Values are always sent big-endian. Server-to-Client There are two kinds of command:
GET CommandThe GET command has always a length of 5 bytes (incl. sync). Format: 0x53 0x59 0x4E 0x43 CMD (SYNC + CMD)
SET CommandThe GET command has always a length of 9 bytes (incl. sync). Format: 0x53 0x59 0x4E 0x43 CMD VALUE (SYNC + CMD + VALUE)
ExamplesRequesting sensor value 1: Server: 0x53 0x59 0x4E 0x43 0x21 Client: 0x00 0x12 0x34 0x56 Requesting restart count: Server: 0x53 0x59 0x4E 0x43 0x20 Client: 0x00 0x00 0x00 0x12 Set sensor value 2: Server: 0x53 0x59 0x4E 0x43 0x32 0x12 0x23 0x34 0x45 Client: 0x00 |