808 Communication Protocol
808 Communication Protocol
V1.1
JT/T808 Protocol
1. Protocol Basis
The communication method adopted by the protocol should comply with the relevant
regulations in JT/T 794. The communication protocol adopts TCP, the platform serves
as the server and the terminal serves as the client. The customized or extended part of
The data types used in the protocol message are shown in Table 1:
BYTE[n] n byte
put a 0 terminator
The protocol uses big-endian network byte order to transfer words and double words.
JT/T808 Protocol
——The transmission convention of WORD: first transfer the high eight bits, and then
— — The transmission convention of DWORD: first transfer the high 24 bits, then
transfer the high 16 bits, then transfer the high eight bits, and finally transfer the low
eight bits.
Each message consists of identification bits, message header, message body and check
Using Ox7e means that if 0x7e appears in the check code, message header, and
message body, it must be escaped. The escape rules are defined as follows:
When sending a message: message encapsulation -> calculate and fill in the
Example:
Send a data packet whose content is 0x30 0x7e 0x08 0x7d 0x55, and the package is
0 Message ID WORD
attributes Figure 2
0138081234567
The structure diagram of the message body attribute format is shown in Figure 2:
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ontr encryption
act method
——When these three bits are all 0, it means that the message body is not
encrypted;
——When the 10th bit is 1, it means that the message body is encrypted by RSA
algorithm;
——Other reservations.
Subcontract:
When the 13th bit in the message body attribute is 1, it means that the message
body is a long message, and the packet is sent. The specific subpackage information is
determined by the message package encapsulation item; if the 13th bit is 0, there is no
The contents of the message package encapsulation items are shown in Table 3
Table 3
JT/T808 Protocol
Byte Field
message
packs
sequence
number
The check code refers to the XOR from the beginning of the message to the next
byte until the previous byte of the check code, which occupies one byte.
2. Data Format
The data format of the terminal general response message body is shown in Table 4.
message
Error;
3:not support
Message ID:0X8001。
The data format of the platform general response message body is shown in Table 5.
message
Error;
confirmation
Message ID:0X0002.
Message ID:0X0100。
The data format of the terminal registration message body is shown in Table 6.
in GB/T 2260.
GB/T 2260.
er ID
JT/T808 Protocol
space is filled.
license plate
department
Message ID:0x8100。
The data format of the terminal registration response message body is shown in Table 7.
database
on code
The terminal will go through the registration process again every time it is reset, and
Message ID:0x0102.
The data format of the terminal authentication message body is shown in Table 8-1.
Table 8-2 Platform response terminal authentication message body data format
message ID
JT/T808 Protocol
Message ID:0x8103
The data format of the message body for setting terminal parameters is shown in Table 9.
Requirements
parameters
shown in Table 10
Parameter BYTE
Length
dispatch center
Table 11: Definition and description of each parameter item of terminal parameter setting
r ID
access point.
(s), >0
0x0029 DWORD The default time reporting interval, in seconds (s), >0
0x002C DWORD The default distance report interval, the unit is meter
(m),>0
<180°
5.4.12 of JT/T415-2006
Message ID:0x8104
The data format of the query terminal parameter response message body is shown in Table 12.
Type
query message
2 Number of BYTE
response
JT/T808 Protocol
parameters
items
The data format of the terminal control message body is shown in Table 13.
Byte Type
forming a message
and Parameter
Byte
Message ID:0x0200。
The location information report message body consists of a list of location basic
information and location additional information items. The message structure diagram
is shown in Figure 3:
items
additional information items, or not, and is determined according to the length field in
Byte Type
Table 17
(m)
Bit Status
0 0: ACC Off;1:ACC On
1 0: Un-Position;1: Positioned
4-5 Reserve
6 0: Disarm 1:Fortify
7-9 Reserve
Disconnected
12-31 Reserve
JT/T808 Protocol
3-6 Reserve
9-14 Reserve
device)
17-18 Reserve
20-27 Reserve
29~31 Reserve
JT/T808 Protocol
Requirements
ID
Length
is defined in Table 20
ID
satellites
stop)
strength
Byte 2, reserved
strength
0.01V
authentication.
0x01 is armed
The data format of the location information query response message body is
Table 24: Data format of location information query response message body
Requirements
of the
corresponding
location
information query
message
see 8.12
See Table 26 for the data format of the message body of the positioning data bulk
upload.
Table 26 The data format of the message body of the positioning data bulk upload
report
item
JT/T808 Protocol
report data
length
body
The data format of the message body sent by the text information is shown in
Table 28.
Table 28 Data format of the message body sent by the text information
Field
meaning
ion
JT/T808 Protocol
Bit Sign
0 1:Emergency
1 Reserve
5-7 Reserve
The data format of the text information report message body is shown in Table 30.
The recording format currently uses the AMR file format, voice control and
The data format of the multimedia data upload message body is shown in the table
below.
Field
a ID
a Type
encoding
reserved
7 Channel ID BYTE
JT/T808 Protocol
8 Multimedi
a data
packet
Only the first data packet contains the 8 bytes of "Multimedia ID — Channel ID", the
subsequent packets are directly multimedia data, and each packet carries a maximum
of 1000 bytes of multimedia data, and the last packet is subject to the actual file.
The platform uses a general response to reply to each multimedia data packet.
The data format of the multimedia data upload response message body is shown
Byte
ID
of
retransmitted
packets
list received
After the platform has processed all media packages, it needs to send this message to
the terminal to report that the file has been received or the corresponding package
needs to be retransmitted.
If the terminal does not receive this message within 5 seconds, it will automatically exit