EV02 Protocol
EV02 Protocol
Level Secret
GPS Tracker
Communication Protocol
       GPS locator communications protocol
Directory
                                                                                                     -1-
 GPS locator communications protocol
 SOS                Save Our Ship / Save Our Souls                    SOS distress signal
                                                                      Cyclic Redundancy
 CRC                Cyclic Redundancy Check
                                                                      Check
 NITZ               Network Identity and Time Zone,                   Time zone
                                                                      Geographic Information
 GIS                Geographic Information System
                                                                      System
                                                 -2-
 GPS locator communications protocol
2.    When the GPRS connection is not established successfully, the terminal cannot send the login
      information packet. When the GPRS connection fails 3 times, the terminal will start the timer
      restart function, and the time is 20 minutes. If the terminal successfully establishes a connection
      with the server within 20 minutes and receives a data packet that the server responds to the login
      information packet sent by the terminal, the timer restart function will be disabled and the terminal
      will not restart, otherwise the terminal will automatically restart after 20 minutes.
3.    After the server receives the login information packet sent by the terminal, it returns a response
      packet to the terminal. If the terminal does not receive the server return packet for more than 5
      seconds after the login information packet or status information packet is sent, the current
      connection establishment will be considered abnormal. The terminal will start a re-
      transmission function for GPS tracking data, which will cause the terminal to disconnect the
      current GPRS connection, rebuild a new GPRS connection and send a login message packet
      again.
4.    When the connection is regarded as abnormal, and the response packet from the server is failed
      to be received three times after a connection is established, and a login message packet or status
      information package is sent, the terminal will start schedule reboot and the scheduled time is ten
      minutes. Within ten minutes, if the terminal successfully connects to the server and receives the
      data packet responded by the server, the schedule reboot will be off and the terminal will not be
      rebooted; otherwise, the terminal will be rebooted automatically in ten minutes.
5.    If there's a normal connection, the terminal will send a combined information package of GPS and
      LBS to the server after the GPS information is changed; and the server may set a default protocol
      for transmission by using commands.
6.    Toensure the validity of the connection, the fixed time interval sends status information (heartbeat
      packet) to the server, the server returns a response acknowledgment packet.
7.    For the terminal that has not registered the IMEI number in the server previously, the server should
      reply with the login request response and the heartbeat packet response, and the server should
      not directly disconnect the connection. (If the server directly disconnects or does not reply, it will
      cause the terminal to reconnect continuously, and GPRS data consumption will be very high).
                                                   -3-
  GPS locator communications protocol
                                        -4-
  GPS locator communications protocol
A total of (5+N) Bytes, because the information content is a variable length field.
4.3.      Protocol Number
                           Types                     Value
                     Login information               0x01
                  Positioning data (UTC)             0x22
                    Status information               0x13
                    String information               0x21
                    LBS information                  0x24
                    Alarm data (UTC)                 0x26
                           Time zone                 0x27
                                                       -5-
 GPS locator communications protocol
    The terminal or server can use the check code to judge whether the received information is wrong
or not. In order to prevent data errors during transmission, an error check is added to prevent data
misoperation, which increases the safety and efficiency of the system. The error check code adopts the
CRC-ITU check method. The check codes of data in the structure of the protocol, from the Packet
Length to the Information Serial Number (including “Packet Length” and “Information Serial Number”),
are values of CRC-ITU.
    If the receiver has a CRC error in the calculation of the received information, the data packet shall
be ignored and discarded.
                                                     -6-
 GPS locator communications protocol
                  Information
                        Serial     2                       0x00 0x01
                    Number
                        Error
                                   2                       0x90 0x01
                        check
                   Stop bits       2                       0x0d 0X 0a
                                                  -7-
 GPS locator communications protocol
Please note: The algorithm here is to rotate the calculated time zone value to the left by four digits,
and then combine the east/west of the time zone and the language selection bit. The purpose of using
this calculation method is to save four bytes.
                                                  - 10 -
 GPS locator communications protocol
                                                  - 11 -
 GPS locator communications protocol
5.2.1.     Position Data Packet Sent To Server (With Mileage Data)               Position Data Packet Sent To Server (Without Mileage Data)
                                               Length                                                                        Length
                   format                      (Byte)    Examples                                format                      (Byte)    Examples
                          Start bit              2      0x78 0x78                                       Start bit              2      0x78 0x78
                      Packet length              1         0x26                                     Packet length              1         0x22
                     Protocol No.                1         0x22                                    Protocol No.                1         0x22
                                                        0x0A 0x03 0x17                                                                0x0A 0x03 0x17
                                Date Time        6      0xF 0x32 0x17                                         Date Time        6      0xF 0x32 0x17
                                Number of                                                                     Number of
                                      GPS        1          0xCC                                                    GPS        1          0xCC
