ID Card Blue Protocol Documents
ID Card Blue Protocol Documents
1. General function
V1.2
Introduction
1. This document mainly introduces the related functional protocols between the locator and the
server, as well as their data formats and contents.
2. The protocol only applies to communication between the locator and the server. The current
version corresponds to May 2017. If there is any modification in the future, adjust the
documentation accordingly.
4. All communication data is transmitted by tcpip protocol, the server address is ______ port is
______
5. A part of the protocol data transmission is two-way, that is, the data is initiated by one of the
devices or the server, and the receiving party has to reply with a response data of a
corresponding protocol. Some of the protocols are one-way, that is, after the device or server side
sends out, the receiving party does not need to reply to the data. If not specified, the protocol
data is one-way, that is, the party receiving the data does not need to reply to the data.
7. The end of the data is 0D0A. It is necessary to pay attention to the case where the data
contains the 0D0A in the middle of the data. It cannot be processed with 0D0A as the data end
when the data length has not yet been reached.
8. The data that must be replied is: 0x01, 0x10, 0x11, 0x13, 0x17, 0x69. These data will not be
reconnected and will be reconnected.
9. At least support for positioning function: 0x01 login data packet, 0x08 heartbeat data packet,
0x10GPS online data, 0x11 GPS offline data, 0x13 status data packet, 0x17 offline WIFILBS data
packet, 0x30 time synchronization, 0x69 online WIFILBS data packet, 0x57 Parameter setting
packet.
Details
0x01 login
Start bit 2byte Reserved bit 1byte Protocol number 1byte IMEI 8byte Software version number
1byte Stop bit 2byte
Eg.7878 0A 01 0123456789012345 01 0D0A
The IMEI data is BCD coded, and the IMEI data in the data packet is 0x01 0x23 0x45 0x67 0x89
0x01 0x23 0x45 , IMEI is 123456789012345
After the server receives the login data, it must reply to the device data.
Start bit 2byte packet length 1byte protocol number 1byte stop bit 2byte
If it is a legal device, it returns 0x01 protocol data. If the login fails, reply to the 0x44 protocol to
prevent the device from uploading data.
Note: The data of this data data length of 1byte is not the same as the actual length. No practical
significance. Please take data according to the data format
Start 2Byte, package content length 1Byte, protocol number 1Byte, status 1Byte, stop bit 2Byte
7878 02 05 xx 0D0A
01. Supervisory number dials the device number. The device automatically answers the pickup
effect.
02. Supervisory number dials the device number Automatically answers the two-way call
03. Regulatory number dials the device number Bells manually answer the two-way call
Start bit 2byte packet length 1byte protocol number 1byte end bit 2byte
Eg.7878 01 08 0D0A
Start bit 2byte Packet length 1byte Protocol number 1byte Date time 6byte GPS Data length,
visible satellite number 1byte GPS latitude and longitude 8byte Speed 1byte East and West
latitude Status Heading 2byte Stop bit 2byte
Eg.7878 12 10 0A03170F3217 9C 026B3F3E 0C22AD65 1F 3460 0D0A
Date and time: 0A03170F3217, year, month, day, minute, second, each accounted for 1 byte,
converted to 10 years, March 23, 15:50:23, year plus 2000 is 2010, time is GMT0.
GPS data length, visible satellite number: data length and visible satellite number each accounted
for 0.5byte, 9C said: GPS information length is 9, the number of participating satellites is 0x0c (12)
GPS latitude and longitude: 026B3F3E, longitude and latitude each occupy 4bytes, indicating
positioning data, latitude and longitude conversion method is as follows:
Convert the latitude and longitude values output by the gps module into fractions in minutes, then
multiply the converted fractions by 30000 and convert the multiplied result to hexadecimal.
GPS speed: 1 byte, indicating the running speed of GPS, the range is 0x00-0xFF km / h. In the
example, 1F indicates a speed of 31 kilometers per hour.
North and South latitude, east and west, state, heading: occupy 2 bytes, the heading indicates the
running direction of GPS, 0-360, unit degree, and north is 0. The first six bits of the first byte of the
8-bit binary represent the state, and the last two bits and the eight bits of the second byte
represent the heading. As shown below
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
0 South latitude 1 North latitude 0 East longitude 1 West longitude 0 GPS not positioned 1 GPS
positioning
In the example, the state heading is 3460, which is converted to binary 0011 0100 0110 0000,
indicating that the GPS is in the positioning state, east longitude, north latitude, and the heading is
96°.
Start bit 2byte Reserved byte 1byte Protocol number 1byte Date time 6byte stop bit 2byte
Note: The data of this data data length of 1byte is not the same as the actual length. No practical
significance. Please take the data reply data length byte 00 according to the data format. 0D0A is
more likely to appear in the time data, and it needs to be judged according to the length of the
data to avoid truncation errors.
Start bit 2byte reserved byte 1byte protocol number 1byte date time 6byte stop bit 2byte
Note: The data of this data data length of 1byte is not the same as the actual length. No practical
significance. Please take the data in the data format. Reply data length byte 00. 0D0A is more
likely to appear in the time data, and it needs to be judged according to the length of the data to
avoid truncation errors.
V1.2 has made changes to the positioning data. 0x10 0x11 works.
1Byte FX alert
7878 02 86 XX 0D0A
Start bit 2byte Reserved byte 1byte Protocol number 1byte Battery power 1byte Software version
1byte Time zone 1byte Status packet upload interval 1byte End bit 2byte
Eg.7878 06 13 55 23 08 03 0D0A
55 indicates that the battery power is still 85%, 23 indicates that the software version number is
35 08 indicates that it is East 8 (just an integer), and 03 indicates that the status packet upload
interval is 3 minutes.
Start bit 2byte Packet length 1byte Protocol number 1byte Battery power 1byte Software version
1byte Time zone 1byte Status packet upload interval 1byte Device signal strength 1byte End bit
2byte
Eg.7878 07 13 55 23 08 03 64 0D0A
0x55 indicates that the battery level is 85. 0x64 indicates device signal strength 100
Server reply
Start bit 2byte packet length 1byte protocol number 1byte state packet upload interval 1byte end
bit 2byte
This data is sent to the device by the server to set the upload interval of the status packet.
Eg.7878 02 13 03 0D0A
03 is to upload the upload interval of the status package for 3 minutes, the unit is minute.
Start bit 2byte packet length 1byte protocol number 1byte heartbeat packet upload interval 2byte
end bit 2byte
This data is sent to the device by the server to set the upload interval of the status packet.
012C uploads the heartbeat packet upload interval to 300 seconds, in seconds. The heartbeat
packet upload interval ranges from 20 to 600 seconds.
Note: The data of this data data length of 1byte is not the same as the actual length. No practical
significance. Please take the data in the data format.
Start bit 2byte packet length 1byte protocol number 1byte end bit 2byte
Eg.7878 01 14 0D0A
Send this command, indicating that the device is disconnected from the server and goes to sleep.
0x15 factory reset
Two-way instruction
After receiving the SMS reply to the factory setting, the device sends an instruction to the server.
Start bit 2byte packet length 1byte protocol number 1byte end bit 2byte
Eg.7878 01 15 0D0A
Start bit 2byte packet length 1byte protocol number 1byte end bit 2byte
Eg.7878 01 15 0D0A
The device is restored to factory settings after receiving the command for 30 seconds.
Start bit 2byte packet length 1byte protocol number 1byte white list number 1byte end bit 2byte
Eg.7878 02 16 03 0D0A
After receiving this command, the device requests a whitelist synchronization 0x58 protocol.
The resolution of this protocol is the same as 0x69, indicating offline WIFI LBS data.
Start bit 2byte WIFI number 1byte Protocol number 1byte Date time 6byte WIFI data Length
indefinite fixed format LBS data Length indefinite fixed format Stop bit 2byte
The server must reply to the protocol number plus time when receiving the data.
Start bit 2byte reserved byte 1byte protocol number 1byte time 6byte end bit 2byte
Note: The data of this data data length of 1byte is not the same as the actual length. Please take
the data in the data format. Reply data length byte 00. 0D0A is more likely to appear in the time
data, and it needs to be judged according to the length of the data to avoid truncation errors.
V1.2
Start bit 2byte WIFI number 1byte Protocol number 1byte Date time 6byte WIFI data Length
indefinite fixed format LBS data Length indefinite fixed format Alarm information 1byte stop bit
2byte
Two-way instruction
Start bit 2byte packet length 1byte protocol number 1byte end bit 2byte
Eg.7878 01 30 0D0A
Start bit 2byte packet length 1byte protocol number 1byte date time 6byte end bit 2byte
The server sends the device to the device, prohibiting the upload of LBS data.
Start 2Byte, packet length 1Byte, protocol number 1Byte, state 1Byte, stop bit 2Byte
0x34 server sends GPS LBS switch to the terminal. Upload data switch time
Start 2Byte , packet length 1Byte , protocol number 1Byte , gps 1Byte + data 5Byte + lbs 1Byte +
on3Byte + off 3Byte , stop bit 2Byte
Gps 01=on
Lbs 01=on
Server to device
Start bit 2byte packet length 1byte protocol number 1byte number end bit 2byte
0x41SOS number
Server to device
Start bit 2byte packet length 1byte protocol number 1byte number end bit 2byte
Call the sos phone and send the device to the server
7878 02 41 01 0d0a
Server to device
Start bit 2byte packet length 1byte protocol number 1byte number end bit 2byte
7878 02 42 01 0d0a
Server to device
Start bit 2byte packet length 1byte protocol number 1byte number end bit 2byte
7878 02 43 01 0d0a
Server to device
Start bit 2byte packet length 1byte protocol number 1byte end bit 2byte
Eg.7878 01 44 0d0a
Prevent devices from uploading any data
Server to device
Start bit 2byte Packet length 1byte Protocol number 1byte Switch 1byte Start time End time End
bit 2byte
01 open, 00 is off, time is BCD code, 1130 is 11:30, from this time, turn off GPS to 12:30 to open
Server to device
Start bit 2byte Packet length 1byte Protocol number 1byte Switch 1byte Week 1byte Start time 1
1byte End time 1 1byte Start time 2 1byte End time 2 1byte End bit 2byte
Week: 03, each one represents one day of the week, 03 is Monday, Tuesday, if this is 1, it is the
day of the week.
Server to device
Start bit 2byte packet length 1byte protocol number 1byte restart operation 1byte end bit 2byte
Eg.7878 02 48 01 0D0A
Restart operation 02 After the device receives this command, it shuts down.
Server to device
Start bit 2byte packet length 1byte protocol number 1byte state 1byte end bit 2byte
Server to device
Start bit 2byte packet length 1byte protocol number 1byte alarm clock 3 9byte end bit 2byte
Alarm clock: Coded BCD, the first place is the alarm every day of the week, the second and third
place is the hour minute, 010800, every Monday, 8:00 alarm clock. 010900, every Monday at 9:00,
0313030 every Tuesday, at 10:30, the alarm starts.
If you cancel the setting, all send 0,7878 0a 50 000000 000000 000000 0d0a
Start bit 2byte packet length 1byte protocol number 1byte flag bit 1byte end bit 2byte
Eg.7878 02 56 01 0D0A
Two-way instruction
The device sends the server to the server to request setting data, including device switch, alarm
clock, phone number,
Start bit 2byte packet length 1byte protocol number 1byte end bit 2byte
Eg.7878 01 57 0D0A
Start bit 2byte Packet length 1byte Protocol number 1byte Upload interval 2byte Switch 1byte
Alarm clock 9byte Do not disturb time switch 1byte Do not disturb time 9byte GPS timer switch
1byte GPS timing time 4byte SOS Mom and Dad 3 numbers (length is uncertain, 3B (";") Do the
separator end bit 2byte
7 6 5 4 3 2 1 0
Alarm clock: 9byte, if no alarm is set, it is 0. If there is, it is in the format set by alarm 0x50.
Do not disturb the time switch 1byte, do not disturb the time setting is the same as the 0x47
protocol format
SOS Mom and Dad 3 numbers: all are ASCII codes, the number is 0x41 0x42 0x43 the number of
these three protocols
Two-way instruction
Start bit 2byte packet length 1byte protocol number 1byte end bit 2byte
Eg.7878 01 58 0D0A
After receiving the server, the device will reply to the whitelist. The maximum number of
whitelists is 50.
Start bit 2byte packet length 1byte protocol number 1byte white list (length is not fixed) end bit
2byte
The separator of the name and number is 3A (":"), and the direct separator of each group whitelist
is 3B (";")
There are two whitelists in the above example, using utf8 encoding: name 646473=dds number
3138383338303231303133=18838021013, name 63=c number
318353353338303035343032=18538005402
Server to device
Start bit 2byte packet length 1byte protocol number 1byte flag bit 1byte end bit 2byte
Eg.7878 02 61 01 0D0A
Server to device
Start bit 2byte packet length 1byte protocol number 1byte flag bit 1byte end bit 2byte
Eg.7878 02 64 03 0D0A
Sign position 01 photo, 02 video, 03, recording.
7878 03 64 04 01 0D0A On
7878 03 64 05 01 0D0A On
7878 03 64 06 01 0D0A On
Start 2Byte, packet length 1Byte, protocol number 1Byte, function 2Byte stop bit 2Byte
7878 03 64 FF X3 0D0A On
0xX3
3 = 0011
Server to device
Start bit 2byte packet length 1byte protocol number 1byte recording time 1byte end bit 2byte
7878 02 65 0A 0D0A
0a, 10 seconds recording, recording time is 0, resend the current recording file
Start bit 2byte Total number of packets 1byte Current package index 1byte Data length 2byte
Data Xbyte
...
After sending
Start bit 2byte 1byte protocol number 1byte file name xbyte end bit 2byte
The server writes the data part to the .amr format file according to the index of each package.
7878 02 65 00 0D0A
Resend
If one or two of the packets are missing, the request packet is sent separately. For example, a
total of 10 packages, the seventh is missing, send:
Start bit 2byte Total number of packets 1byte Current package index 1byte Data length 2byte
6868 10 07 0200
Server to device
Start bit 2byte packet length 1byte protocol number 1byte IP 4byte port 2byte end bit 2byte
After the device is received, it will be converted to a new IP and port to log in again.
0x67 recovery password
Start bit 2byte packet length 1byte protocol number 1byte flag bit 1byte end bit 2byte
Eg.7878 02 67 01 0D0A
After the server receives it, it must reply to 7878 02 67 01 0D0A to reset the login password of the
device. Send a text message to the device when the device password is forgotten, and the device
issues the command to restore the password.
Agreement is two-way
Start bit 2byte WIFI number 1byte Protocol number 1byte Date time 6byte WIFI data Length
indefinite fixed format LBS data Length indefinite fixed format Stop bit 2byte
Wifi/lbs
Lbs
The third bit of this protocol is not the length of the data packet, the number of WIFI hotspots, the
previous set of WIFI/LBS data is 03, that is, there are 3 WIFI hotspots, the latter LBSlbs data, there
is no WIFI hotspot, this data is 00.
Date time: 160413031849, this data is different from the 0x10 protocol, this is BCD coded, dated
April 13, 16 years, 3:18:49.
WIFI data
The minimum number of WIFI hotspots is 3, and the maximum number is 8. If the device
searches for more than 8, only the best 8 hotspots of the signal are taken. 1475905BD30E25 The
first 6 bytes are bssid, the latter 1 byte is rssi, then the bssid of the first WIFI hotspot is
0x14:0x75:0x90:0x5B:0xD3:0x0E, rssi is 0x25.
Number of LBSs: 05 is the number of base stations, and the number of base stations is at least 2
Base station data: lac2byte cellid 2byte, mciss1byte, 2866 0F21 32 The lac in the example is
10342, the cellid is 3873, and the mciss is 50.
1. Received data must reply to the protocol number plus time (default reply to this one)
Start bit 2byte reserved byte 1byte protocol number 1byte time 6byte end bit 2byte
7878 00 69 160413031849 0d0a The package length string is 00
2. Start bit 2byte packet length 1byte protocol number 1byte latitude and longitude end bit 2byte
2B32322E363736373436 = +22.676746
2B3131332E3934303934 = +113.94094
Note: The data of this data data length of 1byte is not the same as the actual length. Please take
the data in the data format. Reply data length byte 00. 0D0A is more likely to appear in the time
data, and it needs to be judged according to the length of the data to avoid truncation errors.
Start bit 2byte WIFI number 1byte Protocol number 1byte Date time 6byte WIFI data Length
indefinite fixed format LBS data Length indefinite fixed format Alarm information 1byte stop bit
2byte
Server to device
Start bit 2byte packet length 1byte protocol number 1byte stop bit 2byte
The server sends a request to the terminal to request an update of the location message.
Eg.7878 01 80 0D0A
After the device receives the location, it uploads the latest positioning data within 1 minute. If the
GPS can be located within 1 minute, the positioning data is 0x10 protocol data. If it is WIFI+LBS
data, the returned 0x69 protocol data.
Eg.7878 02 80 0D0A
The device receives 0280 and directly uploads the wifilbs location.
The reason why the device is sent to the server without uploading the location
Start bit 2byte Packet length 1byte Protocol number 1byte Cause 1byte Stop bit 2byte
7878 02 80 xx 0d0a
01-Time is incorrect
Less 02lbs
Start bit 2byte packet length 1byte protocol number 1byte end bit 2byte
In addition, 7787 02 81 0D0A means low power alarm, uploaded every 12 hours, the third byte is
0x02
Start bit 2byte packet length 1byte protocol number 1byte end bit 2byte
Start bit 2byte packet length 1byte protocol number 1byte end bit 2byte
Two-way instruction
Start bit 2byte packet length 1byte protocol number 1byte speed speed 1byte end bit 2byte
Eg.7878 02 86 50 0D0A
Speeding speed: 50 km / h
When the speed exceeds the set value of 50km/h, the device sends it to the server:
Start bit 2byte packet length 1byte protocol number 1byte speed speed 1byte end bit 2byte
Eg.7878 02 86 50 0D0A
Start bit 2byte packet length 1byte protocol number 1byte vibration level 1byte end bit 2byte
Eg.7878 02 92 01 0D0A
Turn on the vibration alarm, the vibration of the 01 level will send the vibration alarm 0x94
Start bit 2byte packet length 1byte protocol number 1byte end bit 2byte
Eg.7878 01 93 0D0A
Start bit 2byte packet length 1byte protocol number 1byte end bit 2byte
Eg.7878 01 94 0D0A
Server to device
Start bit 2byte packet length 1byte protocol number 1byte upload interval 2byte end bit 2byte
The upload interval is set to 0050=80 seconds to upload once, and the upload interval is 10-7200
seconds.
0x98 device sets the upload interval through SMS, and synchronizes with the server.
Two-way instruction
Start bit 2byte packet length 1byte protocol number 1byte upload interval 2byte end bit 2byte
After the SMS is set, the device sends this command to the server.
Server reply
2byte start bit length of the packet protocol number 1byte 1byte upload interval 2byte end bit
2byte
The server needs to reply to the data, and the device sends a text message after receiving it, and
the notification is successfully set.
Start bit 2byte packet length 1byte protocol number 1byte end bit 2byte
Eg.7878 01 99 0D0A
0xB3 iccid
Start bit 2byte packet length 1byte protocol number 1byte data 20byte end bit 2byte
After the device logs in, send iccid to the platform, iccid is ascii
The device will automatically upload the iccid information after the device synchronization time.
0xF2 server requests device to send text messages (not supported at this time)
Start 2Byte, packet length 1Byte, protocol number 2Byte, SMS xxByte, stop bit 2Byte
SMS = tel + @@@ + text
0x52 Device sends text to the server (not supported at this time)
Start 2Byte, packet length 1Byte, protocol number 1Byte, literal xByte, stop bit 2Byte