-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileUplink packet sequence repeat and CRC #1378
Comments
@timcanham -- In the case of a repeated packet, should the repeated packet still get written to the file? In that case, I'll simply protect against updating the checksum by wrapping THIS LINE in a condition. If we don't want to write the repeated packet to the file, then I'll wrap THIS BLOCK OF CODE in a condition that uses the same logic as |
@DJKessler I would skip the second write if the first copy was received successfully. |
@DJKessler I think this should be reassigned given the schedule change-up. Do you agree? |
@LeStarch -- Schedule change-up? I've actually got this fix implemented. I'm about to submit the pull request. |
* Added duplicated packet event/warning * Added method to check for duplicated packet * Added last packet write status member variable * Duplicate file packets are now skipped * Added duplicate file packet UT * Fixed `m_lastPacketWriteStatus` initialization. * Updated UT to test that the first packet isn't erroneously marked as a duplicate
Closing as complete. |
Feature Description
Add duplicate packet detection based on sequence number and don't add to CRC computation
Rationale
If the radio link is marginal, a radio can do a retry and send the same packet. In that case, you get the following warning:
The repeated packet still gets added to the CRC computation, so even with a successful retry, you get this warning at the end:
The update would to be to not update the CRC only in the case of a repeated packet sequence number. This wouldn't be to try to track all cases of dropped and retried packets.
The text was updated successfully, but these errors were encountered: