I'm running the software on Ubuntu 18.4, and easily built and installed the drivers. I built the test code, but I am unable to get it to work. Every one of the test software executables report that they can't open the device, for example:
transmitest: can't open /dev/pcan0
Going through your documentation, I believe that the CAN device is not initialized. How can I initialize it? I have included some diagnostic information that I hope will be helpful. Thank you!!
Code: Select all
lmerpk@JB2:~/Desktop$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 04d8:0205 Microchip Technology, Inc.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 04d8:0205 Microchip Technology, Inc.
Bus 001 Device 002: ID 0c72:000c PEAK System PCAN-USB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Code: Select all
lmerpk@JB2:~/Desktop$ ls /dev | grep can
pcan32
pcan-usb
pcanusb32
Code: Select all
lmerpk@JB2:~/Desktop$ lsmod | grep ^peak
lmerpk@JB2:~/Desktop$ lsmod | grep can
pcan 172032 0
i2c_algo_bit 16384 3 igb,pcan,i915
pinctrl_cannonlake 36864 0
pinctrl_intel 28672 1 pinctrl_cannonlake
lmerpk@JB2:~/Desktop$ cat /proc/pcan
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20220124_n (8.14.0) Jun 28 2022 15:12:41 --------------
*---------------------- [mod] [isa] [pci] [pec] [usb] -----------------------
*--------------------- 1 interfaces @ major 239 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usb -NA- ffffffff 000 0x001c 00000000 00000000 00000000 00000000 0x0000