Skip to content

Implement support for timing parameters in can.ini for pcan#2069

Closed
geeak wants to merge 2 commits into
hardbyte:mainfrom
geeak:pcan-ini-timings
Closed

Implement support for timing parameters in can.ini for pcan#2069
geeak wants to merge 2 commits into
hardbyte:mainfrom
geeak:pcan-ini-timings

Conversation

@geeak
Copy link
Copy Markdown

@geeak geeak commented Jun 8, 2026

Summary of Changes

Add support for building BitTiming object from kwargs, which makes it possible to support timing parameters from can.ini. Whether this should be considered a new feature, or a bugfix for something that would be expected to be supported already, I leave up to others to decide.

This makes standard definitions like the example below work as expected in can.ini. CAN-FD support has not been implemented.

[pcan_125_kbit_50_perc]
interface = pcan
channel = PCAN_USBBUS1
f_clock = 8000000
brp=8
tseg1 = 3
tseg2 = 4
sjw = 2

Related Issues / Pull Requests

This fixes #2068 for standard CAN

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactoring
  • Other (please describe):

Checklist

  • I have followed the contribution guide.
  • I have added or updated tests as appropriate.
  • I have added or updated documentation as appropriate.
  • I have added a news fragment for towncrier.
  • All checks and tests pass (tox).

Additional Notes

geeak added 2 commits June 8, 2026 15:36
Add support for building BitTiming object from kwargs, which makes it possible to support timing parameters from can.ini
@geeak geeak closed this Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pcan driver ignores all timing settings in can.ini except bitrate

1 participant