meiligao gprs communication protocol between gps tracker ... gt30i_meiligao... · meiligao gprs...

Download Meiligao GPRS Communication Protocol Between GPS Tracker ... GT30i_meiligao... · Meiligao GPRS Communication…

Post on 07-Mar-2019

212 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

Meiligao GPRS Communication Protocol

Between GPS Tracker and Server

Version 2.00

GT30i

GT60

VT300

VT310

VT400

Change Version Reason of Change Date

V1.00 Initial Document 2005-6-25

V1.01 Addition of Alarms 2006-10-8

V1.02 Addition of Output Control

Addition of Stats in GPRS String

2007-1-26

V1.03 Add command 4107/4207/4126/4130/4131/4132/9016

VT310 integrated

Change 4116

Delete 9014

2008-7-10

V1.04 Add 5114

Add AD of VT310

2008-12-2

V1.05 Add Power-cut Alarm

Add Buzzer Control for GT60

2009-02-04

V1.06 Add 9001 to get SN and IMEI

Add 5101/5115/5199

2009-3-18

V1.07 Add 4136 2009-08-03

V1.45 Change 4136

Add 4902/5503

2009-09-15

V1.46 Wording Correction 2010-06-03

V1.47 Delete GT30/GT30X. Add GT30i 2010-07-15

V2.0 Delete 4107/4207

Modify 4106/4113/4116/9999/Annex 1(base ID, CSQ, journey)

Add 4135/4155/4302/4303/4351

2011-02-19

Add 4150 2011-04-14

- 2 -

I. Command Format

Command format of GPRS packets are as follows:

From server to tracker:

@@\r\n

From tracker to server:

$$\r\n

Note:

Do NOT input when writing a command.

All multi-byte data complies with the following sequence: High byte prior to low byte.

The size of a GPRS packet (including data) is about 100 bytes.

Item Specification

@@ 2 bytes. This is the header of packet from server to tracker. It is in ASCII code. (Hex code: 0x40)

$$ 2 bytes. This is the header of packet from tracker to server, It is in ASCII code. (Hex code: 0x24)

L 2 bytes. This is the length of the whole packet including the header and ending character and it is in

hex code.

ID 7 bytes, ID must be in digits and not over 14 digits, the unused byte will be stuffed by f or 0xff. It

is in the format of hex code.

For example, if ID is 13612345678, then it will be shown as follows: 0x13, 0x61, 0x23, 0x45, 0x67,

0x8f, 0xff.

If all 7 bytes are 0xff, it is a broadcasting command. ID is in hex code.

command 2 bytes. The command code is in hex code. Please refer to the command list below.

data Min 0 byte and max 100 bytes.

See Annex 1 for description of data.

checksum 2 bytes. It indicates CRC-CCITT (default is 0xffff) checksum of all data (not including CRC itself and

the ending character). It is in hex code.

For example:

24 24 00 11 13 61 23 45 67 8f ff 50 00 05 d8 0d 0a

0x05d8 = CRC-CCITT (24 24 00 11 13 61 23 45 67 8f ff 50 00)

\r\n 2 bytes. It is the ending character and in hex code. (0x0d,0x0a in hex code)

- 3 -

II. Command List

Command Page

1. Login 0x5000 .................................................................................................................... - 4 -

2. Login Confirmation 0x4000 ................................................................................................. - 4 -

3. Track on Demand 0x4101 .................................................................................................. - 4 -

4. Track by Interval 0x4102 ................................................................................................... - 4 -

5. Authorization 0x4103......................................................................................................... - 5 -

6. Speeding Alarm 0x4105 ..................................................................................................... - 5 -

7. Movement Alarm 0x4106 ................................................................................................... - 6 -

8. Extended Settings 0x4108 .................................................................................................. - 6 -

9. Initialization 0x4110 .......................................................................................................... - 7 -

10. Sleep Mode 0x4113 ......................................................................................................... - 8 -

