Jump to content

Error Packet: Difference between revisions

From Transight Wiki
Created page with "==Error Packet== {| class="wikitable" |- ! colspan="5" style="background:#D3D3D3;" | Header (10 bytes) |- ! Field !! Size (Bits) !! Bit Range !! Description !! Breakdown |- | 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 ||..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Error Packet==
{| class="wikitable"
{| class="wikitable"
! style="background-color:#680022; color:white;" | Field
! style="background-color:#680022; color:white;" | Size (bits)
! style="background-color:#680022; color:white;" | Bit Range
! style="background-color:#680022; color:white;" | Description
! style="background-color:#680022; color:white;" | Breakdown
|-
|-
! colspan="5" style="background:#D3D3D3;" | Header (10 bytes)
! colspan="5" style="background:#D3D3D3;" | Header (10 bytes)
|-
! Field !! Size (Bits) !! Bit Range !! Description !! Breakdown
|-
|-
| Start byte || 8 || 0–7 || Starting character $ (ASCII value 36) || $
| Start byte || 8 || 0–7 || Starting character $ (ASCII value 36) || $
Line 14: Line 16:
| IMEI || 50 || 25–74 || Unique device identifier || —
| IMEI || 50 || 25–74 || Unique device identifier || —
|-
|-
| packet type || 5 || 75–79 || Type of packet || 02 – OTA Packet
| packet type || 5 || 75–79 || Type of packet || 03 - Error packet
|-
|-
! colspan="5" style="background:#D3D3D3;" | Data
! colspan="5" style="background:#D3D3D3;" | Data

Latest revision as of 10:11, 8 September 2025

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 03 - Error 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}