Changes

989 bytes added ,  15:58, 31 October 2018
Line 730: Line 730:     
Communication  with  server  is  the  same  as  with  codec  8  protocol,  except  in  codec8  extended  protocol codec id is 0x8E.
 
Communication  with  server  is  the  same  as  with  codec  8  protocol,  except  in  codec8  extended  protocol codec id is 0x8E.
 +
 +
Example:
 +
 +
Module connects to server and sends IMEI:
 +
 +
000f333536333037303432343431303133
 +
 +
Server accepts the module:
 +
 +
01
 +
 +
 +
Module sends data packet
 +
{| class="wikitable"
 +
|-
 +
!style="background: black; color: white;"| AVL data packet header !!style="background: black; color: white;"| AVL data array !!style="background: black; color: white;"| CRC
 +
|-
 +
| Four zero bytes,
 +
‘AVL data array’ length – 254
 +
|| Codec Id – 8E, NumberOfData – 02.
 +
(Encoded using continuous bit stream.
 +
 +
Last byte padded to align to byte boundary)
 +
|| CRC of ‘AVL data array’
 +
|-
 +
| 00000000000000FE || 8E02...(data elements)...02 || 00008612
 +
|}
 +
<small>Table 8. IO element structure
 +
</small>
 +
 +
Server acknowledges data reception (2 data elements):
 +
00000002
 +
 +
*'''Example'''
 +
 +
Received data:
 +
 +
000000000000005F8E010000015FBA40B620000F0DCDE420959D30008A000006000000000006000100EF0
 +
000010011001E000100100000CBDF0002000B000000003544C875000E0000000029BFE4D1000101000011
 +
0000000000000000000000000000000000010000D153

Navigation menu