Itrac GPRS Communication Protocol
Itrac GPRS Communication Protocol
3) UDP protocol data channel: The uploading data by S17 Command (V1 General Information)
transmit via binary code in UDP protocol. S17 commands to UDP protocol uses binary
Control Command
*: Command Head
XX: Name,2 ASCII Character
,: Separator
YYYYYYYYYY :Serial Number
CMD:Command
Hhmmss: The time of the confirmed server command
HHMMSS : Terminal time, GMT+0 time zone
S:A/V, A means valid location, V means invalid location
latitude: DDFF.FFFF, DD:latitude degree(00 ~ 90),FF.FFFF:latitude minute(00.0000 ~ 59.9999),
keep four decimal places
D:N/S, N means north latitude, S means south Latitude
longitude: DDDFF.FFFF,DDD: longitude degree(000 ~ 180),FF.FFFF:longitude minute(00.0000
~ 59.9999), keep four decimal places
G:E/W, E means east longitude, W means west longitude
Speed:From 000.00 ~ 999.99
Direction:True north as 0 degrees, 1 degree resolution clockwise.
DDMMYY:Day/Month/Year
Vehicle_status: Refer to 3. General Data Definition
Order The first byte The second byte The third byte The fourth byte
0 0 undefined 0 undefined 0 undefined 0 Thief alarm
1 0 undefined 1 Low battery 0 undefined 0 Rob alarm
alarm
2 0 undefined 1 undefined 0 ACC OFF 0 Over speed alarm
set_flag:
Order
Value Meaning
0 Support geo-fence
3
1 Does not support geo-fence
control_stat :
order
value meaning
2. Locating Command D1
*XX,YYYYYYYYYY,D1,HHMMSS,interval,count #
interval:from 1 ~ 65535 seconds.
count:the times terminal replies to server.
Example: interval=30, count=10, then GPS tracker will gets location every 30 seconds,
and upload 10 location report every time.
Count=1 or 0, interval is invalid, means reply one time general information.
This command sends V1 message to server, does not reply V4 message.
D1 Command:
Set batch uploading mode: GPRS D1 command does not have times limit, and it does not
change SMS D1 interval.
*XX,YYYYYYYYYY,D1,HHMMSS,interval,batch#
3. Cold Start R1
*XX,YYYYYYYYYY,R1,HHMMSS#
Example:*HQ,0000000000,R1,130305#
4. Clear Alarm R7
*XX,YYYYYYYYYY,R7,HHMMSS#
Example:*HQ,0000000000,R7,130305#
5. Voice Monitoring R8
*XX,YYYYYYYYYY,R8,HHMMSS,listen_address#
listen_address: the number that terminal call for voice monitoring
7. System setting S4
*XX,YYYYYYYYYY,S4,HHMMSS,Set1,Set2#
Set1:HEX Control Word 1
Set2:HEX Control Word 2
Set1 meaning:
bit7:Security alarm control. It stores in bit7 of set_flag。 bit7=0:Open security alarm
control. If there’s theft alarm/rob alarm/password wrong alarm/illeage turn on
devie, It will close sending sms via GPRS, and open sending via sms.(Forced
bit65=11).bit7=1:Turn off Security alarm control.
bit6: The SMS sending switch control. It stores in bit6 of set_flag. bit6=0:turn off
sending via SMS. If sending sms via GPRS channel is open, it will send via GPRS, if
not, discard the message. bit6=1:open SMS sending.
bit5:Control sending SMS via GPRS , it stores in bit5 of set_flag .
bit5=0 : open sending SMS via GPRS . If GPS tracker is connected with server via
TCP,all .he SMS uploads via GPRS. bit5=1:Close sending sms via GPRS.
Default: bit765=111
bit65 meaning:
bit6 bit5
1 1 Normal Mode. SMS and GPRS are completely independent channels, SMS
information via SMS upload, GPRS information via GPRS upload; alarm
information via SMS and GPRS le uploading.
1 0 Open sending SMS via GPRS. If GPRS is online, then sends via GPRS
GPRS is busy then send via SMS.
0 1 Close SMS uploading. SMS can receive only, does not send.
The message sends via SMS cannot get reply.
0 0 Open sending sms via GPRS. Close SMS uploading channel.
bit4:GPS message output control, it stores in bit 6 of Control_stat 的 bit6, can check through
S26.
bit4=0:Open GPS message output control. bit4=1:close GPS output control.Default:bit4=1
bit3:GPS sleep control
bit3=0:open GPS sleep. ACC ON, GPS works; ACC off, GPS sleep.
bit3=1:close GPS Sleep. GPS always work. Default bit3=1
bit210:Undefined, must be 1.
Set2:bit7-0:Undefined, must be 1
Example: *HQ,0000000000,S4,130305,9F,FF#
9F=10011111,bit765=100,means close security alarm control, close sms uploading, open
GPRS uploading, close GPS message output control.
Reply:
*HQ,2020916012,V4,S4,9F,FF,130305,050315,A,2212.8745,N,11346.6574,E,14.28,028,220
902, FFFFFBFF#
Example: *HQ,000,S17,130305,5,4#
Reply:
*HQ,2020916012,V4,S17,130305,050316,A,2212.8745,N,11346.6574,E,14.28,028,220902,F
FFFFBFF#
Default:Interval=30,batch=1。
Example:*HQ,0000000000,S19, 130305,A3,5,3,0#
Reply:
*HQ,2020916012,V4,S19,130305,050316,A1,0,0,0,A2,1,30,1,A3,5,3,0,A4,4,10,0,A5,0,0,0,A6,
3,1,0,A7,3,10,0,A8,0,0,0#
Example:*HQ,0000000000,S19, 130305,A0,5,3,0#
Reply:
*HQ,2020916012,V4,S19,130305,050316,A1,0,0,0,A2,0,0,0,A3,0,0,0,A4,0,0,0,A5,0,0,0,A6,0,
0,0,A7,0,0,0,A8,0,0,0#
Example:*HQ,0000000000,S24,130305,2,HQit.gd#
Reply:
*HQ,2020916012,V4,S24,HQit.gd,130305,050316,A,2212.8745,N,11346.6574,E,14.28,028,2
20902,FFFFFBFF#
*XX,YYYYYYYYYY,S25,HHMMSS#
Default:
Automatic monitoring: Disable
Automatic monitoring interval: 0 (65,536 seconds)
Group number: 0 (public )
Speed limit: Cancel
Turn off electricity and oil function: prohibit
Geo-fence: cancel
Cancel user-defined alarm
Allow call comes in
APN:CMNET
21. Read Vehicle Status S26
*XX,YYYYYYYYYY,S26,HHMMSS#
Reply:
*XX,YYYYYYYYYY,V4,S26,hhmmss,HHMMSS,Set_flag,S17_time,Group_id,Max_speed,Min
_speed,Speed_continue,Bound_continue,Control_stat,Usr_def_flag,Block_flag1,Block_flag2,
…Block_flag8,IP_addr, vehicle_status#
(,Usr_alarm_flag#)
S17_time:Uploading interval
Group_id:Grouping number
Max_speed:Maximum speed
Min_speed:Minimum speed
Speed_continue:Lasting time of limit speed alarm
Bound_continue:geo-fence alarm lasting time
User_def_flag:whether user customize alarm ,bit0-bit7 corresponding to A1-A8
Example:*HQ,0000000000,S26,130305#
Reply:
*HQ,2020916012,V4,S26,130305,050316,FF,0,0,0,0,0,0,E0,FF,FF,FF,FF,FF,FF,FF,FF,FF,0.0.
0.0,FFFFFBFF#,FE#