Protocol

The full documentation is available at our GitHub.

Serial Protocol

  checksum byte komt aan het eind van de packet zodat je de de checksum kan computen tijdens het verzenden, dit bespaard processing tijd uit 
De checksum bytes worden meegeteld in data length

------------------------------------------------------------------------
| Source | Destination | Pack | Len | Data | Checksum |
| Net | Dev | Net | Dev | etID | | | |
------------------------------------------------------------------------
| 0x01 | 0x01 | 0x01 | 0x01 | 0x00 | 0x00 | 0x00,0x00,0x00 | 0x00,0x00 |
------------------------------------------------------------------------

Checksum

  Checksum calculation

Python:
def checksum(data):
checksum = 0
i = 0
while i < len(data):
checksum = checksum + ord(data[i])
i += 1
return [((checksum>>8)&255),((checksum)& 255)]

This is an auto-updating page, which displays a few files from our documentation.