Skip to content

Kvaser Driver Setup on Linux ​

ApplicationDriver path
CanKing 7 or CANlibInstall Kvaser Linux Drivers and SDK using the CANlib installation guide.
SocketCAN and can-utilsStart 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")"
done

Match 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.

Standalone driver installation steps (Chinese)

CANmeleon · 连接设备与 CAN 软件生态

Screenshot preview0 × 0 px · Source image
100%
Zoom to read details · Scroll to pan · Esc to close