GPS Tracker Communication - Protocol V1.51 PDF
GPS Tracker Communication - Protocol V1.51 PDF
1. Summarize
This tracker connects to platform server with TCP. The way for
connection is that device connects to the platform server forwardly. After
connecting to the platform server, tracker will feedback a enrolling
message. The enrolling message contains the device’s ID. If the device
received the answer from the platform server, it will stop to sending
enrolling message but send continuous feedback message. The
continuous feedback message not contains the device ID. The platform
server binds the device by connection. One connection represents a
device ID. When the connection cuts off, the device will connect the
platform server automatically and send out a device enrolling message.
Beside, the device will send out a hand-shaking message intervals of time.
The hand-shaking message contains Device ID. After receiving the
handshaking answer message from the platform server, the device waits
for sending the handshaking message in next period.
Remark:V1.8 agreement, the 12 serial numbers in the packet sent
by deivce is: 0 + 11 digits device number,so that the platform needn't bind
the device according to the connection ,the platform process will be more
simple if bind the device according to every packet device number .
1.1 Updated Version Instruction
V1.4 1、Increase setting the data send intervals of ACC Switch
2008/10/23 2、Increase the controlling of device’s restarted command
2. Message Instrument
2.1 Data Type definition
Data Type Instruction
CHAR Single ASCII code character
C_STRING Contain ASCII character string. When fix digits, fill in
Binary system of bank(0x20H)on right for lacking digit to
fix a long time except for special instruction.
N_STRING Contain the digit character string of 0.9. When fix digits,
fill in ASCII code 0(Ox30H) on left for lacking digit
except for special instruction.
H_STRING Contain the digit character string of O. F. When fix digits,
fill in ASCII code 0(Ox30H) on left for lacking digit
except for special instruction.
HEX_STRING Hexadecimal system character string. Such as 1, use “31”
for indication. When fix digits, fill in ASCII code 0
(Ox30H) on left for lacking digit except for special
instruction.
BIN Binary system data
BYTE 8 digits without symbol integer,0..255
1
following:
Each Full data frame must contain: Head symbol, Serial Numbe(流水号)r/ Time,
Command word, Message body, Trail symbol
Symbol digit figures the beginning and ending of the message frame. 0x28H
(character “(” ) as beginning symbol,and 0x29H (character “)” ) as ending symbol.
2
00 Common Message Gener
01 Attemper Message al
comm
02 Answer of calling message(Taxi) unicati
Q
03 Calling Message(Taxi) on
messa
04 Navigation Message ge
3
02 Answer set terminal IP address e
and port message 3.2.17 status
messa
03 Answer set APN message3.2.18 ge
04 Answer calling message 3.2.5
05 Anser device login response
message 3.2.2
12 Answer vehicle high and low
speed limit 3.2.8
00 Isochronous for continues
feedback message 3.2.6
01 Isometry continous feedback
R message
02 Continues feedback ending Vehicl
messsage3.2.7 e
03 Access terminal position positio
message3.2.15 ning
messa
05 Answer the Setting ACC open ge
sending data transmiting intervals
3.2.12
06 Answer the Setting ACC open
sending data transmiting intervals
3.2.13
04 Answer attempered Message
05 Answer reading called configuring
number
06 Answer calle configuring number
08 Answer setting isochronous Answ
feedback message 3.2.3 er
S
09 Answer setting Isometry feedback messa
message ge
20 Answer monitor command 3.2.16
21 Answer cancel all alert messages
3.2.20
23 Answer navigation message
T 00 Answer the restarted message of
the device 3.2.11
U 00 Answer the Setting Geo-fence
Message 3.2.14
V 00 Answer circuit control 3.2.9 Answ
01 Answer oil control 3.2.10 er
02 Answer enquiring of one key contro
setting l sign
4
Reserved the non- definition message for expanding message in future
The words in red is the functions the device had.
2.3.3 Device ID
Length:15 bytes (Fixed); Type: C_STRING.
Function:This field for fixing the device. Only when the device sends the device
login message and handshake message, it will send the device ID, and other message
will not send device ID. The platform fixs device by device ID. The usual format for
device ID is ”0000” + ”telephone number”. The reference format
is : ”000013612345678”
3. Command Message
3.1.Down Message(platform server sending)
3.1.1 Answer handshake signal message
Ending ) CHAR 1
identifier
For example:
5
(040331141830AP01HSO )
Figures the sending message
Response No need response
Instruction: This message is available to all device
Ending ) CHAR 1
identifier
For example
(040331141830AP05)
identifier
Running C_STRING 12
NO./Time
Command AR00 C_STRING 4
word
Message C_STRING 8
Body
6
Message AR00XXXXYYZZ
AR00:Fixed key words
Content XXXX:Interval for each message of continues feedback. hex。Unit:
Second, 4 characters in all, H_STRING. The max is 0xFFFF
seconds。When XXXX=0,the device stops continues feedback.
YYZZ:The total time for feedback, 16 advance system. Unit:
YY:Hour、ZZ:Minute. 4 characters in all,H_STRING,The max
is 0xFFFF,ie:255 hours 255 minutes. When YYZZ=0, according
to the time intervals, continues feedback.
When both XXXX and YYZZ are not 0,it figure that feedback
according to the time intervals, when it up to the total time, it
automaticly stop to feedback
Ending ) CHAR 1
identifier
For example:
(040331141830AR0000140024)
Figures the sending message time is 2008-8-30-14:18:30. Down fixed time to set
continues feedback. Feedback GPS data every 20 (16*1 + 4) seconds and feedback
36 (16 * 2 + 4) minutes in all.
Response Device response BS08
Sending Short Message, GPRS
mode
Instruction This message is available to ecolomic device and navigation device.
In the mode of SMS to continues feedback, if set time interval is less
than the Min time interval (Set by the device manufacturer),it will
continues feedback according to the Min time interval, otherwise
continues feedback according to the set time. The data mode is the
same as the SMS mode.
7
0:Cut off vehicle oil 1:Alarm inside of Geo-fence
2:Vehicle rob (SOS help)
3:Vehicle anti-theft alarm 4:Vehicle low speed alarm
5:Vehicle over speed alarm 6. Alarm out of Geo-fence
Ending ) CHAR 1
identifier
For example:
(040331141830AS012)
Figures the sending message time is 2008-8-30-14 :18:30, answer the up vehicle rob
police
Response No need response
Instruction: This message is available to all device
identifier
8
Running C_STRING 12
NO./Time
Command AP12 C_STRING 4
word
Message Message C_STRING
content
Body
Message H050L030
Content
Ending ) CHAR 1
identifier
For example:
(080830141830AP12 H050L030 )
Setting the up limit speed is50km/h,low limit is 30km/h.When up limit is 000,it
figures cancel alarm up limit, and When down limit is 000,it figures cancel alarm
down limit. Less 3 digits of the speed, full 0 on left. Alarm refer to 3.2.4。
Response BP12
Instruction: This message is available to all device
identifier
Running C_STRING 12
NO./Time
Command AV00 C_STRING 4
word
Message Message C_STRING
content
Body
Message “1”or“0”, “1”figures opening circuit,“0”figures closing
circuit.
Content
Ending ) CHAR 1
identifier
9
For example:
(080830141830AV00 0 )
Figures the sending message time is 2008-8-30-14:18:30, closed the
circuit.
Respons BV00
e
Instructi This message is available to all device
on:
Ending ) CHAR 1
identifer
For example:
(080830141830AV01 0 )
figures the sending message time is 2008-8-30-14 :18:30,closed the oil。
Responds: BV01
Instruction: This message is available to all device
10
Message no
content
Ending ) CHAR 1
identifier
For example
(080830141830AT00)
Figures the sending message time is 2008-8-30-14 :18:30,the device restart.
Response BT00
Instruction: This message is available to all device
11
NO./Time
Command AR06 C_STRING 4
word
Message body Message C_STRING
content
Message AR06XXXX
content
AR06:Fixed keywords
XXXX:The time for sending data intervals for the ACC Open,
Hex. Unit:Second
Ending ) CHAR 1
identifier
For example
(080830141830AR06003C)
Figures the sending message time is 2008-8-30-14 :18:30,it sends back intervals 20
seconds when the ACC is closing.
Response BR06
Instruction: This message is available to all device
12
(00.0000 ~ 59.999) , reserve three digit decimal
fraction.
Maxlatitude:upper limit for latitude, Format: DDFF.FFF, DD:
latitude’s degree (00 ~ 90), FF.FFF:latitude’s cent
(00.0000 ~ 59.999) , reserve three digit decimal
fraction.
G:Standard for longitude, E, east longitude; S: south longitude. W:
west longitude
Minlongitude: lower limit for longitude, Format: DDDFF.FFF,
DDD: Longitude’s degree (000 ~ 180), FF.FFF:
longitude’s cent (00.0000 ~ 59.999), reserve three
digit decimal fraction.
Minlongitude:upper limit for longitude, Format: DDDFF.FFF,
DDD: Longitude’s degree (000 ~ 180), FF.FFF:
longitude’s cent (00.0000 ~ 59.999), reserve three
digit decimal fraction.
Ending ) CHAR 1
identifier
For example
(080830141830AX051, N,2245.318,2246.452,E,11233.232,11355.175)
Figures the sending message time is 2008-8-30-14 :18:30.Set Geo-fence.,lower limit
for latitude is 22 degree 45.318 cent,upper limit for latitude is 22 degree 46.452
cent; lower limit for longitude is 112 degree 33.232 cent,upper limit for
longitude is 113 degree 55.175 cent.
Response BU00
Instruction: This message is available to all device
13
Message Message content=location length+location data
content Location data length :BYTE type,one byte<140
Location data: BYTE type length<140,the coding is unicode
coding, one Chinese characters or number occupy two
byte .The most can upload 70 character coding, attention is
not GB2312 coding
Ending ) CHAR 1
identifier
For example
Required message:
Sending content is "ShenA87J58 the position is: Guangdong province Shenzhen bus
station south around2.5 kilometers ,near Saige technical park 2008-11-29-:14:18,if
the required longitude and latitude is "0",which can return "terminal has no position"
Response no
Instruction: This message is available to all device
14
Message Message Type Length (byte) Instruction
Field Value
Beginning ( CHAR 1
identifier
Running C_STRING 12
NO./Time
Command AP15 C_STRING 4
word
Message AP15+NNNN
content
NNNN:The dialed telephone number for the device ,length is not
fixed.
Ending ) CHAR 1
identifier
For example
080830141830AP1513632782450
Response BS20
15
Command AP03 C_STRING 4
word
Message AAABBBCCCDDDEEEEE
content AAA,BBB,CCC,DDD is IP address ,which all are three digits
EEEEE is IP port ,which is five digits
Ending ) CHAR 1
identifier
For example
081129141830AP0322101807911000123
Ending ) CHAR 1
identifier
16
For example
081129141830AP04CMNET
Message
content
Ending ) CHAR 1
identifier
For example
081129141830AP07
Response BP01
17
3.1.20 Cancel all alarm message
Message Message Type Length (byte) Instruction
Field Value
Beginning ( CHAR 1
identifier
Running C_STRING 12
NO./Time
Command AV02 C_STRING 4
word
Message
content
Ending ) CHAR 1
identifier
For example
081129141830AV02
Response BS21
18
Command BP00 C_STRING 4
word
Device ID Device ID C_STRING 15
Message body C_STRING 3
Message 0000136123456780HSO
content
Ending ) CHAR 1
identifier
Example::
(040331141830BP00000013612345678HSO)
Up data handshaking message, “000013612345678”is device’s ID。
Response Centre service response AP01
Instruction: This message is available to all device
identifier
Running C_STRING 12
NO./Time
Command word BP05 C_STRING 4
Ending ) CHAR 1
identifier
Example:
19
(01363278450BP05000013632782450080524A2232.9806N11404.9355E000.110124
1323.8700000000L000450AB)
Response: Cent
re service response AP05
Instruction: This message is available to all device
identifier
Running C_STRING 12
NO./Time
Command word BS08 C_STRING 4
20
Showing the time for send message at 14:18:30 March 31,2004,return GPS data
every 5 seconds,total of 20 minutes。
Response: No need to response
Instruction This message applies to economically terminals and navigational
terminals。Ceaselessly return, after the mode of short message. If the
interval of set time is less than the interval of minimum time(set by
the terminal manufacturers),then the time of ceaselessly return
according to the interval of minimum time,if not, then according to
the interval of the set time。Data model and short message model are
the same.
identifier
Running C_STRING 12
NO./Time
Command BO01 C_STRING 4
word
Message C_STRING 61
Body
Message BO01X+GPS data
Content BO01:Fixed keywords
X:Specific alarm information code,1 byte,Hexadecimal。
Alarm information:
0:Vehicle power off 1:Alarm when inside of Geo-fence
2:Vehicle robbery(SOS help)
3:Vehicle anti-theft and alarming 4:Lowerspeed Alert
21
5:Overspeed Alert 6:Alarm when out of Geo-fence
Ending ) CHAR 1
identifier
Example:
(080331061830B0019061830A2934.0133N10627.2544E040.0080331309.6200000
000L00070AD)
Showing the time for send message at 14:18:30,March 31,2008,add 8 hours is china
time. Alarm message and vehicle robbery。GPS data acquisition time is March
31,2008 , Universal time is 6:18:30 。 “A” shows the data available , 29
degrees,34.0133 minutes north latitude , 106 degrees 27.2544 minutes east
longitude,speed is 040.0 km/h,the angle is 309.62 degrees, from due north。”L”
means the sum of distance, unit is meter,mileage statistic。
Response: Centre response AS01
Instruction This message applies to all terminals。Send the information up to 10
times every30 seconds,No longer to send the information after
receive the platform response。
identifier
Running C_STRING 12
NO./Time
Command BP04 C_STRING 4
word
Message C_STRING Random
length
Body
Message BP04+GPS data
22
Content BP04:fix Command Word。
Ending ) CHAR 1
identifier
Example
(013632782450BP04080525A2934.0133N
10627.2544E000.0141830309.6200000000200300C6
Showing the time for send message at 22:18:30,on May 25.Upterminal news(center
response by one roll call),GPS data acquisition time is May25,2008,
Universal time is 14:18:30,”A” shows the data available,29 degrees,34.0133
minutes north latitude,106 degrees 27.2544 minutes east longitude,speed is
0km/h,the angle is 309.62 degrees, from due north.。
Response No
Instruction: This message is available to all device
identifier
Running C_STRING 12
NO./Time
Command BR00 C_STRING 4
word
Message body C_STRING Random
length
Message body BR00+GPS data
Message ) CHAR 1
content
Ending
23
identifier
Example
(013632782450BR00080612A2232.9828N11404.9297E000.0022828000.00000000
00L000230ED)00L000230AA)
Response No
Instruction This message applies to economically terminals and
navigational terminals。Continuously return total time and
distance,or receive the message of stop continuously
return message from the center., then send the ending
message to center。
identifier
Running C_STRING 12
NO./Time
Command BR02 C_STRING 4
word
Device ID C_STRING Random
length
Message body BR02 + GPS data
Message ) CHAR 1
content
Ending
identifier
Example:
Response: No
24
Instruction This message applies to economically terminals and navigational
terminals。Continuously return total time and distance,or receive the
message of stop continuously return message from the center., then
send the ending message to center
25
number/Time
Command BV00 C_STRING 4
Word
Message Message C_STRING
Body Content
Message “1”or“0”,“1” means circuit has been opened,“0” means circuit has
Content been closed
Close ) CHAR 1
Identifier
Example:
Response: No
Instruction: This message is available to all device
26
Response: No
Instruction: This message is available to all device
identifier
Running C_STRING 12
NO./Time
Command BT00 C_STRING 4
word
Message Message C_STRING
Content
Body
Message no
Content
Ending ) CHAR 1
identifier
Example:
Response: No
Instruction: This message is available to all device
identifier
Running C_STRING 12
NO./Time
27
Command BR05 C_STRING 4
word
Message Message C_STRING
Content
Body
Message no
Content
Ending ) CHAR 1
identifier
Example:
Response: No
Instruction: This message is available to all device
identifier
Running C_STRING 12
NO./Time
Command BR06 C_STRING 4
word
Message Message C_STRING
Content
Body
Message no
Content
Ending ) CHAR 1
identifier
Example:
28
Response: No
Instruction: This message is available to all device
identifier
Running C_STRING 12
NO./Time
Command BU00 C_STRING 4
word
Message Message C_STRING
Content
Body
Message BU00N
BU00:Command
Content N:0 or 1,“0”figures answer the cancelling Geo-fence. “1” figures
answer setting Geo-fence.
Ending ) CHAR 1
identifier
Example:
Response: No
Instruction: This message is available to all device
29
3.2.15 Obtain terminal location
identifier
Running C_STRING 12
NO./Time
Command BR03 C_STRING 4
word
Message Message C_STRING
Content
Body
Message BR03+GPS data
Content
Ending ) CHAR 1
identifier
Example:
(013632782450BR03080525A2934.0133N
10627.2544E000.0141830309.6200000000L200300C6)
Response: AR03
Instruction: This message is available to all device
identifier
30
Running C_STRING 12
NO./Time
Command BS20 C_STRING 4
word
identifier
Example:
(013632782450BS20)
Response: no
Instruction: This message is available to all device
identifier
Running C_STRING 12
NO./Time
Command BP02 C_STRING 4
word
Message Message C_STRING
Content
Body
Message
Content
31
Ending ) CHAR 1
identifier
Example:
(013632782450BP02)
Response: no
Instruction: This message is available to all device
identifier
Running C_STRING 12
NO./Time
Command BP03 C_STRING 4
word
Message Message C_STRING
Content
Body
Message
Content
Ending ) CHAR 1
identifier
Example:
(013632782450BP03)
Response: NO
Instruction: This message is available to all device
32
3.2.19 Answer to read terminal version message
identifier
Running C_STRING 12
NO./Time
Command BP01 C_STRING 4
word
Message Message C_STRING
Content
Body
Message Unfixed length string, the platform only display the string directly
Content
Ending ) CHAR 1
identifier
Example:
(013632782450BP01GPS518,DEC,22,2008)
Response: NO
Instruction: This message is available to all device
identifier
Running C_STRING 12
NO./Time
Command BP21 C_STRING 4
33
word
Message Message C_STRING
Content
Body
Message
Content
Ending ) CHAR 1
identifier
Example:
(013632782450BS21)
Response: NO
Instruction: This message is available to all device
4. Appendix
34
0~180;the unit is cent
for later seven bytes
Longitude “E” or “W” CHAR 1 “E” means east
indicator longitude , ”W” means
west longitude
Speed N_STRING 5 The unit is km/h
Time HHMMSS N_STRING 6 Two bytes of the
year/month/day
Orientation N_STRING 6
The 8 bits of IO
The first bit
representative of the
main power switch, "0"
IO State “0” or “1” N_STRING 8 means the main
power-on, "1", means
the main power-off.
The second bit on behalf
of the ACC (ignition),
"0" means ACC off,
"1" means ACC on.
Other reservations
Milepost CHAR 1 “L” mean Mileage
Mile data H_STRING 8 Mile data,Unit: Meter
The total mileage. The
max is 0xFFFFFFFF
35