KHD KG100 User manual

WWW.KHD.HK GPRS Communication Standard Protocol
GPRS Communication Protocol
Between GPS Tracker and Server
version V2.02
KG100/KG200/KG300/KC200
Change Version
Change Record Date
V1.00 Build file 2008-8-21
by George
V1.01 Add parking overtime with time 2008-10-23
By George
V1.02 Change sign in to illegal ignition and add illegal ignition
alarm
2008-10-23
By George
V1.10 Add user define alarm bit in alarm info 2008-12-16
By George
V1.20 Change fatigue drive alarm mode, add clear value for illegal
ignition alarm , add penetrate transmit data for serial 2-7
2009-3-16
By George
V1.28 Add acc status in 0x82 packet 2009-4-30
By JGShi
V1.41 Add remote update result upload A5 command. 209-7-21
By George
V2.00 Format change and add protocol for new functions in 108 2012.5-15
By liven
V2.01 Add 8E data description 2012.12-19
By Liven
V2.02 Add command 0x71, 0xA3, 0xD3,0xD4,0xD9,0xDA,
0xDB, 0xDC, Appendix1 Position Data.
2013.06-15
By Wayne

KHD GPS Tracker GPRS Communication Standard Protocol
Internal documents, forbidden copies in any form unless get company approved
2

KHD GPS Tracker GPRS Communication Standard Protocol
Internal documents, forbidden copies in any form unless get company approved
3
Content
I Command Format ......................................................................................... 5
II Command List ............................................................................................. 6
III Command Details ....................................................................................... 8
1. Login – 0xB1 ................................................................................................. 8
2. Login/Server Confirmation – 0x21 ................................................................... 8
3. One time track on demand – 0x30 ................................................................... 8
4. One time track on demand reply – 0x81 ........................................................... 9
5. Tracking by Interval (Acc_On) – 0x34 .............................................................. 9
6. Tracking by Interval (Acc_Off) – 0x70 .............................................................. 9
7. Track by Distance – 0x35 .............................................................................. 10
8. Position Data Upload (by Interval, distance) – 0x80 ........................................ 10
9. Blind Area Data re-Upload – 0x8E .................................................................. 10
10. Over speed Alarm Set – 0x3F ........................................................................ 11
11. Movement Alarm – 0xC7 ............................................................................... 11
12. Stop Engine (Remote Immobilize) – 0x39 ....................................................... 11
13. Recover Engine (Disable Immobilize) – 0x38 .................................................. 12
14. Listen in (Voice Monitoring) – 0x3E ................................................................ 12
15. Set Geo-Fencing – 0x46 ................................................................................ 12
16. Cancel Geo-Fencing – 0x47 ........................................................................... 13
17. Inquiry GEO Fencing – 0x48 .......................................................................... 13
18. Send Dispatch Info – 0x3A ............................................................................ 14
19. Delete Mileage – 0x66 .................................................................................. 14
20. Alarm Info – 0x82 ........................................................................................ 14
21. Cancel Alarm – 0x37 .................................................................................... 15
22. Set GPRS Parameters – 0xC1 ........................................................................ 15
23. Set Server IP and Port In Device – 0x69 ......................................................... 15
24. Set Reply – 0x85 .......................................................................................... 16
25. Illegal Ignition Set -0xC6 .............................................................................. 16
26. Device Factory Reset – 0xC3 ......................................................................... 17
27. Set Vehicle Idle Alarm – 0x4B ........................................................................ 17
28. Check Device Version – 0x3D ........................................................................ 17
29. Check Device Version Reply – 0x84 ................................................................ 18
30. Get Current Address – 0xA8 .......................................................................... 18
31. Get Current Address Reply – 0x72 ................................................................. 18
32. Remote Update Firmware – 0xD2 .................................................................. 19
33. Remote Update Firmware Result – 0xA5 ......................................................... 19
34. Camera Related Command – 0x28/0x65/0x26/0xAB ........................................ 20
35. Temperature alarm set – 0x71 ....................................................................... 20
36. Peripheral data info upload –0xA3 ................................................................. 20
37. Fuel level sensor Parameter Set – 0xD3 ......................................................... 21
38. Real-time tracking by Interval – 0xD4 ............................................................ 21

