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?
Cannot find device "can0" while setting up socketcan for a candump
-
- Posts: 5
- Joined: Mon 14. Jun 2021, 14:30
-
- Sales & Support
- Posts: 1083
- Joined: Fri 20. Sep 2019, 13:31
Re: Cannot find device "can0" while setting up socketcan for a candump
Hello,
to further assess this behaviour, we'll need more information:
1) whats your output for:
?
2) Can you give us the output for:
?
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:
then proceed with ip link to set up the device.
Please report back to us regarding this.
Best Regards
Marvin
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
Please report back to us regarding this.
Best Regards
Marvin
---
Marvin Heidemann
PEAK-Support Team
Marvin Heidemann
PEAK-Support Team