You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working with a CAN bus that is transmitting at 33300 kbps and when launching the node I get an error for a bad input parameter. I was wondering if it is possible to setup the current code to operate at that transmission rate or if there is a recommended way to edit the code base to implement this bit rate. Any and all assistance if greatly appreciated.
The text was updated successfully, but these errors were encountered:
I have. I believe the issue I am having is due to the code seemingly not supporting bit rates outside of the ones listed below in the screen shot taken from the "kvaser_interface.cpp" file. I have also included a link to the code section I show. I am uncertain if this is truly the issue, however this seems to be where the "bad param" error is originating from.
Interesting, I didn't know there were preset options like that. I'm not actually familiar with this codebase 😄
Those bitrate constants are defined here in the kvaser canlib source code: https://github.com/astuff/kvaser-linuxcan/blob/master/include/canlib.h#L393-L428
So maybe it's a limitation of canlib. Regardless, you'd probably want to look through Kvaser's canlib docs to see if/how you can use bitrates other that those defined.
I am working with a CAN bus that is transmitting at 33300 kbps and when launching the node I get an error for a bad input parameter. I was wondering if it is possible to setup the current code to operate at that transmission rate or if there is a recommended way to edit the code base to implement this bit rate. Any and all assistance if greatly appreciated.
The text was updated successfully, but these errors were encountered: