I-CAN-hack / automotive

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

[SocketCAN] Emulate ACK if IFF_ECHO not set #56

Closed pd0wm closed 3 months ago

pd0wm commented 3 months ago

See https://github.com/I-CAN-hack/automotive/issues/52 for more details.

tl;dr: Fake ACKs from the kernel waste space in the RX queue, causing dropped messages if many messages are sent simultaneously. Emulate ACK on rust side to keep space in RX queue for real messages.