I-CAN-hack / automotive

Rust crate providing a variety of automotive related libraries, such as communicating with CAN interfaces and diagnostic APIs
MIT License
40 stars 7 forks source link

[AsyncCAN] Ensure send future resolves when packet is ACKed #27

Closed pd0wm closed 6 months ago

pd0wm commented 7 months ago

Currently the send future resolves as soon as it's sent to the background thread. This makes it not possible to properly implement frame separation between ISO-TP frames when there is other traffic on the bus.

TODO:

pd0wm commented 7 months ago

https://github.com/torvalds/linux/commit/4b7fe92c06901f4563af0e36d25223a5ab343782

pd0wm commented 6 months ago

Added a oneshot channel to the send function to add support for delaying https://github.com/I-CAN-hack/automotive/commit/d3e40dd298959a6b782a033c2dbe90530a3ff671