PROTOCOL 820 B

1234567891011121314151617181920212223242526272829303132333435
  1. Arexx Data Logger Protocol
  2. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  3. All packets have fixed size of 64 bytes. The first byte is a packet
  4. type, followed by type-dependent data.
  5. Timestamps are 32-bit integers representing the number of seconds
  6. since 2000-01-01 00:00:00 UTC.
  7. Request packets (from the PC to the logger)
  8. ~~~~~~~~~~~~~~~
  9. type 03 Request sensor data
  10. The data part is probably unused.
  11. type 04 Set clock
  12. Data: u32le timestamp
  13. Reply packets (from the logger to the PC)
  14. ~~~~~~~~~~~~~
  15. type 00 Report sensor data
  16. The data part is a sequence of tuples, each tuple
  17. starts with its length.
  18. 9-byte tuples:
  19. u8 tuple length (0x09)
  20. u16le sensor ID
  21. u16be! raw value
  22. u32le timestamp
  23. 10-byte tuples contain one extra byte:
  24. u8 signal quality (units unknown)
  25. A 0-byte tuple serves as a terminator.