11. Output Control (Conditional) 0x4114 or 0x5114 .................................................................. - 8 -

12. Output Control (Immediate) 0x4115 .................................................................................. - 9 -

13. Triggered Alarms 0x4116 ................................................................................................ - 10 -

14. Power Down 0x4126 ....................................................................................................... - 11 -

15. Listen-in (Voice Monitoring) 0x4130 .................................................................................. - 11 -

16. Log by Interval 0x4131 ................................................................................................... - 12 -

17. Time Zone 0x4132.......................................................................................................... - 12 -

18. Set Sensitivity of Tremble Sensor 0x4135.......................................................................... - 12 -

19. Heading Change Report 0x4136 ....................................................................................... - 13 -

20. Set GPS Antenna Cut Alarm 0x4150 (For VT400 only) ......................................................... - 13 -

21. Set GPRS Parameters 0x4155 .......................................................................................... - 13 -

22. Set Geo-fence Alarm 0x4302 ............................................................................................ - 14 -

23. Track by Distance 0x4303 ............................................................................................... - 14 -

24. Delete Mileage 0x4351 .................................................................................................... - 15 -

25. Reboot GPS 0x4902 ........................................................................................................ - 15 -

26. Heartbeat 0x5199 .......................................................................................................... - 15 -

27. Clear Message Queue 0x5503 .......................................................................................... - 16 -

28. Get SN & IMEI 0x9001 .................................................................................................... - 16 -

29. Read Interval 0x9002 ..................................................................................................... - 16 -

30. Read Authorization 0x9003 .............................................................................................. - 16 -

31. Read Logged Data 0x9016 ............................................................................................... - 17 -

32. Alarms 0x9999 ............................................................................................................... - 17 -

Annex 1: Description of data .................................................................................................... - 19 -

- 4 -

III. Command Details

1. Login 0x5000

Command: $$

Description: After tracker is properly setup, it will apply for a GPRS connection by sending this login

command every 30 seconds to the server until the server confirms its login.

Example: 24 24 00 11 12 34 56 FF FF FF FF 50 00 8B 9B 0D 0A

Note: Tracker ID here is 123456 and same for the following examples.

2. Login Confirmation 0x4000

Command: @@\r\n

Description: Server sends this command back to the tracker to confirm trackers login.

Note: Flag (1 byte)

= 0x00, login fails and will try again;

= 0x01, login succeeded.

Example: 40 40 00 12 12 34 56 FF FF FF FF 40 00 01 A9 9B 0D 0A

3. Track on Demand 0x4101

Command: @@\r\n

Description: Get the current location of the tracker.

Example: 40 40 00 11 12 34 56 FF FF FF FF 41 01 67 D9 0D 0A

Response: $$\r\n

Example: 24 24 00 60 12 34 56 FF FF FF FF 99 55 30 33 35 36 34 34 2E 30 30 30 2C 41 2C 32 32

33 32 2E 36 30 38 33 2C 4E 2C 31 31 34 30 34 2E 38 31 33 37 2C 45 2C 30 2E 30 30 2C

2C 30 31 30 38 30 39 2C 2C 2A 31 43 7C 31 31 2E 35 7C 31 39 34 7C 30 30 30 30 7C 30

30 30 30 2C 30 30 30 30 69 62 0D 0A

Note: See Annex 1 for description of data.

4. Track by Interval 0x4102

Command: @@\r\n

Description: Set time interval for automatic timed report (GPRS tracking).

Note: Interval is in unit of 10 seconds.

=0x00 0x00, stop tracking by interval.

Max time interval = 65535*10 seconds.

Example: 40 40 00 13 12 34 56 FF FF FF FF 41 02 00 0A 36 19 0D 0A

Above command will set 10 (0x00 0x0A)*10=100s as tracking interval.

Response: $$ \r\n

- 5 -

Note: Flag

=0x00, failure response;

=0x01, success re

Recommended

View more >