KHD GPS Tracker GPRS Communication Standard Protocol
Internal documents, forbidden copies in any form unless get company approved
4
39. Tracking compensation by angle – 0xD9 ......................................................... 22
40. Fatigue driving alarm set – 0xDA ................................................................... 22
41. Over Speed alarm and trig-time set – 0xDB .................................................... 23
42. Device odometer value set – 0xDC ................................................................ 24
Appendix 1 Position Data ............................................................................... 25
Appendix 2 Alarm Data .................................................................................. 28
Appendix 3 peripheral data ............................................................................ 29

KHD GPS Tracker GPRS Communication Standard Protocol
Internal documents, forbidden copies in any form unless get company approved
5
I Command Format
Commands format of GPRS Packets are defined as following:
From Server to Device:
))<Command(1byte)><L(2 bytes)><ID(4bytes)><Parameter(s)><Checksum>\r
From Device to Server:
))<Command(1byte)><L(2 bytes)><ID(4bytes)><data><Checksum>\r
Note:
1. Do not input ‘<’ and ‘>’ in the command content.
2. All Muti-byte data complies with the following sequence: High byte prior to the
low byte (Big Endian).
3. The size of one location data packet is about 50 bytes.
Item Specification
)) 2bytes. It is header for all correct packets. ‘))’ is ASCII code, in
hex code it is 0x29 0x29.
Command 1 byte. It is in hex code, every packet have one and only
command word. For detail, please refer to Part II Command
List
L 2 bytes. It means the length from Length byte (not include
length byte) to packet end, include the end byte. It is in hex
code.
ID 4bytes. It is in hex code. Every device has one and only ID, It is
calculate from the device SN.
For example: Suppose the device SN is: 29800298
Divide into 4 parts: 29 80 02 98
Convert to hex: 1D 50 02 62
Add 0x80 to 2nd,3rd part: 1D D0 82 62
Then you get the device ID: 1DD08262
Parameter/data
Minimum 0 byte, maxmum 200byte, see appendix 1 for data
description.
Checksum 1 bytes, it is xor checksum, for example:
if the packet is: 29 29 B1 00 07 0A 9F 95 38 0C 82 0D
0x82= 29 xor 29 xor B1 xor 00 xor 07 xor 0A xor 9F xor 95 xor
38 xor 0C
\r 1 bytes, it is end byte of package, in hex it is 0D

KHD GPS Tracker GPRS Communication Standard Protocol
Internal documents, forbidden copies in any form unless get company approved
6
II Command List
Command Page
1. Login – 0xB1............................................................................................. 8
2. Login/Server Confirmation – 0x21 .............................................................. 8
3. Track on Demand – 0x30 ........................................................................... 8
4. Track on Demand Reply – 0x81 .................................................................. 9
5. Track by Interval (motion) – 0x34 .............................................................. 9
6. Track by Interval (motionless) – 0x70 ......................................................... 9
7. Track by Distance – 0x35 ......................................................................... 10
8. Position Data Upload (by Interval, distance) – 0x80 .................................. 10
9. Blind Area Data re-Upload – 0x8E ............................................................ 10
10. Over speed Alarm Set – 0x3F ................................................................... 11
11. Movement Alarm – 0xC7 .......................................................................... 11
12. Stop Engine (Remote Immobilize) – 0x39 ................................................. 11
13. Recover Engine (Disable Immobilize) – 0x38 ............................................. 12
14. Listen in (Voice Monitoring) – 0x3E .......................................................... 12
15. Set Geo-Fencing – 0x46........................................................................... 12
16. Cancel Geo-Fencing – 0x47 ...................................................................... 13
17. Inquiry GEO Fencing – 0x48 .................................................................... 13
18. Send Dispatch Info – 0x3A ...................................................................... 14
19. Delete Mileage – 0x66 ............................................................................. 14
20. Alarm Info – 0x82 ................................................................................... 14
21. Cancel Alarm – 0x37 ............................................................................... 15
22. Set GPRS Parameters – 0xC1 ................................................................... 15
23. Set Server IP and Port In Device – 0x69 ................................................... 15
24. Set Reply – 0x85 ..................................................................................... 16
25. Illegal Ignition Set -0xC6 ......................................................................... 16
26. Device Factory Reset – 0xC3 .................................................................... 17
27. Set Vehicle Idle Alarm – 0x4B .................................................................. 17
28. Check Device Version – 0x3D ................................................................... 17
29. Check Device Version Reply – 0x84 .......................................................... 18
30. Get Current Address – 0xA8 ..................................................................... 18
31. Get Current Address Reply – 0x72 ............................................................ 18
32. Remote Update Firmware – 0xD2 ............................................................. 19
33. Remote Update Firmware Result – 0xA5 ................................................... 19

