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

Use a mailbox counter per device #132

Merged
merged 6 commits into from
Nov 20, 2023
Merged

Conversation

jamwaffles
Copy link
Collaborator

@jamwaffles jamwaffles commented Nov 18, 2023

Previously the counter was global to the Client instance, meaning individual devices would get confused when the counter wrapped back round to 1 due to a different device's mailbox comms.

Tested with modified ec400 demo and two EC400s. The servo now spins up with no issue.

Also tested with EK1100 + EL3204 + EL6910 which is a failing setup in #131. This now works, although errors out due to the ec400 demo not being compatible with these modules, which is fine.

Closes #131

Waiting for testing from the original reporter before merging.

Previously the counter was global to the `Client` instance, meaning
individual devices would get confused when the counter wrapped back
round to 1 due to a different device's mailbox comms.

Closes #131
Also removes `Clone` and `PartialEq` dervies on `Slave`
@jamwaffles
Copy link
Collaborator Author

Tested by original reporter and it's working well for them too 🎉

@jamwaffles jamwaffles merged commit 36e73a6 into master Nov 20, 2023
7 checks passed
@jamwaffles jamwaffles deleted the mailbox-counter-per-device branch November 20, 2023 09:49
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.

Networks with more than one CoE device causes mailbox timeout
1 participant