0% found this document useful (0 votes)
3 views

Communication Protocol

The document outlines various packet types and their corresponding codes used for communication between a device and a server, detailing packet structures and roles. It includes information on login, supervision, positioning, status updates, and various commands such as hibernation and alarm settings. Additionally, it provides specifics on data formats, lengths, and examples of content for each packet type.
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Communication Protocol

The document outlines various packet types and their corresponding codes used for communication between a device and a server, detailing packet structures and roles. It includes information on login, supervision, positioning, status updates, and various commands such as hibernation and alarm settings. Additionally, it provides specifics on data formats, lengths, and examples of content for each packet type.
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 16

Packet Type Packet Code From To Packet Structure

Login Send 0x01 Device Server Start Start


Login Response 0x01 Server Device Start Start
Supervision Nb 0x05 Server Device Start Start
Heartbeat 0x08 Device Server Start Start
Positioning Send 0x10 Device Server Start Start
Positioning Response 0x10 Server Device Start Start
Offline Positioning Send 0x11 Device Server Start Start
Offline Positioning Response 0x11 Server Device Start Start
Status Send 0x13 Device Server Start Start
Status Response 0x13 Server Device Start Start
Hibernation 0x14 Device Server Start Start
Restore Factory Send 0x15 Device Server Start Start
Restore Factory Response 0x15 Server Device Start Start
Whitelist Total Send 0x16 Device Server Start Start
Offline Wifi Send 0x17 Device Server Start Start
Offline Wifi Response 0x17 Server Device Start Start
Update Time Send 0x30 Device Server Start Start
Update Time Response 0x30 Server Device Start Start
Remote Listening 0x40 Server Device Start Start
SOS Number 0x41 Server Device Start Start
Dad Number 0x42 Server Device Start Start
Mom Number 0x43 Server Device Start Start
Stop Data Upload 0x44 Server Device Start Start
GPS Time Period Setting 0x46 Server Device Start Start
Do Not Disturb 0x47 Server Device Start Start
Restart 0x48 Server Device Start Start
Find 0x49 Server Device Start Start
Alarm Clock 0x50 Server Device Start Start
Stop Alarm 0x56 Device Server Start Start
Synchronous Setup Send 0x57 Device Server Start Start
Synchronous Setup Response 0x57 Server Device Start Start
Synchronous Whitelist Send 0x58 Device Server Start Start
Synchronous Whitelist Response 0x58 Server Device Start Start
Light Sensor 0x61 Server Device Start Start
Modify Server 0x66 Server Device Start Start
Restore Password 0x67 Device Server Start Start
WIFI Positioning Send 0x69 Device Server Start Start
WIFI Positioning Response 1 0x69 Server Device Start Start
WIFI Positioning Response 2 0x69 Server Device Start Start
Manual Positioning Send 0x80 Server Device Start Start
Manual Positioning Response 0x80 Device Server Start Start
Battery Charged 0x81 Device Server Start Start
Battery Warning 0x81 Device Server Start Start
Charger Connected 0x82 Device Server Start Start
Charger Disconnected 0x83 Device Server Start Start
Speed Alarm Send 0x86 Server Device Start Start
Speed Alarm Response 0x86 Server Device Start Start
Vibration On 0x92 Server Device Start Start
Vibration Off 0x93 Server Device Start Start
Vibration Received 0x94 Device Server Start Start
e
Length 01 IMEI IMEI IMEI IMEI
Length 01 Stop_1 Stop_2
Length 05 Status Stop_1 Stop_2
Length 08 Stop_1 Stop_2
Length 10 DateTime DateTime DateTime DateTime
Length 10 DateTime DateTime DateTime DateTime
Length 11 DateTime DateTime DateTime DateTime
Length 11 DateTime DateTime DateTime DateTime
Length 13 Battery Soft Vers Upload Interval Stop_1
Length 13 Upload interval Stop_1 Stop_2
Length 14 Stop_1 Stop_2
Length 15 Stop_1 Stop_2
Length 15 Stop_1 Stop_2
Length 16 Nb Witelist Stop_1 Stop_2
WiFi Nb 17 DateTime DateTime DateTime DateTime
Length 17 DateTime DateTime DateTime DateTime
Length 30 Stop_1 Stop_2
Length 30 DateTime DateTime DateTime DateTime
Length 40 ??????????????
Length 41 ??????????????
Length 42 ??????????????
Length 43 ??????????????
Length 44 Stop_1 Stop_2
Length 46 TimeOffHH TimeOffMM TimeOnHH TimeOnMM
Length 47 DND Switch Week DNDStartTime1 DNDStopTime1
Length 48 Stop_1 Stop_2
Length 49 Stop_1 Stop_2
Length 50 Alarm 1 DD Alarm 1 HH Alarm 1 MM Alarm 2 DD
Length 56 Stop Alarm Flag Stop_1 Stop_2
Length 57 Stop_1 Stop_2
Length 57 Upload interval Upload intervSwitch Alarm 1 DD
Length 58 Stop_1 Stop_2
Length 58 Name 1 Name 1 … 3A
Length 61 Ligh Switch Stop_1 Stop_2
Length 66 IP IP IP IP
Length 67 Restore Password Switch Stop_1 Stop_2
WiFi Nb 69 DateTime DateTime DateTime DateTime
Length 69 DateTime DateTime DateTime DateTime
Length 69 Lat Lat Lat Lat
Length 80 Stop_1 Stop_2
Length 80 Cause Stop_1 Stop_2
Battery Level 81 Stop_1 Stop_2
02 81 Stop_1 Stop_2
01 82 Stop_1 Stop_2
01 83 Stop_1 Stop_2
Length 86 Vmax Stop_1 Stop_2
Length 86 Vmax Stop_1 Stop_2
Length 92 Vibration Level Stop_1 Stop_2
Length 93 Stop_1 Stop_2
Length 94 Stop_1 Stop_2
IMEI IMEI IMEI IMEI Soft Vers Stop_1