KHD GPS Tracker GPRS Communication Standard Protocol
Internal documents, forbidden copies in any form unless get company approved
7
34. Camera Related Command – 0x28/0x65/0x26/0xAB .................................. 20

KHD GPS Tracker GPRS Communication Standard Protocol
Internal documents, forbidden copies in any form unless get company approved
8
III Command Details
1. Login – 0xB1
Command: ))<0xB1><L><ID><reserved><Checksum><\r>
Description:
After your device installed properly, device will send this packet
to server for login. It will send every 30s, like heart beat.It
must be reply, If server does not give reply (see Login
confirmation), device will keep send this packet without any
other packet; after get reply, other commands start work.
Example: 29 29 B1 00 07 0A 9F 95 38 0C 82 0D
Note:
In example, the ID is 0A9F9538, change to device SN, it is
10312156. In <reserved> part 0x0C, we keep it as future use;
do not have certain meaning now.
2. Login/Server Confirmation – 0x21
Command: ))<0x21><L><receive package check sum><receive package
command><reserved><Checksum><\r>
Description: This command is send from server to device, to confirm some
information, like login, some important alarm, and so on.
Example: 29 29 21 00 05 82 B1 06 11 0D
Note:
The example is the confirmation for packet 29 29 B1 00 07 0A
9F 95 38 0C 82 0D, <receive package check sum> is 0x82,
<receive package command> is 0xB1, <reserved> part is
0x06.
3. One time track on demand – 0x30
Command: ))<0x30><L><ID><Checksum><\r>
Description:
This command will get current location data when you send,
and device only upload location data once. About the device
reply, See Reply.
Example: 29 29 30 00 06 0A 9F 95 38 0E 0D
Note: This command used when you want track manually, you can
send this command from software platform to device.

KHD GPS Tracker GPRS Communication Standard Protocol
Internal documents, forbidden copies in any form unless get company approved
9
4. One time track on demand reply – 0x81
Command: ))<0x81><L><ID><Position data><Checksum><\r>
Description:
Reply packet for track on demand command; send current
position, speed, and status data to server. From device to server.
About <Position data> description , please see Appendix 1
Positon data
Example: 29298100280A9F95380812281601310223943011403725000003
30FF0000007FFC0F00001E000000000034290D
Note: The data between <ID> and <Checksum> is Position data.
5. Tracking by Interval (Acc_On) – 0x34
Command: ))<0x34><L><ID><
Parameter
><Checksum><\r>
Description:
This is command for setting device upload by time interval
when ACC on. Our device default upload interval is 30s, you
can change or set it with this command, the content of
<parameter>
part is interval, and unit is second, in hex code.
After receive this command, device will give Set Reply. And
the packet send by interval to server see Position Data
Upload.
Example: 29 29 34 00 08 0A 9F 95 38
00 1E
1A 0D
Note: In this example, the interval is 001E, In decimal it is 30, so this
command will set the device upload with interval 30s.
6. Tracking by Interval (Acc_Off) – 0x70
Command: ))<0x70><L><ID><
Parameter
><Checksum><\r>
Description:
This is command for setting device upload by time interval
when ACC off. Our device default upload interval is 30s, you
can change or set it with this command, the content of
<parameter>
part is interval, and unit is second, in hex code.
After receive this command, device will give Set Reply. And
the packet send by interval to server see Position Data
Upload.
Example: 29 29 70 00 08 0A 9F 95 38
00 1E
5E 0D
Note: In this example, the interval is 001E, In decimal it is 30, so this
command will set the device upload with interval 30s.

