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
Fail to create the bus object with Vector interface. The following error is raised.
can.exceptions.CanInitializationError: The requested CAN FD settings could not be set for channel 0. Another application might have set incompatible settings. These are the currently active settings: OrderedDict(
[('bitrate', 500000), ('data_bitrate', 2000000), ('sjw_abr', 16), ('tseg1_abr', 63), ('tseg2_abr', 16), ('sam_abr', 1), ('sjw_dbr', 4), ('tseg1_dbr', 15), ('tseg2_dbr', 4), ('output_mode', <XL_OutputMode.XL_OUTPU
T_MODE_NORMAL: 1>), ('can_op_mode', <XL_CANFD_BusParams_CanOpMode.4|XL_BUS_PARAMS_CANOPMODE_CANFD: 6>)])
The bus config parameters are set in can.ini file:
Describe the bug
Fail to create the bus object with Vector interface. The following error is raised.
The bus config parameters are set in can.ini file:
The timing parameters (e.g. sjw_abr and etc) are passed as str to the constructor, and compared to int values at
https://github.com/hardbyte/python-can/blob/v4.1.0/can/interfaces/vector/canlib.py#L262.
To Reproduce
This code works with python-can v4.0.0, but fails on python-can v4.1.0.
Expected behavior
Bus object creation should not fail.
Additional context
OS and version: Windows 10
Python version: 3.7.9
python-can version: 4.1.0
python-can interface/s (if applicable): Vector
Traceback and logs
The text was updated successfully, but these errors were encountered: