What is the Traccar protocol and port number of this Chinese device?
Data Packet Format
The communication is transferred asynchronously in bytes.
The total length of packets is (10+N) Bytes.
Format Length(Byte)
Start Bit 2
Packet Length 1
Protocol Number 1
Information Content N
Information Serial
Number
2
Error Check 2
Stop Bit 2
4.1. Start Bit
Fixed value in HEX 0x78 0x78.
4.2. Packet Length
Length = Protocol Number + Information Content + Information Serial Number + Error Check,
totally (5+N)Bytes, because the Information Content is a variable length field.
4.3. Protocol Number
Type Value
Login Message 0x01
Location Data 0x12
Status information 0x13
String information 0x15
Alarm data 0x16
GPS, query address information by
phone number
0x1A
Command information sent by the
server to the terminal
0x80
4.4. Information Contents
The specific contents are determined by the protocol numbers corresponding to different
applications.
4.5. Information Serial Number
The serial number of the first GPRS data (including status packet and data packet such as GPS,
LBS) sent after booting is ‘1’, and the serial number of data sent later at each time will be
automatically added ‘1’.
4.6. Error Check
A check code may be used by the terminal or the server to distinguish whether the received
information is error or not. To prevent errors occur during data transmission, error check is added to
against data misoperation, so as to increase the security and efficiency of the system. The check code
is generated by the CRC-ITU checking method.
Examples
Examples of the login message packet sent by the terminal to the server and the response packet
sent by the server to the terminal are as follows: (in the examples the terminal ID is
123456789012345.
Example of data packet sent by the terminal 78 780 0D 01 01 23 45 67 89 01 23 45 00 01 8C DD 0D 0A
Explain
0x78 0x78 0x0D 0x01
0x01 0x23 0x45 0x67 0x89 0x01 0x23 0x45
0x00 0x01
0x8C
0xDD
0x0D 0x0A
Start Bit Length
Protocol
No.
Terminal ID Serial No.
Error
Check
Stop Bit
Example of response packet returned by the server
78 78 05 01 00 01 D9 DC 0D 0A
Explain
0x78 0x78 0x05 0x01 0x00 0x01 0xD9 0xDC 0x0D 0x0A
Start Bit Length
Protocol
No.
Serial No. Error Check Start Bit
What is the Traccar protocol and port number of this Chinese device?
Data Packet Format
The communication is transferred asynchronously in bytes.
The total length of packets is (10+N) Bytes.
Format Length(Byte)
Start Bit 2
Packet Length 1
Protocol Number 1
Information Content N
Information Serial
Number
2
Error Check 2
Stop Bit 2
4.1. Start Bit
Fixed value in HEX 0x78 0x78.
4.2. Packet Length
Length = Protocol Number + Information Content + Information Serial Number + Error Check,
totally (5+N)Bytes, because the Information Content is a variable length field.
4.3. Protocol Number
Type Value
Login Message 0x01
Location Data 0x12
Status information 0x13
String information 0x15
Alarm data 0x16
GPS, query address information by
phone number
0x1A
Command information sent by the
server to the terminal
0x80
4.4. Information Contents
The specific contents are determined by the protocol numbers corresponding to different
applications.
4.5. Information Serial Number
The serial number of the first GPRS data (including status packet and data packet such as GPS,
LBS) sent after booting is ‘1’, and the serial number of data sent later at each time will be
automatically added ‘1’.
4.6. Error Check
A check code may be used by the terminal or the server to distinguish whether the received
information is error or not. To prevent errors occur during data transmission, error check is added to
against data misoperation, so as to increase the security and efficiency of the system. The check code
is generated by the CRC-ITU checking method.
Examples
Examples of the login message packet sent by the terminal to the server and the response packet
sent by the server to the terminal are as follows: (in the examples the terminal ID is
123456789012345.
Example of data packet sent by the terminal 78 780 0D 01 01 23 45 67 89 01 23 45 00 01 8C DD 0D 0A
Explain
0x78 0x78 0x0D 0x01
0x01 0x23 0x45 0x67 0x89 0x01 0x23 0x45
0x00 0x01
0x8C
0xDD
0x0D 0x0A
Start Bit Length
Protocol
No.
Terminal ID Serial No.
Error
Check
Stop Bit
Example of response packet returned by the server
78 78 05 01 00 01 D9 DC 0D 0A
Explain
0x78 0x78 0x05 0x01 0x00 0x01 0xD9 0xDC 0x0D 0x0A
Start Bit Length
Protocol
No.
Serial No. Error Check Start Bit