PCAN-USB X6 installation issue

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
sone_aug12
Posts: 2
Joined: Sun 22. Mar 2020, 15:18

PCAN-USB X6 installation issue

Post by sone_aug12 » Sun 22. Mar 2020, 15:50

Hello.

I bought PCAN-USB and PCAN-USB X6, and I'm trying to use them in Raspberry Pi 3B+.

I installed the linux driver (netdev mode) according to the following page.

viewtopic.php?t=3381

There's no problem with PCAN-USB, but PCAN-USB X6 doesn't work.
The external power supply(12V) is connected, and the LED status looks OK,
but it never shows up in 'ifconfig -a'.

Here's the log message.
Any tips for this issue?

Of course, the USB cable is connected.

Code: Select all

pi@rasp0812:/proc $ dmesg | grep pcan
[  103.070064] pcan: loading out-of-tree module taints kernel.
[  103.074927] pcan: Release_20191029_n (le)
[  103.074942] pcan: driver config [mod] [usb] [net] 
[  103.075927] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[  103.076654] pcan: PCAN-USB X6 channel 1 device number=0
[  103.077459] pcan: registered CAN-FD netdevice can0 for usbfd hw (240,32)
[  103.077475] pcan: usb device minor 32 found
[  103.078401] pcan: PCAN-USB X6 channel 2 device number=0
[  103.079276] pcan: registered CAN-FD netdevice can1 for usbfd hw (240,33)
[  103.079285] pcan: usb device minor 33 found
[  103.079416] usbcore: registered new interface driver pcan
[  103.079430] pcan: major 240.
[  103.090785] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[  104.543936] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[  104.546525] pcan: PCAN-USB X6 channel 1 device number=0
[  104.547034] pcan: registered CAN-FD netdevice can0 for usbfd hw (240,32)
[  104.547041] pcan: usb device minor 32 found
[  104.547665] pcan: PCAN-USB X6 channel 2 device number=0
[  104.548462] pcan: registered CAN-FD netdevice can1 for usbfd hw (240,33)
[  104.548474] pcan: usb device minor 33 found
[  104.607694] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[  157.616483] pcan: PCAN-USB fw v8.4
[  157.668261] pcan: PCAN-USB channel device number=255
[  157.668789] pcan: registered CAN netdevice can0 for usb hw (240,32)
[  157.668796] pcan: usb device minor 32 found
[  200.451032] pcan: err -19 submitting cmd 3.2 to PCAN-USB
[  200.451041] pcan: err -19 submitting cmd 11.2 to PCAN-USB
[  204.409048] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[  204.410653] pcan: PCAN-USB X6 channel 1 device number=0
[  204.411490] pcan: registered CAN-FD netdevice can0 for usbfd hw (240,32)
[  204.411500] pcan: usb device minor 32 found
[  204.419620] pcan: PCAN-USB X6 channel 2 device number=0
[  204.420688] pcan: registered CAN-FD netdevice can1 for usbfd hw (240,33)
[  204.420700] pcan: usb device minor 33 found
[  204.470931] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[  205.893951] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[  205.894683] pcan: PCAN-USB X6 channel 1 device number=0
[  205.895266] pcan: registered CAN-FD netdevice can0 for usbfd hw (240,32)
[  205.895275] pcan: usb device minor 32 found
[  205.895924] pcan: PCAN-USB X6 channel 2 device number=0
[  205.896624] pcan: registered CAN-FD netdevice can1 for usbfd hw (240,33)
[  205.896630] pcan: usb device minor 33 found
[  205.954537] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[  207.353970] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[  207.354647] pcan: PCAN-USB X6 channel 1 device number=0
[  207.355233] pcan: registered CAN-FD netdevice can0 for usbfd hw (240,32)
[  207.355239] pcan: usb device minor 32 found
[  207.355847] pcan: PCAN-USB X6 channel 2 device number=0
[  207.356627] pcan: registered CAN-FD netdevice can1 for usbfd hw (240,33)
[  207.356638] pcan: usb device minor 33 found
[  207.412769] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[  208.824962] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[  208.826142] pcan: PCAN-USB X6 channel 1 device number=0
[  208.827173] pcan: registered CAN-FD netdevice can0 for usbfd hw (240,32)
[  208.827184] pcan: usb device minor 32 found
[  208.828150] pcan: PCAN-USB X6 channel 2 device number=0
[  208.829109] pcan: registered CAN-FD netdevice can1 for usbfd hw (240,33)
[  208.829119] pcan: usb device minor 33 found
[  208.883036] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[  273.135471] usbcore: deregistering interface driver pcan
[  273.135602] pcan: removed.
[  551.219699] pcan: Release_20191029_n (le)
[  551.219714] pcan: driver config [mod] [usb] 
[  551.219890] usbcore: registered new interface driver pcan
[  551.219913] pcan: major 240.
[  562.543549] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[  562.544394] pcan: PCAN-USB X6 channel 1 device number=0
[  562.544527] pcan: usb device minor 32 found
[  562.545259] pcan: PCAN-USB X6 channel 2 device number=0
[  562.545459] pcan: usb device minor 33 found
[  562.584505] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[  563.863546] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[  563.864264] pcan: PCAN-USB X6 channel 1 device number=0
[  563.864402] pcan: usb device minor 32 found
[  563.865058] pcan: PCAN-USB X6 channel 2 device number=0
[  563.865253] pcan: usb device minor 33 found
[  563.921112] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[  565.193165] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[  565.193973] pcan: PCAN-USB X6 channel 1 device number=0
[  565.194103] pcan: usb device minor 32 found
[  565.195053] pcan: PCAN-USB X6 channel 2 device number=0
[  565.195228] pcan: usb device minor 33 found
[  565.249513] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[  585.200225] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[  585.200871] pcan: PCAN-USB X6 channel 1 device number=0
[  585.201011] pcan: usb device minor 32 found
[  585.201628] pcan: PCAN-USB X6 channel 2 device number=0
[  585.201781] pcan: usb device minor 33 found
[  585.252698] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[  589.284023] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[  589.285579] pcan: PCAN-USB X6 channel 1 device number=0
[  589.285767] pcan: usb device minor 32 found
[  589.287251] pcan: PCAN-USB X6 channel 2 device number=0
[  589.287397] pcan: usb device minor 33 found
[  589.327986] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[  619.669268] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[  619.670264] pcan: PCAN-USB X6 channel 1 device number=0
[  619.670379] pcan: usb device minor 32 found
[  619.671306] pcan: PCAN-USB X6 channel 2 device number=0
[  619.671523] pcan: usb device minor 33 found
[  619.721734] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[  621.009226] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[  621.010127] pcan: PCAN-USB X6 channel 1 device number=0
[  621.010226] pcan: usb device minor 32 found
[  621.011136] pcan: PCAN-USB X6 channel 2 device number=0
[  621.011348] pcan: usb device minor 33 found
[  621.062756] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[  622.329196] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[  622.330155] pcan: PCAN-USB X6 channel 1 device number=0
[  622.330299] pcan: usb device minor 32 found
[  622.331145] pcan: PCAN-USB X6 channel 2 device number=0
[  622.331347] pcan: usb device minor 33 found
[  622.382036] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[  623.659253] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[  623.659982] pcan: PCAN-USB X6 channel 1 device number=0
[  623.660110] pcan: usb device minor 32 found
[  623.660785] pcan: PCAN-USB X6 channel 2 device number=0
[  623.660966] pcan: usb device minor 33 found
[  623.713031] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[  624.989164] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[  624.989889] pcan: PCAN-USB X6 channel 1 device number=0
[  624.990025] pcan: usb device minor 32 found
[  624.990719] pcan: PCAN-USB X6 channel 2 device number=0
[  624.990901] pcan: usb device minor 33 found
[  625.043019] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[  626.319594] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[  626.320637] pcan: PCAN-USB X6 channel 1 device number=0
[  626.320727] pcan: usb device minor 32 found
[  626.323146] pcan: PCAN-USB X6 channel 2 device number=0
[  626.323319] pcan: usb device minor 33 found
[  626.364118] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[  660.147316] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[  660.147823] pcan: PCAN-USB X6 channel 1 device number=0
[  660.147951] pcan: usb device minor 32 found
[  660.148443] pcan: PCAN-USB X6 channel 2 device number=0
[  660.148615] pcan: usb device minor 33 found
[  660.190495] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[  751.298752] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[  751.299574] pcan: PCAN-USB X6 channel 1 device number=0
[  751.299700] pcan: usb device minor 32 found
[  751.300610] pcan: PCAN-USB X6 channel 2 device number=0
[  751.300808] pcan: usb device minor 33 found
[  751.350730] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[  844.174085] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[  844.178817] pcan: PCAN-USB X6 channel 1 device number=0
[  844.178880] pcan: usb device minor 32 found
[  844.179449] pcan: PCAN-USB X6 channel 2 device number=0
[  844.179594] pcan: usb device minor 33 found
[  844.229213] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[  845.523666] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[  845.524288] pcan: PCAN-USB X6 channel 1 device number=0
[  845.524401] pcan: usb device minor 32 found
[  845.524938] pcan: PCAN-USB X6 channel 2 device number=0
[  845.525108] pcan: usb device minor 33 found
[  845.578531] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[  846.853817] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[  846.854522] pcan: PCAN-USB X6 channel 1 device number=0
[  846.854639] pcan: usb device minor 32 found
[  846.855265] pcan: PCAN-USB X6 channel 2 device number=0
[  846.855425] pcan: usb device minor 33 found
[  846.909778] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[ 1242.484151] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[ 1242.485136] pcan: PCAN-USB X6 channel 1 device number=0
[ 1242.485222] pcan: usb device minor 32 found
[ 1242.486153] pcan: PCAN-USB X6 channel 2 device number=0
[ 1242.486383] pcan: usb device minor 33 found
[ 1242.726330] pcan: PCAN-USB X6 channel 3 device number=0
[ 1242.726448] pcan: usb device minor 34 found
[ 1242.727313] pcan: PCAN-USB X6 channel 4 device number=0
[ 1242.727513] pcan: usb device minor 35 found
[ 1242.976536] pcan: PCAN-USB X6 channel 5 device number=0
[ 1242.976636] pcan: usb device minor 36 found
[ 1242.977483] pcan: PCAN-USB X6 channel 6 device number=0
[ 1242.977693] pcan: usb device minor 37 found
[ 1243.899647] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[ 1243.899684] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[ 1243.899693] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[ 1245.043412] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[ 1245.044055] pcan: PCAN-USB X6 channel 1 device number=0
[ 1245.044167] pcan: usb device minor 32 found
[ 1245.044716] pcan: PCAN-USB X6 channel 2 device number=0
[ 1245.044877] pcan: usb device minor 33 found
[ 1245.077881] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[ 1246.373239] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[ 1246.373760] pcan: PCAN-USB X6 channel 1 device number=0
[ 1246.373875] pcan: usb device minor 32 found
[ 1246.374318] pcan: PCAN-USB X6 channel 2 device number=0
[ 1246.374508] pcan: usb device minor 33 found
[ 1246.604827] pcan: PCAN-USB X6 channel 3 device number=0
[ 1246.604946] pcan: usb device minor 34 found
[ 1246.605427] pcan: PCAN-USB X6 channel 4 device number=0
[ 1246.605591] pcan: usb device minor 35 found
[ 1246.698166] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[ 1246.698194] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[ 1247.954228] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[ 1247.955213] pcan: PCAN-USB X6 channel 1 device number=0
[ 1247.955299] pcan: usb device minor 32 found
[ 1247.956200] pcan: PCAN-USB X6 channel 2 device number=0
[ 1247.956402] pcan: usb device minor 33 found
[ 1248.186213] pcan: PCAN-USB X6 channel 3 device number=0
[ 1248.186354] pcan: usb device minor 34 found
[ 1248.187258] pcan: PCAN-USB X6 channel 4 device number=0
[ 1248.187454] pcan: usb device minor 35 found
[ 1248.193002] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[ 1248.193024] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[ 1249.444182] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[ 1249.445023] pcan: PCAN-USB X6 channel 1 device number=0
[ 1249.445153] pcan: usb device minor 32 found
[ 1249.445851] pcan: PCAN-USB X6 channel 2 device number=0
[ 1249.446029] pcan: usb device minor 33 found
[ 1249.676328] pcan: PCAN-USB X6 channel 3 device number=0
[ 1249.676470] pcan: usb device minor 34 found
[ 1249.677346] pcan: PCAN-USB X6 channel 4 device number=0
[ 1249.677530] pcan: usb device minor 35 found
[ 1249.679426] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[ 1249.679440] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[ 1250.924301] pcan: PCAN-USB X6 (01h PCB03h) fw v3.2.0 bl v1.1.0
[ 1250.925242] pcan: PCAN-USB X6 channel 1 device number=0
[ 1250.925344] pcan: usb device minor 32 found
[ 1250.926335] pcan: PCAN-USB X6 channel 2 device number=0
[ 1250.926524] pcan: usb device minor 33 found
[ 1251.144273] pcan: err -71 when reading: is PCAN-USB X6 usb cable disconnected?
[ 1332.317444] usbcore: deregistering interface driver pcan
[ 1332.319752] pcan: removed.
[ 1677.765991] pcan: Release_20191029_n (le)
[ 1677.766003] pcan: driver config [mod] [usb] [net] 
[ 1677.766185] usbcore: registered new interface driver pcan
[ 1677.766209] pcan: major 240.

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: PCAN-USB X6 installation issue

Post by M.Heidemann » Mon 23. Mar 2020, 10:18

Hello,

Can you please post the output of:

Code: Select all

cat /proc/pcan
?


Also:

Does the installation in CharDev-Mode yield different results?

The installation in CharDev-Mode is also referenced in the mentioned forum thread:

viewtopic.php?t=3381

Does the PCAN-USB X6 work as intended in CharDev-mode?



Best Regards

Marvin
---
Marvin Heidemann
PEAK-Support Team

sone_aug12
Posts: 2
Joined: Sun 22. Mar 2020, 15:18

Re: PCAN-USB X6 installation issue

Post by sone_aug12 » Thu 26. Mar 2020, 14:38

Hello.
Thank you for your reply.

After an analysis, it turned out that the root cause was the power supply setting.
The maximum current was too much limited.

Now, everything woks perfect with Netdev-mode.

Thank you very much.

Post Reply