#socket-can #cyphal #interface #fd

yanked cyphal-socketcan

Open Cyphal SocketCAN Rust Implementation

5 releases

0.0.9 May 18, 2024
0.0.8 May 17, 2024
0.0.7 May 10, 2024
0.0.6 May 8, 2024
0.0.0 May 6, 2024

#20 in #socket-can

Download history 1/week @ 2024-07-25 11/week @ 2024-09-19 13/week @ 2024-09-26

227 downloads per month

MIT/Apache

100KB
2.5K SLoC

Cyphal/CAN Socketcan

Open Cyphal SocketCAN Rust Implementation

🚧 Work in progress 🚧

Environment

To run the tests, two virtual CAN interfaces must be setup. In both cases, the vcan kernel module needs to be loaded:

modprobe vcan

CAN 2.0 vcan0 interface

ip link add dev vcan0 type vcan
ip link set vcan0 mtu 16
ip link set up vcan0

CAN FD vcan1 interface

ip link add dev vcan1 type vcan
ip link set vcan1 mtu 72
ip link set up vcan1

Extra Tools

It can also be quite usefull for testing ad debugging to install can utilities:

apt-get install can-tools

Minimum Supported Rust Version (MSRV)

This crate is guaranteed to compile on stable Rust 1.78 and up. It might compile with older versions but that may change in any new patch release.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~7–16MB
~232K SLoC