DateTime DateTime Gps Length+Gps Nb Sat GPS Lat GPS Lat GPS Lat
DateTime DateTime Stop_1 Stop_2
DateTime DateTime Gps Length+Gps Nb Sat GPS Lat GPS Lat GPS Lat
DateTime DateTime Stop_1 Stop_2
Stop_2
70

DateTime DateTime ??????????????


DateTime DateTime Stop_1 Stop_2

DateTime DateTime Stop_1 Stop_2

Stop_1 Stop_2
DNDStartTime2 DNDStopTime2 Stop_1 Stop_2

Alarm 2 HH Alarm 2 MM Alarm 3 DD Alarm 3 HH Alarm 3 MM Stop_1

Alarm 1 HH Alarm 1 MM Alarm 2 DD Alarm 2 HH Alarm 2 MM Alarm 3 DD

Number 1 Number 1 … 3B Name 2 3A

Port Port Stop_1 Stop_2

DateTime DateTime Wifi 1 … Wifi 1 Wifi 2


DateTime DateTime Stop_1 Stop_2
Lat Lat Lat Lat Lat Lat
Stop_2

GPS Lat GPS Long GPS Long GPS Long GPS Long GPS Speed GPS Direction

GPS Lat GPS Long GPS Long GPS Long GPS Long GPS Speed GPS Direction

Stop_2

Alarm 3 HH Alarm 3 MM ?????????????

Number 2 Number 2 .. 3B Stop_1 Stop_2

… Wifi 2 … Wifi N … Wifi N LBS Nb

2C Lon Lon Lon Lon Lon Lon


GPS Direction Stop_1 Stop_2

GPS Direction Stop_1 Stop_2

LBS 1 … LBS 1 LBS 2 … LBS 2 …

Lon Lon Lon Lon Stop_1 Stop_2


