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

SDO timeout message after SDO request was successful #146

Open
KreideGit opened this issue Sep 22, 2023 · 0 comments
Open

SDO timeout message after SDO request was successful #146

KreideGit opened this issue Sep 22, 2023 · 0 comments

Comments

@KreideGit
Copy link

Describe the bug
A SDO timeout message appears on the bus even though the SDO request has completed successfully.

To Reproduce
Start a SDO Upload request (SDO state is busy) with a timeout of 1000ms.
SDO request finishes (SDO state is idle).
Start a new SDO Upload request (SDO state is busy again).
Because the timer of the first request is not deleted it runs out and calls the callback function.
The callback function checks if the SDO state is busy (which it is because of the second request which is still in progress).
The callback function thus sends a timeout message.

Expected behavior
The callback function shall not send a timeout message.

CANopen Stack (please complete the following information):

  • Device: [Virtual Machine]
  • OS: [Linux Debian x64]
  • Version [12 (Bookworm)]

This bug happens consistently because my AppClock timer matches the period of the SDO timeout and I start a new SDO request each AppClock update.

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

No branches or pull requests

1 participant