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

Don't check returned counter in CoE responses #236

Merged
merged 3 commits into from
Sep 24, 2024

Conversation

jamwaffles
Copy link
Collaborator

@jamwaffles jamwaffles commented Sep 24, 2024

A customer is seeing an issue where a CoE request is sent with counter = 1, but is returned with counter = 2. The response seems otherwise valid, with the expected index/subindex, so I'm not sure what's going on.

This PR stops checking the returned counter value, and instead does some extra validation on the index/subindex to be more confident the response is to the request we sent.

SOEM doesn't do it, and the spec is extremely vague about what this
value not being equal to what was sent means. Maybe there's some better
stuff in the CANOpen spec, but I don't have access to it.
@jamwaffles jamwaffles merged commit 1e0d054 into master Sep 24, 2024
10 checks passed
@jamwaffles jamwaffles deleted the change-coe-response-validation branch September 24, 2024 12:00
jamwaffles added a commit that referenced this pull request Sep 24, 2024
* Stop checking mailbox counter response value

SOEM doesn't do it, and the spec is extremely vague about what this
value not being equal to what was sent means. Maybe there's some better
stuff in the CANOpen spec, but I don't have access to it.

* Attempt to clear read mailbox up to 10 times

* Retry mailbox clear multiple times
jamwaffles added a commit that referenced this pull request Sep 24, 2024
* Stop checking mailbox counter response value

SOEM doesn't do it, and the spec is extremely vague about what this
value not being equal to what was sent means. Maybe there's some better
stuff in the CANOpen spec, but I don't have access to it.

* Attempt to clear read mailbox up to 10 times

* Retry mailbox clear multiple times
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.

1 participant