Skip to content

QLCP v3 Release

Choose a tag to compare

@NathanBelza NathanBelza released this 12 Jul 19:15
· 5 commits to main since this release

Breaking changes:

  • Update protocol to version 3
  • Switch timestamps to 64 bit microseconds from 32 bit milliseconds for better time resolution
  • Remove TIMESYNC packet, replaced with TIMESYNC_REQ and TIMESYNC_RESP for NTP-style timesyncs
  • Migrate from SSDP discovery to use the DISCOVERY packet with multicast
  • CONTROL and STATUS packets now contain a tagged union for types of control (bool, uint32, int32, float32) to allow for more flexibility
  • Removed obsolete device_status field from CONTROL packets, along with the device_status enum
  • Removed redundant unit field from data packets, as it is specified in the config and should not change at runtime
  • Devices must now respond to CONTROL and ESTOP with a STATUS packet containing its updated state
  • Added ack packet type and ack sequence fields to STATUS packets to acknowledge the packet it is responding to (now can be either respond to CONTROL or STATUS_REQUEST)
  • Packet type for header-only packets has been moved inside its struct for consistency with other encoding functions
  • If inputting a C-style string to the CONFIG packet, the user now must remove the null terminator
  • Config now seperates controls into groups, and requires a unit for controls
  • sensor_info key in config renamed to sensors

Changes:

  • Add magic number 0x514C4350 (QLCP in ASCII) to beginning of header
  • Obsolete error field removed from ack packet (was not accessible from the API)
  • Removed redundant json_len field from CONFIG packets, as it could be determined from the packet length. Field is still present in the API, only removed from encoded packets.
  • Revamped protocol specification document
  • ESTOP no longer has the device stop streams
  • Replace manual big-endian packing with helper functions
  • Added unit tests and fuzzing

What's Changed

New Contributors

Full Changelog: v2.0.0...v3.0.0