JT808-2013 Protocol
JT808-2013 Protocol
JT808 Protocol
1. Terms & Definitions, Abbreviations
1.1.2 Register
vehicle.
1.1.3 Unregister
The terminal sends a message to the platform for removal from the mounted
vehicle.
1.1.4 Authentication
Rules for determining the interval for periodic reporting based on relevant
conditions.
the vehicle turns. The sampling frequency is not less than 1Hz, and the change
rate of the vehicle azimuth angle is not less than 15°/s, and it lasts for at least
3s.
The event item is preset by the platform to the terminal, and consists of the
event code and the event name. When the driver encounters the
corresponding event, he operates the terminal and triggers the event report
1.2 Abbreviations
2. Protocol Basics
The communication method adopted by the protocol should comply with the
UDP, the platform is the server side, and the terminal is the client side. When
SMS message.
BYTE[n] n bytes
BCD[n] 8421 code, n bytes
The protocol uses big-endian network byte order to pass words and double
words.
stream transmission;
the high 24 bits, then transmit the high 16 bits, then transmit the high eight
body and a check code. The message structure diagram is shown in Figure 1:
Message
Identification bit Message Boday Check Code Identification bit
Header
Figure 1 Message Structure
2.4.2 Identification bit
0x7e is used to indicate that if 0x7e appears in the check code, message
header and message body, it needs to be escaped. The escape rules are
defined as follows:
When receiving a message: escape and restore ——> verify the check code
Example:
Send a packet with the content of 0x30 0x7e 0x08 0x7d 0x55, and encapsulate
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Data
Reserve Subpackage Encryption Message Body Length
Method
Figure 2: Message Body Attribute Format Structure Diagram
—— 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
Subpackage:
When the 13th bit in the message body attribute is 1, it means that the
message header.
The check code refers to starting from the message header, XORing with the
next byte until the previous byte of the check code, occupying one byte.
3. Communication Connection
The daily data connection between the terminal and the platform can use TCP
or UDP. After the terminal is reset, it should establish a connection with the
established.
receiving it, the platform sends a platform general response message to the
3.3 Disconnection
Both the platform and the terminal can actively disconnect according to the
TCP protocol, and both parties should actively determine whether the TCP
connection is disconnected.
disconnected;
—— The message sent by the terminal, such as the heartbeat of the terminal,
disconnected;
4. Message Processing
All messages sent by the platform require the terminal to respond. The
responses are divided into general responses and special responses, which are
determined by each specific functional protocol. After the sender waits for the
response to time out, it should resend the message. The response timeout
parameters. The calculation formula of the response timeout time after each
N —— Number of retransmissions.
4.1.2 Message Sent by The Terminal
When the data communication link is normal, all messages sent by the
terminal require the platform to respond. The responses are divided into
specific functional protocol. After the terminal waits for the response timeout,
it should retransmit the message. The response timeout time and the number
For the key alarm message sent by the terminal, if no response is received
alarm messages are sent in the future before other messages are sent.
When the data communication link is abnormal, the terminal should save the
mode of the GSM network, the PDU eight-bit encoding mode is used. For
messages longer than 140 bytes, they should be subcontracted in accordance
with the SMS service specification of the GSM network GSM 03.40.
the same as in 6.1, but the response timeout time and the number of
5. Protocol Classification
5.1 Overview
Appendix A for the communication protocol between the vehicle terminal and
the external device. See Appendix B for the message comparison table of
When the terminal is not registered, it should be registered first. After the
registration is successful, the terminal will obtain the authentication code and
save it. The authentication code is used when the terminal logs in. Before the
vehicle needs to remove or replace the terminal, the terminal should perform
a logout operation to cancel the corresponding relationship between the
establishing a connection with the platform. The terminal shall not send other
message, and the platform replies with a platform general response message.
message, and the terminal replies with a terminal general response message.
parameter message, and the terminal replies with a query terminal parameter
The platform controls the terminal by sending terminal control messages, and
periodically before stopping, and report at the time interval specified by the
When the terminal judges that the alarm condition is met, it sends a location
information report message, and sets the corresponding alarm flag in the
For each alarm type, see the description in the message body of the location
information report. The alarm flag is maintained until the alarm condition is
specified way. The terminal replies with a terminal general response message.
The platform sends the event list to the terminal for storage by sending the
event setting message. After encountering the corresponding event, the driver
can enter the event list interface to select, and the terminal sends an event
The event setting message requires the terminal to reply to the terminal
5.4.3 Questioning
The platform sends the question with the candidate answer to the terminal by
immediately. After the driver selects, the terminal sends the question
corresponding information service through the menu, and the terminal sends
forecast, etc.
The information service message requires the terminal to reply to the terminal
By sending a call-back message, the platform asks the terminal to call back
according to the specified phone number, and specifies whether to use the
The phone call back message requires the terminal to reply to the terminal
The platform sets the phone book for the terminal by sending the message of
setting the phone book, which requires the terminal to reply to the terminal
control the vehicle according to the specified operation. The terminal will
reply the terminal general response message immediately after receiving it.
Afterwards, the terminal controls the vehicle, and replies to the vehicle
The platform performs area and line settings for the terminal by sending
polygon area, and setting route. The terminal judges whether the alarm
conditions are met according to the attributes of the area and the line. The
alarm includes overspeed alarm, entry and exit area/route alarm, and
report message.
The value range of the area or route ID is 1~0XFFFFFFFF. If the set ID is the
same as an existing area or route ID of the same type in the terminal, the
The platform can also delete the areas and routes saved on the terminal
Setting/deleting area and route messages requires the terminal to reply to the
When the driver starts to drive, insert the IC card qualification certificate into
the card reader module of the terminal. After the card reader module detects
the entry of the card through the induction switch, it sends the authentication
request to the terminal through the interface, and the terminal sends the
transparently transmitted to the card reader module. The card reader module
center (success and failure information) and the home monitoring center (only
When the driver finishes driving, he pulls out the IC card. After the card reader
module detects the departure of the card through the induction switch, the
the command message of the data collection of the driving record, and the
message requires the terminal to reply to the message of uploading the data
The platform requests the terminal to upload the specified data by sending
When the terminal takes the initiative to shoot or record due to a specific
event, it should actively upload a multimedia event message after the event
occurs, which requires the platform to reply with a general response message.
timeout period according to the total number of packets. After receiving all
the data packets or reaching the timeout period, the platform sends a
the receipt of all the data packets or requests the terminal to retransmit the
specified, the terminal will upload the camera image/video after shooting,
recording start command message, which requires the terminal to reply to the
terminal will upload the audio data after recording, otherwise, the audio data
will be stored.
by sending the stored multimedia data retrieval message, which requires the
According to the retrieval result, the platform can request the terminal to
upload message, which requires the terminal to reply to the terminal general
response message.
The messages that are not defined in the protocol but need to be transmitted
in actual use can use data uplink transparent transmission messages and data
data.
The terminal can use the GZIP compression algorithm to compress longer
terminal, the RSA public key cryptosystem can be used. The platform informs
the terminal of its own RSA public key by sending the platform RSA public key
message, and the terminal replies to the terminal RSA public key message,
the receiver can use a general response to all packetized messages, or use a
general response to each packetized message, and use the result field
messages correctly. When all the subpackage messages are not received
messages. The sender should use the original message to retransmit the
6. Data Format
The data format of the terminal general response message body is shown in
Table 4.
Table 4: The data format of the terminal general response message body
Start Byte Field Type of Data Description
The serial number of
0 Reply serial number WORD the corresponding
platform message
The ID of the
2 Answering ID WORD corresponding
platform message
0:
success/confirmation;
4 Result BYTE
1: failure; 2: message
error; 3: not supported
The data format of the platform general response message body is shown in
Table 5.
Table 5: The data format of the terminal general response message body
See Table 6 for the data format of the message body of the retransmission
subpackage request.
Table 6: the data format of the message body of the retransmission subpackage request.
Note: The response to this message should use the original message to
The data format of the terminal registration message body is shown in Table
7.
The data format of the terminal registration response message body is shown
in Table 8.
Table 8: The data format of the terminal registration response message body
Table 9.
See Table 10 for the message body data format for setting terminal
parameters.
Table 10: The message body data format for setting terminal parameters.
Start Byte Field Type of Data Description
Total number of
0 BYTE
parameters
The format of the
1 parameter list parameter item is
shown in Table 11
See Table 15 for the data format of the message body for querying the
specified terminal parameters, and the terminal responds with the 0x0104
command.
Table 15: the data format of the message body for querying the specified terminal parameters
Start Byte Field Type of Data Description
The total number of
0 Total number of parameters BYTE[]
parameters is n
Arrange the parameters
in order, such as
1 List of parameter IDs BYTE[4*n] "parameter ID1
parameter
ID2...parameter IDn"
See Table 16 for the body data format of the query terminal parameter
response message.
Table 16: the body data format of the query terminal parameter response message
The data format of the terminal control message body is shown in Table 17.
Table 17: The data format of the terminal control message body
See Table 20 for the data format of the message body of the query terminal
See Table 21 for the data format of the message body of the delivered
terminal upgrade package. Use the generic reply to the command terminal to
Table 21: The data format of the message body of the delivered terminal upgrade package
Start Byte Field Type of Data Description
0: Terminal, 12: IC card reader for road
0 Type of Upgrade BYTE transport certificate, 52: Beidou
satellite positioning module
1 Manufacturer ID BYTE[5] 5 bytes, terminal manufacturer code.
Version Number
6 BYTE n
Length
7 Version Number STRING
Upgrade packet
7+n DWORD Unit is: BYTE
length
11+n Upgrade package
The terminal uses this command to notify the monitoring center after the
upgrade is completed and reconnected. See Table 22 for the data format of
the terminal upgrade result notification message body.
Table 22: The data format of the terminal upgrade result notification message body.
Start Byte Field Type of Data Description
0: Terminal, 12: IC card reader for road
0 Type of Upgrade BYTE transport certificate, 52: Beidou
satellite positioning module
1 Upgrade Result BYTE 0: success, 1: failure, 2: cancel
See Table 23 for the data format of the basic location information.
Note: If the status changes, the location information must be reported immediately.
The format of the location additional information item is shown in Table 26.
Table 26: Location extension item format
Field Type of Data Description
Additional Information ID BYTE 1-255
Additional Information
BYTE
Length
Additional information is defined in
Additional Information
Table 27
Table 28: Overspeed alarm additional information message body data format
Start Byte Field Type of Data Description
0: no specific location;
1: circular area;
0 Location Type BYTE 2: Rectangular area;
3: polygon area;
4: Road Section
If the location type is 0, this field is
1 Area or segment ID DWORD
empty
Table 29: Entry and exit area/route alarm additional information message body data format
Start Byte Field Type of Data Description
1: circular area;
2: Rectangular area;
0 Location Type BYTE
3: polygon area;
4: Route
1 Area or segment ID DWORD
0: In;
5 Direction BYTE
1: Out
Table 30: Route travel time is insufficient/too long alarm additional information message
body data format
Start Byte Field Type of Data Description
0 Segment ID DWORD
Road segment travel
4 WORD The unit is second (s)
time
6 Result BYTE 0: not enough; 1: too long
Table 31: Extended Vehicle Signal Status Bits
Bit Status
0 1: Low beam signal
1 1: High beam signal
2 1: Right turn signal signal
3 1: Left turn signal signal
4 1: Brake signal
5 1: Reverse gear signal
6 1: Fog light signal
7 1: Position light
8 1: Speaker signal
9 1: Air conditioner status
10 1: Neutral signal
11 1: The retarder works
12 1: ABS works
13 1: The heater works
14 1: clutch status
15-31 Reserve
The data format of the location information query response message body is
See Table 34 for the data format of the temporary location tracking control
message body.
Table 34: The data format of the temporary location tracking control message body.
Start Byte Field Type of Data Description
The unit is seconds (s), 0 stops
0 Time Interval WORD tracking. Stop tracking without a
successor field
The unit is seconds (s). After receiving
the location tracking control message,
Location Tracking the terminal sends the location report
2 DWORD
Validity Period according to the time interval in the
message before the expiration time of
the validity period.
See Table 35 for the manual confirmation alarm message body data format.
Table 35: The manual confirmation alarm message body data format
Start Byte Field Type of Data Description
Serial number of alarm messages that
Alarm message serial
0 WORD need manual confirmation, 0 means all
number
messages of this alarm type
Manual
2 acknowledgment of DWORD See Table 36 for definitions
alarm types
Table 36: Definition for manual acknowledgment of alarm types
Bit Status
0 1: Confirm emergency alarm;
1 -2 Reserve
3 1: Confirm the danger warning;
4 -19 Reserve
20 1: Confirm the alarm in and out of the area;
21 1: Confirm the incoming and outgoing route alarm;
22 1: Confirm that the driving time of the road section is insufficient/too long;
23 - 26 Reserve
27 1: Confirm the illegal ignition of the vehicle and alarm;
28 1: Confirm the illegal displacement of the vehicle and alarm;
29 -31 Reserve
See Table 37 for the data format of the text message delivery message body.
Table 37: The data format of the text message delivery message body
Start Byte Field Type of Data Description
See Table 38 for the meaning of the
0 Sign BYTE
text information flags
1 Text Message STRING Up to 1024 bytes, GBK encoded
The event setting message body data format is shown in Table 39.
Table 39: The event setting message body data format
Start Byte Field Type of Data Description
0: Delete all existing events of the
terminal, without subsequent bytes
after this command;
1: update event;
0 Setting Type BYTE 2: Append event;
3: Modify the event;
4: Delete certain events, after which
there is no need to include event
content in event items
Total Numbers of
1 BYTE
Setting
See Table 40 for the data format of
2 Event item list
event item composition
The event report message body data format is shown in Table 41.
Table 41: The event report message body data format
Start Byte Field Type of Data Description
0 Event ID BYTE
The data format of the message body for question delivery is shown in Table
42.
Table 42: The data format of the message body for question delivery
Start Byte Field Type of Data Description
See Table 43 for the definition of the
0 Sign BYTE
question issuing flag.
Question content
1 BYTE Question field byte length
length
2 Question STRING Question text, GBK encoded, length N
Candidate answer The composition of the candidate
2+N
list answer message is shown in Table 44
See Table 45 for the data format of the question-response message body.
Table45: The data format of the question response message body
Start Byte Field Type of Data Description
Response serial The serial number of the message
0 WORD
number issued by the corresponding question
The answer ID attached to the
2 Answer ID BYTE
question distribution
demand menu.
Table 46: The message body data format set in the information on demand menu
Start Byte Field Type of Data Description
0: delete all terminal information
items;
0 Type of Setting BYTE 1: Update menu;
2: Additional menu;
3: Modify the menu
Total number of
1 BYTE
information items
See Table 47 for the composition data
list of information
2 format of information on demand
items
information items
Table 47: The composition data format of information on demand information items
Start Byte Field Type of Data Description
If the terminal already has an
0 Type of message BYTE information item of the same type, it
will be overwritten
message name
1 WORD Message name field byte length
length
3 Message name STRING Processed by GBK encoding
See Table 48 for the message body data format for message
on-demand/cancellation.
Table 48: The message body data format for message on demand/cancellation
Start Byte Field Type of Data Description
0 Type of message BYTE
On-demand/cancel
1 BYTE 0: Cancel; 1: On-demand
flag
6.30 Information Service
See Table 49 for the information service message body data format.
Table 49: The information service message body data format
Start Byte Field Type of Data Description
0 Type of message BYTE
1 message length WORD
3 Message content STRING Processed by GBK encoding
See Table 50 for the data format of the phone callback message body.
Table 50: The data format of the phone callback message body
Start Byte Field Type of Data Description
0 Sign BYTE 0: Normal call; 1: Monitor
1 Phone number BYTE Up to 20 bytes
See Table 51 for setting the phone book message body data format.
Table 51: Setting the phone book message body data format
Start Byte Field Type of Data Description
0: delete all stored contacts on the
terminal;
1: means to update the phone book
(delete all contacts in the terminal and
0 Type of Setting BYTE
add contacts in the message);
2: Indicates additional phone book;
3: Indicates to modify the phone book
(indexed by contacts)
total number of
1 BYTE
contacts
See Table 52 for the data format of
2 Contact item
phone book contact items
Table 52: The data format of phone book contact items
Start Byte Field Type of Data Description
1: Incoming; 2: Outgoing; 3:
0 Sign BYTE
Incoming/Outgoing
1 number length BYTE
2 Phone number STRING length n
2+n Contact length BYTE
3+n Contact STRING GBK encoded
The data format of the vehicle control message body is shown in Table 53.
Table 53: The data format of the vehicle control message body
Start Byte Field Type of Data Description
See Table 54 for the data format of the
0 control sign BYTE
control command flag bit
Table 54: The data format of the control command flag bit
Bit Sign
0 0: Door unlocked; 1: Door locked
1-7 Reserve
The data format of the vehicle control response message body is shown in
Table 55.
Table 55: The data format of the vehicle control response message body
Start Byte Field Type of Data Description
Response serial The serial number of the
0 WORD
number corresponding vehicle control message
Determine whether the control is
Location information
2 successful or not according to the
report message body
corresponding status bit
6.35 Set Circular Area
See Table 56 for setting the data format of the circular area message body.
Note: This message protocol supports the periodic time range. If you want to
Table 57: The area ite content data format of the circular area
Start Byte Field Type of Data Description
0 Area ID DWORD
See Table 58 for area attribute
4 Area Properties WORD
definitions
Latitude value in degrees multiplied by
6 Center Point Latitude DWORD 10 to the 6th power to the nearest
millionth of a degree
Longitude value in degrees multiplied
Center Point
10 DWORD by 10 to the 6th power to the nearest
Longitude
millionth of a degree
The unit is meters (m), and the road
14 Radius DWORD segment is from the inflection point to
the next inflection point
YY-MM-DD-hh-mm-ss, if the area
18 Start Time BCD[6]
attribute 0 bit is 0, there is no field
YY-MM-DD-hh-mm-ss, if the area
24 End Time BCD[6]
attribute 0 bit is 0, there is no field
Km/h, if the area attribute 1 bit is 0,
30 Top Speed WORD
there is no such field
32 Overspeed Duration BYTE The unit is second (s) (similar
expression, same as before), if the
1-bit of the area attribute is 0, there is
no such field
See Table 59 for the data format of the message body for deleting the circular
area.
Table 59: The data format of the message body for deleting the circular area
Start Byte Field Type of Data Description
The number of areas included in this
message, no more than 125, more
0 Area Numbers BYTE than 125 are recommended to use
multiple messages, 0 is to delete all
circular areas
1 Area ID1 DWORD
See Table 60 for setting the format of the message body data in the
rectangular area.
Table 60: Setting the format of the message body data in rectangular area
Start Byte Field Type of Data Description
0: update area;
0 Setting Properties BYTE 1: Additional area;
2: Modify the area
1 Total Area BYTE
See Table 61 for the area item content
2 Area Item
data format of the rectangular area
Table 61: The area item content data format of the rectangular area
Start Byte Field Type of Data Description
0 Area ID DWORD
See Table 58 for area attribute
4 Area Properties WORD
definitions
Latitude value in degrees multiplied by
Latitude of upper left
6 DWORD 10 to the 6th power to the nearest
point
millionth of a degree
Longitude value in degrees multiplied
Longitude of upper
10 DWORD by 10 to the 6th power to the nearest
left point
millionth of a degree
Latitude value in degrees multiplied by
Latitude of lower
14 DWORD 10 to the 6th power to the nearest
right point
millionth of a degree
Longitude value in degrees multiplied
Longitude of lower
18 DWORD by 10 to the 6th power to the nearest
right point
millionth of a degree
YY-MM-DD-hh-mm-ss, if the area
22 Start Time BCD[6]
attribute 0 bit is 0, there is no field
YY-MM-DD-hh-mm-ss, if the area
28 End Time BCD[6]
attribute 0 bit is 0, there is no field
Km/h, if the area attribute 1 bit is 0,
34 Top Speed WORD
there is no such field
The unit is second (s) (similar
expression, same as before), if the
36 Overspeed Duration BYTE
1-bit of the area attribute is 0, there is
no such field
6.38 Delete Rectangular Area
See Table 62 for the data format of the message body for deleting the
rectangular area.
Table 59: The data format of the message body for deleting rectangular area
Start Byte Field Type of Data Description
The number of areas included in this
message, no more than 125, more
0 Area Numbers BYTE than 125 are recommended to use
multiple messages, 0 is to delete all
rectangular areas
1 Area ID1 DWORD
See Table 63 for setting the data format of the polygon area message body.
Table 63: Setting the data format of the polygon area message body
Start Byte Field Type of Data Description
0 Area ID DWORD
See Table 58 for area attribute
4 Area Properties WORD
definitions
YY-MM-DD-hh-mm-ss, if the area
6 Start Time BCD[6]
attribute 0 bit is 0, there is no field
YY-MM-DD-hh-mm-ss, if the area
12 End Time BCD[6]
attribute 0 bit is 0, there is no field
Km/h, if the area attribute 1 bit is 0,
18 Top Speed WORD
there is no such field
The unit is second (s) (similar
expression, same as before), if the
20 Overspeed Duration BYTE
1-bit of the area attribute is 0, there is
no such field
The total number of
21 WORD
vertices in the area
23 Vertex Item See Table 64 for the vertex item data
format of the polygon area
Table 64: The vertex item data format of the polygon area
Start Byte Field Type of Data Description
Latitude value in degrees multiplied by
0 Vertex Latitude DWORD 10 to the 6th power to the nearest
millionth of a degree
Longitude value in degrees multiplied
4 Vertex Longitude DWORD by 10 to the 6th power to the nearest
millionth of a degree
See Table 65 for the data format of the message body for deleting the polygon
area.
Table 59: The data format of the message body for deleting polygon area
Start Byte Field Type of Data Description
The number of areas included in this
message, no more than 125, more
0 Area Numbers BYTE than 125 are recommended to use
multiple messages, 0 is to delete all
polygon areas
1 Area ID1 DWORD
See Table 66 for setting the route message body data format.
Table 66: Setting the route message body data format
Start Byte Field Type of Data Description
0 Route ID DWORD
Route attribute data format see Table
4 Route Properties WORD
67
6 Start Time BCD[6] YY-MM-DD-hh-mm-ss, if the area
attribute 0 bit is 0, there is no field
YY-MM-DD-hh-mm-ss, if the area
12 End Time BCD[6]
attribute 0 bit is 0, there is no field
Total number of Km/h, if the area attribute 1 bit is 0,
18 inflection points of WORD there is no such field
the route
See Table 68 for the data format of the
20 Inflection point
route inflection point item
Table 68: The data format of the route inflection point item
Start Byte Field Type of Data Description
0 Inflection point ID DWORD
See Table 58 for area attribute
4 Route ID DWORD
definitions
Latitude value in degrees multiplied by
Inflection point
8 DWORD 10 to the 6th power to the nearest
latitude
millionth of a degree
Longitude value in degrees multiplied
Inflection point
12 DWORD by 10 to the 6th power to the nearest
longitude
millionth of a degree
The unit is meters (m), and the road
16 Route width BYTE segment is from the inflection point to
the next inflection point
See Table 69 for the data format of
17 Route Properties BYTE
road segment attributes
The unit is second (s), if the 0 bit of the
Road segment travel
18 WORD road segment attribute is 0, there is no
too long threshold
such field
The unit is second (s), if the 0 bit of the
Road segment under
20 WORD road segment attribute is 0, there is no
travel threshold
such field
Road section Km/h, if the area attribute 1 bit is 0,
22 WORD
maximum speed there is no such field
The unit is second (s), if the 0 bit of the
Duration of speeding
24 BYTE road segment attribute is 0, there is no
on the road
such field
See Table 70 for the data format of the message body for deleting route.
Table 70: The data format of the message body for deleting the route
Start Byte Field Type of Data Description
The number of areas included in this
message, no more than 125, more
0 Route Numbers BYTE than 125 are recommended to use
multiple messages, 0 is to delete all
routes
1 Route ID1 DWORD
See Table 71 for the data format of the command message body of the driving
See Table 72 for the data format of the message body for uploading the
See Table 73 for the data format of the command message body for
See Table 74 for the data format of the electronic waybill report message
body.
Table 74: The data format of the E-waybill report message body
Start Byte Field Type of Data Description
0 E-Waybill Length DWORD
4 E-Waybill Content Electronic Waybill Packet
The message body of the request for reporting driver identity information is
empty.
command, use this command to reply. See Table 75 for the data format of the
See Table 76 for the batch upload data format of positioning data.
Table 76: The batch upload data format of positioning data
Start Byte Field Type of Data Description
Number of data The number of position report data
0 WORD
items items included, > 0
0: Batch report for normal position, 1:
1 Location data type BYTE
Supplementary report for blind area
Location reporting
2 See Table 77 for definitions
data item
The data format of CAN bus data upload is shown in Table 78.
Table 78: The data format of CAN bus data upload
Start Byte Field Type of Data Description
Number of data The number of CAN bus data items
0 WORD
items included, > 0
CAN bus data Receive time of 1st CAN bus data,
2 BCD[5]
reception time hh-mm-ss-msms
8 CAN bus data item See Table 79 for definitions
See Table 80 for the upload data format of the multimedia event message.
Table 80: The upload data format of the multimedia event message
Start Byte Field Type of Data Description
0 Multimedia data ID DWORD >0
4 Type of multimedia BYTE 0: Image; 1: Audio; 2: Video;
Multimedia format 0: JPEG; 1: TIF; 2: MP3; 3: WAV; 4:
5 BYTE
encoding WMV; other reserved
0: Command issued by the platform; 1:
Timing action; 2: Robbery alarm
triggered; 3: Collision rollover alarm
triggered; 4: Door open to take
6 Event item code BYTE
pictures; 5: Door closed to take
pictures; km to more than 20 km; 7:
take photos at a fixed distance; other
reservations
7 Channel ID BYTE
See Table 81 for the data format of the multimedia data upload message
body.
Table 81: The data format of the multimedia data upload message body
Start Byte Field Type of Data Description
0 Multimedia ID DWORD >0
4 Type of multimedia BYTE 0: Image; 1: Audio; 2: Video;
Multimedia format 0: JPEG; 1: TIF; 2: MP3; 3: WAV; 4:
5 BYTE
encoding WMV; other reserved
0: Command issued by the platform; 1:
Timed action; 2: Robbery alarm
6 Event item code BYTE
triggered; 3: Collision rollover alarm
triggered; others reserved
7 Channel ID BYTE
Location information
Location basic information data
8 report (0x0200) BYTE[28]
representing multimedia data
message body
Multimedia Data
36
Packet
See Table 82 for the data format of the multimedia data upload response
message body.
Table 82: The data format of the multimedia data upload response message body
Start Byte Field Type of Data Description
>0, no subsequent fields if all packets
0 Multimedia ID DWORD
are received
Total number of
4 retransmitted BYTE n
packets
The sequence numbers of the
List of retransmitted retransmission packets are arranged in
5 BYTE[2*n]
packet IDs order, such as "packet ID1 packet
ID2...packet IDn".
Note: The response to this message should use the 0x0801 message to retransmit
the sub-packet in the retransmission ID list once, which is exactly the same as the
original sub-packet message.
6.54 The Camera Immediately Shoots Command
See Table 83 for the data format of the camera immediate shooting command
message body.
Table 83: The data format of the camera immediately shooting commend message
body
Start Byte Field Type of Data Description
0 Channel ID BYTE >0
0 means stop shooting; 0xFFFF means
1 Shooting Command WORD video recording; other means the
number of pictures taken
Photo Seconds, 0 means taking pictures at
3 interval/recording WORD the smallest interval or recording all
time the time
1: save;
5 Save sign BYTE
0: real-time upload
0x01:320*240;
0x02:640*480;
0x03:800*600;
0x04:1024*768;
6 Resolution BYTE
0x05:176*144;[Qcif];
0x06:352*288;[Cif];
0x07:704*288;[HALF D1];
0x08:704*576;[D1];
1-10, 1 means the least quality loss, 10
7 Image/Video Quality BYTE
means the most compression ratio
8 Brightness BYTE 0-255
9 Contrast BYTE 0-127
10 Saturation BYTE 0-127
11 Chroma BYTE 0-255
If the terminal does not support the resolution required by the system, take the closest
resolution to shoot and upload
See Table 84 for the body data format of the camera immediate shooting
command response message body. This command is used to answer the
center.
Table 84: The body data format of the camera immediate shooting command
response message body
Start Byte Field Type of Data Description
The message serial number
corresponding to the immediate
0 Reply serial number WORD
shooting command of the platform
camera
0: success; 1: failure; 2: channel not
2 Result BYTE supported. The following fields are
only valid when result=0.
Number of n, the number of successful
3 WORD
multimedia IDs multimedia shoots
4 Multimedia ID List BYTE[4*n]
See Table 85 for the data format of the stored multimedia data retrieval
message body.
Note: Set the start time/end time to 00-00-00-00-00-00 without pressing the
time range.
Table 85: The data format of the stored multimedia data retrieval message body
Start Byte Field Type of Data Description
0 Multimedia Type BYTE 0: Image; 1: Audio; 2: Video;
0 means to retrieve all channels of this
1 Channel ID BYTE
media type;
0: Command issued by the platform; 1:
Timed action; 2: Robbery alarm
2 Event Item Code BYTE
triggered; 3: Collision rollover alarm
triggered; others reserved
3 Start Time BCD[6] YY-MM-DD-hh-mm-ss
9 End Time BCD[6] YY-MM-DD-hh-mm-ss
6.57 Store Multimedia Data Retrieval Response
See Table 86 for the data format of the stored multimedia data retrieval
See Table 88 for the data format of the message body of the stored
The data format of the recording start command message body is shown in
Table 89.
Table89: The data format of the recording start command message body
Start Byte Field Type of Data Description
0: stop recording; 0x01: start
0 Record command BYTE
recording;
The unit is second (s), 0 means
1 Record time WORD
recording all the time
3 Save flag BYTE 0: real-time upload; 1: save
0: 8K; 1: 11K; 2: 23K; 3: 32K; other
4 Audio sample rate BYTE
reserved
See Table 90 for the message body data format of a single stored multimedia
See Table 91 for the data format of the downlink transparent transmission
message body.
Table 91: The data format of the downlink transparent transmission message body
Start Byte Field Type of Data Description
Transparent See Table 93 for the definition of
0 BYTE
message type transparent message types
Transparent
1
message content
See Table 92 for the data format of the data uplink transparent transmission
message body.
Table 92: The data format of the data uplink transparent transmission message body
Start Byte Field Type of Data Description
Transparent See Table 93 for the definition of
0 BYTE
message type transparent message types
Transparent
1
message content
Table 93: The definition of transparent message types
Transparent Message Type Definition Description
GNSS module detailed
0x00 GNSS module detailed positioning data
positioning data
The upload message of the road transport
permit IC card information is 64Byte, and
the download message is 24Byte. The
Road Transport Permit IC
0x0B time-out time for the transparent
Card Information
transmission of the road transport permit IC
card authentication is 30s. After the
timeout, do not retransmit.
Serial port 1 transparent Serial port 1 transparently transmits
0x41
transmission messages
Serial port 2 transparent Serial port 2 transparently transmits
0x42
transmission messages
User-defined transparent
0xF0 - 0xFF User-defined transparent message
transmission
See Table 94 for the data format of the data compression report message
body.
Table 94: The data format of the data compression report message body
Start Byte Field Type of Data Description
Compressed
0 DWORD
message length
The compressed message body is the
Compressed
4 message that needs to be compressed
message body
after the GZIP compression algorithm
The data format of the platform RSA public key message body is shown in
Table 95.
Table 95: The data format of the platform RSA public key message body
Start Byte Field Type of Data Description
0 e DWORD e in platform RSA public key {e,n}
4 n BYTE[128] n in RSA public key {e,n}
The data format of the terminal RSA public key message body is shown in
Table 96.
Table 96: The data format of the terminal RSA public key message body
Start Byte Field Type of Data Description
0 e DWORD e in terminal RSA public key {e,n}
4 n BYTE[128] n in RSA public key {e,n}
Appendix A
Vehicle Terminal and External Device Communication Protocol
A.1 Device
A2 Communication Protocol
Table A.1.
Table A.1: Frame format definition
Peripheral
Identification Check Version Manufacturer Command User Identification
Type
Bit Code Number Number Type Data Bit
Number
n
1 Byte 1 Byte 2 Byte 2 Byte 1 Byte 1 Byte 1 Byte
Byte
code, message header and message body, it must be escaped. The escape
When sending a message: message encapsulation -> calculate and fill check
When receiving a message: escape and restore --> verify the check code -->
Example 1:
Send a packet with the content of 0x30 0x7e 0x08 0x7d 0x55, then
encapsulate as follows: 0x7e 0x30 0x7d 0x020x08 0x7d 0x01 0x55 0x7e;
b) Check code: the accumulated sum from the manufacturer number to the
user data, and then take the accumulated lower 8 digits as the check code;
Example 2:
peripheral, which is used for the peripheral interface driver of the host to
distinguish what kind of data is sent by the peripheral; see Table A.2 for the
f) Command type: The type of information used by the peripheral and the
host for various data exchanges. The command type is divided into two
types between the slave and the host. ; Proprietary protocol defines the
unique information interaction type between various peripherals and the host;
in the data that the peripheral device interacts with the host except the above
parts;
representation.
Table A.2: Peripheral Type Number Table
Peripheral Type Number
Industry Information Terminal 0x01
Scheduling Display 0x02
Car Navigation Display 0x03
Fuel Level Detector 0x04
Acceleration Detector 0x05
Burglar Alarm 0x06
Interface Extender 0x07
Load Detector 0x08
Passenger Flow Detector 0x09
Universal Sensor 0x0A
Road Transport Permit IC Card Reader 0x0B
Customize 0xF0 - 0xFF
following rules:
a) The send and reply protocols of the same function use the same command
type;
b) For peripherals with many command types, when adding new command
types.
See Table A.4 for the power-on instructions of the slave device.
Table A.4: Power-on Instructions of the slave device
Command
Step Description User Data Data Direction
Type
Power-on
1 01H indication No Down
response
Power-on
2 01H No Up
indication
See Table A.7 for the command to query the slave device version number
information.
Table A.7: The command to query the slave device version number information.
Command Data
Step Description User Data
Type Direction
Query the
slave
1 04H device No Down
version
number
Query the
slave
Slave version number, WORD
device
2 04H Such as: 0x0207, which means version Up
version
2.07
number
response
When the module detects that a card is inserted, and after the module is reset
or powered on again, and the physical card number of the IC card in the card
slot is inconsistent with the last read card number, it will automatically trigger
See Table A.11 for the request instruction for the IC card authentication of the
A. When the status bit is 0x00, the terminal sends 64 bytes of card basic
terminal to the card reader module is 0x00, the card reader module starts to
read the card information, and then automatically starts the 41H command to
feed back the result to the terminal, and the terminal voice prompts the driver
with the corresponding result, and when the card is successfully read Then
use the 0x0702 command to send the driver's identity information to the
the terminal to the card reader module is 0x01, wait for 20 minutes, and use
the 43H command to actively trigger the card reader module to read the IC
card;
terminal to the card reader module is 0x02, the card reader module resends
40H three times. After three unsuccessful attempts, the terminal ends the
process and voice prompts the driver with the corresponding result;
terminal to the card reader module is 0x03, the process ends, and the
B. When the status bit is not 0x00, the terminal ends the process and voice
A4.2 Notification of the result of reading the IC card of the Road Transport
Permit
See Table A.12 for the notification instruction of the reading result of the IC
A. When the terminal receives the IC card reading result of 0x00, it uses the
B. When the terminal receives an IC card reading result other than 0x00, it
ends the process and voice prompts the driver with the corresponding result.
When the terminal receives the card pullout notification, it uses the 0x0702
See Table A.15 for the command to actively trigger reading the IC card.
Table A.15: The command to actively trigger reading the IC card
Command Data
Step Description User Data
Type Direction
1 43H Active trigger to read IC card No Down
Active trigger to read IC card
2 43H No Up
received confirmation
Note: The timeout time of this command is 1s. If there is no response, it will be
resent at most three times.
This command is used for terminal roll call, terminal is offline, or the terminal
reader module receives this command, it will automatically trigger the 40H
See Table B.1 for the message comparison table of the terminal
communication protocol.