Bit6 0
                                  Real-time GPS /
                        Bit5
                                Differential positioning
                                                           - 13 -
 GPS locator communications protocol
                     Bit1
                     Bit0
                     Bit7
                     Bit6
                     Bit5
                                   Course
                     Bit4
       BYTE_2
                     Bit3
                     Bit2
                     Bit1
                     Bit0
Note: The data packet status information is the moment the status bit packet time recorded.
Example: value 0x15 0x4C, change to binary is 00010101 01001100
BYTE_1 Bit7      0
BYTE_1 Bit6      0
BYTE_1 Bit5      0 (Real-Time GPS)
BYTE_1 Bit4      1 (GPS positioned)
BYTE_1 Bit3      0 (Longitude)
BYTE_1 Bit2      1 (Latitude)
BYTE_1 Bit1      0
BYTE_1 Bit0      1
BYTE_2 Bit7      0
BYTE_2 Bit6      1
BYTE_2 Bit5      0                 Heading 332 ° (0101001100Binary to decimal 332)
BYTE_2 Bit4      0
BYTE_2 Bit3      1
BYTE_2 Bit2      1
BYTE_2 Bit1      0
BYTE_2 Bit0      0
That means the GPS is positioned, real-time GPS, location is at north latitude, east longitude, course 332 °.
5.2.1.10. MCC
     Mobile Country Code (MCC)
     Example: China's mobile country code is: 460 (decimal) 0x01 0xCC (460 converting into hexadecimal is
1CC, and 0 is added at the left side because the converted hexadecimal value is less than four digits).
     Value ranges: 0x0000 ~ 0x03E7
5.2.1.11. MNC
    Mobile Network Code (MNC)
    Example: China Mobile is 0x00.
5.2.1.12. LAC
     Location Area Code (LAC) is included in the LAI, consists of two bytes, and uses hexadecimal
coding. The available range is 0x0001-0xFFFE, and the code groups 0x0000 and 0xFFFF cannot be
used (see GSM specifications 03.03, 04.08 and 11.11).
5.2.1.13. Cell ID
     Mobile station Cell Tower ID (Cell ID) Range of values is 0x000000 ~ 0xFFFFFF
                                                 - 14 -
   GPS locator communications protocol
 5.2.1.14. ACC
 ACC Status: ACC low as 00, ACC high as 01
 5.2.1.15. Data Reporting Mode
  Reserved, currently not using
 5.2.1.16. Mileage Statistics (after turned on)
 Mileage statistics is calculated and showed by hex. Unit is meter.
 Example: 0x00 0x00 0x03 0xe8 represents 1000 meters.
 5.3.         Alarm Packet (Combined packet of GPS, LBS, and alarm status)
 5.3.1.       Terminal sends alarm packets to the server.
                                  Format                                 Length (Byte)        Example
                                            Start bit                         2               0x78 0x78
                                  Packet length                               1                 0x25
                                  Protocol No.                                1                 0x26
                                           Date Time                          6          0x12 0x08 0x1B 0x06
                                                                                              0x00 0x02
                                            Number of GPS satellites          1                 0x00
                                                        Latitude              4          0x02 0x6C 0x6D 0x72
                         GPS
                                                        Longitude             4          0x0C 0x37 0x15 0x86
                      information
                                                         Speed                1                 0x00
                                                   Course, Status             2               0x04 0x21
                                                     LBS Length               1                 0x08
                                                          MCC                 2              0x01 0xCC
information              LBS
                                                          MNC                 1                 0x00
                      information
                                                          LAC                 2               0x26 0x33
                                                         Cell ID              3            0x00 0x10 0x04
                                                 Terminal Information                           0x12
                                                                              1
                                                 Content(Alarm Info)
                      Status                        Voltage Level             1                 0x06
                    information                  GSM Signal Strength          1                 0x04
                                                  Alarm / Language /                          0x02 0x01
                                                                              2
                                                 extension bit status
                                  Serial Number                               2               0x01 0x33
                                  Error Check                                 2              0x47 0x9D
                                           Stop Bits                          2              0x0D 0x0A
                                                                - 15 -
 GPS locator communications protocol
The alarm packet is composed of the terminal information (alarm information) added on the
positioning packet, and the coding format is also the same with the position packet.
5.3.1.1.  Start Bit
See packet format 4.1
5.3.1.2. Packet Length
See packet format 4.2
5.3.1.3. Protocol No.
See packet format 4.3
5.3.1.4. Date Time
See packet format positioning 5.2.1.4
5.3.1.5. GPS information length, the number of satellite positioned
See packet format positioning 5.2.1.5
5.3.1.6. Latitude
See packet format positioning 5.2.1.6
5.3.1.7. Longitude
See packet format positioning 5.2.1.7
5.3.1.8.  Speed
     See packet format positioning 5.2.1.8
5.3.1.9.  Status and Course
     See packet format positioning 5.2.1.9
5.3.1.10. MCC
     See packet format positioning 5.2.1.10
5.3.1.11. MNC
     See packet format positioning 5.2.1.11
5.3.1.12. LAC
     See packet format positioning 5.2.1.12
5.3.1.13. Cell ID
     See packet format positioning 5.2.1.13
5.3.1.14. Terminal Information Content (Alarm Information)
     1 byte, it’s used to indicate various alarm information of the GPS terminal.
                  Format                       Code Meaning
                                       1: Oil and electricity Cut
                       Bit7
                                       0: Oil and electricity On
                                       1: GPS positioned
                       Bit6
                                       0: GPS not positioned
     BYTE
                                       100:    SOS       call
                                                       - 16 -
 GPS locator communications protocol
                                                        - 17 -
 GPS locator communications protocol
Example:
0x00 0x01 represents “Normal (No alarm)” in Chinese; 0x00 0x02 represents “Normal (No alarm)” in English:
Please note, to increase the reliability of alarm information, the alarm message is repeatedly sent respectively in
Terminal Information Content (5.3.1.14) and Alarm/Language (5.3.1.17), in most cases these two alarm messages
are identical, except two alarms are different as follows:
A: Low battery alarm                          B: In and out of the fence alarm
5.3.1.18. Information Serial Number
See packet format 4.5
5.3.1.19. Error check
See packet format 4.6
5.3.1.20. Stop bits
See packet format 4.7
Note: The status information in the data packet is the state at the moment recorded by the time bit in the data
packet.
The alarm packet is composed of the status information (alarm information) added on the positioning
packet, and the coding format is also the same.
5.3.2.1.  Start bit
See Packet Format 4.1
5.3.2.2.  Packet length
See packet format 4.2
                                                          - 18 -
 GPS locator communications protocol
                                                         - 19 -
 GPS locator communications protocol
FF15FF144E6190530028
004E00320033002E0033
00390035002C00450031
00310032002E00390038
0038002996448FD1
2626&&      // Separator
00000000000000000000000000000000000000000 // Telephone number
2323##     // Content info ending mark
0106       //Serial number
3825       //Check digit
0D0A             // Stop bits
5.3.3.2.   Server reply in English
Considering English or other foreign address is longer than Chinese, the data length is thus
increased to 2 bytes. Please note: Data length increasing only applies to the situation which
requires address reply.
                                         Start bit                      2
                                       Data length                      2
                                       Protocol No.                     1
                                           Instruction length           2
                                                Server flag             4
     The server
                                                       ALARMSMS         8
       reply
                                                              &&        2
       packet
                       Information                    Address Content   M
                                     Instruction
                                                              &&        2
       (15 + M                        content
                                                         Telephone
     + N Byte)                                                          21
                                                          number
                                                              ##        2
                                Information Serial Number               2
                                       Check digit                      2
                                        Stop bits                       2
                                                           - 20 -
 GPS locator communications protocol
Please Note: Since some alarms do not require the platform to reply with address information, thus the
platform does not need to reply address parsing after receiving the alarm packet from the terminal. For
example, these three alarms in below do not require the server to reply with address info:
                 1. Low battery alarm 2. Speeding alarm 3.GPS blind area alarm
                                                            - 20 -
 GPS locator communications protocol
                                    Language / extension
                                                                       2            0x8D 0x01
                                   bit status
                                Serial number                          2             0x00 0x7F
                                   Error check                         2             0x71 0x7F
                                    Stop bits                          2            0x0D 0x0A
                                          1: GPS positioned
                         Bit6
                                          0: GPS not positioned
     BYTE
                                          100:    SOS       call
     Example: 0x02 represents very low power, it will trigger “Low battery alarm”.
