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