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
The _detect_available_configs method in canlib.py for Vector returns all channels enumerated by the driver. This includes LIN, Digital/Analog I/O, ... channels, which are not in scope of a CAN library, but are supported by the connected hardware. In addition, I could not find an (implemented) way to get the channel type of the returned channels.
Based on page 63 of the XL Driver Library Manual, I propose a minor change to _detect_available_configs, to only return channels supporting CAN: if channel_config.channelBusCapabilities & vxlapi.XL_BUS_ACTIVE_CAP_CAN: This requires the following to be added to vxlapi.py: XL_BUS_ACTIVE_CAP_CAN = 65536