When a GPS terminal is connected with an external power source, it will show 0xFX at this packet. Multiply
external voltage by 10, defined as high byte. F is a fixed value, meaning the GPS terminal is currently
powering up by external voltage. To determine and calculate the exact voltage value, please check the
Language/extension bit section in 5.4.1.7.
First byte
                                            0x01 Chinese
       Second byte
                                             0x02 English
Example:
No alarm in Chinese: 0x00 0x01
No alarm in English: 0x00 0x02
5.4.1.8.        Information Serial Number
                                                    - 22 -
 GPS locator communications protocol
The server responds to the terminal: (The protocol number in the response packet is the same as the protocol
number of the data packet sent by the terminal).
Format Length
Start bit 2
Packet length 1
Protocol No. 1
                                     Error
                                                                 2
                                    check
Stop bits 2
                                                 - 23 -
 GPS locator communications protocol
                                                                - 24 -
   GPS locator communications protocol
                                   TA                  1                     0x00
                                 MCC                   2                  0x01 0xcc
                                 MNC                   1                     0x00
                               Cell Num                1                     0x04
                                         LAC           2                  0x26 0x33
RSSI 1 0x00
                                        RSSI           1                     0x00
                            Reserved                   1                     0x00
                            Reserved                   1                     0x00
                            Reserved                   1                     0x00
                       Serial Number                   2                  0x00 0x06
                        Error Check                    2                   0x9f 0xc8
                            Stop Bits                  2                  0x0d 0x0a
                                                      - 25 -
 GPS locator communications protocol
                                                     - 26 -
 GPS locator communications protocol
                                       - 27 -
 GPS locator communications protocol
                                                            00 External voltage
                                                            01 to 03 (customization)
                                                            04 Terminal status synchronization
                                                            05 Air con and Door status
                             Message type                   08 Self-Inspection parameters
        Information
                                (Sub                        09 Positioning satellite information
                                                  1
                                protocol                    0A ICCID and other information
                                number)                     ..... to be added
       When the message type equals 0A, it should transfer the following information in hexadecimal,
       for example 08 69 81 41 01 11 51 23 04 60 04 24 29 80 22 56 89 86 04 04 10 18 C0 00 22 55
                                                 Example: IMEI number 123456789123456, then the terminal ID should
             IMEI                        8
                                                      be shown as 0x01 0x23 0x45 0x67 0x89 0x12 0x34 0x56
                                                 Example: 0x03 represents Air conditioning and car door are both open
                                                 Bit7 - Bit2 reserved
  Air con and Door status                1
                                                 Bit1 0: 0 Door is close    1 Door is open
                                                 Bit0 0: 0 Air con is off   1 Air con is on
                                                   - 28 -
 GPS locator communications protocol
                           Server flag                    4
   Information
                       Command content                   M
                           Language                       2
         Information Serial Number                        2
                 Error check                              2
                    Stop bits                             2
                                                     - 29 -
    GPS locator communications protocol
                                         Length            Examples
                  Format
                                          (Byte)
                  Start bit                 2              0x79 0x79
               Packet length                2              0x00 0x09
              Protocol No.                  1                   0x21
                        Server flag         4        0x00 0x00 0x00 0x01
    Information
                    Content-Encoding        1
                          Content           M
         Information Serial Number          2              0x00 0x01
              Error check                   2             0xD9 0xDC
                  Stop bits                 2             0x0D 0x0A
                                                       - 30 -
  GPS locator communications protocol
Terminal returns
If successful, return
DYD = Success!
Description:
The following are the various replies after sending cut off petrol and electricity, it’s only judged to be
success when the word Success can be searched out.
RELAY, FAIL! ACC ON, GPS has Not FIXED or speed> 20KM / H, relay delay!!
Off petrol and electricity failure! The fuel cut operation will delay if the ACC is turned on, GPS not positioned or the
speed is over 20KM / H,
                                                               - 31 -
 GPS locator communications protocol
                                                   - 32 -
 GPS locator communications protocol
                                                       - 33 -
 GPS locator communications protocol
  Terminal returns
  Successful return
  OK
  Failure to return
                                                       - 34 -
 GPS locator communications protocol
  ERROR: XXX
Alarm method 0: Platform; 1:Platform+SMS; 2: Platform+ SMS + phone call; 3 Platform+ phone call;
Movement radius:100~1000 meters
                                                       - 35 -
  GPS locator communications protocol
  FENCE, ON, 0,Latitude center, Longitude center, Radius of the fence, X,Alarm# E.g:FENCE, ON, 0, N1.2971,
  E103.822349,61, IN, 0 #
  Terminal returns
  Successful return
  OK
  Failure to return
  ERROR: XXX
