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 method to set bitrate #75

Open
dawn-minion opened this issue Dec 9, 2019 · 3 comments
Open

Add method to set bitrate #75

dawn-minion opened this issue Dec 9, 2019 · 3 comments

Comments

@dawn-minion
Copy link
Contributor

Would it be possible to add a method to set the bitrate/baudrate? Module works great for me, but I need to switch the bitrate at runtime based upon input from one of the CAN devices on our network.

Right now I just have to shell out to the ip command which works, but it'd be really nice if there was something similar to libsocketcan's set_can_bitrate method to set bitrate for a specific interface: https://lalten.github.io/libsocketcan/Documentation/html/group__extern.html#gaf69a4a0d7424e5a61d60991295f50559

@sebi2k1
Copy link
Owner

sebi2k1 commented Dec 31, 2019

It requires integration of libsocketcan which is not used right now. But I like the idea as it also offers restarting the device and so on.

Unfortunately I do not have actual hardware available yet to test if the bitrate change actually.

@Hyphen90
Copy link

Hi, are there any plans to support libsocketcan in the near future? It would be perfect, if I could set the bitrate and message filter directly from your code.

@sebi2k1
Copy link
Owner

sebi2k1 commented Jan 11, 2021

Yes, indeed. I didn’t checked yet if the lib is already in Debian/Ubuntu tepid, would it make easier for the test builds.

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

3 participants