Skip to content
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

Fix FileUplink packet sequence repeat and CRC #1378 #3007

Merged
merged 7 commits into from
Nov 14, 2024

Conversation

DJKessler
Copy link
Collaborator

Related Issue(s) #1378
Has Unit Tests (y/n) y
Documentation Included (y/n) n

Change Description

Added duplicate packet detection based on sequence number

  • Added duplicated packet event/warning
  • Added method to check for duplicated packet
  • Added last packet write status FileUplink member variable
  • Duplicate packets are now detected and skipped
  • Added duplicate file packet unit test

Comment on lines +188 to +189
bool FileUplink ::
checkDuplicatedPacket(const U32 sequenceIndex)

Check notice

Code scanning / CodeQL

Use of basic integral type Note

checkDuplicatedPacket uses the basic integral type bool rather than a typedef with size and signedness.
)
{
this->m_fileUplink->log_WARNING_HI_PacketDuplicate(
sequenceIndex

Check warning

Code scanning / CodeQL

Unchecked function argument Warning

This use of parameter sequenceIndex has not been checked.
Copy link
Collaborator

@LeStarch LeStarch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what I see: if the last packet was successful and this packet is a duplicate, then the rest of the function (writing, CRC) is skipped. To my estimate this completes the work!

@LeStarch
Copy link
Collaborator

LeStarch commented Nov 6, 2024

@timcanham would you review too, given you were more involved with this work?

Copy link
Collaborator

@timcanham timcanham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@LeStarch LeStarch merged commit 0b9af4f into nasa:devel Nov 14, 2024
34 checks passed
@LeStarch
Copy link
Collaborator

Thanks @DJKessler!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants