Protocolo Box Tracker
Protocolo Box Tracker
A/3
CONFIDENTIAL
Dec. 2021
Contents
1 / 12
CANTRACK PROTOCOL
2 / 12
CANTRACK PROTOCOL
A Command structure
* command head
XX supplier name, ASCII character
, separator
YYYYYYYYYYYYYYY 15digit IMEI number
CMD command code
HHMMSS time:h/m/s
PARA parameter
# ending character
Must use capital letter for the initial Letter of command character without any space.
General information:
*XX,YYYYYYYYYYYYYYY,V1,HHMMSS,S,latitude,D,longitude,G,speed,direction,DDMM
YY,equ _status #
*HQ,865205030330012,V1,145452,A,2240.55181,N,11358.32389,E,0.00,0,100815,FFF
FFBFF#
GPS data:
*XX,YYYYYYYYYYYYYYY,V2,HHMMSS,S,latitude,D,longitude,G,speed,direction,DDMM
YY,equ_status #
*HQ,865205030330012,V2,150421,A,2240.55841,N,11358.33462,E,2.06,0,100815,FFF
FFBFF#
Confirm data:
*XX,YYYYYYYYYYYYYYY,V4,CMD,hhmmss,HHMMSS,S,latitude,D,longitude,G,speed,d
irection,DDMMYY,equ_status #
*HQ,865205030330012,V4,S2,150950,151007,A,2240.55503,N,11358.35174,E,0.85,0,1
00815, FFFFFBFF #
3 / 12
CANTRACK PROTOCOL
1. Login data(V0):
*HQ, YYYYYYYYYYYYYYY,V0#
*HQ,135790246811220,V0#
Device upload:*HQ,135790246811220,V0#
Server response:*HQ,135790246811220,V0#
2. Heartbeat data(HTBT):
*XX,YYYYYYYYYYYYYYY, HTBT,Bat_Percent#
*HQ,135790246811220,HTBT,100#
For example:
Device upload:*HQ,135790246811220,HTBT,100#
Server response:*HQ,135790246811220,HTBT,100#
* command head
XX Supplier name,ASCII character
, separator
YYYYYYYYYYYYYYY 15digit IMEI number
V1/V2/V3/V4 comamnd code
CMD to be confirmed command
hhmmss time value of confirmed command
HHMMSS Time
S data valid byte (A/V/B),
A represent valid data signal, V represent invalid data signal, B represent Beidou valid
data signal
Latitude latitude,format DDMM.MMMMM
D latitude symbol(N:north,S:south)
Longitude Longitude,format DDDMM.MMMMM
G Longitude symbol(E:East,W:west)
Speed range 000.00 ~ 999.99 byte (must be 3 digits XXX, if
speed is 60km/h, so it need reserve a “space” in front of
60 value)
Direction direction,true north is 0 degree,resolution 1 dgree,
clockwise
DDMMYY date/month/year
equ_status (refer < Status & Events for alarm >)
4 / 12
CANTRACK PROTOCOL
# ending
4. V3 data(LBS data)
*XX,YYYYYYYYYYYYYYY,V3,HHMMSS,Base_Info,Battery_Info,Failure_Info,Cont,DDM
MYY,equ_status#
* command head
XX Supplier name,ASCII character
, separator
YYYYYYYYYYYYYYY 15digit IMEI number
CMD comamnd code
HHMMSS terminal time
MCC,MNC,Base_Number,LAC1,Cell_ID1,RS1,dBm1, LAC2,Cell_ID2,RS2,dBm2,…
MCC country code, china is 460
MNC network code, china mobile 00, China Union 01
Base_Number Cell ID quantity, 00-99
LAC Base station area code
Cell_ID Cell ID number
RS signal strength, the data show empty if no signal
dBm receiving signal strength, the data show empty if no
signal
Battery_Info battery info, 0x0000-0x0299 hexadecimal represent
battery voltage
Failure_Info reboot info, 0-9
Cont ending of data for extend protocol “X” represent
DDMMYY
equ_status (refer<Status & Events for alarm >)
# End
*HQ,865205030330012,V3,000201,46000,07,009350,004022,132,-
88,009350,004032,140,,009350,004031,139,,009350,004023,133,,009350,004033,127,,
009350,004021,124,,010351,003942,118,,0256,0,X,010915,FFFFFBFF#
Explain:
2. Battery percentage nominal voltage is 3.6V, battery percentage top and button
limitation 1%-100%, if the upload voltage over than battery percentage top and button
limitation, it regards to parse the data based on battery percentage top and button
limitation.
5 / 12
CANTRACK PROTOCOL
Bit order 1st byte 2nd byte 3rd byte 4th byte
1 1 1 Arm(0)/Disarm(1 Movement
Reserved Reserved 0 0
) condition alarm
2 0 0 Overs
Removal alar
SOS Alarm 0 ACC off 0 peeding
m
alarm
6 / 12
CANTRACK PROTOCOL
7 / 12
CANTRACK PROTOCOL
8 / 12
CANTRACK PROTOCOL
For example:
Send: *HQ,865205039927404,CMD,130305,stop654321#
Reply: stop engine succeed
Send: *HQ,865205039927404,CMD,130305,stop654321#
Reply: resume engine succeed
noquickstop654321 Set delayed cut fuel when speed less than 20km/h(default)
9 / 12
CANTRACK PROTOCOL
10 / 12
CANTRACK PROTOCOL
foward654321 10086 SIM Card Balance Enquiry: eg, set operator number 10086
balance654321 10086 ye SIM Card Balance Enquiry: eg, set operator code ye
Device will stop connect server enter deeply sleep after stop 5
Less gprs654321 on mins or ACC off; when driving or ACC on again will wake up
device.
Harsh Acceleration
X: 0 or 1 (cancel or activate).
Send APP alarm 1 time, send SMS alarm 1 time within 10mins.
Harsh Braking
X: 0 or 1 (cancel or activate).
Send APP alarm 1 time, send SMS alarm 1 time within 10mins.
Harsh Turning
X: 0 or 1 (cancel or activate).
Send APP alarm 1 time, send SMS alarm 1 time within 10mins.
11 / 12
CANTRACK PROTOCOL
Send APP alarm 1 time, send SMS alarm 1 time within 10mins.
12 / 12