Interface to Peak-System's PCAN-Basic API.
Here is an example configuration file for using PCAN-USB:
[default] interface = pcan channel = PCAN_USBBUS1 state = can.bus.BusState.PASSIVE bitrate = 500000
channel(default"PCAN_USBBUS1")CAN interface name. Valid
channelvalues:PCAN_ISABUSx PCAN_DNGBUSx PCAN_PCIBUSx PCAN_USBBUSx PCAN_PCCBUSx PCAN_LANBUSx
Where
xshould be replaced with the desired channel number starting at1.state(defaultcan.bus.BusState.ACTIVE)- BusState of the channel
bitrate(default500000)- Channel bitrate
Beginning with version 3.4, Linux kernels support the PCAN adapters natively via :doc:`/interfaces/socketcan`, refer to: :ref:`socketcan-pcan`.
.. autoclass:: can.interfaces.pcan.PcanBus
:members: