FERAL ROBOTS

Packet format:

A. Metadata

  1. 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
  1. Client_id:
Corresponds to the MAC address of the WiFi card attached on the robot. size =6 bytes
  1. Latitude: The latitude of the robot. size = 4 bytes (float)
  2. Longitude: The longitude of the robot. size = 4 bytes (float)
  3. Timestamp: The Unix timestamp in milliseconds. size = 4 bytes

B. Payload

  1. 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
  1. Sensor Value : The value of the sensor as a float. size = 4 bytes

Total Number of Bytes per packet = 28 bytes

Summary Table

Packet FieldSize (bytes)
status2
client_id6
latitude4
longitude4
timestamp4
sensor_type4
sensor_value4
Total28

Authors:George Papamarkos, Dima Diall
Version:1.0