Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic CAN configuration option for Bitrate and CAN FD #276

Closed
mirenz1 opened this issue Aug 6, 2024 · 1 comment
Closed

Basic CAN configuration option for Bitrate and CAN FD #276

mirenz1 opened this issue Aug 6, 2024 · 1 comment
Assignees
Labels
component: carl Mostly related to CARL. component: edgar Mostly related to EDGAR. component: lea Mostly related to LEA. type: enhancement Fulfills a need or requirement by improving an existing functionality.

Comments

@mirenz1
Copy link
Contributor

mirenz1 commented Aug 6, 2024

This story covers a subset of CAN bus configuration options mentioned in #128

Most common modifications of a CAN bus configuration is

  • bitrate
  • sample_point (optional)
  • CAN FD

The peer configuration shall be extended to support configuration of this basic CAN configurations in LEA and CLEO (will be done with #232).

If the selected peer network interface is CAN,

  • the user can choose if it is a normal CAN interface or a CAN FD interface
  • if a normal CAN interface is selected,
    • then the bitrate can be configured in kbaud
  • if a CAN FD interface is selected,
    • then the bitrate and the data bitrate can be selected in kbaud

When EDGAR receives the peer configuration for CAN interfaces, it configures SocketCAN interfaces as follwos

  1. shut down the interface
    ip link set can0 down
  2. Configure CAN interface
  • normal CAN interface
    ip link set can0 type can bitrate 500000 fd off
  • CAN FD
    ip link set can0 type can bitrate 500000 dbitrate 500000 fd on
  1. activate the interface
    ip link set can0 up
@mirenz1 mirenz1 added this to openDuT Aug 6, 2024
@mirenz1 mirenz1 converted this from a draft issue Aug 6, 2024
@mirenz1 mirenz1 added component: cleo Mostly related to CLEO. component: carl Mostly related to CARL. component: edgar Mostly related to EDGAR. component: lea Mostly related to LEA. type: enhancement Fulfills a need or requirement by improving an existing functionality. component: carl-api Mostly related to the opendut-carl-api and removed component: cleo Mostly related to CLEO. component: carl-api Mostly related to the opendut-carl-api labels Aug 6, 2024
@mbfm
Copy link
Contributor

mbfm commented Aug 28, 2024

Completed in #296.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: carl Mostly related to CARL. component: edgar Mostly related to EDGAR. component: lea Mostly related to LEA. type: enhancement Fulfills a need or requirement by improving an existing functionality.
Projects
Archived in project
Development

No branches or pull requests

4 participants