MT4 Protocol
MT4 Protocol
1. Heartbeat package:
*XX,YYYYYYYYYY,V5,HHMMSS,S,latitude,D,longitude,G,speed,direction,DDMM
YY,vehicle_status, net_mcc,net_mnc,net_lac,net_cellid, mile#
latitude: latitude,
Format DDFF.FFFF,
DD: Degree of latitude (00 ~ 90),
FF.FFFF: The minutes of latitude (00.0000 ~ 59.9999), with four decimal
places.
longitude: longitude,
Format DDDFF.FFFF,
DDD: degrees of longitude (000 ~ 180),
FF.FFFF: minutes of longitude (00.0000 ~ 59.9999), with four decimal
places.
(WGS84 geographic coordinate system)
speed: speed, range 000.00 ~ 999.99 knots, with two decimal places.
1 knot=1 nautical mile/hour=1.852km/hour=0.514444m/s
DDMMYY: day/month/year
1
Serial 0C 0D 0E 0F 10 12 13 14 15 16 17 18
1
2
Content 22349273 06 113543980E 014028
Back up
Longtitude、N、E、 Speed、
Meaning Latitude battery
AV Direction
level
vehic
Undefin Cell Record
Meaning le_st Mileage mcc mnc lac
ed id Number
atus
Description: "$" (0x24): Record header, used for the center to identify
the starting position of the record, and the data packet length is fixed
at 45 bytes;
Time: 043204, standard time 4:32:4, which is equivalent to 12:32:4, Beijing
time;
Date: 100715, July 10, 2015;
Speed, direction:
0x014028:
Speed 014 knots (1 knot=1 nautical mile/hour=1.852
3
km/hour=0.514444m/s)
Reserved space:
mcc: mobile country code
mnc: mobile network code
lac: base station area code
cell id: base station code
Record No.: The record serial number in binary format, which is
automatically incremented by 1 each time a record is sent.
4
Appendix 1 Table
5
on,DDMMYY, vehicle_status, net_mcc,net_mnc,net_lac,net_cellid #
Among them: * command header
XX manufacturer name, such as TH, DC, XY, etc.
, Separator
YYYYYYYYYY serial number of vehicle-mounted device.
V4 packet type
CMD is confirmed by the central command.
hhmmss is the time value in the confirmed command
The time of the HHMMSS vehicle-mounted machine, UTC standard time, is 8 hours
away from Beijing time.
S: Data valid bit (A/V), A means GPS data is valid positioning data, V means
GPS data is invalid positioning data.
latitude: latitude, format DDFF.FFFF, DD: degrees of latitude (00 ~ 90),
FF.FFFF: minutes of latitude (00.0000 ~ 59.9999), with four decimal places.
D: latitude mark (N: north latitude, S: south latitude).
longitude: longitude, format DDDFF.FFFF, DDD: longitude degrees (000 ~ 180),
FF.FFFF: longitude minutes (00.0000 ~ 59.9999), with four decimal places.
G: Longitude sign (E: East longitude, W: West longitude).
speed: speed, range 000.00 ~ 999.99 knots, with two decimal places.
The information field may be empty, namely longitude,G,,direction,, indicating
that the speed is 0.
direction: azimuth angle, true north is 0 degrees, resolution is 1 degree,
clockwise.
The information field may be empty, such as longitude, G, speed,, MMDDYY,,
indicating that the angle is 0.
DDMMYY: day/month/year
vehicle_status: vehicle status
net_mcc: mobile country code
net_mnc: mobile network code
net_lac: base station area code
net_cellid: base station code
# Terminator
1) The server receives the data packet and issues the confirmation instruction
R12
Equipment transmission: *HQ data and 24 data, the server returns the following
confirmation data.
Service return: *HQ,8168000005,R12,062108#
8168000005: The actual ID code of the corresponding device
062108: UTC time
6
Example: *HQ,8168000005,D1,062108,30,1#
Set the ignition upload time interval to 30 seconds
Equipment return:
*HQ,8168000005,V4,D1,30,65535,062108,062225,A,2235.0086,N,11354.3668,E,000.
00,000,160716,FFFFBBFF,460,00,10342,3721#
4) Command SCF
Fortification: *HQ,8168000005,SCF,061837,0,0#
Equipment return: *HQ,8168000005,V4,SCF,061837,061955,
A,2235.0086,N,11354.3668,E,000.00,000,160716,FFFFB9FF,460,00,10342,3721#
Disarming: *HQ,8168000005,SCF,061939,1,1#
Equipment return: *HQ,8168000005,V4,SCF,061939,062057,
A,2235.0086,N,11354.3668,E,000.00,000,160716,FFFFBBFF,460,00,10342,3721#
7
Server address request:
*HQ,8168000005,V2,064645,A,2235.0139,N,11354.3648,E,000.07,000,080316,FFF7
BBFF,460,00,10342,3721#
*HQ,8168000005,I1,064836,10,1,
64: length
004700500053003a5e7f4e1c77016df157335e025b9d5b89533a59275b9d8def0036003553
f765b067ef57ce79d162805de54e1a56ed897f5317003800377c73
Unicode encoding
GPS: 87 meters northwest of Xinkecheng Technology Industrial Park, No. 65 Dabao
Road, Baoan District, Shenzhen, Guangdong Province