LBS N … LBS N Stop_1 Stop_2
Bit Length (Bytes) Content (always in HEX)
Start 1 78
Stop_1 1 0D
Stop_2 1 0A
IMEI 8 BCD(IMEI)
Soft Vers 1 01
Protocol Nb 1 01
Protocol Nb 1 44
Protocol Nb 1 08
Protocol Nb 1 05
Supervision Nb 1 01
Supervision Nb 1 02
Supervision Nb 1 03
Protocol Nb 1 10
DateTime 6 YYMMDDhhmmss
GPS Length 0.5 L
GPS Nb Sat 0.5 N
GPS Lat 4 HEX((60*Min+Sec)*30000)
GPS Long 4 HEX((60*Min+Sec)*30000)
GPS Speed 1 HEX(Speed)
GPS Direction 2 HEX(001PWNH)
Length 1 0A
Length 1 01
Length 1 02
Length 1 12
Length 1 00 (? 07)
Protocol Nb 1 10
Protocol Nb 1 11
Length 1 06 (? 05)
Protocol Nb 1 13
Upload interval 1 mm
Protocol Nb 1 14
Protocol Nb 1 15
Protocol Nb 1 16
Protocol Nb 1 17
Protocol Nb 1 30
Protocol Nb 1 40
Protocol Nb 1 41
Protocol Nb 1 42
Protocol Nb 1 43
Protocol Nb 1 44
Protocol Nb 1 46
Protocol Nb 1 47
Length 1 0B
Length 1 05
Protocol Nb 1 48
Find 1 49
Alarm X DD 1 DD
Alarm X HH 1 HH
Alarm X MM 1 MM
Protocol Nb 1 56
Stop Alarm Flag 1 00
Switch 1 01
Protocol Nb 1 57
Protocol Nb 1 58
Wifi Nb 1 03
LBS Nb 1 03
WiFi X 7 MMMMMMR
LBS X 12 McMcMn LacLacLacLac CellCellCellCell Mciss
Cause 1 01/02/03/04/05/06/07
Battery Level 1 01/02
Detail

Login query or Login answer success


Login answer failure
Heartbeat
Server sends supervision Nb
Automatic pickup of call
Automatic answering two-way
Manual pickup of call
DateTime + GPS
2000 to add to YY; Time is GMT+0
Usually L = 9
Number of satellites connected
Data is sent as HEX from MinSec positional data x 30000
Data is sent as HEX from MinSec positional data x 30000
Speed in km/h
P = Positioning (1/0) ; W = West (1/0) : N = North (1/0) ; H = Heading (Degrees converted to Binary + 1 leading 0)
Length 10 for Login Send
Length 1 for Login Response; Heartbeat packet; Status; Restore Factory
Length 2 for Supervision Nb; Whitelist Total
Length 18 for Positioning Send and Offline Positioning Send
Length 0 (should it be 7 ?) for Positioning Response ; Offline Positioning Response ; Offline Wifi Response
Positioning
Offline Positioning
Length 6 (should it be 5 ?) for Status Send
Status
Number of minutes between upload intervals (can be set in Status Response)
Hibernation
Restore Factory
Whitelist Total
Offline Wifi
Update Time
Remote Listening
SOS Number
Dad Number
Mom Number
Stop Data Upload
GPS Time Period Setting
Do Not Disturb
Length 11 for Do Not Disturb
Length 5 for GPS Time Period Setting
Restart
Alarm Clock
Day in the week (01 is Monday; 00 is never)
Hour in the day (00 through 23; 00 is never)
Minute in the hour (00 through 59; 00 for never)
Stop Alarm
Can be 00 (off) or 01 (on)
HEX(00SLBVSG) where S = Sensor ; L = Light ; B = Bluetooth ; V = Vibration Alarm ; S = Step ; G = GPS
Synchronous Setup
Synchronous Whitelist
Number of WiFi Hotspots (min = 3 ; max = 8 best)
Number of GSM Towers (min = 2 ; max = ?)
Mac address over 6 bits; RSSI 1 bit
MCC (2 bytes) MNC (1 byte) LAC (4 byte) Cell ID (4 byte) MCISS (1 byte)
(?) 01 = Incorrect time ; 02= Not enough GSM towers ; 03 = Not enough WiFi hotspots ; 04 = Failed at GSM towers ;
01 = Charged ; 02 = Low
wers ; 05 = Same GSM and WiFi data ; 06 = GSM upload forbidden + No WiFi ; 07 = GPS precision is > 50m
From To Packet Code Role
Device Server 01 Device hails server
Server Device 01/44 Server returns validation (01 or 44)
Device Server 57 Device requests sync setup data
Server Device 57 Server responds with setup data
Device Server 81 Device sends (low?) battery level
Content exemple
78780d010359339075016807420d0a
7878050101683ec30d0a
787801570d0a
7878055778785ca40d0a
787802810d0a
Step From To Description
1 Server Device 0x80 asks for positioning
2 Device Tries 0x10 and 0x69
3 Device Server Returns 0x10 if available ; 0x89 if not
4 Device Server If returns 0x89, also eturns 0x80 for cause

You might also like