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

Add CAN bus utilization tracking #1895

Open
ilanbiala opened this issue Nov 13, 2024 · 0 comments
Open

Add CAN bus utilization tracking #1895

ilanbiala opened this issue Nov 13, 2024 · 0 comments

Comments

@ilanbiala
Copy link

Is your feature request related to a problem? Please describe.

For some testing, it is helpful to know the current CAN bus load as tests are being performed, or for load testing.

Describe the solution you'd like

Having python-can be able to provide the utilization for the past N seconds (provided either at bus initialization and running on an ongoing basis, or something like a bus.start_monitoring_utilization(window_time_s=5.0) and then having a valid value for that 5s window) would be useful, rather than having to implement this above the bus level.

Describe alternatives you've considered

Implementing this above the bus level would lead to many duplicate implementations across projects.

Additional context

canbusload provides this feature, but not in a programmatic library call available in Python as far as I could tell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant