Académique Documents
Professionnel Documents
Culture Documents
Communication Protocol
Check the device corresponding message according to different
message contents
1. Data Format
Communicating transmission is asynchronous mode in Bytes
Packet Length total :10+NByte
Format
Start
bit
length(Byte) 2
1.1start bit
Fixed value, Unified as hexadecimal 0x78 0x78
value
Login message
0x01
GPS message
0x10
LBS message
0x11
0x12
Status message
Satellite Signal
message
0x13
to
Noise
ratir\o 0x14
0x15
0x16
combined
0x17
0x18
LBS phone number check location
message
0x1A
LBS complete message
0x80
to
terminal
message contents
terminal ID
Length
0x78 0x78 0x0D 0x01 0x01 0x23 0x45 0x67 0x89 0x01 0x23 0x45 0x00 0x01 0x8C 0xDD
0x0D 0x0A
Start bit Legnth P.N
terminal ID
Legnth P.N
length
byte
Info contents
Data
,
time
GPS info
GPS
info
length
satellite
quantity
include
d
Lastitud
e
Longitud
e
Spee
d
Status,headin
g
Reserve
Extensio
n Digit
Year
Month
Date
Hour
Minute
second
length
byte
1st byte
8 7 6
Real time/difference
GPS
5
4
GPS East
locate Long
or not
West
Long
0South Lat
1North Lat
0East Long
1West Long
3
2 1
South heading
Lat
North
Lat
1GPS located
2nd byte
8 7 6
1difference GPS
Format
Message contents
Terminal
Message
Voltage grade
GSM
Message
strength grade
Length
byte
lower bit
0-bit
0cancel anti-theft
1set up anti-theft
1-bit
0ACC low
1ACC high
2-bit
0charging without
power supply
1charging with
power supply
3,4,5-bit
000normal
001vibration alarm
010power failure alarm
011low power alarm
100SOS alarm
6-bit
7-bit
Start bit Legnth P.N message contents reserved bit Serials No. CRC correct
0x0D 0x0A
stop bit
stop bit
Format
Command
length
Message contents
Server zone
bit
Command
contents
Reserved
extend bit
Lengthbyte
Protocol No.0x80
5.10.1. command length
Use byte length as unit, 0x0A means command contents occupy 10 bytes .
2. Stop bit
Fixed value unified hexadecimal 0x0D 0x0A
// initialization
while(nLength>0){
fcs = (fcs >> 8) ^ crctab16[(fcs ^ *pData) & 0xff];
nLength--;
pData++;
}
return ~fcs;
// negation
terminal uoloading
message :DWXX=Lat:N23.111682,Lon:E114.409217,Course:0.00,Speed:0.3518,DateTime:11-11-15
11:53:43
English:
Sending: 78 78 2E 1A 0B 0B 0F 0E 1E 08 CF 02 7A C8 A2 0C 46 57 D7 00 14 02 36 36 33
36 36 00 03 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 32 04 3A 0D 0A
receiving: 78 78 00 E9 97 00 E2 00 00 00 01 41 44 44 52 45 53 53 26 26 00 50 00 72 00 65
00 63 00 69 00 73 00 65 00 6C 00 79 00 20 00 4C 00 6F 00 63 00 61 00 74 00 69 00 6E 00
67 00 3A 00 31 00 30 53 F7 00 20 00 59 00 75 00 6E 00 73 00 68 00 61 00 6E 00 20 00 57
00 65 00 73 00 74 00 20 00 52 00 64 00 2C 00 48 00 75 00 69 00 63 00 68 00 65 00 6E 00
67 00 2C 00 48 00 75 00 69 00 7A 00 68 00 6F 00 75 00 2C 00 47 00 75 00 61 00 6E 00 67
00 64 00 6F 00 6E 00 67 00 2C 00 35 00 31 00 36 00 30 00 30 00 33 00 28 00 4E 00 32 00
33 00 2E 00 31 00 31 00 31 00 37 00 37 00 2C 00 45 00 31 00 31 00 34 00 2E 00 34 00 30
00 39 00 32 00 32 00 29 26 26 36 36 33 36 36 00 03 00 04 00 00 00 00 00 00 00 00 00 00 00
00 23 23 00 01 AF 4D 0D 0A
Start bit
2
Protocol
No.
1
Terminal
ID
8
Check
bit
2
Stop bit
2
Start
bit
Packet
length
Protocol
No.
Date
time
message contents
Reserved
GPS
extend
bit
GPS
message
length
located
satellite
qty
Lat
Long
speed
heading
status
Message
serial
No.
Check
bit
LBS
Start
bit
Packet
length
Protocol
No.
Date
time
MCC
MNC
LAC
Cell
ID
Reserved
extend
bit
Stop
bit
Check
bit
Star
t bit
Pack
et
lengt
h
Protoc
ol No.
D
at
e
ti
m
e
M
N
C
L
A
C
M
M
CI
C
S
I
S
N
CI
1
N
CI
S
S
1
N
CI
2
N
CI
S
S
22
N
C
I
3
N
C
I
S
S
3
N
C
I
4
N
C
I
S
S
4
N
C
I
5
N
C N
I C
S I
S 6
5
N
C Ext
I end
S bit
S
6
N
o.
Check
bit
Stop
bit
2 1 2 1 2 1 2 1 N
Sta
rt
bit
Pack
et
lengt
h
Prot
ocol
No.
Date
time
GPS
lengt
h
satelli
te qty
Lat
Lon
g
Spe
ed
Hea
ding
stat
us
Exten
d bit
satellites
1 2 3
n ex
No.
..
te
nd
bit
1
1
M
N
2
check
bit
stop
bit
Ext
end
bit
Protoco
l
No.
Cel
l ID
Chec
k
Bit
Lengt
h
packet
length
LA
C
Seria
l
No.
Star
t bit
Start
bit
MCC
MN
C
Sto
p
bit
Ser
ials
No.
C
h
e
c
k
bi
t
Sto
p bit
Sta
rt
bit
2
sat
elli
te
qty
2 1
1
6 1
4 4 1
2
M
1 2 1
L
A
C
C
e
ll
I
D
res
erv
ed
ext
en
d
bit
de
vic
e
me
ss
ag
e
co
nte
nts
vo
lta
ge
G
S
M
si
g
n
al
Chec
k bit
sto
p
bit
res
erv
ed
ext
en
d
bit
me
ss
ag
e
ser
ial
s
No
.
c
h
e
c
k
bi
t
s
t
o
p
b
it
Start bit
2
packet
length
1
protocol No.
1
message
serials No.
2
check bit
stop bit
packe
t
length
protoc
ol No.
Comman
d length
Zon
e bit
Comman
d
contents
reserve
d
extend
bit
N
messag
e serials
No.
chec
k bit
sto
p
bit