Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Introduction
1. This document focuses on the functional protocols associated with the locator and the server,
as well as their data format and content
2. The agreement only applies to the communication between the locator and the server, the
current version of the corresponding time is 2017 May, if the future changes, and then make the
appropriate adjustment of the document
3. All communication data format is 0x780x78 + data length + protocol number + data content +
0x0d0x0a, the data length of the data content for the number of bytes and the number of bytes
occupied by the agreement number. A special number is not the rule in the details of the
agreement in the corresponding description
4. All communication data is transmitted through the tcpip protocol, the server address is
______ port is ______
5. A part of the protocol data is sent in two directions, that is, the data is initiated by the device
or one of the servers, and one party is required to reply to a reply data of the corresponding
protocol. There is a part of the agreement is one-way, that is, after the equipment or server is
issued, the party does not need to reply to the data. If there is no special description, protocol
data are unidirectional, that is, the party receiving the data does not need to reply to the data.
6. The sample data is all hexadecimal
Details
0x01 login
The device is sent to the server
Start bit 2byte packet length 1byte protocol number 1byte IMEI 8byte software version number
1byte stop bit 2byte
Eg.7878 0A 01 0123456789012345 01 0D0A
Where the IMEI data is BCD encoded and the data of the IMEI in the packet is 0x01 0x23 0x45
0x67 0x89 0x01 0x23 0x45, IMEI is 123456789012345
Software version number: 01 Software version number
After the server receives the login data, reply to the data
Start bit 2byte packet length 1byte protocol number 1byte stop bit 2byte
If it is a legitimate device, return 0x01 protocol data. If the login fails, reply to 0x44 protocol,
prohibit the device to upload data.
Eg.7878 01 01 0D0A login successful
7878 01 44 0D0A Login failed
0-South latitude, 1-North latitude, 0-East latitude, 1-West Latitude , 0 GPS not positioning 1 GPS
positioning
Example inside the course heading 3460, converted to binary 0011 0100 0110 0000, said GPS in
the positioning state, east, north latitude, heading is 96 °.
Server reply:
Start bit 2byte packet length 1byte protocol number 1byte date time 6byte stop bit 2byte
Eg.7878 00 10 0A03170F3217 0D0A
The resolution of this protocol is the same as 0x69, representing offline WIFI LBS data
Start bit 2byte WIFI quantity 1byte protocol number 1byte date time 6byte WIFI data length
indefinite fixed format LBS data length indefinite fixed format stop bit 2byte
The server also needs to reply to the protocol number plus time
Start bit 2byte packet length 1byte protocol number 1byte time 6byte end bit 2byte
7878 00 17 170622123031 0d0a
Bidirectional instruction
The device is sent to the server to request time synchronization
Start bit 2byte packet length 1byte protocol number 1byte end bit 2byte
Eg.7878 01 30 0D0A
When the server receives it, it returns the current GMT time
Start bit 2byte packet length 1byte protocol number 1byte date time 6byte end bit 2byte
Eg.7878 07 30 07E00705053718 0D0A
Time for the hexadecimal, 07E00705053718 conversion over July 5, 2016 5:55:24
0x41SOS number
Alarm clock: 9byte, if not set the alarm clock, is 0, if there is, in accordance with the alarm clock
0x50 set the format
Do not disturb the time switch 1byte, do not interfere with the time set the same as the 0x47
protocol format
GPS timer switch: sync 0x46 settings
SOS Mom and Dad 3 numbers: all ASCII code, the number is 0x41 0x42 0x43 the number of these
three agreements
annex:
The attachment is a device with a server for one day of communication data as a reference :