KHD GPS Tracker GPRS Communication Standard Protocol
Internal documents, forbidden copies in any form unless get company approved 10
7. Track by Distance – 0x35
Command: ))<0x35><L><ID><
Parameter
><Checksum><\r>
Description:
This command set device upload when moving a certain
distance. In default device have close this function, use this
command to change the upload rule to distance interval. The
content of
<parameter>
part is distance interval; the unit of it
is meter, in hex code. After receive this command device will
send Set Reply, And the packet send by interval to server see
Position Data Upload.
Example: 29 29 35 00 08 0A 9F 95 38
00 64
61 0D
Note: In this example, the interval is 0064, in decimal it is 100, the
device will upload with interval 100m.
8. Position Data Upload (by Interval, distance) – 0x80
Command: ))<0x80><L><ID><data><Checksum><\r>
Description:
This packet is send from device to server, send by interval set
to device. In default, our device will send this packet every 30s
after login. About the <data> description, please see
Appendix 1 Positon data.
Example:
29 29 80 00 28 0A 81 85 0A 12 03 10 09 57 50 00 52 81 37 00
61 19 08 00 00 02 32 F8 48 FF BB FF FF 00 00 00 1E 00 00 00
00 00 00 ED 0D
Note: The data between <ID> and <Checksum> is Position data.
9. Blind Area Data re-Upload – 0x8E
Command: ))<0x8E><L><ID><data><Checksum><\r>
Description:
This packet is send from device to server, send by interval set
to device. In default, our device will send this packet every 30s
after login. About the <data> description, please see
Appendix 1 Positon data.
Example:
29 29 8E 00 28 0F 80 81 5A 12 12 18 20 31 16 02 23 18 46 11
40 22 70 00 72 02 62 FB 00 07 7C 7F BF 56 00 00 1E 3C 32 00
00 00 00 85 0D
Note: The data between <ID> and <Checksum> is Position data.

KHD GPS Tracker GPRS Communication Standard Protocol
Internal documents, forbidden copies in any form unless get company approved 11
10. Over speed Alarm Set – 0x3F
Command: ))<0x3F><L><ID><
Parameter
><Checksum><\r>
Description:
This packet sent form server to device. It set a speed limit to
device, when device speed up to or bigger than the limit,
device will give a over speed alarm. About the alarm content,
please see the Alarm Info. The unit for <parameter> is km/h
Example: 29 29 3F 00 07 0A 9F 95 38
32
Checksum(Xor) 0D
Note: In this command, the
<parameter>
is 0x32=50, means the
speed limit is 50km/h.
11. Movement Alarm – 0xC7
Command: ))<0xC7><L><ID><
Parameter
><Checksum><\r>
Description:
This command is send from server to device, to set a circle
area. When device go out of the circle, it will give a move
alarm. The unit of <parameter> is 10 meters. The reply for
command, please see Set Reply.
Example: 29 29 C7 00 07 0A 9F 95 38
0F
F7 0D
Note: In this example, the parameter is 0F=15, so the radum is 150
meter.
12. Stop Engine (Remote Immobilize) – 0x39
Command: ))<0x39><L><ID><Checksum><\r>
Description:
This command send from server to device, when receive this
command , device will give output control signal, normally we
use it control vehicle oil pump, user’s can use it control other
part of vehicle by this control output. The reply for this
command, please see Set Reply. Command for recover please
sees Recover Engine.
Example: 29 29 39 00 06 0A 9F 95 38 07 0D
Note:
This command will have physical operations to user’s
Car, please make two confirmation for this function in
software, to make sure operations to car is safe.

KHD GPS Tracker GPRS Communication Standard Protocol
Internal documents, forbidden copies in any form unless get company approved 12
13. Recover Engine (Disable Immobilize) – 0x38
Command: ))<0x38><L><ID><Checksum><\r>
Description: This command is undo action for command Stop Engine.
Device gives Set Reply after this command.
Example: 29 29 38 00 06 0A 9F 95 38 06 0D
Note: This command will cancel the stop engine status in position
data, and write 0x38 in V8 part.
14. Listen in (Voice Monitoring) – 0x3E
Command: ))<0x3E><L><ID><
Parameter
><Checksum><\r>
Description:
This command will request device make a one-way telephone
to the number in <parameter> part. Parameter part use
compressed BCD code. Device gives Set Reply for this
command.
Example: 29 29 3E 00 0D 0A 9F 95 38
07 55 61 52 45 81 FF
51 0D
Note:
For <parameter> part, it use Compressed BCD code to express
telephone number, if the length of the telephone number is a
odd number, need add F in the end, for example: number
13590251897 should express as: 13 59 02 51 89 7F; if the
length of the telephone number is a even number, need add FF
in the end, for example: number 075561524581 should be
expressed as 07 55 61 52 45 81 FF.
15. Set Geo-Fencing – 0x46
Command: ))<0x46><L><ID><
Parameter
><Checksum><\r>
Description:
This command will set Geo-Fences to device (only supported
by 103/108/269). Device checks if Geo-Fence alarm triggered.
Device give Set Reply to this command.
Example:
29 29 46 00 3D 0A 9F 95 38
03 02 23 39 95 11 35 88 69 02
23 21 23 11 40 15 84 00 00 02 23 18 95 11 40 27 79 02
23 09 81 11 40 43 03 01 00 02 23 28 84 11 40 36 03 02
23 23 51 11 40 56 22 02 00
6C 0D
Note:
In example, it have set 3 Geo-fences, the meaning of the
parameters shows below:
03
//Geo-fences quantities, in this example have 3 Areas.
02 23 39 95
//1st Geo-Fence. Latitude for upper left corner
It is 22°33.995′

