PCAN Driver Setup on Linux
Linux PCAN workflows normally use either a vendor driver/API path or a SocketCAN network-interface path. Choose one path deliberately and follow the documentation for the installed kernel and driver package.
Identify the Device
After connecting the adapter, inspect USB and kernel messages:
lsusb
dmesg | tail -n 50Do not treat USB enumeration alone as proof that a CAN network interface or vendor API channel is ready.
SocketCAN Path
If the device and kernel driver expose a SocketCAN interface, identify it and inspect its state:
ip -details link showConfigure bit timing according to the project network before bringing the interface up. The exact interface name and CAN FD parameters depend on the detected device and driver. Use ip -details link show <interface> to record the active configuration.
Vendor Driver/API Path
When the project uses the PCAN vendor API rather than SocketCAN, install the matching Linux driver and user-space library from the current package instructions. Confirm kernel-module build requirements, supported kernels, library architecture, and device permissions before compiling an application.
Verification Checklist
- The expected device or network interface is present.
- The selected classic CAN or CAN FD mode matches the application profile and bus.
- Arbitration and data-phase bit timing match the other nodes.
- The bus has appropriate termination and a common reference.
- A receive-only test succeeds before active transmission when connecting to an existing network.
CAN FD availability is determined by the hardware, CANmeleon application profile when applicable, kernel/driver path, and configuration. Record all of them with the OS version and test date.
