Sensor message format (on top of UDP):
Version | Application | Packet Type | Node ID | SEQ number | Driver ID | Payload |
Where
- Version
- Protocol Version
- one byte unsigned integer
- Equal to one for this version
- Application
- application specific distinct pattern
- four bytes
- Packet Type (list of packet types)
- type of packet, interpretation of rest of packet
- two byte unsigned integer
- Node ID – identity of sensor node (from / to)
- two byte unsigned integer
- SEQ Number
- sequence number for each sent or received packet. The touple <ID, SEQ number> is unique for each message (GET or SET). For ACKs is the SEQ Number of the packet being ACKed. *SEQ Number is a two bytes unsigned integer
- Driver ID
- identification for the driver
- list of driver IDs?
- the drivers IDs are mapped to UDP port numbers (driver UDP port = DRIVER_BASE_PORT + driver_ID)
- Payload is from/to the drivers, specified here
Last modified 17 months ago
Last modified on Jul 17, 2014, 12:39:41 PM