Kvaser Driver Setup on Linux
| Application | Driver path |
|---|---|
| CanKing 7 or CANlib | Install Kvaser Linux Drivers and SDK using the CANlib installation guide. |
| SocketCAN and can-utils | Start with the kernel’s kvaser_usb driver. Use the standalone Kvaser SocketCAN driver if the kernel does not recognize the active mode. |
If Linux Drivers and SDK is installed, it can block the SocketCAN modules. Follow the Kvaser instructions for switching back to SocketCAN before changing paths.
Verify the SocketCAN Interface
Connect the device, then list the CAN interfaces and their drivers:
bash
lsusb -d 0bfd:
sudo modprobe kvaser_usb
ip -brief link show type can
for interface in /sys/class/net/can*; do
[ -e "$interface/device/driver" ] || continue
printf '%s %s\n' "${interface##*/}" "$(readlink -f "$interface/device/driver")"
doneMatch the interfaces to the connected device by comparing the list before and after plugging it in. Check the channel count for the active firmware and test reception on the intended channel.
If the device has no matching interface, check the kernel log and follow the README bundled with the standalone SocketCAN driver. Reconnect the device and verify the interface again after installation.