Page 1 of 2

Netdev mode no such device

Posted: Fri 16. Jun 2017, 17:36
by JohnnyT
johnny@ubuntu:~$ cat /proc/pcan

*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20170613_n (8.4.0) Jun 16 2017 09:14:59 --------------
*---------- [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc] [net] -----------
*--------------------- 1 interfaces @ major 246 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usb can0 0 000 0x001c 00000000 00000000 00000000 00000000 0x0000
johnny@ubuntu:~$ sudo modprobe pcan
[sudo] password for johnny:
johnny@ubuntu:~$ sudo ip link set can0 up type can bitrate 500000
RTNETLINK answers: No such device

Re: Netdev mode no such device

Posted: Fri 16. Jun 2017, 18:09
by JohnnyT
[ 667.009880] usb 2-1: new full-speed USB device number 3 using uhci_hcd
[ 667.157904] usb 2-1: New USB device found, idVendor=0c72, idProduct=000c
[ 667.157906] usb 2-1: New USB device strings: Mfr=10, Product=4, SerialNumber=0
[ 667.157907] usb 2-1: Product: PCAN-USB
[ 667.157908] usb 2-1: Manufacturer: PEAK-System Technik GmbH
[ 667.235423] pcan: error -32 submitting command
[ 667.236469] pcan: error -32 submitting command
[ 667.237528] pcan: error -32 submitting command
[ 667.238582] pcan: error -32 submitting command
[ 667.239728] pcan: error -32 submitting command
[ 667.240832] pcan: error -32 submitting command
[ 667.242939] pcan: PCAN-USB channel device number=255
[ 667.243151] pcan: registered CAN netdevice can0 for usb hw (246,32)
[ 667.243152] pcan: usb device minor 32 found

Re: Netdev mode no such device

Posted: Mon 19. Jun 2017, 12:00
by M.Maidhof
Hi,

please post output of uname -a

regards

Michael

Re: Netdev mode no such device

Posted: Mon 19. Jun 2017, 18:17
by JohnnyT
johnny@ubuntu:~$ uname -a
Linux ubuntu 4.8.0-54-generic #57~16.04.1-Ubuntu SMP Wed May 24 16:22:28 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Re: Netdev mode no such device

Posted: Tue 20. Jun 2017, 10:12
by S.Grosjean
Hi,

Code: Select all

[ 667.157907] usb 2-1: Product: PCAN-USB
[ 667.157908] usb 2-1: Manufacturer: PEAK-System Technik GmbH
[ 667.235423] pcan: error -32 submitting command
[ 667.236469] pcan: error -32 submitting command
[ 667.237528] pcan: error -32 submitting command
[ 667.238582] pcan: error -32 submitting command
[ 667.239728] pcan: error -32 submitting command
[ 667.240832] pcan: error -32 submitting command
[ 667.242939] pcan: PCAN-USB channel device number=255
[ 667.243151] pcan: registered CAN netdevice can0 for usb hw (246,32)
[ 667.243152] pcan: usb device minor 32 found
There are several abnormal EPIPE errors when the usb device is probed. Could you please rebuild the driver in DEBUG mode:

Code: Select all

$ cd peak-linux-driver-8.4.0/driver
$ make DBG=DEBUG NET=NETDEV_SUPPORT
Open another shell window, then type:

Code: Select all

$ sudo rmmod pcan
$ dmesg -w > /tmp/pcan.log
Back to first shell window, reload now the new DBG driver:

Code: Select all

$ sudo insmod pcan.ko
You can now stop logging by typing ^C in the 2nd shell window. Finally, please send us the resulting /tmp/pcan.log file.

Regards,

Stéphane

Re: Netdev mode no such device

Posted: Tue 20. Jun 2017, 14:32
by JohnnyT
please see the attachment.

Re: Netdev mode no such device

Posted: Tue 20. Jun 2017, 17:09
by S.Grosjean
Hi,

Thank you for your logs.

Could you take a picture of the serial number of the PCAN-USB please, and send it to us?

Are you using any USB extension cable?

Regards,

Stéphane

Re: Netdev mode no such device

Posted: Tue 20. Jun 2017, 18:51
by JohnnyT
IPEH-002022-207244, I used a usb type A to type C adapter, works fine with pcan view app.

Re: Netdev mode no such device

Posted: Wed 21. Jun 2017, 09:14
by S.Grosjean
Hello,
works fine with pcan view app.
Are you running Linux into a Virtual Machine?

Regards,

Stéphane

Re: Netdev mode no such device

Posted: Wed 21. Jun 2017, 20:11
by JohnnyT
Yes, I am using the latest parallel desktop on a MacBook Pro.

PCAN works in my win10 VM / win10 BOOTCAMP, but doesn't in ubuntu VM.

I have a cantact which could also read/write CAN package, it works fine with socketCAN in ubuntu VM.