This forum covers PCAN-Linux and Linux development issues concerning our products
-
Amberhex
- Posts: 3
- Joined: Sun 24. Feb 2019, 05:36
Post
by Amberhex » Sun 24. Feb 2019, 05:53
Hello, I can't setup USB/CAN FD to work on Ubuntu in any way, device is detected but no can0, no base or IRQ identification I'm using UBUNTU 18.04, kernel 4.18.0-15-generic:
Code: Select all
*------------- PEAK-System CAN interfaces (http://www.peak-system.com) -------------
*------------- Release_20181116_n (8.7.0) Feb 23 2019 22:21:32 --------------
*------------- [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc] --------------
*--------------------- 1 interfaces @ major 240 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usbfd -NA- 0 000 0x001c 00000000 00000000 00000000 00000000 0x0000
Using
dmesg | grep pcan :
Code: Select all
[11348.443956] pcan: loading out-of-tree module taints kernel.
[11348.444146] pcan: module verification failed: signature and/or required key missing - tainting kernel
[11348.445279] pcan: Release_20181116_n (le)
[11348.445280] pcan: driver config [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc]
[11348.446508] pcan: PCAN-USB FD (01h PCB01h) fw v3.2.0 bl v2.1.0
[11348.447528] pcan: PCAN-USB FD channel 1 device number=0
[11348.447755] pcan: usb device minor 32 found
[11348.447818] usbcore: registered new interface driver pcan
[11348.447844] pcan: major 240.
[11976.384504] pcan: err -71 when reading: is PCAN-USB FD usb cable disconnected?
[11995.403925] pcan: PCAN-USB FD (01h PCB01h) fw v3.2.0 bl v2.1.0
[11995.404938] pcan: PCAN-USB FD channel 1 device number=0
[11995.405176] pcan: usb device minor 32 found
[13878.851475] pcan: err -71 when reading: is PCAN-USB FD usb cable disconnected?
[13886.573101] pcan: PCAN-USB FD (01h PCB01h) fw v3.2.0 bl v2.1.0
[13886.573602] pcan: PCAN-USB FD channel 1 device number=0
[13886.573841] pcan: usb device minor 32 found
[15588.141080] usbcore: deregistering interface driver pcan
[15588.340289] pcan: removed.
[15598.225079] pcan: Release_20181116_n (le)
[15598.225081] pcan: driver config [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc]
[15598.226259] pcan: PCAN-USB FD (01h PCB01h) fw v3.2.0 bl v2.1.0
[15598.227903] pcan: PCAN-USB FD channel 1 device number=0
[15598.228152] pcan: usb device minor 32 found
[15598.228227] usbcore: registered new interface driver pcan
[15598.228247] pcan: major 240.
[16318.139157] pcan: err -71 when reading: is PCAN-USB FD usb cable disconnected?
[16322.286100] pcan: PCAN-USB FD (01h PCB01h) fw v3.2.0 bl v2.1.0
[16322.286912] pcan: PCAN-USB FD channel 1 device number=0
[16322.287152] pcan: usb device minor 32 found
[16328.871372] pcan: err -71 when reading: is PCAN-USB FD usb cable disconnected?
[16367.292943] pcan: PCAN-USB FD (01h PCB01h) fw v3.2.0 bl v2.1.0
[16367.295344] pcan: PCAN-USB FD channel 1 device number=0
[16367.295582] pcan: usb device minor 32 found
I suppose I have problem with
module verification failed: signature and/or required key missing - tainting kernel ?
Last edited by
M.Gerber on Mon 25. Feb 2019, 09:52, edited 1 time in total.
Reason: Inserted code tags for improved readability.
-
Amberhex
- Posts: 3
- Joined: Sun 24. Feb 2019, 05:36
Post
by Amberhex » Sun 24. Feb 2019, 21:28
After driver reinstall:
Code: Select all
$ sudo rmmod pcan
$ sudo insmod pcan.ko
$ cd ../test
$ ./pcanfdtst rx -b 500k /dev/pcan32
I receive messages on CAN bus:
Code: Select all
cat /proc/pcan
*------------- PEAK-System CAN interfaces (http://www.peak-system.com) -------------
*------------- Release_20181116_n (8.7.0) Feb 24 2019 13:39:46 --------------
*------------- [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc] --------------
*--------------------- 1 interfaces @ major 240 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usbfd -NA- 0 000 0x001c 00000db0 00000000 0000087e 00000000 0x0000
but when trying to initialize socketCAN it doesn't see any can0 adapter. The only one I see is vcan0:
Code: Select all
ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s25: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
link/ether 00:21:cc:5d:e5:cc brd ff:ff:ff:ff:ff:ff
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
link/ether 8c:a9:82:79:c8:0a brd ff:ff:ff:ff:ff:ff
9: vcan0: <NOARP,UP,LOWER_UP> mtu 72 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/can
Last edited by
M.Gerber on Mon 25. Feb 2019, 09:54, edited 1 time in total.
Reason: Inserted code tags for improved readability.
-
Amberhex
- Posts: 3
- Joined: Sun 24. Feb 2019, 05:36
Post
by Amberhex » Sun 24. Feb 2019, 22:17
I think I got it sorted:
On ubuntu 18 net-tools are missing (no ifconfig). After installing net-tools:
1. go to the peak-linux-driver-8.4 directory and call
2. sudo make uninstall
3. reboot
4. sudo ifconfig -a
I get:
Code: Select all
can0: flags=128<NOARP> mtu 16
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 10 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Last edited by
M.Gerber on Mon 25. Feb 2019, 09:56, edited 1 time in total.
Reason: Inserted code tag for improved readability.
-
S.Grosjean
- Software Development

- Posts: 357
- Joined: Wed 4. Jul 2012, 17:02
Post
by S.Grosjean » Mon 25. Feb 2019, 09:31
Hi,
If you want to use the pcan driver with the socket-CAN interface, then you must build it accordingly. Please refer to chapter "4.8 netdev Mode" of our User Manual "PCAN-Driver-Linux_UserMan_eng.pdf" provided in the "Documentation" directory. Moreover, you're advised to install the last version of this pcan driver.
You should first have a look to this page
https://www.peak-system.com/fileadmin/m ... /index.htm.
Regards,
— Stéphane