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

Fixed : retransmission of discarded segments starts at beginning of new block #546

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

samsamfire
Copy link
Contributor

@samsamfire samsamfire commented Nov 6, 2024

Hi,

I noticed this issue whilst working on another canopen package.
The block upload retransmit does not work correctly.
On the event that a client does not properly receive a sub-block, it sends an end sub-block message with the last acknowledged segment number.
All the frames between ackseq and blksize sent by the server should be ignored (this is currently the case).
However, the server will start resending the missed frames (between ackseq and blksize) at the beginning of the new block, so at seqno==1.
This is difficult to test within the library as there is no sdo server supporting block transfer, but I have tested it against another implementation and it works OK.

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 71.36%. Comparing base (ffbd10f) to head (1a74fb6).

Files with missing lines Patch % Lines
canopen/sdo/client.py 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #546   +/-   ##
=======================================
  Coverage   71.36%   71.36%           
=======================================
  Files          26       26           
  Lines        3129     3129           
  Branches      480      480           
=======================================
  Hits         2233     2233           
  Misses        765      765           
  Partials      131      131           
Files with missing lines Coverage Δ
canopen/sdo/client.py 72.01% <0.00%> (ø)

@samsamfire
Copy link
Contributor Author

Hello,

What are your thoughts ?

@acolomb
Copy link
Collaborator

acolomb commented Nov 26, 2024

Sorry, didn't find the time to look at it yet. Will do soon when possible.

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