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

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
jwillnetwork
Posts: 5
Joined: Mon 14. Jun 2021, 14:30

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

Post by jwillnetwork » Mon 2. Aug 2021, 19:03

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?

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

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

Post by M.Heidemann » Tue 3. Aug 2021, 08:04

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
---
Marvin Heidemann
PEAK-Support Team

Post Reply