Communication Protocol: Edition Statement
Communication Protocol: Edition Statement
Communication Protocol: Edition Statement
PROTOCOL V1.0.3
Edition statement
CONTENTS................................................................................................................................1
一. Communication protocol...................................................................................................... 2
二、protocol No......................................................................................................................... 2
三、Uplink Command................................................................................................................7
1. real time location.....................................................................................................7
2. Heartbeat packet(XT)............................................................................................. 7
3. Location request(VI1).............................................................................................7
4. Blind spots uploading (BC).................................................................................... 8
5. Device alarm(ALRM)............................................................................................9
四、Downlink Command...........................................................................................................9
1. cut-off oil&engine/ Restore oil&engine (S20)................................................... 9
2. Respond to location request CR)...................................................................... 10
3. Fortification (SF).............................................................................................. 10
4. Fortification (SF2)............................................................................................ 11
5. Disarming (CF)................................................................................................. 11
6. Disarming (CF2)............................................................................................... 11
7. Main Number Bind(UR)...................................................................................12
8. Server setting(IP).............................................................................................. 12
9. Terminal password setting (MP).......................................................................13
10. Interval setting (XT/NXT)...............................................................................13
11. Alarm setting(KC)........................................................................................... 14
12. Device reboot (CQ)..........................................................................................14
13. reset to defaults (RESET)................................................................................ 15
14. Network access point (APN)........................................................................... 15
15. Answer mode (ACPC).....................................................................................15
16. IMEI setting(SIMEI)....................................................................................... 16
17. language setting(SLAN).................................................................................. 16
18. audiomonitor(CALB)...................................................................................... 16
19. the power saving mode setting(PWM)............................................................ 17
20. Query device information (INFO)...................................................................18
1
一. Communication protocol
Introduction
This document defines the Car GPS positioning service platform for application-layer interface
protocol. Relevant interface protocol is only used for the interaction between the platform and
positioning terminal.
二、Protocol No.
1.Protocol List
protocol No. Data packet Respond Uplink or
Description Downlink
V1 Location data packet NO uplink
XT Heartbeat packet YES uplink
VI1 Location Request packet YES uplink
VI Location Response packet NO Downlink
S20 Start cut-off oil&engine Data YES Downlink
packet
V4 Instruction acknowledgment NO uplink
packet
SF Fortification YES Downlink
SF2 Fortification,version II YES Downlink
CF Disarm packet YES Downlink
CF2 Disarm packet, version II YES Downlink
TG Platform distributes sms YES Downlink
UR Main number bind YES Downlink
IP Modify IP YES Downlink
ST Setting sms interception YES Downlink
number
MP Terminal password setting YES Downlink
XT/NXT uploading interval setting YES Downlink
KC Alarm Setting YES Downlink
CQ Device Reboot YES Downlink
RESET reset to defaults YES Downlink
APN APN network access point YES Downlink
setting
SQQ Family Number setting YES Downlink
ACPC Answer mode setting YES Downlink
SIMEI IMEI setting YES Downlink
SLAN language setting YES Downlink
CALB monitor YES Downlink
2
PWM the power saving mode setting YES Downlink
OVSP Overspeed Setting YES Downlink
INFO Query the device status YES Downlink
ALRM Alarm YES uplink
2. Uplink&Downlink description
Description Remark
Server----- Terminal Downlink
Terminal------- Server Uplink
3. Packet definition
*XX,YYYYYYYYYY,cmd,HHmmss,S,latitude,D,longitude,G,speed,direction,DD
MMYY,vehicle_status, pw ,3,mcc,mnc,lac,cid, lac,cid, lac,cid #
3
direction Azimuth Azimuth,Due north is 0 degree,resolution is
1 degree,Clockwise direction.The information
fields maybe null,that means the degree is 0
DDMMYY day/month/ day/month/year
year
vehicle_status Terminal Terminal Status,total 4 bytes,represent
Status vehicle machine component state, vehicle
component status and alarm status ...
pw Power device power percentage 00-99 99 means 100%
Capacity
count Base 3
station
quantity
mcc Country Country Code
Code
mnc Operator Operator code
code
lac Base District code
station
code
cidf Base District ID
station
code
lac Base District code
station
code
cidf Base District ID
station
code
lac Base District code
station
code
cidf Base District ID
station
code
4
Bit
The first byte The second byte The third byte The forth byte
order
0 0 Temperature alarm 0 GPS Receiver fault alarm 0 door open 0 Theft alarm
three times password error Analog quantity Vehicle fortified
1 0 1 0 0 robbery alarm
alarm transfinite alarm status
2 0 GPRS Occlusion alarm 0 remainsos alarmstate 0 ACC off 0 overspeed alarm
vehicle in the cut-off host powered by the
3 0 0 1 reserve 0 illegal ignition alarm
oil&engine state backup battery
Storage battery removal Storage battery has been No entry cross-border
4 0 0 1 reserve 0
state removed alarm
The high level sensor 1 is open circuit for GPS gps antenna open circuit
5 0 0 0 engine 0
high antenna alarm
The high level sensor,2 is short circuit for Gps gps antenna short circuit
6 0 0 0 Custom alarm 0
high antenna alarm
The low level sensor 1 The low level sensor 2 No entry cross-border
7 0 0 0 vehicle overspeed 0
bond strap bond strap alarm
5
represents Compass
三、Uplink command
1. Real-time location
eg:
*HQ,353505910449999,V1,052825,A,2239.4210,N,11400.8825,E,0.00,348,180
814,FFFFFFFF,90,3,460,0,9376,8532,9876,4357,0,0 #
RESPOND: NO
2. HEARTBEAT PACKET(XT)
*XX,YYYYYYYYYY,XT#
EG:
*HQ,353505910449999,XT#
RESPOND FORMAT:no
Temporarily not to do this
3. Location request(VI1)
*XX,YYYYYYYYYY,VI1,HHmmss,Code,latitude,D,longitude,G,speed,direction,
DDMMYY,vehicle_status,mcc,mnc,lac,cid,pw,lac-cid-signal#
eg:
*HQ,353505910449999,VI1,052825,0,2239.4210,N,11400.8825,E,0.00,348,18
0814,FFFFFFFF,1CC,0,25FC,F48,90, 25FC-F48-10| 25FC-F48-6| 25FC-F48-7#
Respond: yes
7
Response format as follows:
*HQ,YYYYYYYYYY,VI,HHmmss,Display_Time,Code,Info_lenth,Infor
mation#
format FieldName Remark
Display_Time time Display time, unit: second, range:
5-65535, Display_Time = 0 means 65536
seconds. (Uplink On line time)
Code Coding scheme 0:GB2312,1:unicode,Other:undefined
*XX,YYYYYYYYYY,BC,HHmmss,Length,Segment#
Segment:S,latitude,D,longitude,G,speed,direction,DDHHmmss,vehicle_sta
tus,mcc,mnc,lac,cid;
response: no
eg:
*HQ,353505910449999,BC,052825,138,A,2239.4210,N,11400.8825,E,0.00,348,
03182512,FFFFFFFF,1CC,0,25FC,F48;A,2239.4210,N,11400.8825,E,0.00,348,
03182612,FFFFFFFF,1CC,0,25FC,F48#
8
Segment Complement complement uploading data, no more than 100
S,latitude,D,longitude,G,speed,dire
ction,DDHHmmss,vehicle_status,mcc,m
nc,lac,cid; (Data valid bit,
latitude, longitude identification,
longitude, longitude identification,
speed, direction, every second day,
device status, country code, network
type (operator code), location area
code, base station code)
5. device alarm(ALRM)
*XX,YYYYYYYYYY,ALRM,type,HHmmss #
response:no
field remark
type Alarm type numeral 1-n:
1: SOS alarm
2: Low battery alarm
3: Geo-fence alarm
eg:
*HQ,353505910449999,ALRM,1,052825,0,2239.4210,N,11400.8825,E,0.00,348,
180814,FFFFFFFF,1CC,0,25FC,F48,90, 5FC-F48-10| 25FC-F48-6| 25FC-F48-7#
四、Downlink command
*XX,YYYYYYYYYY,S20,HHmmss,C,T#
field remark
C Ultimate power mode. 1 or other
digits: Static cut off
oil&engine,no engine
9
detection,power relay always pull
in , turn off the circuit
T cut off or recovery 0 represents
recovery,1 represents cut off
eg:*HQ,0000000000,S20,130305,1,1#
If vehicle does not support the power cutoff function,after received
the command,return the information directly.
*HQ,2020916012,V4,S20,00,130305,050316,A,2212.8745,N,11346.6574,E,
14.28,028, 220902,FFFFFBFF, 460,000,27A6,0F70#
Finally is completely power off, and according to the C provision way
to keep power off, after complete power off then return information
*HQ,2020916012,V4,S20,80,130305,050316,A,2212.8745,N,11346.6574,E,
14.28,028,220902,F7FFFBFF, 460,000,27A6,0F70#
:Method of recovery oil&engine,downlink
*HQ,0000000000,S20,130305,1,0#
Return information
*HQ,2020916012,V4,S20,80,130305,050316,A,2212.8745,N,11346.6574,E,
14.28,028,220902,FFFFFBFF, 460,000,27A6,0F70#
*HQ,YYYYYYYYYY,CR#
response: yes
*HQ,YYYYYYYYYY,V4,CR#
after received the command,device will upload one location data immediately.
3. Fortification(SF)
*HQ,YYYYYYYYYY,SF#
eg:
*HQ,135790246811221,SF#
response:yes
Response format is as follows
*HQ,135790246811221,V4,SF,050316,A,2212.8745,N,11346.6574,E,14.28,028,
220902,FFFFFFFF,mcc,mnc,lac,cid#
10
4. Fortification(SF2)
*HQ,YYYYYYYYYY,SF2,HHmmss#
eg:
*HQ,135790246811221,SF2,HHmmss#
response: yes
Response format is as follows
*HQ,135790246811221,V4,SF2,80,130305,050316,A,2212.8745,N,11346.6574,
E,14.28,028,220902,FFFFFFFF,mcc,mnc,lac,cid#
5. Disarming(CF)
*HQ, YYYYYYYYYY,CF#
eg:
*HQ,135790246811221,CF #
response: yes
Response format is as follows
*HQ,135790246811221,V4,CF,050316,A,2212.8745,N,11346.6574,E,14.28,028,
220902,FFFFFBFF,mcc,mnc,lac,cid#
6. Disarming(CF2)
*HQ, YYYYYYYYYY,CF2,HHmmss#
eg:
*HQ,135790246811221,CF2,130305#
response:yes
Response format is as follows
*HQ,135790246811221,V4,CF2,130305,050316,A,2212.8745,N,11346.6574,E,1
4.28,028,220902,FFFFFBFF,mcc,mnc,lac,cid#
11
7. Main Number Bind(UR)
*HQ, YYYYYYYYYY,UR,NUM_LIST#
eg:
*HQ,135790246811221,UR,15014333333,1343333333,0,0,0#
response: yes
field remark
NUM_LIST Binding number list,multiple
numbers separated by |, supports a
maximum of six numbers, the first
one is the main number, the rest is
frequently used numbers (family
number)
response format
*HQ, YYYYYYYYYY,V4,UR#
8. Sever setting(IP)
*HQ,135790246811221,IP,INDEX,IP,PORT,YM,HHmmss#
format fieldname remark
IP IP IP address(32bit)
INDEX digits 1 or 2 is priority
number.1 is for IP
priority.2 for domain
priority
IP IP Use 0 instead (abandoned)
*XX,YYYYYYYYYY,MP,msg,HHmmss#
msg is the content of sending includes fields as follows:
field remark
Old_password Terminal old password (6 digits)
New_password Terminal new password (6 digits)
eg:
*HQ,353505910449999,MP,000000,123456#
response: yes
Response format is as follows:
Modify the password is correct then return information
*HQ,135790246811221,V4,MP,80,130305,050316,A,2212.8745,N,11346.6574,E,1
4.28,028,220902,FFFFFFFF,mcc,mnc,lac,cid #
Modify the password is error:
*HQ,135790246811221,V4,MP,03,130305,050316,A,2212.8745,N,11346.6574,
E,14.28,028,220902,FFFFFFFF,mcc,mnc,lac,cid #
Ret error field definition
Hexadecimal value remark
03 Operation fails, the original password is not correct
04 Operation fails, the original password is beyond
range
*XX,YYYYYYYYYY,[XT/NXT],seconds#
field remark
XT Terminal driving packets upload interval
NXT Terminal resting packets upload interval
13
seconds Corresponding to the time interval of
upload data packets while driving
[5,3600],static
range[10,7200]units:SEC(s)
eg:
*HQ,353505910449999,NXT,10#
respond: yes
Response format is as follows:
*HQ,135790246811221,V4,NXT#
*XX,YYYYYYYYYY,KC,key,Type #
field remark
Type Alarm Type: 1 SMS, 2 Phone Key
Key, values, 0, SOS button, key 1,1key,
2,2 key
eg:
*HQ,353505910449999,KC,0,1 #
response: yes
response format is as follows:
*HQ,135790246811221,V4,KC#
*XX,YYYYYYYYYY,CQ#
eg:
*HQ,353505910449999,CQ#
response: yes
*HQ,135790246811221,V4,CQ #
14
13. reset to defaults(RESET)
*XX,YYYYYYYYYY,RESET,HHmmss#
eg:
*HQ,353505910449999,RESET,130305#
response: yes
response format is as follows:
*HQ,135790246811221,V4,RESET,80,130305,050316,A,2212.8745,N,11346.6574,E,
14.28,028,220902,FFFFFFFF,mcc,mnc,lac,cid #
*XX,YYYYYYYYYY,APN,Name,User,PWD#
field remark
Name Local operators APN name
User Access network operators
corresponding account
PWD The operator password
After closing the answer mode, the device can not receive calls
*HQ,YYYYYYYYYY,ACPC,OPERATION#
eg:
*HQ,135790246811221,ACPC,1#
response: yes
field remark
OPERATION 1, open the answer mode 0, close the
answer mode (off by default)
15
response format is as follows:
*HQ,135790246811221,V4,ACPC#
*HQ,YYYYYYYYYY,SIMEI,NUM,130305#
eg:
*HQ,135790246811221,SIMEI,135790246811221130305#
response: yes
field remark
NUM IMEI NUMBER 15 digits
response format is as follows:
*HQ,135790246811221,V4,SIMEI,80,130305,050316,A,2212.8745,N,11346.657
4,E,14.28,028,220902,FFFFFFFF,mcc,mnc,lac,cid#
*HQ,YYYYYYYYYY,SLAN,lan,HHmmss#
eg:
*HQ,135790246811221,SLAN,en,130305#
response: yes
field remark
lan International language simple code
cn Simplified Chinese, en English
response format is as follows:
*HQ,135790246811221,V4,SLAN,80,130305,050316,A,2212.8745,N,11346.6574,
E,14.28,028,220902,FFFFFFFF,mcc,mnc,lac,cid#
18. audiomonitor(CALB)
Starts the Listener, the device will take the initiative to call the phone
number bound
*HQ,YYYYYYYYYY,CALB,HHmmss#
eg:
16
*HQ,135790246811221,CALB,HHmmss#
response: yes
response format is as follows:
*HQ,135790246811221,V4,CALB,130305,050316,A,2212.8745,N,11346.6574,E,
14.28,028,220902,FFFFFFFF,mcc,mnc,lac,cid#
*HQ,YYYYYYYYYY,INFO#
response: yes
field remark
operationList use , to show the value of equipment information
to query list
No.
eg:
*HQ,135790246811221,INFO#
*HQ,YYYYYYYYYY,WMOD,TYPE,TIME1,TIME2#
eg:
TYPE 0,1,2
*HQ,135790246811221,1,0,0#
*HQ,135790246811221,2,30,30#
interpretation:the device off after finished setting, after 30 minutes, automatic on, restart,working
for 30 minutes, and then enter a dormant state.
Every 24 hours a loop
Respond: yes
field remark
TIME1 Device start to work after the current time how
many minutes
TIME2 device enters the shutdown state after how long
working time
备注:remark
18