List of Parameters: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
== Binary Protocol Overview == | |||
This is a custom binary protocol designed for communication between device and a server. It is used in scenarios like vehicle tracking, remote diagnostics, OTA (Over-The-Air) updates, and device configuration. Each packet is structured with a defined header, payload, and checksum for integrity. The payload structure varies based on packet type and purpose. | |||
=== Advantages of Binary Protocol === | |||
* Compact (saves bandwidth) | |||
* Faster to transmit and parse | |||
* Suitable for constrained environments** like cellular networks (2G/4G) | |||
=== Comparison with Text Protocol === | |||
* No delimiters like commas, newlines, or JSON/XML formatting | |||
* Cannot be inspected or parsed in a terminal without a decoder | |||
== Packet Sending Modes == | |||
Packet sending modes are based on the device data update rate source selected. The update rate is speed-based. | |||
The device can be in any of the following modes: | |||
=== Motion Mode (M) === | |||
If the speed of the vehicle is greater than 3 kmph, then the vehicle is in **motion mode**. | |||
=== Halt Mode (H) === | |||
If the speed is less than 3 kmph and the duration in this condition is greater than CUHT, the vehicle enters halt mode. | |||
=== Sleep Mode (S) === | |||
If the vehicle remains in halt mode and the duration exceeds CUST, it enters sleep mode. | |||
== Types of Packets & Packet Structure == | |||
Discovery devices use a compact binary packet structure to transmit: | |||
* Telemetry | |||
* Alerts | |||
* Device Info | |||
* OTA commands | |||
These packets are transmitted over networks using TCP or HTTP protocols. | |||
Each packet contains: | |||
* A defined header | |||
* A payload | |||
* A checksum for integrity | |||
The payload structure varies based on the packet type and purpose. | |||
== Types of Packets == | == Types of Packets == | ||
Revision as of 07:53, 17 June 2025
Binary Protocol Overview
This is a custom binary protocol designed for communication between device and a server. It is used in scenarios like vehicle tracking, remote diagnostics, OTA (Over-The-Air) updates, and device configuration. Each packet is structured with a defined header, payload, and checksum for integrity. The payload structure varies based on packet type and purpose.
Advantages of Binary Protocol
- Compact (saves bandwidth)
- Faster to transmit and parse
- Suitable for constrained environments** like cellular networks (2G/4G)
Comparison with Text Protocol
- No delimiters like commas, newlines, or JSON/XML formatting
- Cannot be inspected or parsed in a terminal without a decoder
Packet Sending Modes
Packet sending modes are based on the device data update rate source selected. The update rate is speed-based.
The device can be in any of the following modes:
Motion Mode (M)
If the speed of the vehicle is greater than 3 kmph, then the vehicle is in **motion mode**.
Halt Mode (H)
If the speed is less than 3 kmph and the duration in this condition is greater than CUHT, the vehicle enters halt mode.
Sleep Mode (S)
If the vehicle remains in halt mode and the duration exceeds CUST, it enters sleep mode.
Types of Packets & Packet Structure
Discovery devices use a compact binary packet structure to transmit:
- Telemetry
- Alerts
- Device Info
- OTA commands
These packets are transmitted over networks using TCP or HTTP protocols.
Each packet contains:
- A defined header
- A payload
- A checksum for integrity
The payload structure varies based on the packet type and purpose.