D11 Protocol 2024109
D11 Protocol 2024109
3 A0
2
Preface
protocol
X=4 0 x AX protocol (4G device)
protocol query
1. Communication Protocol 1
3. Basic Rule 3
5.2. Positioning data packet (GPS, LBS combined information packet: 0x12) 9
5.3. Positioning data packet ( add ACC, data reporting mode: 0x22 ) 14
5.5.2. The server sends alarm data packet reply 26 to the terminal
5.8. The terminal sends the IMSI number to the server (0x90) 32
5.9. The terminal sends the ICCID number to the server (0x94) 33
5.12.2. The server sends alarm data packet reply 42 to the terminal
6.2.7. Language 48
7. Attached is the AAU CRC-ITU table lookup algorithm CC language code snippet 51
1. Communication protocol
introduction
This document defines the description of the application layer interface protocol of the vehicle GPS
locator and positioning service platform. This interface protocol is only suitable for interactive
communication between the server platform and the positioning terminal .
MCC Mobile Country Code The country code of the mobile user
2
LAC Location Area Code location area code
2
3. Basic rules
1. The GPRS connection is successfully established and the first login information packet is sent to
the server. If the server response packet is received within 5 seconds, the connection is considered
normal and positioning information (GPS, LBS information packets) will be sent. Status information will
be sent after 3 minutes. package, regularly confirming the normality of communication;
2. When the GPRS connection is not successfully established, the terminal cannot send login
information packets. When the GPRS connection fails three times, the terminal starts the scheduled
restart function for 20 minutes. If the terminal successfully establishes a connection with the server
within 20 minutes and receives a data packet from the server in response to the login information packet
sent by the terminal, the scheduled restart function will be turned off and the terminal will not restart,
otherwise the terminal will automatically restart after 20 minutes ;
needs to return a response packet to the terminal after receiving the login information packet sent by
the terminal . If the terminal does not receive a response packet from the server for more than 5 seconds
after sending the login information packet or status information packet, it is considered that the current
connection is established abnormally. Start the GPS positioning data retransmission function, disconnect
the current GPRS connection, re-establish a new GPRS connection and send the login information
package ;
4. The connection is judged to be abnormal. The login information packet or status information
packet sent after the connection is established three times cannot receive the data packet responded by
the server. The terminal starts the scheduled restart function. The scheduled restart time is 10 minutes. If
within 10 minutes, If the terminal successfully establishes a connection with the server and receives a
data packet from the server, the scheduled restart function is turned off and the terminal will not restart.
Otherwise, the terminal will automatically restart after 10 minutes ;
5. After the connection is established normally, the terminal regularly sends GPS and LBS merged
information packets to the server after the GPS information changes. The server can set the default
sending protocol through instructions ;
heartbeat packets are sent to the server at fixed intervals , and the server returns a response packet
for confirmation ;
7. For terminals that do not have registered IMEI numbers, the server should reply with a login
request response and a heartbeat packet response, and do not disconnect directly. (If you directly
disconnect or do not reply, the terminal will continue to reconnect and the GPRS traffic consumption will
be serious) .
2
2
4. Data packet format
Format Length(Byte)
start bit 2
Packet length 1
Agreement 1
number
information N
Information 2
serial number
error checking 2
Stop bit 2
4.1.Start bit
Fixed value, unified to hexadecimal 0x78 0x78.
Note: A small number of protocol numbers start with 0x7 9 0x7 9
2
4G device positioning information package 0xA0
4G device WIFI information package 0xA2
4G device alarm package 0xA5
2
5. Detailed explanation of the terminal sending data
5.1.1.4. Terminal ID
2
5.1.1.6. Error checking
The protocol number in the response packet is the same as the protocol number of the data packet
sent by the terminal.
2
time in the login packet to facilitate updating the device time. The format is as follows:
0x78 0x78 0x0B 0x01 0x00 0x01 0x14 0x01 0x08 0x09 0x1E 0x0A 0xD9 0xDC 0x0D 0x0A
date time
Among them: 0x14 0x01 0x08 0x09 0x1E x0A =20-01-08 9:30:10
The time issued by the platform uses: UTC+0 format
2
5.2. Positioning data packet (GPS, LBS combined information
packet : 0x12 )
5.2.1. The terminal sends positioning data packet to the server
Format Length(Byte) Example
2
For example : January 29 , 2022 1 7:12:16
Calculation method: 22 (decimal) = 1 6 (hexadecimal)
01(decimal)=01(hexadecimal)
29 (decimal)=1 D (hexadecimal)
1 7 (decimal) = 11 (hexadecimal)
12 (decimal) = 0C (hexadecimal)
16 (decimal)=1 0 (hexadecimal)
The value is: 0x 1 6 0x 0 1 0x1 D 0x 11 0x 0C 0x1 0
The date and time of the GPS location package corresponds to the time zone set by the device.
1Byte converted into binary is 8Bit, the first 4Bit is the GPS information length, the last 4Bit is the
current number of satellites of the device, the maximum number of satellites is 15 number, more than 15
Individual rules reported 15 indivual.
Note: The length includes its own 1Byte.
Example: When the value is 0xCB, it means that the GPS information length is 12 and the number
of satellites participating in positioning is 11.
5.2.1.6.Latitude
It occupies 4 bytes and represents the latitude value of positioning data. The numerical range is 0 to
162000000, which represents the range from 0 degrees to 90 degrees. The conversion method is as
follows:
Convert the longitude and latitude values output by the GPS module into decimals in units of
minutes; then multiply the converted decimals by 30000 and convert the multiplied results into
hexadecimal numbers.
For example, 22º 32.7658 '=(22X60+32.7658)X30000=40582974, and then convert it into
hexadecimal number
40582974 (decimal) = 26B3F3E (hexadecimal)
The final value is 0x02 0x6B 0x3F 0x3E.
Note: The uploaded longitude and latitude are all positive numbers. If they are negative values, take
the absolute value.
5.2.1.7.Longitude
It occupies 4 bytes and represents the longitude value of positioning data. The value range is 0 to
324000000, indicating the range from 0 degrees to 180 degrees.
The conversion method is the same as that of latitude .
5.2.1.8. speed
It occupies 1 byte and represents the operating speed of the GPS. The value range is 0x00~0xFF,
2
indicating the range is 0~255 km/h.
like:
0x00 represents 0 km/h;
0x10 represents 16 km/h;
0xFF represents 255 km/h.
It occupies 2 bytes and is converted into binary. The first six bits of the first byte represent the
device status. The last two bits and the eight bits of the second byte represent the running direction of the
GPS. The range is 0~360. Unit: degree. Taking true north as 0 degrees, clockwise.
The first six bits of the 8-bit binary in the first byte represent the status, and the following two bits
and the 8-bits of the second byte, a total of 10 binary bits, represent the heading degree.
2
5.2.1.10. MCC
5.2.1.11.MNC
5.2.1.12.LAC
Location area code Location Area Code (LAC) included in LAI , consisting of two bytes, using
16 Base encoding. The available range is 0x0001-0xFFFE, code group 0x0000 and 0xFFFF Not
available (see GSM Specification 03.03, 04.08 and 11.11). A location area can contain one or more cells.
5.2.1.13. Cell ID
Mobile base stationCell Tower ID(Cell ID), the value range is 0x000000 00 ~ 0xFFFFFFFF,
occupies 4 bytes
5.2.2. The terminal sends the mileage positioning data packet to the
server
Format Length(Byte) Example
2
information satellite number
latitude 4 0x02 0x7A 0xCF 0xEB
longitude 4 0xCC 0x46 0x58 0x49
speed 1 0x10
heading, status 2 0x1 5 0x 4C
MCC 2 0x01 0xCC
LBS MNC 1 0x00
information LAC 2 0x28 0x7D
Cell ID 3 0x00 0x1F 0xB8
mileage 4 0x00 0x 0F 0x42 0x40
serial number 2 0x00 0x03
error checking 2 0x9D 0xDC
end bit 2 0x0D 0x0A
Mileage is 4 bytes, unit is meter, 0x00 0x0F 0x42 0x40 , 1,000,000 meters, or 1,000 kilometers
2
5.4. Heartbeat packet ( 0x13 )
Heartbeat packets are data packets that maintain the connection between the terminal and the server.
It occupies 1 byte and is converted into binary to represent the status information of the terminal. One
byte is regarded as 8 bits, the lowest bit is 0 bits, and the highest bit is 7 bits. When transmitting, the high
bit is transmitted first, and then the low bit is transmitted. The specific meanings of each representative
are as follows:
2
0: GPS not positioned
111: Door open alarm
110: Door closing alarm
100: SOS alarm
Bit 5- Bit
011: Low battery alarm
3
010: Power failure alarm
001: Vibration alarm
000: normal
1: Connected to external power supply (wired device), charging (wireless)
Bit 2 0: Not connected to external power supply (wired device), not charging
(wireless)
1:ACC ON
Bit 1
0:ACC O F
1: Fortification
Bit0
0: Disarm
Range of GSM information: 0-100; converted to decimal, the larger the value, the stronger the GSM
signal
0: Indicates no signal
100: full signal
2
Note: The reserved extension bit (that is, the external voltage bit) of the wireless product
S11/S11C/W15L is not used as a language bit, but is used to identify the working mode and sleep state of
the device.
Operating mode:
0x 00= smart sleep mode;
0x 01= normal mode;
0x 02= deep sleep mode;
0x 03= Timed return mode;
0x04 = Remote power on/off mode;
Device sleep state:
When the device is working normally, it is 0x 00 ;
When the device sleeps, the device sleep status bits are consistent with the working mode bits. For
example, in deep sleep mode, the reserved extension bits when the device sleeps are 0x02 0x02 .
Agreement
1 0x13
number
2
information
2 0x00 0x01
sequence
After receiving the data packet from the terminal, the server responds with an empty data packet.
Note: The "information sequence number" in the data packet must be consistent with the
"information sequence number" sent by the responding terminal.
5.4.2.1Start bit
2
5.5. Alarm package ( 0x16 )
5.5.1. The terminal sends an alarm data packet to the server
Format Length(Byte) Example
2
For details, see Data Packet Format 4.3
5.5.1.6 Latitude
5.5.1.7 Longitude
5.5.1.8 Speed
5.5.1.11 MCC
5.5.1.12 MNC
2
For details, see Data Packet Format 5.2.1.11
5.5.1.13 LAC
5.5.1.14 Cell ID
0x00: normal
2
fence
fence
sensor alarm)
2
opened
5.5.1.19 Language
English: 0x02
2
information start bit 2 0x78 0x78
Packet length 1 0x 05
information sequence 2 0x 00 0x 05
error checking 2 0x 96 0x 68
Stop bit 2 0x 0D 0x 0A
2
longitude 4 0x02 0x6B 0x3F 0x3E
latitude 4 0x0C 0x45 0x49 0x53
speed 1 0x00
heading, bearing 2 0x14 0x8F
0x31 0x33 0x38 0x30 0x30 0x31 0x39
telephone telephone number twenty one 0x39 0x38 0x38 0x35 0x20 0x20 0x20
number
0x20 0x20 0x20 0x20 0x20 0x20 0x20
language reserved 1 0x00
status language 1 0x02
information sequence 2 0x00 0x06
error checking 2 0x29 0xD1
Stop bit 2 0x0D 0x0A
5.6.1.6 Latitude
5.6.1.7 Longitude
2
5.6.1.8 Speed
The phone number is 21 digits, and any less than 21 digits must be filled with spaces, that is: 0x20
For example: 13800138000, the device reports: 0x31 0x33 0x38 0x30 0x30 0x31 0x33 0x38
0x30 0x30 0x30 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20
2
Length = protocol number + message content +
Packet length 1 message sequence number + error check
NCI1 3 Same as CI
NCI2 3 Same as CI
2
NCI3 3 Same as CI
NCI4 3 Same as CI
NCI5 3 Same as CI
NCI6 3 Same as CI
2
WIFI strength 1 1 Signal 1WIFI signal strength
… …
The base station information is fixed at 7, and 0x00 is added for any shortage. The WIFI information is
78786b 2c
110b1709362501cc00287200101a3f28720010193f2872000df3282872000df4190000000000000000000
0000000000000000000007e4a1e6
5384bf4af49eef65772b4c34967204ebbf53bc46996697f853f0fe6b5d752c5424050f247e205ab0d59d0efd
d15c000450f80d0a
2
5.8. The terminal sends the IMSI number to the server ( 0x90 )
Format Length(Byte) describe
in
fo
r 0x 00: external voltage
m D 0x 01~ 0x 03: (customized)
ati at 0x 04: Terminal status synchronization
o a 0x 05: Door status
Informati
n co 1 0x 08: Self-test parameters
on type
nt 0x 09: Positioning satellite information
en 0x 0A: ICCID information
t 0xAA: CANBUS data
...to be added
2
Data Depending on the type of information, the content is also different.
N
content See the table below for details of 0A.
Information After turning on the phone, every time you send data, it will
2
serial number automatically +1
CRC-ITU value from "Packet Length" to "Message Sequence
error checking 2
Number"
end bit 2 0x0D 0x0A
When the information type is 0x0A: In addition, ICCID information is transmitted, and the transmission
is hexadecimal.
2
OBD remaining oil 0x03 2 %L Remaining oil volume, unit L or %
volume Bit15 ==0 percentage% OBD are all percentages
==1 unit L
The displayed value is the uploaded value/10
OBD coolant temperature 0x04 1 ℃ Accuracy: 1℃ Offset: -40.0℃ Range: -40.0℃ ~ +210℃
OBD air inlet temperature 0x05 1 ℃ Accuracy: 1℃ Offset: -40.0℃ Range: -40.0℃ ~ +210℃
OBD intake pressure 0x06 1 kPa Accuracy: 1 Offset: 0 Range: 0 ~ 250kpa
OBD atmospheric 0x07 1 kPa Accuracy: 1 Offset: 0 Range: 0 ~ 125kpa
pressure
OBD ambient temperature 0x08 1 ℃ Accuracy: 1℃ Offset: -40.0℃ Range: -40.0℃ ~ +210℃
OBD accelerator pedal 0x09 1 % Accuracy: 1 Offset: 0 Range: 0% ~ 100%
position
OBD fuel pressure 0x0A 2 kPa Accuracy: 1 Offset: 0 Range: 0 ~ 500kpa
Number of OBD fault 0x0B 1 indivual Precision: 1 Offset: 0 Value range: 0~255
codes
OBD clutch switch 0x0C 1 0x00/0x01 off/on
OBD fuel temperature 0x11 2 ℃ Accuracy: 0.03125℃ Offset: -273.0℃ Range: -273.0℃ ~
+1734.96875℃
OBD oil temperature 0x12 2 ℃ Accuracy: 0.03125℃ Offset: -273.0℃ Range: -273.0℃ ~
+1734.96875℃
OBD engine oil pressure 0x13 1 kPa Accuracy: 4 Offset: 0 Range: 0 ~ 1000kpa
OBD air flow 0x15 2 g/s Precision: 0.1 Offset: 0 Value range: 0~6553.5
Engine net output torque 0x16 1 % Precision: 1 Offset: -125 Value range: -125% ~+125%
friction torque 0x17 1 % Precision: 1 Offset: -125 Value range: -125% ~+125%
SCR upstream NOx 0x18 2 ppm Accuracy: 0.05 Offset: -200 Value range: -200~+3012.75ppm
sensor output value
SCR downstream NOx 0x19 2 ppm Accuracy: 0.05 Offset: -200 Value range: -200~+3012.75ppm
sensor output value
Reactant balance 0x1A 1 % Accuracy: 0.4 Offset: 0 Range: 0% ~ 100%
Air intake 0x1B 2 Kg/h Accuracy: 0.05 Offset: 0 Value range: 0 ~ 3212.75 Kg/h
SCR inlet temperature 0x1C 2 ℃ Accuracy: 0.03125℃ Offset: -273.0℃ Range: -273.0℃ ~
+1734.96875℃
SCR outlet temperature 0x1D 2 ℃ Accuracy: 0.03125℃ Offset: -273.0℃ Range: -273.0℃ ~
+1734.96875℃
DPF differential pressure 0x1E 2 kPa
Accuracy: 0.1 Offset: 0 Value range: 0 ~ 6425.5 kPa
2
Engine torque mode 0x1F 1 0: Overspeed failure
1: Speed control
2: Torque control
3: Speed/torque control
9: normal
Urea tank temperature 0x20 1 ℃ Accuracy: 1℃ Offset: -40.0℃ Range: -40.0℃ ~ +210℃
Actual urea injection 0x21 4 ml/h Accuracy: 0.01 Offset: 0 Value range: 0 ~ 42949672.95 ml/h
volume
Cumulative urea 0x22 4 g Precision: 1 Offset: 0 Value range: 0 ~ 4294967295g
consumption
DPF exhaust temperature 0x23 2 ℃ Accuracy: 0.03125℃ Offset: -273.0℃ Range: -273.0℃ ~
+1734.96875℃
OBD diagnostic protocol 0x24 1 The valid range is 0~2, "0" represents IOS15765, "1"
represents IOS27145, "2" represents SAEJ1939, and "0xFE"
represents invalid.
MIL status 0x25 1 The valid range is 0~1, "0" means not lit, and "1" means lit.
"0xFE" means invalid.
Diagnostic support status 0x26 2 Each bit is defined as follows:
1 Catalyst monitoring Status Catalytic converter monitoring
2 Heated catalyst monitoring Status Heated catalytic converter
monitoring
3 Evaporative system monitoring Status Evaporative system
monitoring
4 Secondary air system monitoring Status Secondary air
system monitoring
5 A/C system refrigerant monitoring Status A/C system
refrigerant monitoring
6 Exhaust Gas Sensor monitoring Status Exhaust gas sensor
monitoring
7 Exhaust Gas Sensor heater monitoring Status Exhaust gas
sensor heater monitoring
8 EGR/VVT system monitoring EGR system and VVT
monitoring
9 Cold start aid system monitoring Status Cold start aid system
monitoring
10 Boost pressure control system monitoring Status Boost
pressure control system
11 Diesel Particulate Filter (DPF) monitoring Status DPF
monitoring
12 NOx converting catalyst and/or NOx adsorber monitoring
Status Selective catalytic reduction system (SCR) or NOx
adsorber
13 NMHC converting catalyst monitoring Status NMHC
oxidation catalyst monitoring
14 Misfire monitoring support Misfire monitoring
15 Fuel system monitoring support Fuel system monitoring
16 Comprehensive component monitoring support
Comprehensive component monitoring
The meaning of each bit: 0=not supported; 1=supported;
Diagnostic readiness 0x27 2 Each bit is defined as follows
status 1 Catalyst monitoring Status Catalytic converter monitoring
2 Heated catalyst monitoring Status Heated catalytic converter
monitoring
3 Evaporative system monitoring Status Evaporative system
monitoring
4 Secondary air system monitoring Status Secondary air
system monitoring
5 A/C system refrigerant monitoring Status A/C system
refrigerant monitoring
2
6 Exhaust Gas Sensor monitoring Status Exhaust gas sensor
monitoring
7 Exhaust Gas Sensor heater monitoring Status Exhaust gas
sensor heater monitoring
8 EGR/VVT system monitoring EGR system and VVT
monitoring
9 Cold start aid system monitoring Status Cold start aid system
monitoring
10 Boost pressure control system monitoring Status Boost
pressure control system
11 Diesel Particulate Filter (DPF) monitoring Status DPF
monitoring
12 NOx converting catalyst and/or NOx adsorber monitoring
Status Selective catalytic reduction system (SCR) or NOx
adsorber
13 NMHC converting catalyst monitoring Status NMHC
oxidation catalyst monitoring
14 Misfire monitoring support Misfire monitoring
15 Fuel system monitoring support Fuel system monitoring
16 Comprehensive component monitoring support
Comprehensive component monitoring
The meaning of each bit: 0=test completed or not supported;
1=test not completed
vehicle identification 0x28 17 ASCII The vehicle identification code is a unique identifier for
number identification and consists of a 17-digit character code. The
character code should comply with the provisions of 4.5 in
GB16735.
Software calibration 0x29 18 The software calibration identification number is customized
identification number by the manufacturer and consists of letters or numbers, with
the character "0" added at the end.
Calibration verification 0x3A 18 The calibration verification code is customized by the
code manufacturer and consists of letters or numbers, with the
missing character "0" at the end.
IUPR value 0x3B 36
For definition, refer to SAE J1979-DA Table G11.
light absorption 0x3C 2 0.01m-1
coefficient
Opacity 0x3D 2 0.1%
2
5.10. Recording protocol package ( 0x8D )
After the device records, it sends the recording package to the server. It is suitable for S 709, S 11,
S11C, and W15L devices.
2
5.11. 4G device positioning data packet ( 0 xA0 )
5. 11 .1. The terminal sends positioning data packet to the server
Format Length(Byte) Example
Additional Information
Number of
1 Number of additional data
additional data
2
0x02 1 Data reporting mode, as defined in the data reporting mode table
0x 04 Total mileage in meters, for example: 0x00 0x0F 0x42 0x40 (1,000,000
4
meters, that is, 1,000 kilometers)
0x 05 Total travel time, unit is seconds, for example: 0x00 0x0F 0x42 0x40
4
(1000000 seconds)
0x09 RFID :
Format: Operation mode ( 1 Byte) + driver number ( N Byte)
Operation mode value range:
1+N
0x 00: Sign-in begins
0x01 : Sign-in status
0x02 : Sign-in ends
0x0B i Button:
Format: Operation mode ( 1 Byte)+iButton ID ( 6 Byte , hex )
Operation mode value range:
7
0x 00: Sign-in begins
0x01 : Sign-in status
0x02 : Sign-in ends
2
0x0C Xinde’s ultrasonic fuel consumption height
Format: smoothed fuel consumption height ( 2 Byte) + real-time fuel
consumption height ( 2 Byte) , unit 0.1 mm
4
Example: 0x01 , 0x 25 , 0x 01 , 0x 26
Smooth fuel consumption height=0x0125=29.3mm
Real-time fuel consumption height=0x012 6 =29.4mm
2
5. 11 .1.3. Agreement number
5. 11 . 1. 4. date time
5. 11 . 1 .8. speed
5. 11 .1.10.MCC
5. 11 .1.11.MNC
5. 11 .1.12.LAC
5. 11 .1.13. Cell ID
2
5. 11. 1. 15. Error checking
5. 11 . 1 . 16 . Stop bit
2
language 1 0x 02
serial number 2 0x00 0x03
error checking 2 0x8C 0x59
end bit 2 0x0D 0x0A
5. 12 .1.6 Latitude
5. 12 .1.7 Longitude
5. 12 .1.8 Speed
2
5. 12 .1.9 Course and status
5. 12 .1.11 MCC
5. 12 .1.12 MNC
5. 12 .1.13 LAC
5. 12 .1.14 Cell ID
2
5. 12 .1.18 Alarm type
0x00: normal
fence
fence
alarm type
sensor alarm)
2
0x27: Rapid deceleration alarm
opened
5. 12 .1.19 Language
English: 0x02
2
For details, see Data Packet Format 4.5
Packet length 1 0x 05
information sequence 2 0x 00 0x 05
error checking 2 0x 96 0x 68
Stop bit 2 0x 0D 0x 0A
2
For details, see Data Packet Format 4.6
5. 12 .2.6 Stop bit
For details, see Data Packet Format 4.7
NCI1 3 Same as CI
2
NCI2 3 Same as CI
NCI3 3 Same as CI
NCI4 3 Same as CI
NCI5 3 Same as CI
NCI6 3 Same as CI
2
Used to determine the number of WIFI transmitted
WiFi quantity 1 in the package, 0 means no WIFI is detected
… …
The base station information is fixed at 7, and 0x00 is added for any shortage. The WIFI information is
2
Terminal
1 0x4E
information
IO status 2 0x02 0x01
status Voltage level 1 0x06
information GSM signal
1 0x64
strength
external voltage 1 0x0C
language 1 0x02
serial number 2 0x00 0x03
error checking 2 0xFF 0x4F
end bit 2 0x0D 0x0A
It occupies 1 byte and is converted into binary to represent the status information of the terminal. One
byte is regarded as 8 bits, the lowest bit is 0 bits, and the highest bit is 7 bits. When transmitting, the high
bit is transmitted first, and then the low bit is transmitted. The specific meanings of each representative
are as follows:
2
device), not charging (wireless)
1:ACC ON
Bit 1
0:ACC O F
1: Fortification
Bit0
0: Disarm
5. 1 4.1. 5 . IO status
Occupies 2 bytes
2
5.14.1.7. GSM signal strength
Range of GSM information: 0-100; converted to decimal, the larger the value, the stronger the GSM
signal
0: Indicates no signal
100: full signal
Agreement
1 0x13
number
2
information
2 0x00 0x01
sequence
After receiving the data packet from the terminal, the server responds with an empty data packet.
Note: The "information sequence number" in the data packet must be consistent with the
"information sequence number" sent by the responding terminal.
5.14.2.1Start bit
2
6. The server sends data packets to the terminal
2
6.1.5. Server flags
It is left for server identification, and the terminal returns the received data binary in the return
packet as it is.
2
6.2.3. Agreement number
The terminal responds to the command sent by the server. The data packet format is consistent with
the "command sent by the server to the terminal" format, but the protocol number is different, using
0x15.
6.2.7.Language
The language used by the terminal
Chinese: 0x00 0x01
English: 0x00 0x02
RELAY,1#
2
DYD,000000#
Function description: Cut off the vehicle’s oil and electricity control circuit
returned messages:
A0 DC F1 0D 0A
Device response: 78 78 18 15 10 00 01 A9 58 44 59 44 3D 53 75 63 63 65 73 73 21 00 02 00 18 91 77
0D 0A
HFYD,000000#
Function description: Connect the vehicle's oil and electricity control circuit
returned messages:
2
6.2.11.3 View location
Instruction format:
DWXX,000000#
Function description:
Get positioning information instructions. Both mobile phone users and SMS servers can obtain
returned messages:
1、 Return successfully:
For example:
Lat:N23d5.1708m,Lon:E114d23.6212m,Course:120,Speed:53.02;DateTime:08-09-12 14:52:36
The meaning is: 23 degrees 5.1708 minutes north latitude, 114 degrees 23.6212 minutes east longitude,
angle: 120 degrees, speed: 53.02 kilometers/hour, time and date: 14:52:36 on September 12, 2008.
Note: If the terminal is not positioned successfully, it will return: Lat:,Lon:, Course:,Speed:,DateTime:-:
The platform delivery and device reply formats are similar to DYD
2
7. Attached is the AAU CRC-ITU table lookup algorithm
2
// Calculate 16-bit CRC of data of given length
U16 GetCrc16(const U8* pData, int nLength)
{
U16 fcs = 0xffff; // initialization
while(nLength>0){
fcs = (fcs >> 8) ^ crctab16[(fcs ^ *pData) & 0xff];
nLength--;
pData++;
}
return ~fcs; // Negation
}