GT02 Protocol en Neutral
GT02 Protocol en Neutral
Info Content-Length Reserved Device Information Protocol Information content End mark
header ID serial number
number
2 Bytes 1 Byte 2 Bytes 8 Bytes 2 Bytes 1 Byte 24 Bytes 2 Bytes
Device ID
Hexadecimal System; GT02 uses 15 digits IMEI number of device as the device ID. For example, the IMEI number is 123456789123456 and
the device ID is 0x01 0x23 0x45 0x67 0x89 0x12 0x34 0x56.
Date & Time Latitude Longitude Speed Course Reserved bytes Status bits
It shows when this locating information is generated. 6 bytes are distributed as follows:
Table 4
Year Month Day Hour Minute Second
1byte 1byte 1byte 1byte 1byte 1byte
1.2. Latitude
Occupy 4 bytes; representing the latitude value. Number range is from 0 to 162000000, which represents the range from 0to 90. Unit: 1/500
second.
Conversion method:
A Convert the latitude (degrees, minutes) data from GPS module into a new form which represents the value only in minutes;
B Multiply the converted value by 30000, and then transform the result to hexadecimal number.
For example 2232.7658,22*60+32.7658*30000 = 40582974,then convert it to hexadecimal number 0x026B3F3E
1.3 Longitude
Occupy 4 bytes; representing the longitude value of locating data. Number ranges from 0 to 324000000, representing the range from 0 to 180,
unit: 1/500 seconds, conversion method is the same as latitudes.
1.4 Speed
Occupy 1 byte; representing the speed of the device; ranges from 0 to 255, unit: kilometer/ hour.
1.5 Course
Occupy 2 bytes; representing the moving direction of the device; ranges from 0-360; unit: degree, regards due north as 0 degree.
Occupy 4 bytes; representing each status information of the device. Regard 4 bytes as 32 bits, the lowest bit is 0, the highest is 31. In the process
of data transmitting, the high one comes first and the low one follows. Each bit represents the detailed meaning as follows:
For example: 0x00 0x00 0x00 0x0F means device has been located, northern latitude, eastern longitude, charged
It is the total bytes number from Voltage degree(include itself) to End mark(not include itself). The total is 15+N bytes; N means the number
of satellites. For example:
If the device has successfully searched out 6 satellites, in this case, N=6, the length of content is 15+6=21 bytes
0x00 no signal
0x01 weaker signal
0x02 weak signal
0x03 good signal
0x04 strong signal
2.4 Device ID
Hex, GT02 takes 15 digits IMEI NO. as Device ID, such as IMEI NO. 123456789123456, whose device ID is : 0x01 0x23 0x45 0x67 0x89 0x12 0x34 0x56.
2 bytes, After turning on the GT02, it would send the first item of GPRS data (including heartbeat package and location data); the serial number
is 1. After that, the serial number will be added on by 1 automatically at every sending process (including heartbeat package and location data).
B. If there is not feedback package sent from the server in 5 seconds, it will be considered as failure to connect. In this case, device will activate
the GPS data backup function, and then reconnect to the server after one minute;
C. If the procedure B happens for 3 times, device will activate timed-restarting function.(Note: The restart process will activate once after 10
minutes. If device connect with server and receiving heartbeat package successfully in this 10 minutes, the timed-restarting function will be
disabled automatically,)
D. When GPRS connection fails, device will not send heartbeat package. When GPRS connection fails for 3 times, device will activate
timed-restarting function. (Note: The restart process will activate once after 20 minutes. If device connect with server and receiving heartbeat
package successfully in this 20 minutes, the timed-restarting function will be disabled automatically,)
Notice:
. Server will not reply heartbeat package to device which has not been registered
. If the device has not been inserted by sim card, or the GPRS service of this sim card has not been activated, the device will restart
automatically once after 21 minutes.
. When the heartbeat package is timeout, the GPRS will reconnect after 1 minute.
. The device would not send location data when it is static. But it would not affect sending heartbeat package.
Appendix:
Mobile user and SMS server can ask coordinate via this
command.
Speed:53.02DateTime:08-09-12 14:52:36
Modify common-user password XGYHMM,existed common-user password The default password is 000000.
digits)# This command replace the default password 000000 by the new
one 123456.
Two approaches to set the GPRS parameter, For example, sending configuration SMS to If asking any further detailed description, please refer to the
port,device ID,0# 21,000000000000001,0# TCP,1 is UDP),server IP,server port,device ID(15 bits IMEI
N.O),0#(Ending Mark)
Minimum:5s
Maximum:18000s
Check software version RJBB,user passwords# Sender will get back of software version.
Appendix
GPRS Configuration
For example: When the device goes to Indonesia, and the customer put the sim card from the Indosat operator in it.
Send a message to the sim card which has been put into the device. The content of the SMS is as following:
GPRS,000000,indosatgprs,0,gt02.szdatacenter.com:8821#
indosatgprs is the APN of the Indonesian operator Indosat, please replace it by the local one. You might need to give a call to the
local operator to ask them what their APN is.
2If you receive Fail, it means that the device can not identify the content of the SMS. In this case, please check
the content of SMS, especially the format of Minuscule/ Majuscule. Find the problems and resend the SMS, you
would get success.
3) If you can not get any feedback after 5min, please check the device.
A Whether the indicating lights work orderly (The Green and Blue light should stay in solid bright)
B If the Green light is not on solid bright, please check whether you insert the sim card in an appropriate way.
C If the green light is on solid bright already; please give a call to this sim card to see whether it could be called. If
you have successfully make a call to this card, but you still can not track this device. Please also check whether
the messages are full in this sim card (because the problem might be caused by the exceeding of SMS). Finally,
you could track this device.
CONTENT OF SMS
GPRSGPRS
000000Default password
indosatgprsAPN of the GSM operatorHere just a example
0 or 1GPRS Communication Protocol0 stands for TCP1 stands for UDP(Recommended way is TCP)
gt02.szdatacenter.comInternet Domain name for the server
:8821Server port
#ending symbol