KHD KG100 Manual

Gprs communication protocol between gps tracker and server
Hide thumbs Also See for KG100:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the KG100 and is the answer not in the manual?

Questions and answers

Summary of Contents for KHD KG100

  • Page 1 GPRS Communication Standard Protocol WWW.KHD.HK GPRS Communication Protocol Between GPS Tracker and Server version V2.02 KG100/KG200/KG300/KC200 Change Version Change Record Date 2008-8-21 V1.00 Build file by George 2008-10-23 Add parking overtime with time V1.01 By George Change sign in to illegal ignition and add illegal ignition 2008-10-23 V1.02...
  • Page 2 KHD GPS Tracker GPRS Communication Standard Protocol Internal documents, forbidden copies in any form unless get company approved...
  • Page 3: Table Of Contents

    KHD GPS Tracker GPRS Communication Standard Protocol Content I Command Format ..................5 II Command List ..................... 6 III Command Details ..................8 Login – 0xB1 ....................8 Login/Server Confirmation – 0x21 ..............8 One time track on demand – 0x30 ..............8 One time track on demand reply –...
  • Page 4 KHD GPS Tracker GPRS Communication Standard Protocol 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 ................
  • Page 5: I Command Format

    KHD GPS Tracker GPRS Communication Standard Protocol 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.
  • Page 6: Command List

    KHD GPS Tracker GPRS Communication Standard Protocol 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.
  • Page 7 KHD GPS Tracker GPRS Communication Standard Protocol 34. Camera Related Command – 0x28/0x65/0x26/0xAB ........20 Internal documents, forbidden copies in any form unless get company approved...
  • Page 8: Command Details

    KHD GPS Tracker GPRS Communication Standard Protocol III Command Details 1. Login – 0xB1 Command: ))<0xB1><L><ID><reserved><Checksum><\r> After your device installed properly, device will send this packet to server for login. It will send every 30s, like heart beat.It Description: must be reply, If server does not give reply (see...
  • Page 9: One Time Track On Demand Reply - 0X81

    KHD GPS Tracker GPRS Communication Standard Protocol 4. One time track on demand reply – 0x81 Command: ))<0x81><L><ID><Position data><Checksum><\r> Reply packet for track on demand command; send current position, speed, and status data to server. From device to server. Description: About <Position data>...
  • Page 10: Track By Distance - 0X35

    KHD GPS Tracker GPRS Communication Standard Protocol 7. Track by Distance – 0x35 ))<0x35><L><ID>< Parameter ><Checksum><\r> Command: 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>...
  • Page 11: Over Speed Alarm Set - 0X3F

    KHD GPS Tracker GPRS Communication Standard Protocol Over speed Alarm Set – 0x3F ))<0x3F><L><ID>< Parameter ><Checksum><\r> Command: This packet sent form server to device. It set a speed limit to device, when device speed up to or bigger than the limit, Description: device will give a over speed alarm.
  • Page 12: Recover Engine (Disable Immobilize) - 0X38

    KHD GPS Tracker GPRS Communication Standard Protocol 13. Recover Engine (Disable Immobilize) – 0x38 Command: ))<0x38><L><ID><Checksum><\r> This command is undo action for command Stop Engine. Description: Device gives Set Reply after this command. Example: 29 29 00 06 0A 9F 95 38...
  • Page 13: Cancel Geo-Fencing - 0X47

    KHD GPS Tracker GPRS Communication Standard Protocol 11 35 88 69 //1 Geo-Fence. Longitude for upper left corner It is 113°58.869′ 02 23 21 23 //1 Geo-Fence. Latitude for lower right corner It is 22°32.123′ 11 40 15 84 //1 Geo-Fence.
  • Page 14: Send Dispatch Info - 0X3A

    KHD GPS Tracker GPRS Communication Standard Protocol 18. Send Dispatch Info – 0x3A ))<0x3A><L><ID>< info content ><Checksum><\r> Command: This command sends from server to device. It used in device which have dispatch LCD installed, control Center send this Description: command to device to inform driver next mission or else.
  • Page 15: Cancel Alarm - 0X37

    KHD GPS Tracker GPRS Communication Standard Protocol 21. Cancel Alarm – 0x37 Command: ))<0x37><L><ID><Checksum><\r> 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 Description: it only be reset when alarm status happens again.
  • Page 16: Set Reply - 0X85

    KHD GPS Tracker GPRS Communication Standard Protocol 24. Set Reply – 0x85 ))<0x85><L><ID>< Data ><Checksum><\r> Command: This package sends from device to server, for reply most of the commands send from server to device. It will put the command Description: words of packet it reply for in the last byte of <data>...
  • Page 17: Device Factory Reset - 0Xc3

    KHD GPS Tracker GPRS Communication Standard Protocol 26. Device Factory Reset – 0xC3 Command: ))<0xC3><L><ID><Checksum><\r> This command sends from server to device, command will recover all the settings except IP/PORT/APN/APN user/APN Description: password to device include time interval, over speed setting, and mileage and so on to factory set.
  • Page 18: Check Device Version Reply - 0X84

    KHD GPS Tracker GPRS Communication Standard Protocol 29. Check Device Version Reply – 0x84 ))<0x84><L><ID>< Data ><Checksum><\r> Command: This command is reply for firmware check, send from device to Description: server. <Data> part is firmware version of this device, in ASCII code.
  • Page 19: Remote Update Firmware - 0Xd2

    KHD GPS Tracker GPRS Communication Standard Protocol Tema – Sadfa, Salamoun, Markaz Tema, 索哈杰埃及 32. Remote Update Firmware – 0xD2 Command: ))<0xD2><L><ID>< Data ><Checksum><\r> This command is used for update firmware by GPRS. It is used when device have new function or bugs need be fixed remotely.
  • Page 20: Camera Related Command - 0X28/0X65/0X26/0Xab

    KHD GPS Tracker GPRS Communication Standard Protocol 34. Camera Related Command – 0x28/0x65/0x26/0xAB Please refer to file << >>. KHD Take Photo Protocol V1.0 Temperature alarm set – 0x71 Command: ))<0x71><L><ID>< Parameter ><Checksum><\r> This command is used to configure the temperature abnormal Description: alarm parameter.
  • Page 21: Fuel Level Sensor Parameter Set - 0Xd3

    KHD GPS Tracker GPRS Communication Standard Protocol Location_info Peripheral_data 29 29 0A 9F 95 38 Example: Note: Location_info : Please see Appendix 1 Positon data. Peripheral_data : see Appendix 3 peripheral data. 37. Fuel level sensor Parameter Set – 0xD3 ))<0xD3><L><ID><...
  • Page 22: Tracking Compensation By Angle - 0Xd9

    KHD GPS Tracker GPRS Communication Standard Protocol info upload times. Example, Byte1Byte2=0x0064=100, means that device will upload location point info by Byte3Byte4 interval and up to 100 times, this command will be lose efficacy. Expressly, Byte1Byte2=0x0000 means stop the real-time...
  • Page 23: Over Speed Alarm And Trig-Time Set - 0Xdb

    KHD GPS Tracker GPRS Communication Standard Protocol 29 29 00 0A 0A 9F 95 38 Byte1 Byte2 Byte3 Byte4 Example: Byte1 Byte2 : Maximum driving time limit, unit minute. Example Byte1Byte2=0x0102 (0x0102=258), means the max driving time limit is 258minutes.
  • Page 24: Device Odometer Value Set - 0Xdc

    KHD GPS Tracker GPRS Communication Standard Protocol Device odometer value set – 0xDC ))<0xDC><L><ID>< Parameter ><Checksum><\r> Command: This command is used to set the device odometer value. Description: Example: 29 29 00 08 0A 9F 95 38 Byte1 Byte2 Byte1 Byte2 : The device odometer value setting, unit Km, unsigned short integer.
  • Page 25: Appendix 1 Position Data

    KHD GPS Tracker GPRS Communication Standard Protocol Appendix 1 Position Data There have 2 kinds of Position data, one is for normal position data, and another is for alarm data (such as 0x82). 1. ymdhms wwww jjjj ssff st lichen1 lichen2 lichen3 st1st2st3st4 v1v2v3v4v5v6v7v8...
  • Page 26 KHD GPS Tracker GPRS Communication Standard Protocol Use compressed BCD code. For example: 120km/h express as: 01H, 20H Direction range: 000-359° Direction Use compressed BCD code, true North is 02 07 0°, clockwise counting. The unit is degree. For example: 154°express as: 01H, 54H 02 07 means 207°.
  • Page 27 KHD GPS Tracker GPRS Communication Standard Protocol alarm 0 out area alarm 0~31 meter 0 alarm happen 0 no taxi meter 1 user define (4) no 1 normal 1 have broadcast alarm 0 in area alarm 0 no voice 0 alarm happen...
  • Page 28: Appendix 2 Alarm Data

    KHD GPS Tracker GPRS Communication Standard Protocol GPS/antenna /power 0 Unlocated 1 Located status 0 do not use DGPS 1 have use DGPS reserved Satellite number received by device. 0~15 In the example 84 =10000100, means located/do not use DGPS/4 satellites visiable Empty-loaded status Use compress BCD code, 1 = load;...
  • Page 29: Appendix 3 Peripheral Data

    KHD GPS Tracker GPRS Communication Standard Protocol alarm alarm Illegal ignition Panic alarm Reserved alarm 1 means alarm happen; 0 means no alarm. So 00H 02H 00H = 00000000B 00000010B 00000000B means over speed alarm; 00H 00H 04H = 00000000B 00000000B 00000100B means Temperature Abnormal.
  • Page 30 KHD GPS Tracker GPRS Communication Standard Protocol 0x07 Reserve. 0x08 Reserve. 0x09 0x0A Reserve. 0x0B Reserve. 0x0C Reserve. ℃. Temperature value. Bit15: signed mark, Bit0-14: value. The unit is 0.1 0x0D ℃ ℃. For example: 0x000A = 1 , 0x800A=-1 0x0E Fuel tank level percent: 0-100%.

This manual is also suitable for:

Kg200Kc200Kg300

Table of Contents