Netdev mode no such device

This forum covers PCAN-Linux and Linux development issues concerning our products
JohnnyT
Posts: 7
Joined: Fri 16. Jun 2017, 17:34

Netdev mode no such device

Post by JohnnyT » Fri 16. Jun 2017, 17:36

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

JohnnyT
Posts: 7
Joined: Fri 16. Jun 2017, 17:34

Re: Netdev mode no such device

Post by JohnnyT » Fri 16. Jun 2017, 18:09

[ 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

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: Netdev mode no such device

Post by M.Maidhof » Mon 19. Jun 2017, 12:00

Hi,

please post output of uname -a

regards

Michael

JohnnyT
Posts: 7
Joined: Fri 16. Jun 2017, 17:34

Re: Netdev mode no such device

Post by JohnnyT » Mon 19. Jun 2017, 18:17

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

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

Re: Netdev mode no such device

Post by S.Grosjean » Tue 20. Jun 2017, 10:12

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
— Stéphane

JohnnyT
Posts: 7
Joined: Fri 16. Jun 2017, 17:34

Re: Netdev mode no such device

Post by JohnnyT » Tue 20. Jun 2017, 14:32

please see the attachment.
Attachments
pcan.log
(60.82 KiB) Downloaded 567 times

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

Re: Netdev mode no such device

Post by S.Grosjean » Tue 20. Jun 2017, 17:09

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
— Stéphane

JohnnyT
Posts: 7
Joined: Fri 16. Jun 2017, 17:34

Re: Netdev mode no such device

Post by JohnnyT » Tue 20. Jun 2017, 18:51

IPEH-002022-207244, I used a usb type A to type C adapter, works fine with pcan view app.

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

Re: Netdev mode no such device

Post by S.Grosjean » Wed 21. Jun 2017, 09:14

Hello,
works fine with pcan view app.
Are you running Linux into a Virtual Machine?

Regards,

Stéphane
— Stéphane

JohnnyT
Posts: 7
Joined: Fri 16. Jun 2017, 17:34

Re: Netdev mode no such device

Post by JohnnyT » Wed 21. Jun 2017, 20:11

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.

Post Reply