MEITRACK T622 GPRS Protocol
Copyright © 2017 Meitrack Group All rights reserved. - 5 -
1
T622 Command Format
1.1
GPRS Command Format
The GPRS command format is as follows:
GPRS command sent from
the server to the tracker
@@<
Data identifier
><
Data length
>,<IMEI>,<
Parameter table No.
><
Command
type
>,<
Command
><*
Checksum
>\r\n
GPRS command sent from
the tracker to the server
$$<
Data identifier
><
Data length
>,<IMEI>,<
Event code
>,<
Command
/
Error
code
><*
Checksum
>\r\n
Command description
@@
: Indicates the packet header sent from the server to the tracker; contains 2 characters.
Data identifier
: Contains 1 byte; hexadecimal; its value ranges from 0x41 to 0x7A. The data identifier in
the reply command must be the same as that of the sending command. Otherwise, the command fails.
A comma (,) is used to separate data characters. The character type is the American Standard Code for
Information Interchange (ASCII). (Hexadecimal is represented as 0x2C.)
Data length
: Indicates the length of characters from the first comma (,) to \r\n. Decimal.
Example: $$<
Data identifier
><
Data length
>,<
IMEI
>,<
Command type
>,<
Command
><*
Checksum
>\r\n
IMEI
: Indicates the tracker's IMEI number.
Parameter table No.
:
0
or null: All parameter tables need to be modified;
1
: The basic parameter table
needs to be modified;
2
: Roaming parameter table 1 needs to be modified.
Command type
: Consists of letters and digits. For detail, see Chapter 3 "Command Details."
Command: no more than 1,024 bytes.
*
: Separates commands from checksums.
Checksum
: hexadecimal; 2 bytes; indicates the sum of all data
packets (excluding the checksum and ending mark).
Example: $$<
Data identifier
><
Data length
>,<
IMEI
>,<
Command type
>,<
Command
><*
Checksum
>\r\n
\r\n
: 2 bytes. The parameter is an ending character. The type is ASCII. (Hexadecimal value: 0x0d 0x0a)
$$
: Indicates the packet header sent from the tracker to the server; 2 bytes; hexadecimal: 0x24 0x24.
Multiple commands are separated by a comma (,). If commands are null, keep commas (,).
Note: If the tracker connects to a peripheral compatiable with FMS protocol, the data will be transmitted in CCC
0x0501 format; else data will be transmitted in AAA format.
1.2
Tracker Command Format
Data has two formats: AAA and CCC.
Data will be transmitted in AAA format when the tracker does not connect to a peripheral compatible with FMS
protocol, which is as follows:
$$<Data identifier><Data length>,<IMEI>,AAA,
<Event code><Latitude><Longitude><Date and time><Positioning
status><Number of satellites><GSM signal strength><Speed><Direction><Horizontal dilution of precision
(HDOP)><Altitude><Mileage><Total time><Base station info><I/O port status><Analog input value><Assisted
event info>,<Customized data>,<Extended protocol version 3>,<Fuel percentage>,<Temperature sensor 1
value|Temperature sensor 2 value|……Temperature sensor n value>,<Max acceleration value>,<Max deceleration
value>,<LLS fuel sensor 1+LLS fuel sensor tempLLS fuel sensor value
N
+LLS fuel sensor frequency|……LLS
fuel sensor n+LLS fuel sensor tempLLS fuel sensor value
N
+LLS fuel sensor frequency>
<*Checksum>\r\n