KHD GPS Tracker GPRS Communication Standard Protocol
Internal documents, forbidden copies in any form unless get company approved 13
11 35 88 69
//1
st
Geo-Fence. Longitude for upper left corner
It is 113°58.869′
02 23 21 23
//1st Geo-Fence. Latitude for lower right corner
It is 22°32.123′
11 40 15 84
//1st Geo-Fence. Longitude for lower right corner
It is 114°1.584′
00
//Geo-Fence number, 1st one start with 00
00
//Alarm type, 0x00 means in region alarm
0x01 means out region alarm
0x02 means alarm when both in/out alarm
0x03 means forbidden alarm
02 23 18 95
//2nd Geo-Fence. Latitude for upper left corner
11 40 27 79
//2nd Geo-Fence. Longitude for upper left corner
02 23 09 81
//2nd Geo-Fence. Latitude for lower right corner
11 40 43 03
//2nd Geo-Fence. Longitude for lower right corner
01
//Geo-Fence number, 2nd one.
00
//Alarm types. 0x00 means in region alarm.
02 23 28 84
//3rd Geo-Fence. Latitude for upper left corner
11 40 36 03
//3rd Geo-Fence. Longitude for upper left corner
02 23 23 51
//3rd Geo-Fence. Latitude for lower right corner
11 40 56 22
//3rd Geo-Fence. Longitude for lower right corner
02
//Geo-Fence number, 3rd one.
00
//Alarm type, 0x00 means in region alarm.
16. Cancel Geo-Fencing – 0x47
Command: ))<0x47><L><ID><Checksum><\r>
Description: This command sends from server to device. It will delete all the
Geo-Fences set in device.
Example: 29 29 47 00 06 0A 9F 95 38 79 0D
Note: Device sends Set Reply to server after this command.
17. Inquiry GEO Fencing – 0x48
Command: ))<0x48><L><ID><Checksum><\r>
Description: This command sends from server to device. Device will reply
Geo-Fences set in device.
Example: 29 29 48 00 06 0A 9F 95 38 76 0D
Note: Device reply 0x94 packet.

KHD GPS Tracker GPRS Communication Standard Protocol
Internal documents, forbidden copies in any form unless get company approved 14
18. Send Dispatch Info – 0x3A
Command: ))<0x3A><L><ID><
info content
><Checksum><\r>
Description:
This command sends from server to device. It used in device
which have dispatch LCD installed, control Center send this
command to device to inform driver next mission or else.
Device will show it in LCD when receive it from control center.
Device will give Set Reply after receive this command.
Example: 29 29 3A 00 12 0A 9F 95 38
68 65 6C 6C 6F 2C 77 6F 72 6C
64 21
1D 0D
Note: In this example, we send “hello, world!” to device, the
parameter is the ASCII code of “hello, world!” in hex.
19. Delete Mileage – 0x66
Command: ))<0x66><L><ID><Checksum><\r>
Description: This command sends from server to device. It will clear the
mileage calculated by your device, and restart from 0.
Example: 29 29 66 00 06 0A 9F 95 38 58 0D
Note: Device will give Set Reply after this command.
20. Alarm Info – 0x82
Command: ))<0x82><L><ID><
Data
><Checksum><\r>
Description:
This command sends from device to server. It is alarm data,
this packet need deal with in the first class. This command
words is for important and emergency situation.
Example:
29 29 82 00 23 0A A2 CC 39
12 05 03 05 05 22 02 85 94 79
03 10 95 50 00 80 02 07 84 00 00
00 02 00 00 00 00 00
00
75 0D
Note:
About the instruction for the <data> the parse shows below:
12 05 03 05 05 22 02 85 94 79 03 10 95 50 00 80 02 07
84 00 00
this 21 byte data check in section Appendix 1
Position Data please;
00 02 00
this part is alarm status data, please check the
instruction in section Appendix 2 Alarm Data; for this
example, it is over speed alarm happens.
00 00 00 00 00
this part is alarm parameters data, please
check the instruction in section Appendix 2 Alarm Data;

