Netdev mode no such device
Netdev mode no such device
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
*------------- 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
[ 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
[ 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
Hi,
please post output of uname -a
regards
Michael
please post output of uname -a
regards
Michael
Re: Netdev mode no such device
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
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
- S.Grosjean
- Software Development
- Posts: 357
- Joined: Wed 4. Jul 2012, 17:02
Re: Netdev mode no such device
Hi,
Open another shell window, then type:
Back to first shell window, reload now the new DBG driver:
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
There are several abnormal EPIPE errors when the usb device is probed. Could you please rebuild the driver in DEBUG mode: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
Code: Select all
$ cd peak-linux-driver-8.4.0/driver
$ make DBG=DEBUG NET=NETDEV_SUPPORT
Code: Select all
$ sudo rmmod pcan
$ dmesg -w > /tmp/pcan.log
Code: Select all
$ sudo insmod pcan.ko
Regards,
Stéphane
— Stéphane
Re: Netdev mode no such device
please see the attachment.
- Attachments
-
pcan.log
- (60.82 KiB) Downloaded 567 times
- S.Grosjean
- Software Development
- Posts: 357
- Joined: Wed 4. Jul 2012, 17:02
Re: Netdev mode no such device
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
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
Re: Netdev mode no such device
IPEH-002022-207244, I used a usb type A to type C adapter, works fine with pcan view app.
- S.Grosjean
- Software Development
- Posts: 357
- Joined: Wed 4. Jul 2012, 17:02
Re: Netdev mode no such device
Hello,
Regards,
Stéphane
Are you running Linux into a Virtual Machine?works fine with pcan view app.
Regards,
Stéphane
— Stéphane
Re: Netdev mode no such device
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.
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.