ethercrab-rs / ethercrab

EtherCAT master written in pure Rust
258 stars 25 forks source link

Support multiple PDUs per Ethernet frame #185

Closed jamwaffles closed 8 months ago

jamwaffles commented 8 months ago

This PR lays the groundwork for sending multiple PDUs per Ethernet frame for efficiency and performance reasons.

The motivator for this PR is to send a DC sync frame alongside a group's PDI. This is currently done by sending two disparate Ethernet frames, which halves(!) throughput.

This PR still only sends one PDU per frame, but it adds a nice (I think?) API to be able to queue up multiple PDUs later down the road.