Alarm method 0: Platform; 1: Platform+SMS;
X = IN/OUT; IN: In fence alarm; OUT: Out fence alarm; If empty it will alarm both when goes in and out of the fence(In
default).
  Terminal returns
  Successful return
  OK
  Failure to return
  ERROR: XXX
                                                             - 36 -
  GPS locator communications protocol
                              4                                                 3
              GPS sends the address information                       The server returns the
              processed by the server to the SOS                       processed address
                           number                                          information
6.23.1. Terminal sends data to server
     Basically the same format with the previously mentioned GPS information content, added the
     phone number to make address inquiry.
                                                                                   Length
                                       Format
                                                                                    (Byte)
                                      Start bit                                        2
                                    Packet length                                      1
                                    Protocol No.                                       1
                                              Date Time                                6
                                     GPS information length, the number
                                                                                       1
                                     of satellites positioned
                        GPS
                                                      Latitude                         4
       Information     inform
                                                     Longitude                         4
                        ation
                                                      Speed                            1
                                                   Course, Status                      2
                                         Telephone number                             21
                                              Language                                 2
                       Information Serial Number                                       2
                                     Error check                                       2
                                      Stop bits                                        2
6.7.1.1. Start bit
See Packet Format 4.1
6.7.1.2. Packet length
See packet format 4.2
Example: Use byte length as unit, 0x2E, it means that the command content occupies 46 bytes
6.7.1.3.   Protocol No.
0x2A.
6.7.1.4. Date Time
See packet format 5.2.1.4
6.7.1.5. GPS information length, the number of satellites positioned
See packet format 5.2.1.5
6.7.1.6. Latitude
See packet format 5.2.1.6
6.7.1.7. Longitude
See packet format 5.2.1.7
6.7.1.8.   Speed
                                                            - 37 -
 GPS locator communications protocol
                                                  - 40 -
 GPS locator communications protocol
                                                    - 41 -
 GPS locator communications protocol
                                                   - 42 -
 GPS locator communications protocol
Sent contents from server: Location: Huizhou, Guangdong Province Yunshan Road all the way from the
Mandarin, Huizhou, the Public Accounting Firm of about 32 meters, about 32 meters from the Huizhou
City Foreign Investment Service Center.
Phone number: 66366
English:
Sent: 78 78 2E 1A 0B 0B 0F 0E 1E 08 CF 02 7A C8 A2 0C 46 57 D7 00 14 02 36 36 33 36 36 00 03 00 04
00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 32 04 3A 0D 0A
Receiving: 78 78 00 E9 97 00 E2 00 00 00 01 41 44 44 52 45 53 53 26 26 00 50 00 72 00 65 00 63 00 69 00
73 00 65 00 6C 00 79 00 20 00 4C 00 6F 00 63 00 61 00 74 00 69 00 6E 00 67 00 3A 00 31 00 30 53 F7 00
20 00 59 00 75 00 6E 00 73 00 68 00 61 00 6E 00 20 00 57 00 65 00 73 00 74 00 20 00 52 00 64 00 2C 00
48 00 75 00 69 00 63 00 68 00 65 00 6E 00 67 00 2C 00 48 00 75 00 69 00 7A 00 68 00 6F 00 75 00 2C 00
47 00 75 00 61 00 6E 00 67 00 64 00 6F 00 6E 00 67 00 2C 00 35 00 31 00 36 00 30 00 30 00 33 00 28 00
4E 00 32 00 33 00 2E 00 31 00 31 00 31 00 37 00 37 00 2C 00 45 00 31 00 31 00 34 00 2E 00 34 00 30 00
39 00 32 00 32 00 29 26 26 36 36 33 36 36 00 03 00 04 00 00 00 00 00 00 00 00 00 00 00 00 23 23 00 01 AF
4D 0D 0A
The content distribution server: Precisely Locating: No. 10 Yunshan West Rd, Huicheng, Huizhou,
Guangdong, 516003 (N23.11177, E114.40922)
Phone number: 66366
                                                  - 43 -
 GPS locator communications protocol
2 1 1 1 1 1 2 2 2 2
                                                                                                      - 44 -
 GPS locator communications protocol
2 1 1 6 1 4 4 1 2 M 1 2 1 2 3 N 1 1 1 2 2 2 2
2 1 1 2 2 2
2 1 1 1 4 M N 2 2 2
- 45 -