Changes

941 bytes added ,  12:54, 2 November 2018
Line 1,706: Line 1,706:     
Module validates AVL packet id and Number of accepted AVL elements. If server response with valid AVL packet id is not received within configured timeout, module can retry sending.
 
Module validates AVL packet id and Number of accepted AVL elements. If server response with valid AVL packet id is not received within configured timeout, module can retry sending.
 +
 +
 +
'''Example'''
 +
 +
Module sends the data:
 +
 +
{| class="wikitable"
 +
|-
 +
! style="background: black; color: white;"|UDP channel header !!style="background: black; color: white;"| AVL packet header !!style="background: black; color: white;"| AVL data array
 +
|-
 +
| Len – 253,
 +
Id – 0xCAFE,
 +
Packet type – 01 (without ACK)
 +
|| AVL packet id – 0xDD,
 +
IMEI – 1234567890123456
 +
|| CodecId – 08,
 +
NumberOfData – 2.
 +
(Encoded using continuous bit stream)
 +
 +
|-
 +
| 00FDCAFE01 || DD000F3133343536373839303132333435 || 0802…(data elements)…02
 +
|}
 +
 +
Server must respond with acknowledgment:
 +
 +
{| class="wikitable"
 +
|-
 +
!style="background: black; color: white;"| UDP channel header !!style="background: black; color: white;"| AVL packet acknowledgment
 +
|-
 +
| Len – 5,
 +
Id – 0xABCD,
 +
Packet type – 01 (without ACK)
 +
|| AVL packet id – 0xDD,
 +
NumberOfAcceptedData – 2
 +
 +
|-
 +
| 0005ABCD01 || DD02
 +
|}
 +
 +
 +
*'''Another example, with all IO id’s enabled'''

Navigation menu