Changes

698 bytes added ,  12:58, 2 November 2018
Line 1,747: Line 1,747:     
*'''Another example, with all IO id’s enabled'''
 
*'''Another example, with all IO id’s enabled'''
 +
 +
Server received data:
 +
 +
[[Image:aaz.png|aaz.png]]
 +
 +
Data length: 00a1 or 161 Bytes (not counting the first 2 data length bytes)
 +
 +
Packet identification: 0xCAFE 2 bytes
 +
 +
Packet type: 01
 +
 +
Packet id: 1b
 +
 +
Imei length: 000f
 +
 +
Actual imei: 333536333037303432343431303133
 +
 +
Codec id: 08
 +
 +
Number of data: 01
 +
 +
Timestamp: 0000013febdd19c8
 +
 +
Priority: 00
 +
 +
GPS data: 0f0e9ff0209a718000690000120000
 +
 +
UDP protocol is the same as TCP except message header is 7 bytes, which consist of: data length, packet identification, packet type and packet id.
 +
 +
Then goes imei length and imei itself.
 +
 +
And after that goes AVL data.
 +
 +
And at the very end number of data byte. There is no CRC in UDP.
 +
 +
 +
*'''Sending data using SMS'''