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

Support PDIs longer than a single frame can hold #242

Merged
merged 12 commits into from
Nov 19, 2024
Merged

Conversation

jamwaffles
Copy link
Collaborator

@jamwaffles jamwaffles commented Oct 6, 2024

This chunks a SubDevice group's PDI and sends it over multiple Ethernet/EtherCAT frames if the allocated storage is too small to send the whole PDI in one PDU.

TODO

  • Test in a real system with large PDI, at least larger than the largest SubDevice mailbox on the network
  • DRY up the code in subdevice_group/mod.rs - there's a lot of bug-prone copypasta in the tx_rx_* methods.
  • Revert testing commit that disables COE configuration

@jamwaffles jamwaffles marked this pull request as ready for review November 5, 2024 22:01
It shows up a lot in multi-PDU sends when a new PDU overflows the frame.
The error itself is handled elsewhere.
@jamwaffles jamwaffles enabled auto-merge (squash) November 19, 2024 21:03
@jamwaffles jamwaffles merged commit 643eb0d into master Nov 19, 2024
10 checks passed
@jamwaffles jamwaffles deleted the chunked-pdi-sends branch November 19, 2024 21:06
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