UDP Message Structure
Each message includes a header of 6 bytes followed by a variable length payload. The header includes the protocol version, message type and payload size enabling the client software to reliably decode the payload data as required.
Field | Type [Size] | Description |
---|---|---|
Version | uint8_t [1] | Protocol version – indicates the revision of the protocol messages |
Message Type | uint8_t [1] | Message type – indicates the type of the payload |
Payload Length | uint32_t [1] | The length, in bytes, of the main body of the message |
Track Distribution Message
The payload of this message is a Protobuf object representing the track:
The X and Y Positions are in metres relative to the system origin set within the Witness Suite.
syntax = "proto3"; package TrackProtobuf; message DistributionTrack { string uniqueid = 1; int32 trackid = 2; int32 senderid = 3; uint32 channelid = 4; double speedmps = 5; double coursedegrees = 6; int32 classification = 7; double classificationprobability = 8; double xposition = 9; double yposition = 10; double latitude = 11; double longitude = 12; string tag = 13; }