Error Packet
| Field | Size (bits) | Bit Range | Description | Breakdown |
|---|---|---|---|---|
| Header (10 bytes) | ||||
| Start byte | 8 | 0–7 | Starting character $ (ASCII value 36) | $ |
| Data length | 12 | 08–19 | 2-byte length of the data following the header | |
| Number of data packets | 5 | 20–24 | Number of packets (0–32) | 0–32 |
| IMEI | 50 | 25–74 | Unique device identifier | — |
| packet type | 5 | 75–79 | Type of packet | 02 – OTA Packet |
| Data | ||||
| Time | 32 | — | UTC Timestamp | UTC time in seconds |
| Time Zone | 8 | — |
Time zone in quarter-hours (e.g., 22 = +5:30). Quarter-hour increment means each unit represents 15 minutes. The value 22 represents 22 quarter-hours. Ranges from -48 to 56, negative time zone to 2’s complement representation. || eg: 22 (+5:30) 22 × 15 = 330 minutes = 5.5 hours = +5:30 UTC | |
| Error Length | 8 | — | Length of Error string | ERROR DATA, LENGTH GIVEN |
| Tail (2 bytes) | ||||
| End Character | 8 | 0–7 | Starting character * (ASCII value 42) | * |
| CRC | 8 | 8–15 |
8-bit XOR CRC of data starting from $ to * (excluding $ and *) ) || | |
Sample Packet
"{HEX": "240060e1cabd09208ca36824664816002a84",
"dateTime": 1747215944,
"dateTime_tz": "2025-05-14 15:15:44.000",
"error_report": "",
"error_report_length": 0,
"imei": 860187062240357,
"insert_time": "Wed, 14 May 2025 09:45:55 GMT",
"packetType": 3,
"send_time": "2025-05-14 15:15:44",
"timezone": 22}