Page 2 of 2

Re: Netdev mode no such device

Posted: Thu 22. Jun 2017, 09:14
by S.Grosjean
Hello,

Does socketCAN work with the PCAN-USB on your Ubuntu VM?

Code: Select all

$ sudo rmmod pcan
$ sudo modprobe peak_usb
Regards,

Stéphane

Re: Netdev mode no such device

Posted: Thu 22. Jun 2017, 18:35
by JohnnyT
Thank you for your suggestion, it works now. I was using pcan instead of peak_usb according to the linux user manual on your website.

But here is the strange thing:

1. being able to see pcan32 (and several other things) in /dev
2. being able to see connected device in cat /proc/pcan
3. no connection problems when using sudo ip link set can0 up type can bitrate 500000, and then I could use all the commands such as those in can-utils.

if I use "sudo modprobe pcan", only 1&2 happened.

if I use "sudo modprobe peak_usb", only 3 happened.

Re: Netdev mode no such device

Posted: Fri 23. Jun 2017, 10:01
by S.Grosjean
Hi,

Both drivers run over the kernel usb sub-system but with different API.

1 & 2 are facilities exported by pcan, not by peak_usb, thus it's normal not having both of them, when pcan is not loaded. To get more info/stats with the socketCAN API, one uses the "ip -s -d link show can0" command.

Regards,

Stéphane