FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

4167 questions

4739 answers

3460 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
135 views
in Vehicle tracking by anonymous
Hi

I've getting a little trouble about calculating last valid file offset.

Doc says: " Note: if a command with a bad CRC is received, RESUME command should be sent with the last valid file offset, after receiving a RESUME command, server will stop sending DATA commands and continue communication from “Resume file transfer” step. "

For Example:

   1) Lets say we have 3281 total packet video data and when we receive 3277. package we get CRC mismatch.

   2) Now RESUME command should be sent with the last valid file offset.

In this example

   1) If we receive 3277. package CRC mismatch, last valid file offset means 3276?

   2) How can we calculate last valid file offset ? For example it is 3276?

   3) Resume Command : 0002 → Command ID

                                             0004 → Data length

                                             ???????? → Packet offset for 3276

1 Answer

0 votes
by anonymous

Hello there, 

Good day. Thank you for the question.

If packet 3277 was received with incorrect CRC then the resume command should be sent with the previous offset which as you wrote would be 3276.

Referring to link - https://wiki.teltonika-gps.com/view/Teltonika_DualCam#Communication_protocol

The packet offset values are in HEX so it should be 0x00000CCC

Hope this clears your doubts now.

Kind regards.