Skip to content
Snippets Groups Projects
Commit 06e7d93a authored by Adrien van den Bossche's avatar Adrien van den Bossche
Browse files

Update README.md

parent 0f1b3deb
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ Message endianness is little endian.
| 2B | 2B | 0/5B | 1B (opt) | variable | 1B | variable |
|:--------:|:-----------------:|:-----------:|:-------------:|:-----------:|:-------------:|:-----------------------------:|
| `header` | `sequence_number` | `timestamp` | `movement_id` | `device_id` | `payload_len` | `localisation_packet_payload` |
| `header` | `sequence_number` | `timestamp` | `movement_id` | `device_id` | `payload_len` | `payload` |
The `sequence_number` field is mandatory.
......@@ -33,20 +33,20 @@ The `device_id` field length is annouced in the header. A length of 0 means that
The `payload_len` field contains the length of the payload.
The `localisation_packet_payload` length depends on the `localisation_packet_type` annouced in the header.
The `payload` length depends on the `packet_type` annouced in the header.
### Header structure
| MSB 4b | 4b | 4b | 1b | 1b | 2b LSB |
|--------------------|------------------|----------------------------|-----------------------------|---------------------------|----------|
| `protocol_version` | `device_id_size` | `localisation_packet_type` | `movement_id_presence_flag` | `timestamp_presence_flag` | reserved |
| MSB 4b | 4b | 4b | 1b | 1b | 2b LSB |
|--------------------|------------------|---------------|-----------------------------|---------------------------|----------|
| `protocol_version` | `device_id_size` | `packet_type` | `movement_id_presence_flag` | `timestamp_presence_flag` | reserved |
The `protocol_version` field indicates the version of the localisation packet used. This documentation describes the version #1 of the localisation packet protocol.
The `device_id_size` indicates the number of Bytes of the `device_id` field. A length of 0 means that no `device_id` is present in the packet.
The `localisation_packet_type` indicates the structure of the payload. These types of packet have been described:
The `packet_type` indicates the structure of the payload. These types of packet have been described:
* `type 0` : Universal GNSS localisation
* `type 1` : Locally referenced localisation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment