Line 769: |
Line 769: |
| [[Image:Ggg.png|Ggg.png]] | | [[Image:Ggg.png|Ggg.png]] |
| | | |
| + | 00000000 4 zeros, 4 bytes |
| | | |
| + | 0000005F data length, 4 bytes |
| + | |
| + | 8E – Codec ID |
| + | |
| + | 01- Number of Data (1 record) |
| + | |
| + | 1’st record data |
| + | |
| + | 0000015FBA40B620– Timestamp in milliseconds (1510658324000) |
| + | |
| + | GMT: Tuesday, November 14, 2017 11:18:44 AM |
| + | |
| + | 00 – Priority |
| + | |
| + | GPS Element |
| + | |
| + | 0F0DCDE4 – Longitude 252562916 = 25, 2562916º N |
| + | |
| + | 20959D30 – Latitude 546676016 = 54,6676016 º E |
| + | |
| + | 008A – Altitude 138 meters |
| + | |
| + | 0000 – Angle 0º |
| + | |
| + | 06 – 6 Visible sattelites |
| + | |
| + | 0000 – 0 km/h speed |
| + | |
| + | IO Element |
| + | |
| + | 0000 – IO element ID of Event generated (in this case when 0000 – data generated not on event) |
| + | |
| + | 0006 – 6 IO elements in record (total) |
| + | |
| + | 0001 – 1 IO elements, which length is 1 Byte |
| + | |
| + | 00EF – IO element ID = 239 (dec) |
| + | |
| + | 00 – IO element’s value |
| + | |
| + | 0001 – 1 IO elements, which length is 2 Byte |
| + | |
| + | 0011 – IO element ID = 17 (dec ) |
| + | |
| + | 001E – IO element’s value |
| + | |
| + | 0001 – 1 IO elements, which length is 4 Byte |
| + | |
| + | 0010 – IO element ID = 16 (dec ) |
| + | |
| + | 0000CBDF – IO element’s value |
| + | |
| + | 0002 – 2 IO elements, which length is 2 Byte |
| + | |
| + | 000B – IO element ID = 11 (dec ) |
| + | |
| + | 000000003544C875 – IO element’s value |
| + | |
| + | 000E – IO element ID = 14 (dec ) |
| + | |
| + | 0000000029BFE4D1 – IO element’s value |
| + | |
| + | 01 – Number of Data (1 record) |
| + | |
| + | 0000D153 – CRC-16, 4 Bytes (first 2 are always zeros |
| + | |
| + | |
| + | '''<big>Codec 8 extended protocol sending over UDP</big>''' |
| + | |
| + | *'''AVL data packet''' |
| + | |
| + | AVL data packet is the same as with codec 8, except codec ID is changed to 0x8E. |
| + | |
| + | |
| + | 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 |
| + | || AVL packet id – 0xDD, |
| + | IMEI – 1234567890123456 |
| + | || Codec Id – 8E, NumberOfData – 02. |
| + | (Encoded using continuous bit stream |
| + | |
| + | |- |
| + | | 00FDCAFE01 || DD000F3133343536373839303132333435 ||8E02…(data elements)…02 |
| + | |} |
| + | <small>Table 9. Example packet send to server</small> |
| + | |
| + | |
| + | 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 – 0xCAFE, Packet type – 01 |
| + | || AVL packet id -0xDD |
| + | Number of Accepted Data -2 |
| + | |- |
| + | | 0005CAFE01 || DD02 |
| + | |} |
| + | <small>Table 10. Example packet server response</small> |
| | | |
| == <big>Codec 12 Nebaigta</big> == | | == <big>Codec 12 Nebaigta</big> == |