A. Metadata
- Status:
Contains packet status information, such as the protocol version used and the state of the GPS size = 2 bytes consisting of 4 bits: protocol version, 1 bit: has GPS fix (0=no fix, 1=fix) and 11 bits: reserved
- Client_id:
Corresponds to the MAC address of the WiFi card attached on the robot. size =6 bytes
- Latitude: The latitude of the robot. size = 4 bytes (float)
- Longitude: The longitude of the robot. size = 4 bytes (float)
- Timestamp: The Unix timestamp in milliseconds. size = 4 bytes
B. Payload
- Sensor type:
This is a 4 bytes ASCII code, e.g. "FG01", that corresponds to an internal representation of the sensor types. A separate database table is kept having these codes as primary key, along with the full specs of each sensor. size = 4 bytes
- Sensor Value : The value of the sensor as a float. size = 4 bytes
Total Number of Bytes per packet = 28 bytes
Packet Field | Size (bytes) |
---|---|
status | 2 |
client_id | 6 |
latitude | 4 |
longitude | 4 |
timestamp | 4 |
sensor_type | 4 |
sensor_value | 4 |
Total | 28 |
Authors: | George Papamarkos, Dima Diall |
---|---|
Version: | 1.0 |