Page 1 of 1

Cannot find device "can0" while setting up socketcan for a candump

Posted: Mon 2. Aug 2021, 19:03
by jwillnetwork
Entering the commands:

sudo modprobe peak_usb
sudo ip link set can0 up type can bitrate 250000

Gives the error: Cannot find device "can0"

lsmod | grep peak

shows this:
peak_usb 45056 0
can_dev 32768 1 peak_usb

How should I debug this?

Re: Cannot find device "can0" while setting up socketcan for a candump

Posted: Tue 3. Aug 2021, 08:04
by M.Heidemann
Hello,

to further assess this behaviour, we'll need more information:

1) whats your output for:

Code: Select all

ip link ls
?

2) Can you give us the output for:

Code: Select all

uname -a
?

3) Can this be replicated, using the NetDev variant of our PCAN-Driver from the driver package?

Download PCAN-Linux driver package:

http://www.peak-system.com/fileadmin/me ... 2.0.tar.gz

Please follow the steps outlined in chapter 3 - Installation of the PCAN-Driver docuementation,
http://www.peak-system.com/fileadmin/me ... an_eng.pdf

Extract the tarball and chang einto the created driver-folder, from there:

Code: Select all

$ make clean
$ make NET=NETDEV_SUPPORT
$ sudo make install
$ sudo modporbe pcan
then proceed with ip link to set up the device.

Please report back to us regarding this.

Best Regards

Marvin