KHD GPS Tracker GPRS Communication Standard Protocol
Internal documents, forbidden copies in any form unless get company approved 15
21. Cancel Alarm – 0x37
Command: ))<0x37><L><ID><Checksum><\r>
Description:
This command is sends from server to device, it will clear the
alarm status in device, and the alarm status will clear to 0. And
it only be reset when alarm status happens again.
Device will reply Set Reply after this command.
Example: 29 29 37 00 06 0A 9F 95 38 09 0D
Note:
This command only clear the alarm status happens before, if
the alarm status is continuously, like overspeed alarm, if you
speed not low down, it will keep sending this overspeed alarm.
22. Set GPRS Parameters – 0xC1
Command: ))<0xC1><L><ID><
Parameter
><Checksum><\r>
Description:
This command sends from server to device. It will change
current APN, APN User,APN Password set in device. Devices
reply Set Reply after this command.
Example: 29 29 C1 00 17 0A 9F 95 38
22 43 4D 4E 45 54 2C 67 70 72
73 2C 67 70 72 73 22
BF 0D
Note:
The parameter part is in ASCII code, in example:
22 43 4D 4E 45 54 2C 67 70 72 73 2C 67 70 72 73 22
Means:”CMNET,gprs,gprs”
23. Set Server IP and Port In Device – 0x69
Command: ))<0x69><L><ID><
Parameter
><Checksum><\r>
Description:
This command sends from server to device. It will change
current server IP and PORT set in device. Device reply Set
Reply after this command.
Example: 29 29 69 00 1C 0A 9F 95 38
22 31 32 31 2E 30 33 37 2E 30
35 39 2E 32 31 37 22 2C 37 37 37 37
41 0D
Note:
Parameter part is in ASCII code. In the example, the
<parameter> part:
22 31 32 31 2E 30 33 37 2E 30 35 39
2E 32 31 37 22 2C 37 37 37 37
means: ”121.037.059.217”,7777
Remark:
The IP data head and tail contain a double quotation marks.

KHD GPS Tracker GPRS Communication Standard Protocol
Internal documents, forbidden copies in any form unless get company approved 16
24. Set Reply – 0x85
Command: ))<0x85><L><ID><
Data
><Checksum><\r>
Description:
This package sends from device to server, for reply most of the
commands send from server to device. It will put the command
words of packet it reply for in the last byte of <data> part. The
detail description of <Data> part please find in Appendix 1
Position Data.
Example:
29 29 85 00 08 1D D0 8C 22
12 03 12 17 40 26 02 65 45 71
03 12 54 17 00 00 00 00 F8 19 C8 39 FF FF 1D 00 00 1E
00 50 00 00 00 3A
F9 0D
Note: In this example, the last byte of <Data> part is 0x3A, so it is a
reply packet for Send Dispatch Info.
25. Illegal Ignition Set -0xC6
Command: ))<0xC6><L><ID><
Parameter
><Checksum><\r>
Description:
This command sends from server to device. It will define time
period when vehicle can’t be started, if detect the device
started in forbidden time period; device will give an alarm
Illegal Ignition. Every device can set 10 time period in device.
Device give Set Reply after receive this command.
Example: 29 29 C6 00 13 0A 9F 95 38
01 0C 01 01 01 14 00 0C 0C 1F
00 17 3B
C0 0D
Note:
In this example, the <parameter> part should be parse like
this:
01
// the serial number of time period, from 0x01~0x0A.
0C 01 01 01 14 00
// this is start time. First byte 0x0C is year,
system need add 2000 to this part, so the value range of year
is 2000~2255, so 0x0C means 2012; second byte 0x00 is for
month, value range is 01~0C, in example 0x01 means JAN; the
third byte 0x01 is day, value range is 01~1F; the fourth byte
0x01 means week, value range is 1~7, 7 means Sunday; the
fifth byte means hour, value range is 0~17h, 0x14 means
20:00; the last byte is min, value range is 0~3B.
0C 0C 1F 06 17 3B
// this is end time, define is the same
with start time.
When set year month week day set to 0, means device do not
check that part, just check time.

