This forum covers PCAN-Linux and Linux development issues concerning our products
-
S.Grosjean
- Software Development

- Posts: 357
- Joined: Wed 4. Jul 2012, 17:02
Post
by S.Grosjean » Thu 22. Jun 2017, 09:14
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
— Stéphane
-
JohnnyT
- Posts: 7
- Joined: Fri 16. Jun 2017, 17:34
Post
by JohnnyT » Thu 22. Jun 2017, 18:35
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.
-
S.Grosjean
- Software Development

- Posts: 357
- Joined: Wed 4. Jul 2012, 17:02
Post
by S.Grosjean » Fri 23. Jun 2017, 10:01
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
— Stéphane