Closed
Description
Pull request #278 adds a new API for detecting available channels of a specific interface or multiple ones. By default, an interface does not need to provide this functionality, but can simply be extended to do so. (See below.)
Overview
These interfaces already have the automatic detection of available channels/configurations implemented:
-
socketcan
, Socketcan (added in PR Feature: API for automatic configuration detection #278) -
virtual
, Virtual (added in PR Feature: API for automatic configuration detection #278) -
kvaser
, Kvaser’s CANLIB (added in PR Add support for Kvaser config detection #321) -
serial
, CAN over Serial -
slcan
, CAN over Serial / SLCAN -
ixxat
, IXXAT Virtual CAN Interface -
pcan
, PCAN Basic API (added in PCAN: add support for detecting available channels #640) -
usb2can
, USB2CAN Interface (added in PR Improve USB2CAN interface #511) -
nican
, NI-CAN -
iscan
, isCAN -
neovi
, NEOVI Interface (added in PR Adding detect_available_configs support to neovi #327) -
vector
, Vector (added in PR Implement _detect_available_configs for Vector #362) -
canalystii
-
systec
How to extend an interface to support this:
- Make the bus instance of the interface extend the
BusABC::_detect_available_configs()
static method. - Add tests to
test/test_detect_available_configs.py
where required. - Submit a pull request.
- Done.