KHD GPS Tracker GPRS Communication Standard Protocol
Internal documents, forbidden copies in any form unless get company approved 17
26. Device Factory Reset – 0xC3
Command: ))<0xC3><L><ID><Checksum><\r>
Description:
This command sends from server to device, command will
recover all the settings except IP/PORT/APN/APN user/APN
password to device include time interval, over speed setting,
and mileage and so on to factory set. Device give Set Reply
after receive this command.
Example: 29 29 C3 00 06 0A 9F 95 38 FD 0D
Note: Attention, this command will clear all the alarm settings and
mileage count data, be careful when send this command.
27. Set Vehicle Idle Alarm – 0x4B
Command: ))<0x4B><L><ID><
Parameter
><Checksum><\r>
Description:
This command sends from server to device, it will set a time
during to device, if device detect that the vehicle is engine on
and speed<10km/h for the time during set or longer, device
will send a vehicle Idle alarm. You can find the alarm packet in
Alarm Info, and find alarm status instruct in Appendix 2
Alarm data.
Example: 29 29 4B 00 07 0A 9F 95 38
14
60 0D
Note: The parameter unit is minute, in this example, 0x14 means 20
minutes.
28. Check Device Version – 0x3D
Command: ))<0x3D><L><ID><Checksum><\r>
Description:
This command sends from server to device, to check the
firmware version of device. Device will reply 0x84 to this
command.
Example: 29 29 3D 00 06 0A 9F 95 38 03 0D
Note:
This command is for firmware version check only. For some
basic mode of tracker like 101A, old version of firmware may
do not support this command.

KHD GPS Tracker GPRS Communication Standard Protocol
Internal documents, forbidden copies in any form unless get company approved 18
29. Check Device Version Reply – 0x84
Command: ))<0x84><L><ID><
Data
><Checksum><\r>
Description:
This command is reply for firmware check, send from device to
server. <Data> part is firmware version of this device, in ASCII
code.
Example:
29 29 84 00 31 0A A2 8A 07
54 33 36 30 2D 31 30 33 41 57
28 47 54 4D 29 56 32 2E 30 31 20 40 20 53 65 70 20 32
33 20 32 30 31 31 20 31 32 3A 34 38 3A 31 38
CF 0D
Note: In this example, the firmware version of this device is :
T360-103AW(GTM)V2.01 @ Sept. 23 2011 12:48:18
30. Get Current Address – 0xA8
Command: ))<0xA8><L><ID><
Data
><Checksum><\r>
Description:
This command is used when customer need to get detail
address, like building, street, city. With our 101A and 101E
device. Customer can send SMS command: AS1234WHERE1#
to device, device sends this command to server to require
address from server. About the reply please see Get Current
Address Reply.
Example:
29 29 A8 00 28 0A A2 8A 07
12 03 12 17 40 26 02 65 45 71
03 12 54 17 00 00 00 00 F8 19 C8 39 FF FF 1D 00 00 1E
00 50 00 00 00 00
95 0D
Note: The <Data> part is current position data, you can check the
instruct about it in Appendix1 Position Data.
31. Get Current Address Reply – 0x72
Command: ))<0x72><L><ID><
Data
><Checksum><\r>
Description:
This command is reply for address requirement 0xA8, the
address is <Data> part, coding in Unicode. Device will get the
<Data> part of address and send SMS to the customers mobile
phone who require the address.
Example:
29 29 72 00 5B 0A A2 8A 07
00 00 54 00 65 00 6D 00 61 00
20 00 2D 00 20 00 53 00 61 00 64 00 66 00 61 00 2C 00
20 00 53 00 61 00 6C 00 61 00 6D 00 6F 00 75 00 6E 00
2C 00 20 00 4D 00 61 00 72 00 6B 00 61 00 7A 00 20 00
54 00 61 00 6D 00 61 00 2C 00 20 7D 22 54 C8 67 70
57 C3 53 CA
89 0D
Note: In this example, the address get from server is :

