You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
- Added a number of netlink commands to modify the CAN interface parameters. including: setting the bitrate and (for FD) setting the data bitrate, setting control modes, manually restarting the interface, and setting the automatic restart delay time.
18
+
-[#32](https://github.com/socketcan-rs/socketcan-rs/issues/32)Added a number of netlink commands to modify the CAN interface parameters. including: setting the bitrate and (for FD) setting the data bitrate, setting control modes, manually restarting the interface, and setting the automatic restart delay time.
Copy file name to clipboardExpand all lines: README.md
+17-15Lines changed: 17 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
Rust SocketCAN
2
2
==============
3
3
4
-
This library implements Controller Area Network (CAN) communications on Linux using the SocketCANinterfaces. This provides a network socket interface to the CAN bus.
4
+
This library implements Controller Area Network (CAN) communications on Linux using the SocketCANsubsystem. This provides a network socket interface to the CAN bus.
@@ -10,19 +10,31 @@ Please see the [documentation](https://docs.rs/socketcan) for details about the
10
10
11
11
##Latest News
12
12
13
-
###Version 3.x adds integrated async/await and more!
13
+
###Version 3.x adds integrated async/await, improved Netlink coverage, and more!
14
14
15
-
Version 3.0 adds integrated support for async/await, with the most popular runtimes,_tokio, async-std_, and_smol_.To get started wehave already merged the[tokio-socketcan](https://github.com/oefd/tokio-socketcan) crate into this one and implemented`async-io`.
15
+
Version 3.0 adds integrated support for async/await, with the most popular runtimes,_tokio, async-std_, and_smol_.Wehave merged the[tokio-socketcan](https://github.com/oefd/tokio-socketcan) crate into this one and implemented`async-io`.
16
16
17
17
Unfortunaly this required a minor breaking change to the existing API, so we bumped the version to 3.0.
18
18
19
19
The async support is optional, and can be enabled with a feature for the target runtime:`tokio`,`async-std`, or`smol`.
20
20
21
-
Additional implementation of the netlink control of the CAN interface was added in v3.1 allws an application to do things like set the bitrate on the interface, set control modes, restart the inteface, etc.
21
+
Additional implementation of the netlink control of the CAN interface was added in v3.1 allowing an application to do things like set the bitrate on the interface, set control modes, restart the inteface, etc.
22
+
23
+
v3.2 increased the interface configuration coverage with Netlink, allowing an application to set most interface CAN parameters and query them all back.
24
+
25
+
###What's New in Version 3.2
26
+
27
+
-[#32](https://github.com/socketcan-rs/socketcan-rs/issues/32) Further expanded netlink functionality:
28
+
- Added setters for most additional interface CAN parameters
29
+
- Ability to query back interface CAN parameters
30
+
- Expanded`InterfaceDetails` to include CAN-specific parameters
31
+
- Better integration of low-level types with`neli`
32
+
- Significant cleanup of the`nl` module
33
+
- Split the`nl` module into separate sources for higher and lower-level code
-[PR#43](https://github.com/socketcan-rs/socketcan-rs/pull/43) Implement AsPtr for CanAnyFrame
33
45
34
-
###What's New in Version 3.0
35
-
36
-
- Support for Rust async/await
37
-
- All of[tokio-socketcan](https://github.com/oefd/tokio-socketcan) has been merged into this crate and will be available with an`async-tokio` build feature.
38
-
-[#41](https://github.com/socketcan-rs/socketcan-rs/pull/41) Added initial support for`async-io` for use with`async-std` and`smol`
39
-
- Split`SocketOptions` trait out of`Socket` trait for use with async (breaking)
40
-
- Added cargo build features for`tokio` or`async-io`.
41
-
- Also created specific build features for`async-std` and`smol` which just bring in the`async-io` module and alias the module name to`async-std` or`smol`, respectively, and build examples for each.
42
-
43
46
##Next Steps
44
47
45
48
A number of items still did not make it into a release. These will be added in v3.x, coming soon.
46
49
47
50
- Issue[#22](https://github.com/socketcan-rs/socketcan-rs/issues/22) Timestamps, including optional hardware timestamps
48
-
- Issue[#32](https://github.com/socketcan-rs/socketcan-rs/issues/32) A number of important netlink commands were added in v3.1, particularly the ability to set bitrates, reset the interface, and set control modes. But the implementation is still incomplete, particularly in regard to retrieving parameters and status from the interface.
49
51
- Better documentation. This README will be expanded with basic usage information, along with better doc comments, and perhaps creation of the wiki