SP4600 - SP3600 Protocol V2.24 PDF
SP4600 - SP3600 Protocol V2.24 PDF
V2.24
Copyright © 2013
SP4600/SP3600 Protocol
Foreword
■ Skypatrol provides this document to describe the communication protocol format between Skypatrol vehicle terminal, mobile terminal (Cell
phone), and communication control center, with the aim of providing a basis for engineers to design a uniform control commands for specific
products. The Intended audiences of this document are Skypatrol product development engineers.
■In this document, vehicle terminal’s control and connection structure is descried. Data packet and command packet formats between vehicle
terminal, mobile terminal, communication commands and their scopes are clearly defied. Privilege of different connection approaches (SMS,
Cable, and GPRS/Wi-Fi) and their functions are clearly defined.
Copyright
■This document is a confidential document. Any individual or organization is strictly prohibited to reproduction, use or disclosure to the third
party without permission. Otherwise, we hold the right to investigate the legal responsibility.
Company address:
3055 NW 84th Avenue, Miami FL 33122
Tel: +1.786.331.3300
Fax: +1.786.477.4567
E-mail: [email protected]
Website: www.skypatrol.com
2 / 123
SP4600/SP3600 Protocol
Change log
3 / 123
SP4600/SP3600 Protocol
40,Modify Geo-fence status changing and event report detection to 3 seconds.
41,Add parking condition to command DNU.
42,Modify minimum value in command DIS to 100 meters.
43,Modify command IBP,TMP.
44, Modify ETD data field regarding over speed event.
45,Fix bug that cannot clear healthy check event status.
46,Fix bug that command ETC does not work.
47,Fix bug in combination event.
48,Fix bug that HEX data string CRC verify error and specific characters conversion.
49,Modify 1WIRE iButton data transfer mode and 1WIRE data to command ESM.
V1.03 to V1.04 1,Remove source code and macro that supports older hardware version, current f/w only supports hardware version 1.0.2
(first time trial version) and 1.0.3.
2,When 1WIRE feature disabled, do not report 1WIRE data field in data string.
3, Fix bug in product test.
4,Command PTY authorization set as public.
5,Fix bug that detecting wrong signal strength, problem caused by this bug is OTA feature faulty after device running
over a long time/switching GSM module frequently/execute command DFP frequently/factory serial port testing.
6,Fix bug that offline data lost.
7,Fix wrong offline HEX data string length.
8,Fix bug when command EUP does not specify digital output, any event type clearance will according command EOB to
execute digital output.
9,Add 1 more command list profile switching condition: TOW.
10,Fix bug that offline replicated data.
11,Increase self-test times when device initializing to avoid configuration lost that causes by unstable power supply.
12,Add toggle flag to digital output in command IBP, iButton detecting will refer ACC status, trigger digital input only if
iButton illegal input.
V1.04 to V1.05 1, Modify GPS time calibrate method.
2, Fix issue that after long time working device does not respond.
V1.05 to V1.06 1, Modify TCP connection timeout parameter.
2, Modify command EOB.
3, Modify digital output mode for iButton.
4, Modify MCU sleep mode condition, not related with GSM module sleep and GPS module sleep anymore.
5, Add independent watch dog to enhance stability.
6, Modify 2D acceleration sensor process, device does not go to “still” status when GPS fixed and speed bigger than
15KM/H.
7, Add feature that verifies power supply when device is initializing, if external power less then 7V and backup battery
less than 3.5V, device will reboot itself to avoid configuration lost. (Pending)
8, Modify mileage calculation method: using fix point distance to calculate mileage.
9, Fix bug in GPS processing, if GPS module is OFF and device moving, data will be invalid.
10, Modify time calibration method to previous method.
V1.06 to V1.07 1, Add 1 meter offset to mileage calculating every 100 meters.
2, Fix bug that enable 1WIRE data report will mess-up fix time report interval.
3, Fix bug that when device powers up will report parking event.
V1.07 to V1.08 1, Improve compatibility for GLONASS.
2, Modify default setting.
3, Fix bug on GSM module driver CMGL processing.
4 / 123
SP4600/SP3600 Protocol
4, Improve SPI flash offline data processing method.
5, Modify on commands: SVR, BSV,EPM, UGP
V1.08 to V2.00 1, Only supports hardware version V1.05 or higher.
2, Bootloader version equal or higher than V1.0.3.
V2.00 to V2.01 1, Only supports hardware version V1.05 or higher.
2, Modify GPS power saving mode, “stop to move” will wake up GPS instantly.
3, Geo fence scan rate changes to 20 ones per second.
4, Modify PRO GPS command.
5, Fix bug on command MOT.
V2.01 to V2.02 1, Only supports hardware version V1.05 or higher.
2, Modify command EPM, add EPM;3 mode, this mode is to set G6S uses external data source to process as GPS data.
3, Modify command UGP, add UGP;6 mode, this mode is to print real time packet on debug windows.
4, Modify resistor for AD1 input, Geo fence scan rate changes back to 5 ones per second.
5, Add option for server ACK via TCP.
6, Fix bug on command GOF, UFM.
V2.02 to V2.03 1, Only supports hardware version V1.05 or higher.
2, Fix bug on Telit module regarding data generating.
3, Fix bug on command APL.
4, Fix bug on 1WIRE link.
5, Modify command VER, add suffix “-T” and “-U” for indication of differ GPS module.
V2.03 to V2.04 1, Only supports hardware version V1.05 or higher.
2, Fix bug on GPS driver.
3, Adjust time sync on U-blox module.
4, Add license request for GPRS connectivity and command CHC for license status check.
5, Add firmware encryption for copyright protection.
6, Modify command FWU, user name and password are not requested.
7, Fix bug that if SVP set as “O”, Fixed distance and angle do not work.
8, Modify command EUP, add “Report to GPRS or SMS”.
9, Add command SVT.
10, Modify command EPM.
11, Add command GFC.
12, Add command IBC.
13, Modify SMS message, CSQ changes to GSM, ACIN changes to Ext_Pwr.
14, Modify command ERL, add “Valid period”.
15, Command DFP will not reset setting of command NAM.
16, Modify default setting of command OAS.
17, Add packet type indicator in data string.
V2.04 to V2.05 1, Add command EUC.
2, Renew packet example on chapter 4.3.7 and 4.4.7.
V2.05 to V2.06 1, Add balance notification command BLS.
2, Move command DOO to public command list.
3, Add GSM Anti-jamming configuration command JMP.
4, Command SPO is able to set without enabled over speed event in command ESM.
5, Add command FRS.
6, Fix bug on iButton ID reading.
V2.06 to V2.07 1, Fix bug on command BLS.
5 / 123
SP4600/SP3600 Protocol
2, Add command TSP.
V2.07 to V2.08 1, Modify offline data packing method.
2, Fix bug on command ACM, UCM, SWL.
3, Add new command BDU0, BDU1.
V2.08 to V2.09 1, Optimize ADC driver to have more stable voltage measure
2, Fix bug on returned parameter of commands ERL, HTM, VOE, EFM
3, Fix bug on Tow event, and refer GPS speed for this event
4, Assign command NAM to user phone and SMS server to use
5, Fix bug on offline GPRS packet
6, Add command AIR to set AD1 measure scale range
7, Fix bug on combination events
8, Modify command FRS
9, Fix bug on setting profile switching, OTA and profile switching will no able to execute simultaneously
10, Add command SIM to query current SIM card number
11, Add command EPT to change report interval from serial port according to ACC status
12, Fix bug on AGPS
V2.09 to V2.10 1, Fix bug on long SMS
2, Fix bug on offline packet report
3, Optimize GPS position filter
4, Fix bug incoming call freeze when under UGP;3 mode
5, Optimize AGPS
6, Sync with GSM time when GPS invalid
V2.10 to V2.11 1, Show viewable satellites in data packet when GPS is not fixed.
2, Modify command FWU.
3, Allow time adjustment manually.
4, When GPS data is not valid its data in packet will stuffing with 0.
5, Modify command IBP, output actives (low level) when ACC OFF.
6, Add event “illegal ibutton”.
7, Modify command IBO, add command IBE, IBS.
8, Modify command EPM.
9, Add command HUP, command PUP.
10, Add command GAM, command GVR, command.
11, GSM module wakes up when under moving + data transmitting request.
12, Add command ITS
13, Modify command JMP
14, Improve GPS filter algorithm.
15, Improve AGPS.
16, Data verify for 1wire temp sensor.
17, Improve GPS time sync algorithm.
V2.11 to V2.12 1, Fix bug that command GPO is not working for GSM module.
2, Fix bug timeline error when set as “offline data prior”.
3, Fix bug on EPM2.
4, Fix bug on offline packet.
5, Fix bug unable to pickup hotline incoming call when MDT is connected.
6, Modify command PSS0.
V2.12 to V2.13 1, Fix bug about GLONASS time reset to all 0 after power on/power reset.
6 / 123
SP4600/SP3600 Protocol
2, GPS HDOP higher than preset value, speed will be 0.
3, Fix bug on MEI in offline packet.
4, Modify command PSS1
5, Modify SMS notification of OTA upgrade to “Same Firmware” when device current firmware version is latest
6, Improve ibutton reading performance.
V2.13 to V2.14 1, Modify command EPM.
V2.14 to V2.17 1.Add RPD command and recover the parameter except specific commands to default value;
2.Add CTF command——support to export the current configuration file to the file, and upload via ymodem ;
3.Add YGF;6 to support to upload the last exported current configuration file;
7 / 123
SP4600/SP3600 Protocol
1. General structure
Command authorization:
■3 levels of authorization are available for different command list in APPENDIX chapter.
OEM: For agent/distributor, all commands are valid for this authorization.
Admin: For administrator, by default admin command list and public command list are valid for this authorization.
OEM authorization is able to use command ACM to customize command list for admin authorization.
User: For user command list only and only via SMS, by default user command list is valid for this authorization. OEM/Admin authorization is
able to use command UCM to customize command list for user.
8 / 123
SP4600/SP3600 Protocol
>Connect device with computer via USB cable and run serial communication software.
>Input ^O (Ctrl + O) 3 times in a row, you will find “Please Input Password:[CR][LF]” on software window.
>Input OEM configuration password “0123456789” (default) and press enter, if the Password is correct, you will find “[LF] Cable Port In OEM
Mode [CR][LF]” on software window.
>Use commands in this document to configure the device.
Send:
Send:
Send:
*GS06,Device ID, Command word1:Parameter1; Parameter2; Parameter3,Command word2: Parameter1; Parameter2; Parameter3#
>HEX format with "F8" “1B” in data field except packet head and tail.
9 / 123
SP4600/SP3600 Protocol
3.2.1. HEX Format
■If there is "1B" or "F8" in the data field of packet, device will convert them before sending to server.
Conversion method:
Value XOR “1B”, to get data "XX", then add "IB" in the front of "XX", to become 1BXX
e.g.: "F8" XOR “1B” equals ” E3" , "F8" will convert to "IBE3".
Before F8 1B
After 1BE3 1B00
Note: Server must reserves the above process when it receives data from device to have the genuine data.
■If there is symbol “* , ; ( #” in the data field of packet, device will convert them before sending to server.
Conversion method:
Add "(" in front of those symbols.
Before * , ; ( #
After (* (, (; (( (#
Note: Server must reserves the above process when it receives data from device to have the genuine data.
>Standard reference: ISO in HDLC, ITU x.25, v. 34 / v. 41 / v. 42, the PPP – FCS.
4. Regular packet
>SMS server packet length is 230bytes maximum.
>GPRS server packet length is 384bytes maximum.
>If device switches to international roaming status, it will send a regular packet to the server.
>If device switches from GPS unfixed to GPS fixed status, it will send a regular packet to the server.
■Under below circumstances, device will send packet to GPRS server and SMS server proactively:
>According to its configuration (e.g.: fixed time report, fix cornering, fixed distance report).
>Events being triggered.
>Device forwards SMS from another phone number to user/server.
10 / 123
SP4600/SP3600 Protocol
4.1. Regular packet format
Explanation:
# Proactive report Packet Report condition
Regular packet, ASCII format
According to report configuration and event status.
Device to (Refer chapter4.3)
1
SMS server SMS from other numbers
Device will forward packet directly to user/server without any modification.
(Format same as device receives)
Heartbeat packet that report periodically or the first packet from device when
First connection/heartbeat packet
connection with server successfully.
Regular packet,
Device to According to the report configuration and data format set as ASCII.
2 ASCII format (Refer chapter4.3)
GPRS server
Regular packet,
According to the report configuration and data format set as HEX.
HEX format (Refer chapter4.4)
Device forwarding packet Device will forward SMS packet to user/server according to configuration.
Serial link packet Device transfers data from its RS232 port to GPRS server.
>The first packet from device when connection with server is being established successfully (including redial).
>Normally it will report periodically to server, to keep the connection with server alive.
*GS 06 , 357852034572894 #
Packet head Protocol version Separator IMEI=Device ID, 15 digits Packet tail
Sample, HEX format
F8 06 00 013FB822050D1D 2D77 F8
Head Protocol version Packet type indicator IMEI CRC Tail
1byte 1byte 1byte 7bytes 2bytes 1byte
11 / 123
SP4600/SP3600 Protocol
*GS 06 , 351535053999389 , 235833280213 , 9C , <SYS>,<GPS>, #
<GSM>,<COT>,
<ADC>,<DTT>,
<IWD>,<ETD>
Protocol IMEI=Device ID, Time and date Event
Packet Packet
version 15 digits *Note1 type ID Data field
head tail
*Note2
<Sub data type mask>: Command SDM is used to customized sub data of each main data type, e.g.:
GPS: A;8;N23.164351;E113.428515;0;0;37;0.85;0.35
GPS: A;8;N23.164351;E113.428515;0;0;;;0.35
12 / 123
SP4600/SP3600 Protocol
ETD Event data Not report Report
■e.g.: SYS:G6S;V1.01;V1.01
Format:
<System data ID>:<Device name>;<Firmware version>;<Hardware version>
SYS: G6S;V1.01;V1.01
System data identifier <Device name>;<Firmware version>;<Hardware version>
■e.g.: GPS:A;8;N23.164351;E113.428515;0;0;37;0.85;0.35
Format:
<GPS data identifier> :<GPS fix flag>;<Valid satellite number>;
<Latitude>;<Longitude>;<Speed>;<Azimuth>;<Altitude>;<HDOP>;<VDOP>
GPS: A; 4; N23.164351; E113.428515; 0; 0; 37; 0.85; 0.35
GPS data GPS Valid Latitude, Longitude, Speed Azimuth Altitude, (HDOP) (VDOP)
identifier fix flag, satellite “N” means “E” means east, range is Horizontal Vertical
“A” number north, “W” means “-9999 to Dilution of dilution of
means “S” means west. +9999”, unit Precision, precision,
fixed, south. is meter. range is range is
“V” “0 to 99.99”, “0 to
means decimal. 99.99”,
unfixed decimal.
HEX, 2bytes maximum, each bit represents one kind of GPS sub-data type.
“0”: not report this sub-data type.
“1”: report this sub-data type.
Bit Sub-data type Bit as 0 Bit as 1 Data length, ASCII Data length, HEX
GPS fix flag =1byte 1byte
0 Not report Report
Valid satellite number <=2bytes
Latitude 10bytes 8bytes
1 Not report Report
Longitude 11bytes
2 Speed Not report Report <=3bytes 2bytes
3 Azimuth Not report Report <=3bytes 2bytes
4 Latitude Not report Report <=5 bytes 2bytes
5 HDOP Not report Report <=5 bytes 2bytes
6 VDOP Not report Report <=5 bytes 2bytes
7 Reserved
13 / 123
SP4600/SP3600 Protocol
4.3.4. GSM: GSM data
■e.g.: GSM:5;4;460;0;2731;BB41;-82;460;0;2731;436E;-81;460;0;2731;436D;-94
Format:
<GSM data identifier>:<Registration status>;<GSM signal strength>;<MCC1>;<MNC1>;
<LAC1>;<CID1>;<RSSI1>;<MCC2>;<MNC2>;<LAC2>;<CID2>;<RSSI2>…<MCC7>;<MNC7>;<LAC7>;<CID7>;<RSSI7>
■If GPS is not fixed or invalid, its data field will be replaced by GSM data, GSM data including GSM network registration status/signal
■APPENDIX
REG value
REG Explanation SMS/Voice/GPRS connectivity
0 Fail to register, device is not trying to register to any mobile network ×
1 Register successfully √
2 Fail to register, but device is trying to register to mobile network again ×
3 Register intention is being rejected by mobile network ×
4 Unknown reason ×
5 Register to roaming network successfully √
CSQ value
14 / 123
SP4600/SP3600 Protocol
Signal Level RSSI
0 <= -112dBm
1 <= -97dBm
2 <= -82dBm
3 <= -67dBm
4 <= -52dBm
5 >= -51dBm
HEX, 2bytes maximum, each Bit represents one kind of GSM sub-data type.
■e.g.: COT:4294967295;99999-00-00;0F1000;1P4294967295;2P1234;3F1000
Format:
COT: 4294967295;99999:00:00;0F1000;1P4294967295;2P1234;3F1000
COT data <Odometer>:4294967295
identifier Range is “0 to 4294967295”, Unit is “meter”
This value represents accumulated mileage of vehicle
<Engine hour>:99999:00:00
Time format:<Hour>:<Minute>:<Second>
Range is “0:0:0~99999:0:0”
<Digital input>:0 to 3
“0”: IN1digital input
“1”: IN2 digital input
“2”: AD1/IN3 digital input
“3”: AD2/IN4 digital input
15 / 123
SP4600/SP3600 Protocol
<P/F>:
“P”:Pulse
”F”:Frequency, unit is “Hz”
e.g.: ”0F10000”
”0” means digital input1
“F” means Frequency
■e.g.: ADC:12.60;3.99;10.00;10.00
Format:
<AD data identifier>:< External power supply voltage>;< Backup battery voltage>;
<ADC1 input voltage>;<ADC2 input voltage>
ADC: 12.60; 3.99; 10.00; 10.00
AD data External power supply voltage Backup battery voltage ADC1 input voltage ADC2 input voltage value, unit
identifier value, unit is “V” value, unit is “V” value, unit is “V” is “V”
HEX, 2 bytes maximum, each bit represents one kind of GSM sub-data type.
“0” do not report this sub-data type,
“1” report this sub-data type.
Bit Sub-data type Bit as 0 Bit as 1 Data length, ASCII Data length, HEX
0 External power supply voltage Not report Report <=5bytes =2bytes
1 Backup battery voltage Not report Report <=5bytes =2bytes
2 ADC1 voltage Not report Report <=5bytes =2bytes
3 ADC2 voltage Not report Report <=5bytes =2bytes
4 Reserved
5 Reserved
6 Reserved
7 Reserved
<Device status>
Device status list, HEX, each bit represents one kind of event.
Bit Explanation Status 0 Status 1
Bit0 bExtPwr External power supply Normal Lower or higher
Bit1 bInterBat Backup battery Normal Lower or higher
Bit2 bMoving Moving Stop Move
16 / 123
SP4600/SP3600 Protocol
Bit3 bSpdOver Over speed Normal Over
Bit4 bIDiling Idle Normal Idle
Bit5 bTow Tow Normal Tow
Bit6 bAntiJam GSM jamming Normal Jamming
Bit7 bRoaming Domestic roaming Normal Roaming
Bit8 bInterRoam International roaming Normal Roaming
Bit9 bUrgent Harsh behavior Normal Harsh brake/Harsh accelerate/Harsh cornering
Bit10 bAccIDent AccIDent Normal Front collision/Rear collision/Turn over
Bit11 bGeoFence Geo-fence Normal In or out
ADC1 input
Bit12 bAdc1 Normal Abnormal (Lower or higher)
(AD1 set as analog)
ADC2 input
Bit13 bAdc2 Normal Abnormal (Lower or higher)
(AD2 set as analog)
Bit14 bStop Parking Parking Quit parking
Bit15 bWorkStatus Private hour Normal Under private hour
<I/O status>
I/O status list, HEX, each bit represents one kind of event.
Bit Explanation Status 0 Status 1
Bit0 bAccOn ACC status ACC OFF ACC ON
Bit1 bIn1 Low level input1 High level or floating Low level
Bit2 bIn2 Low level input2 High level or floating Low level
Bit3 bIn3 Digital input3 (AD1 set as digital) Low level High level
Bit4 bIn4 Digital input4 (AD2 set as digital) Low level High level
Bit5 bOut1 Output1 Low level High level
Bit6 bOut2 Output2 Low level High level
Bit7 bOut3 Output3 Low level High level
<Event status>
>HEX, range is “0 to FFFFFFFFFFFFFFFF”, 64bits maximum.
>“0” means event status 0.
>“1” means event status 1.
17 / 123
SP4600/SP3600 Protocol
■e.g.: IWD:0;0;000133B29;1;1;3400012038C21;100
Format:
<1WIRE data identifier>:<Data ID>;<Data type>;<Data field>;<Data ID>;<Data type>;<Data field>
<Data type>
>”0” means 1WIRE input is iButton
>”1” means 1WIRE input is temperature sensor
<Data field>
>Serial number of iButton or serial number of temperature sensor and current temperature
IWD: 0; 0; 000133B29 1; 1; 3400012038C21 100
1WIRE data Data ID Data Data field, serial Data Data Serial number of Temperature
identifier Type, “0” means number of iButton ID Type, “1” means temperature sensor value
iButton temperature
sensor
■e.g.: ETD:11;30
Format:
<Event data identifier>:<data>…
ETD: 11; 30;
Event data identifier Meaning varied depending on event Meaning varied depending on event
18 / 123
SP4600/SP3600 Protocol
Geo-fence ETD:<Time>; <Time>: Local time when Geo-fence event is triggered, 235833280213 format is
<Speed>; HHMMSSDDMMYY
<Geo-fence number>; <Speed>: Speed when Geo-fence event is triggered, unit is “km/h”.
<Status> <Geo-fence number>: Geo-fence number that is triggered.
<Status>:
bit1:
“1” means inside Geo-fence
“0” means outside Geo-fence
bit0:
“1” means beyond the preset speed range
“0” means within the preset speed range
Harsh brake ETD:<Parameter1>;<Pa <Parameter1>: X axis acceleration magnitude value, float string (format %5.2f).
/Harsh accelerate rameter2> <Parameter2>: Y axis acceleration magnitude value, float string (format %5.2f).
/Harsh cornering
/Front collision X axis: Heading direction, positive value means brake, minus value means acceleration.
/Rear collision Y axis: Positive value means left cornering, minus value means right cornering.
/Turnover
1WIRE event: ETD:<Data ID>;<Data <Device ID>: Serial number
Serial number of type>;<Data field> <Device type>:
iButton “0” means iButton, “1” means temperature sensor.
/Temperature <Data field>:
value Serial number of iButton or temperature sensor serial number and temperature value.
<Device ID>
e.g.: HEX data “195A7F9E” converts to decimal is 425361310 seconds, which means 2013-06-64 03:55:10
<Event ID>
HEX, 1byte fixed.
Bit7 represents “Device status flag”.
“Bit6 to Bit0” represents “Event ID”, need to convert from HEX to decimal and find its definition in chapter9 “Event list”. e.g.: “0x9C”
represents event “ACC ON to OFF”.
Note: Non-event packet does not carry this field.
20 / 123
SP4600/SP3600 Protocol
Each bit represents each type of data, “1” means reporting this type of sub-data, “0” means not reporting this type of sub-data.
e.g.: “0x3B” converts to binary is “0011 1011”, which means only report <SYS><GPS><COT><ADC><DTT>
21 / 123
SP4600/SP3600 Protocol
1 Firmware version <=8Bytes <=8Bytes
<GPS data length><GPS sub-data mask><Fix sign and valid satellite number>
<Coordinate><Speed><Azimuth><Altitude><HDOP><VDOP>
Content Length Explanation
15 1byte GPS data length, ”15” means 21bytes
007F 2bytes Sub-data mask, current is SDM1:003F, refer below table for further information
48 1 byte Fix flag and valid satellite number.
Bit0-bit4: Valid satellite number
Bit5-Bit6: GPS fix flag, “0” not fixed, “1” 2D fixed, “2” 3D fixed.
016175DD 8bytes Latitude
4bytes signed integer, HEX, high byte ahead.
Positive represents north-latitude, minus represents south-latitude.
E.g.: 0x016175DD, convert to decimal 23164381, divided by 1000000, which means 23.164381 degree
north-latitude.
06C2C8E8 Longitude
4bytes signed integer, HEX, high byte ahead.
Positive represents east-longitude, minus represents west-longitude
E.g.: 0x06C2C8E8, convert to decimal 113428712, divided by 1000000, which means 113.428712 degree
east-longitude
Note: For a minus value in HEX format (highest bit 1) covert to decimal the suggested procedure is:
e.g. 0xFCB3EC58
step1: invert each bit, 0 becomes 1, and 1 becomes 0
~FCB3EC58 = 034C13A7
Step2: plus 1
034C13A7 + 1 = 034C13A8
Step3:
034C13A8h = 55317416d/1000000 =-55.317416 degree
003C 2bytes Speed
2bytes signed integer, HEX, “0x003C” converts to decimal is “60”, which means speed is 60 km/h.
0000 2bytes Azimuth
2bytes unsigned, HEX
004B 2bytes Altitude
2bytes signed integer, HEX, high byte ahead.
“0x004B” converts to decimal is “75”, range is “-9999 to +9999”, unit is “meter”
22 / 123
SP4600/SP3600 Protocol
007C 2bytes <HDOP> Horizontal Dilution Of Precision
2bytes unsigned integer, HEX, high byte ahead.
E.g.: 0x007C, convert to decimal 124, divided by 100, which means 1.24
Rang is 0 to 99.99
007D 2bytes <VDOP> Vertical Dilution Of Precision
2bytes unsigned integer, HEX, high byte ahead.
E.g.: 0x007D, convert to decimal 125, divided by 100, which means 1.25
Rang is 0 to 99.99
<MCC1 and MNC1 >: Fixed 3bytes, “Bit0-Bit11” represents MNC1, “Bit12-Bit23” represents MCC1.
Content Length Explanation
1A 1byte GSM data field length, ”0A” is 10bytes
0F 1byte Sub-data mask
14 1byte Register status and signal strength, high 4bits represents network register status, low 4bits represents signal
strength.
1CC000 3byte <MCC1 “mobile country code” and MNC1 “mobile network code”>
2503 2byte <LAC1> : GSM main base station zone code
HEX, converts to decimal is “9475”
962C 2byte < CID1>: GSM main base station ID
HEX, converts to decimal is “38444”
40 1byte <RSSI1>: GSM signal strength
HEX, converts to decimal is “64”, which means strength is “-64dBm”.
1CC000 3byte <MCC2: GSM mobile country code” and MNC2: mobile network code>
2731 2byte <LAC2>: GSM main base station zone code
HEX, converts to decimal is “10033”
40F4 2byte < CID2>: GSM main base station ID
HEX, converts to decimal is “16628”
56 1byte <RSSI2>: GSM signal strength
HEX, converts to decimal is “86”, which means strength is “-86dBm”.
1CC000 3byte <MCC3: GSM mobile country code” and MNC3: mobile network code>
2731 2byte <LAC3>: GSM main base station zone code
HEX, converts to decimal is “10033”
BB42 2byte < CID3>: GSM main base station ID
HEX, converts to decimal is “47938”
66 1byte <RSSI3>: GSM signal strength
HEX, converts to decimal is “102”, which means strength is “-102dBm”.
23 / 123
SP4600/SP3600 Protocol
Format:
0B 0203E8 1297C2 24200003E8
(In ASCII format: COT:1000;10:47:30;0P1000)
Note: Frequency/Pulse data: High 4bits represents data type, “1” for frequency, “2” for pulse.
Data must converts from HEX to decimal.
e.g.: “53 1000 00FF” means DI4 input(AD2/IN4)frequency is ”255 Hz”
Sub-data type ID Sub-data type Data length, ASCII Data length, HEX
Mileage:
HEX, convert to decimal, unit is “meter”. e.g.: “0x03E8” convert to decimal is “1000”, which means 1000 meters.
Engine hour:
HEX, convert to decimal, unit is “second”. e.g.: “0x97C2” convert to decimal is “38850”, which means 38850 seconds (10H:47M:30S)
24 / 123
SP4600/SP3600 Protocol
<ID + Value>: HEX, 2bytes
ID: High 4bits, range is “0 to F”, it decides the meaning of “Value“.
id=0: External power supply
id=1: Backup battery
id=2: AD1 input voltage
id=3: AD2 input voltage
para_value:
25 / 123
SP4600/SP3600 Protocol
“DTT data” sub-data mask, 16 IDs maximum
Bit Sub-data type Status 0 Status 1 Data length, ASCII Data length, HEX
0 Device status Not report Report <=8Bytes <=5Bytes
1 I/O status Not report Report <=2Bytes =1Byte
2 Low 120 Geo-fences status Not report Report <=30Bytes <=15Bytes
3 High 36 Geo-fences status Not report Report <=9Bytes <=5Bytes
4 Event status Not report Report <=16Bytes <=9Bytes
5 Packet type indicator Not report Report <=2Bytes =2Bytes
<Event status>
Refer chapter 9 “Event status” table
Non-event data:
F8 06 01 01 44 3B 33 F9 0C 28 19 A8 DD 6E 00 7B 11 03 47 36 53 15 56 32 2E 32 35 26 56 31 2E 30 2E 33 13 00 3F 48 01 66 C3 B0 06 BC 3
E 40 00 00 00 00 03 E8 00 64 06 02 FF 7F 12 07 AD 08 03 30 11 74 21 74 31 74 08 01 02 11 E1 21 00 31 00 08 07 00 00 00 01 01 7B 0C 86 61
F8
Event data:
F8 06 41 01 44 3B 33 F9 0C 28 19 A8 DD F1 8E 00 FB 11 03 47 36 53 15 56 32 2E 32 35 26 56 31 2E 30 2E 33 13 00 3F 48 01 66 C3 B0 06 B
C 3E 40 00 00 00 00 03 E8 00 64 06 02 FF 7F 12 07 AD 08 03 2D 11 74 21 74 31 74 0B 01 02 11 E1 21 00 31 00 42 40 00 08 07 00 00 00 00 1
2 03 8C 08 07 00 00 00 00 12 03 8C 6F 89 F8
iButton data:
08 07 00 000000133B29
0 7 00 000000133B29
1WIRE data length
ID Data length iButton Serial number
1byte, fixed 1Byte 1Byte 6Bytes
Temperature data:
0A 1B 01 00000012038C 0064
1 B 01 00000012038C 0064
1WIRE data length
ID Data length Temperature sensor Serial number Temp. value
<Data ID and length>: 1byte, “Bit0-Bit3” represents data length, “Bit4-Bit7” represents data type ID.
<Data field>: HEX, “0x006D” converts decimal is “109”, which means current speed is 109km/h.
03 02 006D
Speed event data length 0 2 00 6D
ID Data length Data field
1byte 1byte 2bytes
27 / 123
SP4600/SP3600 Protocol
15bytes maximum
<Geo-fence event data length>: HEX, “0x12” converts to decimal is 18, which mean 18bytes.
<ID and data length>: HEX, “0x06”, bit0 to bit3 represents identifier; bit4 to bit7 represents data length.
<Time>: HEX, ”0x19A52DBA”
<Speed>: Hex, “0x0064” converts to decimal is 100, which means speed is 100km/h.
<ID and data length>: HEX, “0x1A”, bit0 to bit3 represents identifier; bit4 to bit7 represents data length.
<Geo-fence number>: HEX, “0x08” converts decimal 8, which mean Geo-fence number 8.
<Status>:
“bit1”: “1” means entering Geo-fence, “0” means leaving Geo-fence.
“bit0”: “1” means over speed, “0” means normal speed.
12 06 19A52DBA 0064 1A 0803 0901 0A02 0B01 0C03
Geo-fen 0 6 19A52D 0064 1A 08 03 09 01 0A 02 0B 01 0C 03
ce BA
event I Data Time Spee Data Geo-fen Stat Geo-fen Stat Geo-fen Stat Geo-fen Stat Geo-fen Stat
data D leng d leng ce us ce us ce us ce us ce us
length th th number number number number number
1byte 1byte 4bytes 2byt 1byt 2bytes 2bytes 2bytes 2bytes 2bytes
es e
18bytes
Note: Maximum 5 Geo-fence numbers and status data.
02 0144
Healthy check event data 0 1 44
ID Data length Data field
28 / 123
SP4600/SP3600 Protocol
1byte fixed 1byte 1byte
2bytes, unfixed
X/Y axis data: HEX, acceleration magnitude equals value/1000, unit is g. Which means:
X: “0XFF9C” equals X:-0.099g
Y: ”0x00D7” equals Y:0.215g
<ID and data length>: bit0 to bit3 represents data length, bit4 to bit7 represents ID.
<Data type>: “00” means iButton data, “01” means temperature sensor data.
<Data field>:
iButton: serial number of iButton, 6bytes.
Temperature sensor: serial number of sensor, 8bytes and temperature value, 2 bytes.
iButton:
08 07 00 000000133B29
0 7 00 000000133B29
1WIRE event data length
ID Data length Data type is iButton Serial number of iButton
1byte fixed 1Byte 1Byte 6Bytes
Temperature sensor:
0A 1B 01 00000012038C 0064
1 B 01 00000012038C 0064
1WIRE event data length ID Data length Data type is temperature sensor Serial number of value
temperature sensor
1byte fixed 1Byte 1Byte 8Bytes 2Bytes
Temperature value: data/10, unit is Celsius, e.g. 0x011D equals 28.5 degree Celsius.
<ID and data length>: bit0 to bit3 represents data length, bit4 to bit7 represents ID.
29 / 123
SP4600/SP3600 Protocol
<Data field>: HEX, “0x02BE” means 8.85, unit is volt.
03 02 02BE
ADC event data length 0 2 02BE
ID Data length Data field
1byte, fixed 1byte 2bytes
3bytes, unfixed
■ Entering sleeping mode event under the situation of battery with low voltage
Data field
Type Phone number type Phone number length Phone number Data length Data field
“81”: Unknown
“04”: 8bit
“91”: International
“08”: U2CODE
“A1”: Domestic
1byte 1byte 1byte 2 to 12bytes 1byte 0~140byte
E.g1.: SMS contents ”GUANG ZHOU CHINA”, will be converted and report to server
F8 06 02 01 3F B8 21 FE C8 DF 04 91 0D 68 31 29 46 14 65 F0 10 47 55 41 4E 47 20 5A 48 4F 55 20 43 48 49 4E 41 07 3E F8
E.g3.: SMS contents ” 中国.广州.科学城 GuangZhou China”, will be converted and report to server
F8 06 02 01 3F B8 21 FE C8 DF 08 91 0D 68 31 29 46 14 65 F0 2E 4E 2D 56 FD 00 2E 5E 7F 5D DE 00 2E 79 D1 5B 66 57 CE 00 47 00 75
00 61 00 6E 00 67 00 5A 00 68 00 6F 00 75 00 43 00 68 00 69 00 6E 00 61 31 6E F8
30 / 123
SP4600/SP3600 Protocol
Auxiliary data is according command PKI
Bit Explanation
Bit7 - Bit3 Serial port number, currently 1 port available, which means it is 0.
Bit2 0: Not carrying device ID, 1: Carrying device ID
Bit1 0: Not carrying date and time, 1: Carrying date and time
Bit0 0: Not carrying position data, 1: Carrying position data
Second Second sub- Second sub- packet Third sub- packet Third sub- Third sub- Fourth sub-packet
packet packet type data field length packet type packet data length
length field
2byte 1byte Unfixed 2byte 1byte Unfixed 2byte
F8
Fourth sub- Fourth sub- … … … CRC Packet tail
packet type packet data field
1byte Unfixed … … … 2byte 1byte
E.g.: with 3 kinds of sub-packet
F8 Packet head 1 byte
06 Protocol version 1 byte
04 Mixed data type packet indicator 1 byte
013FB822109948 Device ID, IMEI 7 bytes
0022 First sub- packet length 2 bytes
03 First sub- packet type, 03 means serial link packet 1 byte
07013FB8221099481ABE70F001016176A206C2C7303132333 First sub- packet data field Unfixed
43536373839300D0A
003C Second sub- packet length 2 bytes
01 Second sub- packet type, 01 means regular report packet 1 byte
32 / 123
SP4600/SP3600 Protocol
1ABE70F100330E1556322E303627312E302E352D5413003F4 Second sub- packet data field Unfixed
6016176A206C2C730000000000006009604056311860C01801
1E021003100410051
5. Packet sample
*GS06,356496042329318,000000000000,,SYS:G6S;V1.00;V1.0.1,GSM:5;4;460;0;2503;962C;-59#
*GS06,356496042329318,000000000000,,SYS:G6S;V1.00;V1.0.1,GSM:5;4;460;0;2503;962C;-59#
*GS06,356496042329318,000000000000,92,SYS:G6S;V1.00;V1.0.1#
33 / 123
SP4600/SP3600 Protocol
*GS06,356496042329318,031427090613,,SYS:G6S;V1.00;V1.0.1,GPS:A;7;N23.164358;E113.428515;0;0;45;1.10#
*GS06,356496042329318,031417090613,,SYS:G6S;V1.00;V1.0.1,GPS:A;7;N23.164358;E113.428515;0;0;44;1.10#
6. Command
Command lists for different authorization, please refer APPENDIX1
Configuration software or
2 Serial port to Device 5.1.2 UNO;+8601234567891
serial port software
Device replies:
*GS 06 , 358696040652862 , <Command #
word>:<Parameter>;<Parameter>,<Comman
d word>:<Parameter>;<Parameter>
Packet Protocol Separator Device ID Separator Command field Packet
head version tail
e.g.:
Send: *GS00,UNO;13912345678#
Reply: *GS06,358696040652862,UNO:13912345678#
34 / 123
SP4600/SP3600 Protocol
Parameters in identical command word using “;” as separator.
e.g.:
Send: UNO;13912345678
Reply: UNO:13912345678
Send: 1234,UPW;1234
Reply: G6S V1.00
UPW:1234
EXT_PWR=11.94V
BAT=3.90V
#3
Server to device
Between different command using “,” as separator
e.g.:
Send: *GS00,UNO;13912345678,UPW;1234#
Reply: *GS06,0123456789,UNO:13912345678,UPW:1234#
Send:1234,UNO;13912345678,UPW;4567
Computer to device
Between different command using “,” as separator
Send:
UNO;13912345678,UPW;1234
Reply:
UNO:13912345678,UPW:1234
35 / 123
SP4600/SP3600 Protocol
OPW OPW:0123456789
Explanation OPW;<PASSWORD>
This password is for the accessibility of configuration software on computer.
ACM ACM:1F8
Explanation ACM;<Mask>
Enable commands in OEM command list for administrator, except commands DFP/OPW/ACM.
36 / 123
SP4600/SP3600 Protocol
UCM UCM: 1FFFFFFFFF
Explanation UCM;<Mask>
OAS OAS:update.skypatrol.com;80
Explanation OAS;<IP>;<PORT>
OAP OAP:/skypatrol/G6S/V105/Release/G6S.txt
<File path>:
64bytes maximum, OTA file path on OTA server
Factory default: OAP:/skypatrol/G6S/Release/G6S.txt
37 / 123
SP4600/SP3600 Protocol
APL;46000 APL:46000;cmnet;user;pw
Explanation Device is able to save APN list on device, when SIM card inserted to automatically fulfill APN information.
There is 4K byte memory is used for APN list.
Device will keep the newest APN in memory.
APL;<MCC+MNC>;<APN>;<user name>;<pw>
HBI HBI:50
Explanation Function: Set up the heartbeat packet uploading time interval of TCP/UDP sever, keep the sever and device connected..
HBI;<Interval>
Factory default:HBI;20
&z=16
38 / 123
SP4600/SP3600 Protocol
URL0 is prior when GPS is fixed.
<Link>: Maximum is 126bytes, “)” is used for data conversion.
Valid parameter that following “%”, case sensitive
“y”: year
“m”: month
“H”: hour
“M”: minute
“S”: second
“n”: north
“e”: east
“a”: valid flag
“s”: speed
“r”: heading
“C”: MCC
“N”: MNC
“A”: LAC
“D”: CID
Factory default:URL0;http://maps.google.com/maps?q=%n,%e&t=m&z=16
UGP UGP:3
39 / 123
SP4600/SP3600 Protocol
Explanation UGP;<Parameter>
Factory default:UGP;0
To customize user command white list, 10 command words maximum, command words in this command are available
for user from admin command list
Factory default:
Opposite to command CEN, this command is used to forbidden commands for user from admin list.
40 / 123
SP4600/SP3600 Protocol
CDS;PIN;SCN;APN;SVR;BSV;BDU;SVP;SSP;USP;SSN
CDS:PIN;SCN;APN;SVR;BSV;BDU;SVP;SSP;USP;SSN
UCM
UCM:0
Factory default:
SDM1 SDM1:7F
41 / 123
SP4600/SP3600 Protocol
Explanation To set Sub-data type mask.
Format:
<Main data identifier>: range is “0 to 15”, refer command AMD “Main data type list”.
<Sub-data mask>:
HEX, range is “0000 to FFFF”.
42 / 123
SP4600/SP3600 Protocol
Bit Sub-data type 0 1 Length, ASCII Length, HEX
EFM EFM:1;0;1
43 / 123
SP4600/SP3600 Protocol
Explanation
EFM;<Mode>;<Priority>;<Erase>
<Mode>
0: Disable offline (GPRS) data saving feature
1: Enable offline (GPRS) data saving feature, If GPRS recovers device will send offline data to server.
<Priority>
0: Real-time data prior, when GPRS recovers send the real time data first.
1: Offline data prior, when GPRS recovers send the offline data first.
<Erase>
1: Erase offline data from flash storage. (Need to include former 2 parameters when executing)
0: Do not offline data from flash storage. (Changing former 2 parameters without erasing)
EFM:1;1
ESM ESM3:FF;FF;FF;FF
44 / 123
SP4600/SP3600 Protocol
Explanation ESM[Main event ID];<Sub-event mask>;<Sub-event status0 mask>;
<Sub-event status1 mask>;<Clear type>
[Main event ID]: Range is “0 to 7”, one main event type including 8 sub events.
<Sub-event mask>:
<Clear type>:
Note: Definition of Main event, sub-event, status0/1 please refer chapter9 “Event list”
Factory default:
ESM:0;0;0;ff
ESM1:0;0;0;ff
ESM2:0;0;0;ff
ESM3:10;10;10;ff
ESM4:0;0;0;ff
ESM5:0;0;0;ff
ESM6:0;0;0;ff
ESM7:0;0;0;ff
45 / 123
SP4600/SP3600 Protocol
EUP EUP28;4;1;1;1 EUP28;4;1;1;1
EUP28;4 EUP28:4;1;1;1
<Data string mask mode>: Range is “0 to 7 (ADM0 to ADM7)”, only available for action type “report”, please refer
command ADM
Factory default:
EOB28 EOB28:0;4;2
Explanation
EOB[Event ID];<Digital output channel ID>;<Event status0 mode>;<Event status1 mode>
e.g.:
EOB28;0;4;5;0
DOM0;4;500;500;5;0;1
DOM0;5;500;500;5;0;1
46 / 123
SP4600/SP3600 Protocol
DOM0;1
ERL0 ERL0:15;24;1;25;1
Explanation Event combination functionality (ERL), binding multiple events (up to 5, AND logic) together as combination event to
trigger specific reaction of device
Format:
[Combination event ID]: range is “0 to 7”, corresponding to event number “56 to 63” in chapter9 “Event list”
<Valid period>: All events in combination event must be satisfied during this period, otherwise combination event will
not be activated.
Note:
If need to trigger I/O reaction, command EOB is related with this command.
Factory default: ERL(0~7):0;127;0;127;0;127;0;127;0;127;0
ADM1 ADM1:47
47 / 123
SP4600/SP3600 Protocol
Explanation This command is to customize data type in packet that to be reported to server, up to 8 profiles are available, SMS server
is forced to used ADM0 while GPRS server is forced to used ADM1
Note:
Command ADM0 is specific for non-event report to SMS server, data string maximum length is 230bytes.
Command ADM1 is specific for non-event report to GPRS server, data string length is 384bytes.
“Bit0” and “Bit1” are fixed as “1”, which means data string must including GPS or GSM information. Packet including
GSM data is according to report setting SVR/SSP/USP, e.g. G mode when GPS preferred, otherwise use GSM data, A
48 / 123
SP4600/SP3600 Protocol
mode GPS and GSM both will be reported to server.
Factory default:
ADM0:47
ADM1:47
ADM2:47
ADM3:47
ADM4:47
ADM5:47
ADM6:47
ADM7:47
DOM0;2 DOM0:2;0
49 / 123
SP4600/SP3600 Protocol
Explanation DOM[ID];<Mode>;<Parameter1>;<Parameter2>;<Parameter3>;<Parameter4>;<Parameter5>
<Parameter1>,<Parameter2>,<Parameter3>,<Parameter4>,<Parameter5>:
To configure digital output channel, number of parameters varies with different mode.
Mode “0”:
Mode “1”:
Mode “2”:
Mode “3”:
Mode “4”:
50 / 123
SP4600/SP3600 Protocol
<Parameter4>: Start level, “0” means low level, “1” means high level
<Parameter5>: End level, “0” means low level, “1” means high level
Mode “5”:
Mode “6”:
Mode “7”:
Factory default:
DOM0:2;0
DOM0:3;0
DOM0:4;0;0;0;0;0
DOM0:5;0;0;0;0;0
DOM0:6;0;0;0;0;0
DOM0:7;0;0;0;0;0
AIM AIM:0;0
Explanation AIM;<Mode1>;<Mode2>
<Mode1>: AD1/IN3
<Mode2>: AD2/IN4
51 / 123
SP4600/SP3600 Protocol
Note:
If AD1/IN3 set as digital input, it has another identifier “IN3”.
If AD2/IN4 set as digital input, it has another identifier “IN4”.
DIM DIM0:0
Explanation DIM[ID];<Mode>;<Parameter1>;<Parameter2>;<Parameter3>
<Parameter1>,<Parameter2>,<Parameter3>:
To configure digital input channel, number of parameters varies with different mode.
Mode “0”:
Voltage level sampling, level changes will trigger event. (Not parameter)
Mode “1”:
Frequency counter, pulse frequency sampling, if input frequency outside the range will trigger event. (2 parameters)
<Parameter1>: Frequency lower limit
<Parameter2>: Frequency upper limit
Mode “2”:
Mode “3”:
Low level. (1 parameter)
<Parameter1>:
Set low level duration time, unit is “ms”, surpass this value will trigger event.
Mode “4”:
52 / 123
SP4600/SP3600 Protocol
Mode “5”:
Rising edge (3 parameters)
<Parameter1>: Set initial value of counter
<Parameter2>: Set counter value threshold, surpass this value will trigger event.
<Paramete3>: Reset counter value to zero when reach threshold, “0” is not reset, “1” is reset.
Mode “6”:
Failing edge (3 parameters)
<Parameter1>: Set initial value of counter
<Parameter2>: Set counter value threshold, surpass this value will trigger event.
<Paramete3>: Reset counter value to zero when reach threshold, “0” is not reset, “1” is reset.
Mode “7”:
Edge (3 parameters).
<Parameter1>: Set initial value of counter
<Parameter2>: Set counter value threshold, surpass this value will trigger event.
<Paramete3>: Reset counter value to zero when reach threshold, “0” is not reset, “1” is reset.
e.g.:
DIM1;0
It means IN2 mode set as 0, if input level changes will trigger event.
DIM1;1;500;1000
It means IN2 mode set as 1, if input frequency outside “500 to 1000” will trigger event.
Default: DIM:0
ADS ADS0:1;8
[ID]: 0 or 1;
“0”: AD1/IN3, valid only when set as analog.
“1”: AD2/IN4, valid only when set as analog.
53 / 123
SP4600/SP3600 Protocol
<Sample times>: Times of each AD sampling, output is average value of sample times, range is “0 to 256”
EPS EPS:4;0;1;0
EPM EPM;2;100
Explanation EPM;<Mode>;<Interval>
<Interval>: Only valid when <Mode> is “2”, unit is ms, range is “5 to 65535”.
Default: EPM;1
BMS BMS:2;10;45;35;40;30
Explanation
BMS;<moving_para>;<harsh_brake_para>;<harsh_accelerate_para>;<harsh_corner_left_para>;<harsh_corner_right_par
a>
<moving_para>:
Device motion status acceleration magnitude threshold, range is “1 to 200”, unit is 0.01g.
<harsh_brake_para>:
Device harsh brake acceleration magnitude threshold, range is “1 to 200”, unit is 0.01g.
<harsh_accelerate_para>:
Device harsh accelerates acceleration magnitude threshold, range is “1 to 200”, unit is 0.01g.
<harsh_corner_left_para>:
Device harsh left cornering acceleration magnitude threshold, range is “1 to 200”, unit is 0.01g.
<harsh_corner_right_para>
Device harsh right cornering acceleration magnitude threshold, range is “1 to 200”, unit is 0.01g.
Default: BMS:2;10;45;35;40;30
AMS AMS:150;90
55 / 123
SP4600/SP3600 Protocol
Explanation AMS;<crash_para>;<trun_over_para>
<crash_para>:
Note: Sensor itself will judge front or rear collision, side collision will be considered as rear.
<trun_over_para>:
Default: AMS:150;90
UFM UFM:FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Explanation UFM;<use_mask>
<use_mask>:
User Geo-fence mask, 156 Geo-fences in total (0 - 155), Bit0 – Bit27, Bit28 – Bit159.
“0”: Disable this geo fence for user
“1”: Enable this geo fence for user
Default: UFM:1
AGS AGS:[email protected];Moouaq
Explanation This command is to set username and password to connect with AGPS server.
<Username>:48 characters maximum.
<Password>:12 characters maximum
Default: AGS;[email protected];Moouaq
AIR AIR:0
56 / 123
SP4600/SP3600 Protocol
Explanation AIR;<Mode>
“0”: Define input as “0 to 12V”
“1”: Define input as “0 to 32V”
Default: AIR:0
PKI PKI:1;1;1
<Device ID>: ”0” not carrying device ID, “1” carrying device ID
<Time flag>: ”0” not carrying time flag, “1” carrying time flag
<Position information>: ”0” not carrying position, “1” carrying position
Default: PKI:1;1;1
PSS0 PSS0:0
Explanation
PSS<Module>;<Toggle>;<Para1>;<Para2>;<Para3>
<Module>
Value Explanation
0 GSM module
1 GPS module
2 2D accelerate sensor
<Toggle>:
“0” disable power saving
“1” enable power saving
■GSM module:
PSS0;1;<para1>;<para2>;<para3>
<para1>: Unregistered duration time threshold, unit is minute, range is “1 to 255”
<para2>: No data transmission duration time threshold, unit is minute, range is “1 to 255”
<para3>: Awake interval, unit is minute, range is “1 to 255”
■GPS module
PSS1;1;<para1>;<para2>
<para1>: GPS un-fixed duration time threshold, unit is minute, range is “1 to 255”
57 / 123
SP4600/SP3600 Protocol
<para2>: Awake interval, unit is minute, range is “1 to 65535”
If GSM unregistered duration surpasses threshold time or no data transmission duration surpasses threshold time, power
saving will be activated. Under power saving if device detects data transmit request and able to establish socket
connection before, it will wake up instantly; otherwise device wakes up according to awaken interval.
If GPS un-fixed duration surpasses threshold time or under parking status, power saving will be activated.
Before activation if GPS un-fixed, device will wakes up according to awake interval, otherwise it will wake up when
vehicle leaves parking status.
If GSM and GPS both under power saving, MCU will go to power saving as well.
Default:
PSS0;0
PSS1;1;5;10
PSS2;0
GPO GPO:1;1
Explanation
This command is to control module working status.
Format:
<Toggle GSM>:
<Toggle GPS>:
Default: GPO;1;1
<ID>: range is “0 to 5”
0: OEM default
1 to 5: for user customized
Note: Profile file size must be less than 4095bytes, each command in profile must end with <LF><LR>, file name must
be less than 31 characters.
Default: Null
Default: Null
Default: Null
FRL1 FRL1:7;7
59 / 123
SP4600/SP3600 Protocol
Explanation This command is to set when all selected conditions are satisfied, device will automatically switch among configuration
profiles.
Low level
Bit9 bIn2 Digital input IN2 High level or Null
High level
Bit10 bIn3 Digital input 3 Low level
Bit11
Bit12
Bit13
Bit14
Bit15
Note: Selected conditions must be satisfied at the same time to trigger switching between command list profile.
Default: Null
DOP DOP:40;40;40
60 / 123
SP4600/SP3600 Protocol
Explanation GPS speed must be smaller than preset speed to activate output, if GPS speed invalid, output will be active immediately.
Format
DOP;<Out1>;<Out2>;<Out3>
Explanation
<Out1>: OUT1 activate speed threshold.
<Out2>: OUT2 activate speed threshold.
<Out3>: OUT3 activate speed threshold.
Default: DOP;40;40;40
JMP JMP:30;10;120
<RSSI threshold>: GSM signal strength threshold to decide being jammed or not, range “20 to 50”.
<Enter jamming counter>: device will compare current RSSI with <RSSI threshold>, if bigger than <RSSI threshold>,
counter will accumulate 1, otherwise not. When the counter value over <enter jamming counter>, device considers itself
being jammed, range “5 to 600”.
<Leave jamming counter>: device will compare current RSSI with <RSSI threshold>, if small than <RSSI threshold>,
counter will accumulate 1, otherwise not. When the counter value over <Leave jamming counter>, device considers itself
not being jammed, range “30 to 250”.
Note: RSSI update rate is 1Hz.
Default: JMP:30;10;120
61 / 123
SP4600/SP3600 Protocol
Explanation This command is to set when anyone of the selected condition is satisfied, device will automatically switch among
configuration profiles.
Format:
FRS<File ID>;<Condition mask>;<Condition status bit>
Note: This feature is invalid at the first 30 seconds of tracker firmware initialization.
Default:
HOP HOP:1;3.00
Explanation This command is to set HDOP threshold to discard inaccurate GPS positions.
Format:
HOP;<Para1>;<Para2>
<Para1>:
“0” disable HDOP filter
“1” enable HDOP filter, <Para2> is invalid in this case
<Para2>:
HDOP threshold, GPS position HDOP bigger than this value will be discarded, range 2 – 10.
Factory default: HDOP;1;3
62 / 123
SP4600/SP3600 Protocol
GAM GAM;1 GAM:1
GAM GAM:1
Explanation Format:
GAM;<mode>
<Mode>:
1: enable AT command mode, you can interact with GSM module with AT command.
0: disable AT command mode.
Explanation Format:
GAT;<AT command>
<AT command>;
Specify a certain AT command here, tracker will print log accordingly if command is correct, otherwise will return
“GSM is off”.
6.2.46 Set up time interval command for regularly visit GICUS sever SPT
Command word Format Reply
63 / 123
SP4600/SP3600 Protocol
Setup: Reply:
SPT
SPT;1H SPT:1H
Inquiry: Inquiry:
SPT SPT:1H
Function:Set up time interval command for regularly visit GICUS sever;
Explanation
Format:SPT;<Time Interval>
Parameter definition:
<Time interval>:Set up as 30~900S,15~59M,1~720H;
Factory default:SPT;24H
64 / 123
SP4600/SP3600 Protocol
Factory parameter: No.
PIN PIN:1234
Explanation This command is to set PIN number of SIM card to automatically unlock SIM card.
PIN;<Password>
Length 4 to 8 digits
65 / 123
SP4600/SP3600 Protocol
SCN SCN:+8613800200500
SCN;<Number>
20 digits, must with “+country code” in front of phone number, default no need to set this number. Change to another
SIM card device will automatically read renew SCN setting.
Default: SCN
APN APN:cmnet
<APN>: 1 to 64 characters
<user name>: 0 to 32 characters
<password>: 0 to 32 characters
If there is not username and password for APN, command could be:
APN;<APN>
Note: Device already save some APN information, it the SIM card is recognized it will fulfill APN automatically
Default: Null
66 / 123
SP4600/SP3600 Protocol
SVR Set as TCP socket: Set as TCP socket:
SVR;114.142.154.28;3032;;0;0 SVR:114.142.154.28;3032;;0;0
or or
SVR;www.anytracking.net;3032;;0;0 SVR:www.anytracking.net;3032;;0;0
SVR SVR:114.142.154.28;3032;;0;0
<Mode>:
“0”:TCP mode
“1”:UDP mode
“2”:TCP channel for command, UDP channel for data report
<Enable ACK>:
“0”:Disable
“1”:Enabled for UDP, this is default setting
“2”:Enabled for UDP and TCP both.
Note: <Enable ACK>: “1”: data is sent via UDP channel from device , server must responds with any data in 15 seconds,
otherwise device will consider UDP connection is dead and save data to its internal flash storage.
Factory default:
67 / 123
SP4600/SP3600 Protocol
BSV Set as TCP socket: Set as TCP socket:
BSV;114.142.154.28;3032;;0;0 BSV:114.142.154.28;3032;;0;0
or or
BSV;www.anytracking.net;3032;;0;0 BSV:www.anytracking.net;3032;;0;0
BSV BSV:114.142.154.28;3032;;0;0
Explanation This command is to set backup GPRS server when main server is inavailable.
<Mode>:
“0”:TCP mode
“1”:UDP mode
“2”:TCP channel for command, UDP channel for data report
<Enable ACK>:
“0”:Disable
“1”:Enabled for UDP, this is default setting
“2”:Enabled for UDP and TCP both.
Note: <Enable ACK>, data is sent via UDP channel from device , server must respond with any data in 15 seconds,
otherwise device will consider UDP connection is dead and save data to its flash storage.
Factory default:
BDU BDU:1
BDU1 BDU1:20
68 / 123
SP4600/SP3600 Protocol
Explanation This command is to pack multiple position as a packet and report to server to save GPRS data flow, but it will affect the
real time report to server. Once the pre set value is met (regular packet/serial port packet) device will report immediately,
and reset the counter.
BDU;<Parameter>
BDU1;<Parameter>
e.g.:
BDU:10 means device waits for 10 regular position packets to pack as 1 packet to report
BDU1;30 means device waits for 30 packets from serial link to pack as 1 packet to report
Note:
Default:
BDU;1
BDU1;1
SVP;1 SVP:1;15S;G;B
Explanation This command is set report interval of mode0 (static) and mode1 (dynamic)
<Mode>:
“0”: Report mode0
“1”: Report mode1, valid only when command DNU is enabled.
<Report mode>:
“O”: Disable
“G”: GPS information prior
“A”: GPS and GSM information
69 / 123
SP4600/SP3600 Protocol
<Data format>:
“B”: HEX
“T”: ASCII
Default:
SVP:0;30S;G;B,
SVP:1;600S;G;B
SSP SSP:1;12H;G;T
Explanation This command is to set mode0 and mode1 report interval for SMS server
<Mode>:
“0”: Report mode0
“1”: Report mode1, valid only when command DNU is enabled.
<Report mode>:
“O”: Disable
“G”: GPS information prior, otherwise use GSM tower position instead, GSM tower uses HEX format.
“A”: GPS and GSM information
<Data format>:
“O”: Device will not generate data
“T”: Text
Default:
SSP:0;30M;O;T
SSP:1;30M;O;T
70 / 123
SP4600/SP3600 Protocol
USP;0 USP:0;12H;G;W
Explanation This command is to set mode0 and mode1 report interval to user0 and user1.
[ID]:
“0”: User0
“1”: User1
<Mode>:
“0”: Report mode0
“1”: Report mode1, valid only when command DNU is enabled.
<Report mode>:
“O”: Disable
“G”: GPS information prior, otherwise use GSM tower position instead, GSM tower uses HEX format.
“L”: Periodical voice call (Voice monitoring)
<Data format>:
“O”: Device will not generate data
“T”: Text
“W”: Map hyper link
Note: If <Data format> set as “W”, device that has GPS fixed will send URL0, GPS unfixed will send URL1 (GSM),
otherwise will send text format.
Default:
USP:0;24H;G;T
USP:1;24H;O;T
USP1:0;24H;G;T
USP1:1;24H;O;T
71 / 123
SP4600/SP3600 Protocol
SSN SSN;13912345678 SSN:13912345678
or or
SSN;+8613912345678 SSN:+8613912345678
SSN; SSN:
SSN SSN:+8613912345678
Explanation This command is to set phone number as SMS server which has administrator permission to access command list.
SSN;<Phone number>
Default: SSN:
SMT0 SMT0: +8613926442537;U;0
Explanation SMT[ID];<Paramter1>;<Parameter2>;<Parameter3>
Default:
72 / 123
SP4600/SP3600 Protocol
STP STP:1800
Explanation This command is to set threshold duration from stop status to parking status
STP;<Duration time>
<Duration time>:
Range is “1 to 1800”, unit is “second”.
If device keep stop over this threshold value, vehicle will be considered as parking
Default:STP;600
TZN TZN:8:00
Explanation This command is to set your local time zone, and display local time in your SMS.
TZN;<Hour>:<Minute>
Default:TZN:0:00
73 / 123
SP4600/SP3600 Protocol
DST Format1: Format1:
DST;03.27;10.01;00:00 DST:03.27;10.01;00:00
Format2: Format2:
DST;03.F5;10.A0;00:00 DST:03.F5;10.A0;00:00
DST DST:03.F5;10.A0;00:00
DST;<Parameter1>;<Parameter2>;<Parameter3>
<Parameter>: start date and second parameter is finish date. Start and finish time is decided by the third parameter. This
function only based on the user's cell phone.
Format 1 “DST;03.27;10.01;00:00” Para1-“03.27”: Daylight saving time start date. format is “month month. day day”.
“03.27” represents March 27.
<Parameter2>: “10.01”: Daylight saving time end date. format is “month month. day day”.
“10.01” represents October 1st.
<Parameter3>: “00:00”:start and end time (hour/min/sec), format is “hour hour: minute minute”.”00:00” represents time
is “00:00”
Format 2 “DST;03.F5;10.A0;00:00”:
<Parameter1>: “03.F5”: Daylight saving time start date, format is “month month. week day of week”. Week can be set
“A B C D F”. "A" for the first week, "B" for the second week, and so on, the fifth week or last week can use the "F" to
represent. Day of week can be set to “0 1 2……6”. Beginning on Sunday (“0” represent Sunday) to Saturday (“6”
represent Saturday). ”03.F5” represents Friday on the last week of march.
<Parameter2>: “10.A0”: Daylight saving time end date, format is same as para1. “10.A0” represents Sunday on the first
week of October
<Parameter3>: “00.00”:start and end time (hour/min/sec), format is “hour hour: minute minute”.”00:00” represents time
is “00:00”
Default: DST;00.00;00.00;00:00
Default: DST;0
STO STO:1
1: Enable
0: Disable
Default: STO:0
74 / 123
SP4600/SP3600 Protocol
PTH PTH:45;35
Explanation This command is to set threshold value for power supply event.
PTH;<Parameter1>;<Parameter2><Duration time>
Default: PTH:0;0
DNU DNU:1
Explanation This command is to set conditions to switch between mode0 and mode1
DNU;<Parameter>
Bit0:Stop
Bit1:Domestic roaming
Bit2:International roaming
Bit3:Using backup battery
Bit4:ACC OFF
”0”: Disable
“1”:Enable
Default: DNU;0
75 / 123
SP4600/SP3600 Protocol
6.3.19 Fixed distance report and corner turning report (DIS)
Command word Format Reply
DIS DIS;0;7 DIS:0;7
DIS DIS:0;7
Explanation This command is to set threshold value for cornering and distance report
DIS;<Distance><Angle>
Device will report once fixed distance or cornering angle is satisfied
<Distance>: range is “0 to 255”, unit is “0.1km”.
<Angle>: range is “3 to 20”, unit is “degree”
Default:DIS;0;7
ATH ATH:80;250;3
Explanation This command is to set input voltage outside the range, power supply event will be triggered.
Default:
ATH0;0;10;3
ATH1;0;10;3
76 / 123
SP4600/SP360 Protocol
Explanation This command is to toggle voice feature
VOE;<Voice call mode>;<SOS mode>;<SOS I/O port ID>
<SOS mode>:
“0”: Disable voice SOS
“1”: Enable voice SOS (conversation mode)
“2”: Enable voice SOS (Listening only)
Note1:
If <Voice call mode> set as “0”, only admin/user PRQ functionality available.
Note2:
If <Voice call mode> set as “0”,
>Incoming phone number in white list,
If it is PRQ authorization, device will hang up. If it is monitoring authorization, device will pick up. If its hot line
authorization, device will pick up.
>Incoming phone number is admin (SMS server), device will pick up in 15 seconds.
Default: VOE:1;0;
PWL;R;1-8 PWL:R;1;;2;;3;;4;;5;;6;;7;;8;
Explanation This command is to save phone number as white list number and assign different authorization to them
PWL;S;<Index>;<Phone number list>;<…>
<Index>:
2 Formats:
Format1:Index number; Index number…
Format2: Start index- End index
Note:
>Single command only available to query 8 numbers in a time.
>”X” means any number will be ok.
>Index number range is “1 to 16”, start must small than end
>If one number has monitoring and hotline authorization both, then only monitoring authorization is valid.
e.g.:
Query first to eighth numbers in white list:
PWL;R;1-8
Query first and second numbers in white list
PWL;R;1;2
QWL; QWL:
Explanation This is to enable phone number from white list for current position query purpose, device will reject the call and reply a
SMS with current position.
QWL;<Index>
Explanation:
<Index>: Assign numbers to have “Query current position authorization” from white list.
e.g.: Assign number 1,2,3,7 from white list
QWL;1-3;7
or
QWL;1;2;3;7
Default: QWL
78 / 123
SP4600/SP3600 Protocol
Explanation This command is to enable phone number from white list to have voice monitoring permission, device will pick up the
call and enable its microphone for voice monitor purpose.
MWL; <Index>
Explanation:
<Index>: Assign numbers to have “Voice monitoring authorization” from white list.
MWL;1,2,3;7
or
MWL;1,2,3;7
Default: MWL;
HWL;<Index>
Explanation:
<Index>: Assign numbers to have “Hot line authorization” from white list
e.g.: Assign number 1,2,3,7
HWL;1-3;7
or
HWL;1;2;3;7
Default: HWL
Explanation:
79 / 123
SP4600/SP3600 Protocol
< Index>: Assign number 1,2 to have “SOS authorization” from white list
SWL;1,2
Default: SWL
GFS0 GFS0:1;8001;25.310000;113.000000;1000
GFS0;P;0
GFS0;P;1 GFS0:P;0;25.310000;113.000000
GFS0;S
GFS0:P;1;1000
GFS0;T
GFS0:S;10;100
GFS0:T;7F;12:00-14:00;00:00-00:00;00:00-00:00
Explanation
■It supports circular, rectangle, and polygon Geo-fence
GFS[ID];<vertex_cnt><;flag><;para….>
Explanation:
<ID>: Geo-fence ID, range is “0 to 155”.
“0 to 27” represents 28 Geo-fences that support circle/ rectangle/ polygon.
“28 to 155” represents 128 Geo-fences that support circle shape only
80 / 123
SP4600/SP3600 Protocol
Bit7 Reserved
Bit8 Reserved
Bit9 Reserved
Bit10 Reserved
Bit11 Reserved
Bit12 Reserved
Bit13 Time validation flag
Bit14 Speed validation flag
Bit15 Geo-fence validation flag
“Bit0 to Bit1”: one of them must be “1”. System will force “Bit0” as “1” when set “Bit0 and Bit1” as “00”.
“Bit3 to Bit2”:
“00”: Represents detecting device in or out of Geo-fence, not refer speed.
“01”: Represents only inside the preset speed range, device to detect in or out of Geo-fence.
“10”: Represents only outside the preset speed range, device to detect in or out of Geo-fence.
“11”: System will treat it as “00”.
“Bit4”:
“0”: Disable valid time period
“1” Enable only in time period, device to detect in or out of Geo-fence
Note: Only if time and speed condition being satisfied, device will report Geo-fence event, otherwise device just detect
current status.
“Bit5 to Bit12”:
Reserved.
<Para…>” Parameter of circle or rectangle Geo-fence, if <vertex_cnt> value is “1” or “2”, Geo-fence has parameter to
set:
For circle Geo-fence, <Para…> is <center latitude, center longitude, radius>.
For rectangle Geo-fence, <Para…> is <vertex1 latitude, vertex1 longitude, vertex2 latitude, vertex2 longitude…>
Set Geo-fence
GFS[ID];P;para_ID;para_val<;para_ID;para_val>…
Explanation:
para_ID: Geo-fence ID
For circle, “0” means center latitude and longitude, “1” means radius.
For rectangle, “0” means vertex1 latitude and longitude, “1” means vertex2 latitude and longitude.
81 / 123
SP4600/SP3600 Protocol
para_val:
If it means GPS coordinate, format is latitude; longitude, south latitude and west longitude will be minus value.
If it means radius, format is radius, unit is meter.
Latitude range is less than +-90, longitude not more than +-180.
Radius is more than 200 meters, integer value.
To distinguish para_ID and para_val, para_ID length not more than 2, para_val more than 3.
Query Geo-fence configuration
GFS[ID];P;para_ID<;para_ID>…
Explanation:
<workday_mask>: Day of work mask.
Bit0 Sunday
Bit1 Monday
Bit2 Tuesday
Bit3 Wednesday
Bit4 Thursday
Bit5 Friday
Bit6 Saturday
Bit7 Reserved
0: Disable this day of week
1: Enable this day of week
GOF GOF:108000001
GOF<;enable_mask>
<enable_mask>:
HEX, length is 20 bytes.
BMO BMO:1;1;1
BMO; <moving_enable>;<harsh_braker_enable>;<harsh_accel_enable>;<harsh_corner_enable>
<moving_enable>
“0”: Disable moving detection.
“1”: Enable moving detection.
<harsh_braker_enable>
“0”: Disable harsh brake detection.
“1”: Enable harsh brake detection.
<harsh_accel_enable>
“0”: Disable harsh accelerate detection.
“1”: Enable harsh accelerate detection.
<harsh_corner_enable.
“0”: Disable harsh cornering detection.
“1”: Enable harsh cornering detection.
Default: BMO;1;1;1;1
83 / 123
SP4600/SP3600 Protocol
AMO AMO;1;1 AMO:1;1
AMO AMO:1;1
AMO; <crash_enable>;<turn_over_enable>
<crash_ enable>
“0”: Disable rear collision detection.
“1”: Enable rear collision detection.
Note: Sensor will judge front/rear by itself.
<turn_over_enable>
“0”: Disable turn over detection.
“1”: Enable turn over detection.
Default: AMO;1;1
BDS BDS:1
Explanation Device must be installed as certain direction to have proper sensor functionality.
BDS;<direction>
<Direction>: range is “0 to 3”
Note: Please face the side with GPS antenna to the sky
Default: BDS;0
84 / 123
SP4600/SP3600 Protocol
MGE MGE;1 MGE:1
MGE MGE:1
MGE;<mode>
<mode>
“0”: Disable
“1”: Enable
Default: MGE:0
MGS MGS:1000
Explanation This command is set initial value of mileage, device will accumulate mileage based on this value and report to server
MGS;<data>
SPO SPO:0
Default: SPO:0
85 / 123
SP4600/SP3600 Protocol
SPO SPO:100;1;10
Explanation This command is to set speed range for over speed event.
SPS;<Max>;<Mini>;<Duration time>
ILO ILO:1
ILO;<Mode>
<Mode>:
“0”:disable
“1”:enable
Default: ILO;0
ILS ILS:100:100
<Stop time>: range is “1 to 65535”, unit is “second”, if device keep stop for this long (IG on), will be considered as idle.
<Move time>: range is “1 to 65535”, unit is “second”, if device moving again or IG off duration over this value, will be
considered as Quit idle
Default:ILS;100;100
86 / 123
SP4600/SP3600 Protocol
ETO ETO:1
Explanation This command is to toggle engine hour counter
ETO;<Mode>
<Mode>:
“0”: Disable
“1”: Enable
Default: ETO;0
Range is “0:0:0 to 99999:0:0”, the <Engine hour counter> in IG ON report will accumulate base on this value.
<I/O port>
To assign which port as engine status input port.
“0”: AD1, only valid when “AD1/IN3” set as digital
“1”: AD2, only valid when “AD2/IN4” set as digital
below conditions must be satisfied:
>AIM set as digital
>DIM mode0
HTM HTM:1;1
Explanation This command is to set health check packet report interval to GPRS server.
HTM;<Mode>
HTM;<Mode>;<Time>
87 / 123
SP4600/SP3600 Protocol
*GS06,356496042331108,HTM:0#
*GS06,356496042331108,030005170613,87,SYS:G6S,GPS:A;6;N23.164422;E113.428712,COT:,ADC:13.00;3.40;0.00;
0.00,DTT:84;C0;0;0,ETD:64#
<Mode>:
0:Query current device health only
1: Set periodical report
<Time>: Report interval, only valid when mode set as “1”, range is “0 to 255”, unit is hour, “0” means do not report.
Explanation:
MOT_MOV: Move
MOT_STA: Still
FSH_OK:Flash storage status
FSH_ERR:Flash error
2D_OK:2D normal
2D_ERR:2D abnormal
SOC_OK:Socket connection is ok
SOC_ERR:Socket connection error
Note:
Query health check information: Isolated from each connectivity type.
Periodical health check information report: EUP7 is enabled and EMS is allowed.
Default: HTM;0;0
88 / 123
SP4600/SP3600 Protocol
Command word Format Reply
AGP AGP;1 AGP:1
AGP AGP:1
<mode>:
“0”: disable A-GPS
“1”:enable A-GPS
SCF SCF:1
Explanation
Save current global setting to device, 3 profile slots available.
Format:
SCF;<Mode>
<Mode>: Range is “0 to 2”
Default:
Format:
RCF;<Mode>
<Mode>: Range is “0 to 2”
PVM PVM:1111100;00:00-08:30;11:30-13:30;17:30-23:59
89 / 123
SP4600/SP3600 Protocol
PVM;<mode><diid><workdaymask><hh1:mm1-hh2:mm2><hh1:mm1-hh2:mm2><hh1:mm1-hh2:mm2>
4 kinds of private mode, each mode has different trigger condition and report different to server:
Mode Name Trigger condition Report data string
0 Disable As usual
1 Full manual If digital input is “true”, device will Not report GPS/GSM position,
switch to “Full manual” private mode, Report device status (DTT)
otherwise as usual
2 Half manual If digital input is “true”, and under Not report GPS/GSM position,
private hour range, device will switch Report device status (DTT)
to “Half manual” private mode,
otherwise as usual
3 Automatically According to private hour range setting Not report GPS/GSM position,
only, device will switch to Report device status (DTT)
“Automatically” private mode,
otherwise as usual
4 Automatically According to private hour range setting Report as usual,
private activity only, device will switch to Report device status (DTT)
“Automatically” private mode,
otherwise as usual
Note:
4 digital input channels, range is “0 to 3”, first 2 are low level trigger, last 2 are high level trigger.
1 1 1 1 1 0 0
<mode>
0: Disable private hour mode
Command format: PVM;0
1: Full manual
Command format: PVM;1;<diid>
<diid>: Digital input channel, range is “0 to 3”
2: Half-manual
Command format: PVM;2;<diid>;<workdaymask>;<hh1:mm1-hh2:mm2>..
<diid>: Digital input channel, range is “0 to 3”
<workdaymask>: Working day mask
<hh1:mm1-hh2:mm2>: Private hour period on daily basis, 3 periods valid, at least set 1 period.
90 / 123
SP4600/SP3600 Protocol
3: Automatically
Command format: PVM;3;<workdaymask>;<hh1:mm1-hh2:mm2>..
<workdaymask>: Working day mask
<hh1:mm1-hh2:mm2>: Private hour period on daily basis, 3 periods valid, at least set 1 period.
Default: PVM;0
POB POB:1;1;4;5
Explanation
This command is to configure digital output for private mode or private activity.
Disable: POB;0
Enable: POB;1;<DOID>;<DOMode>;<Interval>
Default: POB;0
IBO IBO:0
91 / 123
SP4600/SP3600 Protocol
1:Fixed relevantOUT1,OUT2,OUT3
IBI IBI:000000133b29
Explanation This command is to save ibutton id numbers as permit ibutton to start vehicle, 16 IDs maximum (0 to 15), ID “0” is
specified for master ibutton.
Note: If the master ibutton physical touch with probe, device will enter permit ibutton input mode, the following touch of
ibuttons will be saved to permit list.
But in 5 minutes no any more input device will quit permit ibutton input mode automatically.
Format:
IBO<id>;<number>
<id>:0 to 15
<number>:Serial number of ibutton, 12bytes maximum
92 / 123
SP4600/SP3600 Protocol
<domode>: Digital output level, “0” represents low level, “1” represents high level.
e.g.: if set as “0” when ACC on and there is illegal ibutton input, digital output will perform low level.
Default: IBP;0;0;0;0
TMP TMP:100;-10;5
<Duration time>: Temperature stays inside range surpasses this value will trigger event, unit is second, range is 1 to
65535.
Default: TMP;100;-100;10
SVT SVT:1800;15
93 / 123
SP4600/SP3600 Protocol
Explanation This command is to set backup server timeout.
Format
SVT;<shift timer>;<ACK timeout>
Explanation
<Shift timer>: When timer is up, device will try to reconnect with main server, unit is second, range is “60 to 65535”.
<ACK timeout>: Timeout threshold for server ACK packet, unit is second, range is “15 to 60”.
Default: SVT;1800;15
IBE IBE:1
IBS IBS:1;4;4;5;20
Explanation This command is to set digital output mode for each output.
Format
IBS;<output1 level for relay>;<output2 level for LED when acc on>;<output3 level for buzzer when acc on>;
<output3 level for buzzer when ibutton key presents>;<delay time to cut ignition after engine off>.
94 / 123
SP4600/SP3600 Protocol
<interval>: interval between multiple times output, range is 0 to 30, unit is minutes.
<times>: specify how many times to repeat sending the customized string on serial port, range is 0 to 5, value 0 means
disabled.
<format>: define the string coding format.
0: HEX, number count in <string> should be even
1: ASCII
Default: Null
SUP SUP:1;15S;G;T
Explanation This command is set report interval of mode0 (static) and mode1 (dynamic)
<Mode>:
“0”: Report mode0
“1”: Report mode1, valid only when command DNU is enabled.
<Interval>: range is “60 to 900 seconds”, “15 to 59 minutes”, “1to 720 hours”
<Report mode>:
“O”: Disable
“G”: GPS information prior
“A”: GPS and GSM information both
<Data format>:
“T”: ASCII
Default:
SUP:0;60S;G;B,
SUP:1;600S;G;B
UNO0:
UNO1:
Default:
UPW0;1234
UPW1;1234
MOT MOT:0
<Parameter>:
0: Disable motion sensor, all kinds of report that relates with motion sensor will be disabled as well. If set as “0”, device
will be treated as “moving” all the time.
1: Enable motion sensor, high sensitivity.
2: Enable motion sensor, low sensitivity.
Default:MOT:1
97 / 123
SP4600/SP3600 Protocol
6.4.4 User command shortcut (USC)
Command word Format Reply
USC USC USC;A; PRQ
USC1;B;NAM(,VER USC1:B;NAM(,VER
Explanation USC[ID];<Parameter1>;<Command>
[ID]: range is “0 to 9”
<Command>:
If in the command there is character need to be converted, please refer chapter 3.2.2
Short command length is 50bytes maximum, reply message length is 70bytes maximum.
send: USC;A;PRQ(,STP(;600
Factory default:
98 / 123
SP4600/SP3600 Protocol
Command word Format Reply
AGN AGN0;7;7 AGN0:7;7
AGN AGN0:7;7
<Mode>:
“0”: Conversation mode
“1”: Listening only
ENM25 ENM25:ALARM:IO2_OFF;ALARM:IO2_ON
Explanation This command is to customize event name in the SMS message to user phone number.
ENM[Event ID];<Event status0 name>;<Event status1 name>
Note: Combination event rename only can set on field <Event status0 name>.
Format1:
99 / 123
SP4600/SP3600 Protocol
U: Clear event report for user0 and user1.
S: Clear event report for SMS server or GPRS server.
O: Clear I/O output reaction.
A: Clear all types of device reaction, if this command is sent via user authority,
then it is invalid for SMS server and GPRS server.
Format2:
ETC
User0 sends this command, all events report, Non-report reaction (e.g.: I/O output) times to user will be cleared.
User1 sends this command, all events report, Non-report reaction (e.g.: I/O output) times to user will be cleared.
Administrator (SMS server) sends this command, all events report, Non-report reaction (e.g.: I/O output) to administrator
will be cleared.
GPRS server sends this command, all events report, Non-report reaction (e.g.: I/O output) to server will be cleared.
Factory default:
ERT;<Hour>:<Minute>:<Second>
100 / 123
SP4600/SP3600 Protocol
Explanation Device will reply this command by report current position.
Factory default:
101 / 123
SP4600/SP3600 Protocol
and are also engraved or printed on the SIM card body during a process called personalization.
<Geo-fence status>:
HEX, data length is 156 bits, ranges is “0 to FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF”.
The first 28 Geo-fences are assigned to “bit0 to bit27”, The rest of 128 circle Geo-fences are assigned to “bit28 to
bit155”.
103 / 123
SP4600/SP3600 Protocol
Command word Format Reply
JAM JAM;0 JAM:0
JAM JAM:0
<Mode>
0: Disable anti-jamming
1: Enable anti-jamming
TOW TOW:0
<Mode>
0: Disable Tow detection
1: Enable Tow detection
104 / 123
SP4600/SP3600 Protocol
“1”: Licensed
“0”: No licensed
<Balance threshold>: range “0 to 65535”, Low than this value device will report via GPRS or SMS periodically according
to its command EUP setting, “0” means device will report current balance periodically according to <Interval>.
105 / 123
SP4600/SP3600 Protocol
Explanation This command is to set wave shape mode when output being activated.
Format:
DOO[ID];<Mode>
<Mode>:
TSP TSP:0
Explanation
This command is used to define Thousand separator in USSD balance check message for correct balance disaplay.
Format:
TSP;<Mode>
<Mode>:
Default: TSP;0
SIM SIM: 1471482111
Explanation This command is to query phone number of tracker SIM card if this feature is supported by SIM card, otherwise the
returned value will be:
SIM:
106 / 123
SP4600/SP3600 Protocol
EPT EPT:30;3600
Explanation
This command is to set packet report interval from serial port according to ACC status.
Format:
<ACC ON interval>: Tracker will only extract packet from its RS232 serial port periodically, e.g. <30> means when
ACC ON tracker accepts packet that from serial port every 30 seconds.
Unit is second, range is 0 – 999999, 0 means tracker will accept all packet from serial port.
<ACC OFF interval>: Tracker will only extract packet from its RS232 serial port periodically, e.g. <3600> means when
ACC OFF tracker accepts packet that from serial port every 3600 seconds.
Unit is second, range is 0 – 999999, 0 means tracker will accept all packet from serial port.
EPT;0;0
Explanation
If device receives such command it will hang up ongoing call anyway.
This command is to pick up the incoming call number that is not in the white list.
107 / 123
SP4600/SP3600 Protocol
Default:
ECL;0;+4930367009373
Explanation Format:
GVR:AGS2-W,REVISION 00.020
Model: AGS2-W
Version; REVISION 00.020
108 / 123
SP4600/SP3600 Protocol
6.4.50 Recover the parameter except the specific command to default value RPD
Command word Format Reply
Explanation Function:When the 2D sensor is damaged, it can enable ACC on as the device moving condition.
Format:ACO;<Mode>
<Format>
Factory default:ACO;0
6.4.52 Send command to make the device entering sleeping mode CSL
Command word Format Reply
Factory default:No.
109 / 123
SP4600/SP3600 Protocol
During over the air firmware upgrade process, it will not affect device current working status, and firmware download supports “pause and
resume”. Device receives upgrade command, it will download firmware from server over GPRS, when firmware download finished device will
reboot itself to initial upgrade process. If new firmware is faulty device will restore to original firmware automatically.
Confirm reply:
G6S V2.19
FWU
EXT_PWR=0.00V
BAT=0.01V
#27
G6S V2.19
110 / 123
SP4600/SP3600 Protocol
Upgrade Success!
EXT_PWR=0.00V
BAT=0.01V
#28
G6S V2.19
Upgrade UnSuccess!
EXT_PWR=0.00V
BAT=0.01V
#28
Confirm reply:
G6S V2.19
FCL:1
EXT_PWR=0.00V
BAT=0.01V
#27
Cannot execute:
G6S V2.19
FCL:0
EXT_PWR=0.00V
BAT=0.01V
#27
G6S V2.19
Upgrade UnSuccess!
111 / 123
SP4600/SP3600 Protocol
EXT_PWR=0.00V
BAT=0.01V
#28
Confirm reply:
G6S V2.19
FCL:1
EXT_PWR=0.00V
BAT=0.01V
#27
Cannot execute:
G6S V2.19
FCL:0
EXT_PWR=0.00V
BAT=0.01V
#27
112 / 123
SP4600/SP3600 Protocol
GPS is fixed
SPD:0km/h 0 Speed/Heading
113 / 123
SP4600/SP3600 Protocol
G6S V1.00 Device name/Firmware version
“T” mode
1, GPS is fixed
114 / 123
SP4600/SP3600 Protocol
G6S V1.00 Device name/Firmware version
LTM 2013-02-28 23:51:09 Date/Time
MCC/MNC/LAC/CID/RSSI Base station information type
460/0/2503/962C/-53dBm Main station, MNC/MNC/Local area code/Station ID/signal strength
460/0/2731/40F4/-60dBm Neighbor station 1
460/0/2703/4050/-70dBm Neighbor station 2
ETD:6/ACC ON Event ID/User defined event name/Data
GSM -52dBm GSM network signal strength
EXT_PWR=12.13V External power voltage
BAT=3.96V Built-in battery voltage
#28 Consumed messages
“W” mode
8.1. Command
Mode Command word Explanation
SSN Admin number (SMS server number), to set phone number as admin number
Admin APN Set APN, for GPRS connectivity
SVR GPRS server IP and port, for GPRS server report
UNO User number, for end user authorization
User
UPW User command password, change the default user command password.
9. Event list
Main event Sub- Eve Event Event status Device reaction
115 / 123
SP4600/SP3600 Protocol
event nt definitio identifier 0 1 2 3 4 5 6 7
ID ID n Repor Report
Repo
I/O Repo t to Report to
rt
I Definiti port rt to SMS to GPRS Reserv Reserv
0 1 to
D on actio user server GPRS server ed ed
user
n 0 (Admi server or
1
n) Admin
Tow to Normal
0 0 Tow √ √ √ √ √ √
normal to tow
Idle to Normal
1 1 Idle √ √ √ √ √ √
normal to Idle
Quit
2 2 Parking Parking √ √ √ √ √ √
parking
Normal
Over
Over to
3 3 speed to √ √ √ √ √ √
speed over
normal
speed
GSM
Main Normal
0 GSM jammin
event 0 4 4 to GSM √ √ √ √ √ √
jamming g to
jamming
normal
Geo-fenc
5 5 Null In or out √ √ √ √ √ √
e
First First
time time
6 6 Null √ √ √ √ √ √
position position
report report
Health
7 7 check Null Null √ √ √ √ √
report
Harsh Harsh
0 8 Null √ √ √ √ √ √
brake brake
Harsh Harsh
1 9 accelerat Null accelerat √ √ √ √ √ √
e e
Harsh Harsh
2 10 cornerin Null cornerin √ √ √ √ √ √
Main g g
1
event 1 Front Front
3 11 Null √ √ √ √ √ √
collision collision
Rear Rear
4 12 Null √ √ √ √ √ √
collision collision
Turn Turn
5 13 Null √ √ √ √ √ √
over over
Temper Tempera
6 14 1WIRE √ √ √ √ √
ature ture
116 / 123
SP4600/SP3600 Protocol
inside outside
range/ range
legal /illegal
ibutton ibutton
input input
Balance
7 15 Null Enable √ √ √ √ √ √
low
Normal
Abnorm
External to
0 16 al to √ √ √ √ √ √
power abnorma
normal
l
Normal
Abnorm
Backup to
1 17 al to √ √ √ √ √ √
battery abnorma
normal
l
Normal
Abnorm
to
2 18 AD1 al to √ √ √ √ √ √
abnorma
normal
l
Normal
Abnorm
to
3 19 AD2 al to √ √ √ √ √ √
Main abnorma
2 normal
event 2 l
Entering
the
sleeping
mode Entering
4 20 under the Reserve sleeping √ √ √ √ √ √
situation mode
of
Battery
with low
voltage
5 21 Reserved
6 22 Reserved
7 23 Reserved
Low to High to
0 24 IO1 √ √ √ √ √ √
high low
Low to High to
1 25 IO2 √ √ √ √ √ √
high low
Main
3 High to Low to
event 3 2 26 IO3 √ √ √ √ √ √
low high
High to Low to
3 27 IO4 √ √ √ √ √ √
low high
4 28 ACC ON to OFF to √ √ √ √ √ √
117 / 123
SP4600/SP3600 Protocol
OFF ON
Reserve Reserve
5 29 Reserved
d d
Reserve Reserve
6 30 Reserved
d d
Reserve Reserve
7 31 Reserved
d d
…Reserv
4 … … … …
ed
5 … … … … …
6 … … … … …
Comb
56 √ √ √ √ √ √
0
Comb
57 √ √ √ √ √ √
1
Comb
58 √ √ √ √ √ √
2
Comb
59 √ √ √ √ √ √
Main 3
7
event 7 Comb
60 √ √ √ √ √ √
4
Comb
61 √ √ √ √ √ √
5
Comb
62 √ √ √ √ √ √
6
Comb
63 √ √ √ √ √ √
7
118 / 123
SP4600/SP3600 Protocol
6. OAP FOTA firmware file path × √ √
7. APL APL list × √ √
8. HBI Set heartbeat packet × √ √
9. URL Set map hyper link × √ √
10. UGP Set UGP × √ √
11. CEN Enable command × √ √
12. CDS Disable command × √ √
13. SDM Sub-data report mask × √ √
14. EFM Set offline data report mode × √ √
15. ESM Sub-event mask × √ √
16. EUP Set device reaction × √ √
17. EOB Combination event parameter × √ √
18. ERL Combination event × √ √
19. ADM Main data type report mask × √ √
20. DOM Set output port mode × √ √
21. AIM Set AD/IN mode × √ √
22. DIM Digital input configuration × √ √
23. ADS Analog input configuration × √ √
24. EPS Serial port configuration × √ √
25. EPM Set serial port mode × √ √
26. BMS Harsh behavior configuration × √ √
27. AMS Accident configuration × √ √
28. UFM Set Geo-fence mask × √ √
29. AGS Set AGPS information × √ √
30. AIR Set AD1/IN3 input range × √ √
31. PKI Serial port configuration × √ √
32. PSS Power saving mode × √ √
33. GPO Toggle GSM/GPS module × √ √
34. YSF Load command list profile from computer to device × √ √
35. YGF Save command list profile from device to computer × √ √
36. YCF Load device existing command list profile × √ √
37. FRL Switching configuration profile on condition (OR) × √ √
38. DOP Output port speed condition × √ √
39. JMP GSM anti jamming configuration × √ √
40. FRS Switching configuration profile on condition (AND) × √ √
41. HOP Discard GPS position by HDOP × √ √
42. GAM Enable AT mode of GSM module × √ √
43. GAT Send AT command to GSM module × √ √
44. CTF Generate and export the current configuration file CTF × √ √
45. DOR DO OUT1 status saving start command DOR × √ √
Set up time interval command for regularly visit
46. SPT × √ √
GICUS sever SPT
47. RCS GICUS sever IP/domain name, port setup command × √ √
119 / 123
SP4600/SP3600 Protocol
RCS
GICUS sever visiting page path setup command
48. RCP × √ √
RCP
120 / 123
SP4600/SP3600 Protocol
37. ILS Idle status configuration √ √ √
38. ETO Set engine hour counter √ √ √
39. ETS Engine initial hour counter value √ √ √
40. HTM Device healthy check report √ √ √
41. AGP Set Assist GPS √ √ √
42. SCF Save current configuration as profile to device √ √ √
43. RCF Load configuration profile √ √ √
44. PVM Private hour mode configuration √ √ √
45. POB Private hour mode output mode configuration √ √ √
46. IBO Set 1-WIRE working mode √ √ √
47. IBI Set iButton permit list √ √ √
48. IBP Set iButton working mode √ √ √
49. TMP Set 1-WIRE temperature alarm range √ √ √
50. SVT Server timeout configuration √ √ √
51. IBE Set ibutton key special mode √ √ √
52. IBS Define ibutton key special mode √ √ √
53. ITS Input event to activate serial port output √ √ √
54. SUR Set USSD server √ √ √
55. SUP USSD server report interval mode √ √ √
121 / 123
SP4600/SP3600 Protocol
22. REG Query GSM registration status √ √ √
23. SCC Clear SMS counter √ √ √
24. SCR Query SMS counter √ √ √
25. GSM Query GSM information √ √ √
26. GPS Query GPS information √ √ √
27. ADC Query ADC information √ √ √
28. GFT Query GFT information √ √ √
29. STT Query device status √ √ √
30. GTT Query Geo-fence status √ √ √
31. MGR Query mileage √ √ √
32. ETT Query event status bit √ √ √
33. JAM Enable anti-jamming feature √ √ √
34. TOW Enable Tow detection feature √ √ √
35. CFN Query current configuration profile number √ √ √
36. PTY Query device model √ √ √
37. CHC Query licensed status √ √ √
38. IBC Reset iButton ID √ √ √
39. GFC Reset Geo fence √ √ √
40. EUC Reset all events action √ √ √
41. BLS Balance notification √ √ √
42. DOO Digital output specify wave shape √ √ √
43. TSP Define separator in USSD √ √ √
44. SIM Query current SIM phone number √ √ √
45. EPT Set serial port report interval by ACC √ √ √
46. HUP Hang up the ongoing call √ √ √
47. PUP Pick up the incoming call √ √ √
48. ECL Set ECALL feature √ √ √
49. GVR Query model and version of GSM module √ √ √
Recover the parameter except the specific command
50. RPD √ √ √
to default value
51. ACO Enable ACC ON as the device moving condition √ √ √
Send command to make the device entering sleeping
52. CSL √ √ √
mode
122 / 123
SP4600/SP3600 Protocol
Socket connected: GPS fixed: External power supply:
SIM card error: GPS module OFF: Under iButton ID config mode:
LED off
e.g.: GPS fixed, GPS LED will flash once, and wait for 3 seconds to flash once more.
123 / 123