KHD GPS Tracker GPRS Communication Standard Protocol
Internal documents, forbidden copies in any form unless get company approved 19
Tema – Sadfa, Salamoun, Markaz Tema, 索哈杰埃及
32. Remote Update Firmware – 0xD2
Command: ))<0xD2><L><ID><
Data
><Checksum><\r>
Description:
This command is used for update firmware by GPRS. It is used
when device have new function or bugs need be fixed
remotely. When received this command device will check and
connect to certain update TFTP sever to download the new
firmware file then update. Device will give Set Reply after
receive this command.
Example:
29 29 D2 00 2D 0A A2 8A 07
01 31 32 31 2E 30 33 37 2E 30
35 39 2E 32 31 37 22 C1 6E 65 77 2E 62 69 6E 00 00 00
00 00 00 00 00 00 00 00 00 00 00
2F 0D
Note:
The <data> part in the example parsed as below:
01
//Update type, if it is 0x00, then cancel update; when it is
0x01 then force update.
31 32 31 2E 30 33 37 2E 30 35 39 2E 32 31 37
//update
server IP: 121.037.059.217; 15 bytes of data in ASCII code.
22 C1
//Update server port:8897 ; data is Big Endian
6E 65 77 2E 62 69 6E 00 00 00 00 00 00 00 00 00 00 00
00 00 00
//file names: new.bin, 20bytes (add 00 when less
than 20 bytes), in ascii code.
33. Remote Update Firmware Result – 0xA5
Command: ))<0xA5><L><ID><
Data
><Checksum><\r>
Description:
This command is uploading by device. After firmware update,
device will upload this packet to software, to show update
successful or not. The flag for successful is in the last byte of
<Data> part, when it is 0x00, it means update successful, if it
is not 0x00, means update failed.
Example:
29 29 A5 00 28 0A A2 8A 07
12 03 12 17 40 26 02 65 45 71
03 12 54 17 00 00 00 00 F8 19 C8 39 FF FF 1D 00 00 1E
00 50 00 00 00 00
98 0D
Note:
The <Data > part is position data, the last byte of it is 0x00, it
is V8 of position data. In this command it means update
successful.

KHD GPS Tracker GPRS Communication Standard Protocol
Internal documents, forbidden copies in any form unless get company approved 20
34. Camera Related Command – 0x28/0x65/0x26/0xAB
Please refer to file <<KHD Take Photo Protocol V1.0>>.
35. Temperature alarm set – 0x71
Command: ))<0x71><L><ID><
Parameter
><Checksum><\r>
Description:
This command is used to configure the temperature abnormal
alarm parameter.
Example: 29 29 71 00 0B 0A 9F 95 38
Byte1 Byte2 Byte3
Byte4
Byte5
Xor 0D
Note:
1).
Byte1
: Temperature abnormal alarm enable/disable mark
byte. Example, Byte1=0x00 disable, Byte1=0x01 enable.
Byte2Byte3
: Temperature upper limit value, unit 1/10℃.
Signed short integer, the MSB used to be a sign bit.
Example, Byte2Byte3=0x0123=291, so it means the upper
temperature limit is 291/10=29.1℃.
Byte4 Byte5
: Temperature drop limit value, unit 1/10℃.
Signed short integer, the MSB used to be a sign bit.
Example,
Byte4Byte5=0x8123=-291, so it means the drop
temperature limit is -291/10=-29.1℃.
2).
Device reply by command 0x85, and set data field V8=0x71 to
indicate ACK.
Remark: Only connected temperature sensor will have this
function. Default enable.
36. Peripheral data info upload –0xA3
Command: ))<0XA3><L><ID><
Parameter
><Checksum><\r>
Description:
This packet will be send from device to server by set interval
time to replace the command packet 0x80 when device has
connected peripheral unit like fuel tank sensor, temperature
sensor etc. Anyway, this packet equal 0x80 packet, but added
peripheral sensor data.
Other manuals for KG100
1
This manual suits for next models
3
Table of contents
Other KHD GPS manuals
Popular GPS manuals by other brands

Advanced Elements
Advanced Elements AF-3500s User guide and installation manual

Magellan
Magellan RoadMate 1200 - Automotive GPS Receiver Handleiding

Magellan
Magellan RoadMate 3030 user manual

Raymarine
Raymarine RC435i Owner's handbook

Motorola
Motorola TN20 - MOTONAV - Automotive GPS Receiver user guide

SkyGolf
SkyGolf SkyCaddie SG3.5 user guide