Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: socketcan-rs/socketcan-rs

Version 3.5.0

29 Dec 18:14
Compare
Choose a tag to compare
Loading

A major update to thedump module, with some usability improvements to frames and sockets.

  • CanAnyFrame implementsFrom trait forCanDataFrame,CanRemoteFrame, andCanErrorFrame.
  • CanFdSocket implementaTryFrom trait forCanSocket
  • Added FdFlags::FDF bit mask for CANFD_FDF
    • The FDF flag is forced on when creating a CanFdFrame.
  • Updates todump module:
    • Re-implemented with text parsing
    • ParseError now implements stdError trait viathiserror::Error
    • Parses FdFlags field properly
    • CANFD_FDF bit flag recognized on input
    • Fixed reading remote frames
    • Now reads remote length
    • CanDumpRecord changes:
      • Removed lifetime and madedevice field an ownedString
    • ImplementedClone andDisplay traits.
      • Display trait is compatible with the candump log record format
    • dump::Reader is now an Iterator itself, returning fullCanDumpRecord items
    • New unit tests
  • #59 Embedded Hal for CanFdSocket
Assets2
Loading

Version 3.4.0

26 Dec 19:27
Compare
Choose a tag to compare
Loading

This is a service release to publish a number of pull requests that have accumulated in the repository, including a number of bug fixes and improvements on existing implementations.

  • Re-implemented CAN raw sockets usingsocket2
  • Added a 'CanId' type with more flexibility than embedded_can::Id
  • Moved from UD utility functions and types from frame module to id
  • Added a CAN FD example,echo_fd
  • Split outCanAddr and related code into a newaddr module.
  • NewCanRawFrame encapsulatea either type of libc, raw, CAN frame (Classic or FD)
  • Raw frame reads for CanSocket and CanFdSocket.
  • ImplementedRead andWrite traits forCanSocket
  • InterfaceCanParams now has all items as Option<>. Can be used to get or set multiple options.
  • #58 Add new API to enumerate available SocketCAN interfaces
  • #60 MakeCanState public
  • #61CanFdSocket read_frame crash fix
  • #64 Make termination u16 and addset_termination
  • #65 Dump parsing also optionally trims off CR at the line end
  • #66CanInterface: addset_can_params() method to set multiple parameters
  • #67 Improved tokio async implementation
  • #68 remove unnecessary qualifications
  • #73 Update some dependencies
    • itertools to v0.13,nix to v0.29,bitflags to v2.6,mio to v1
  • #74 CanFDFrames with ExtendedID are not correctly parsed by socketcan::dump::Reader
  • #75 Fix DLC and add padding for CANFD frames
  • #76 Add CanCtrlModes::has_mode(mode: CanCtrlMode)
  • #80 Friendly non-Linux compilation error
    • Remove unused byte_conv dependency
Loading

Version 3.3.1

09 Nov 19:52
Compare
Choose a tag to compare
Loading
  • #78 Fix memory error receiving CAN FD frames.
Loading

Version 3.3.0

27 Oct 11:53
Compare
Choose a tag to compare
Loading

CanFD support for Tokio

  • #53 Added CanFD support for tokio
  • Serialized tokio unit tests and put them behind the "vcan_tests" feature
Loading

Version 3.2.0

17 Oct 04:30
Compare
Choose a tag to compare
Loading

Expanded Netlink functionality to configure and query the CAN interface.

  • #32 Further expanded netlink functionality:
    • Added setters for most additional interface CAN parameters
    • Ability to query back interface CAN parameters
    • ExpandedInterfaceDetails to include CAN-specific parameters
    • Better integration of low-level types withneli
    • Significant cleanup of thenl module
    • Split thenl module into separate sources for higher and lower-level code
Loading

Version 3.1.0

12 Oct 13:50
Compare
Choose a tag to compare
Loading

Additional netlink implementation

  • 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.
  • PR #45 Dump handles extended IDs
  • PR #44 Fix clippy warnings
  • PR #43 Implement AsPtr for CanAnyFrame
Loading

Version 3.0.0

19 Sep 21:15
Compare
Choose a tag to compare
Loading

Support for Rust async/await

  • All oftokio-socketcan has been merged into this crate and will be available with anasync-tokio build feature.
  • #41 Added initial support forasync-io for use withasync-std andsmol
  • SplitSocketOptions trait out ofSocket trait for use with async (breaking)
  • Added cargo build features fortokio orasync-io.
  • Also created specific build features forasync-std andsmol which just bring in theasync-io module and alias the module name toasync-std orsmol, respectively, and build examples for each.
Loading

Version 2.1.0

19 Sep 19:41
Compare
Choose a tag to compare
Loading

Some usability improvements.

  • MadeCanAddr pulic and added functions to help interact with low-level sockaddr types. Sockets can now be opened with an address.
  • Can create anError directly from aCanErrorFrame orstd::io::ErrorKind.
  • #46 Applications can create error frames:
    • CanErrorFrame::new() now works.
    • CanErrorFrame::new_error() is similar but more intuitive using a raw ID word.
    • From<CanError> for CanErrorFrame to create an error frame from aCanError.
  • AddedFrame::from_raw_id() andFrame::remote_from_raw_id()
  • Bumped MSRV to 1.65.0
Loading

Version 2.0.0

06 Apr 13:15
Compare
Choose a tag to compare
Loading

Extensive rework of the crate to cleanup, refactor, and modernize the library and add some new features like CAN FD support.

  • Moved to Rust Edition 2021 w/ MSRV 1.64
  • Refactored frames into differnt types: Data, Remote, Error (and now FD), that can be managed through enumeraed wraper typesCanFrame and/orCanFdFrame
  • Pushed some implementation upsream to thelibc andnix crates, and/or adapted upstream types.
    • CAN 2.0 frames based onlibc::can_frame
    • CAN FD frames based onlibc::canfd_frame
  • #33 Netlink extensions
    • Creating and deleting interfaces
    • Setting MTU (to/from FD)
  • #21 New CI using GitHub Actions
  • #20 Composite PR with some modernization
    • Pulls in#13, and updates to the latestneli v0.6
    • Updatesnix dependency to latest v0.23
    • Moves to Rust 2018 w/ MSRV 1.54
    • Errors conform to std::error::Error
  • #16 Add CAN FD support
  • #24 Embedded HAL Traits
    • Plus some source refactoring into more coherent modules
Loading
XVilka reacted with rocket emojiappelgriebsch and dmezh reacted with eyes emoji
3 people reacted

[8]ページ先頭

©2009-2025 Movatter.jp