Receivetest and cat /dev/pcan32 does not work

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
dungcoph
Posts: 4
Joined: Wed 22. Apr 2015, 16:17

Receivetest and cat /dev/pcan32 does not work

Post by dungcoph » Wed 22. Apr 2015, 16:30

Hi,

I am instlling driver for PCAN-USB.
When I run cat /proc/pcan I have

Code: Select all

*------------- PEAK-System CAN interfaces (http://www.peak-system.com) -------------
*------------- Release_20140430_n (7.11.0) Apr 22 2015 15:28:45 --------------
*---------------- [mod] [isa] [pci] [dng] [par] [usb] [pcc] -----------------
*--------------------- 1 interfaces @ major 247 found -----------------------
*n -type- ndev --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32    usb -NA- ffffffff 255 0x001c 00000000 00000000 0000001a 00000000 0x0000
When I run cat /dev/pcan32, it shows nothing. My terminal run in infinitive process and the light of the PCAN-USB blink.
When I run receivetest -f=/dev/pcan32, I have

Code: Select all

receivetest Version "Release_20090203_n"  (http://www.peak-system.com)

receivetest: device node="dev/pcan32"
             Only standard frames are accepted, init with 500 kbit/sec.
receivetest: can't open dev/pcan32
receivetest: finished (2).
What is the problem with the driver?

Thank you very much.

Regards,
Cong
Last edited by M.Gerber on Tue 28. Apr 2015, 12:51, edited 1 time in total.
Reason: Inserted [code] tags for better readability

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

Re: Receivetest and cat /dev/pcan32 does not work

Post by M.Maidhof » Thu 23. Apr 2015, 09:51

Hi,

can your please test again, using the latest 7.14 driver. Which kernel version do you use?

If the problem also exists with newer driver version, please build a debug driver and send us the relevant outputs of dmesg.

regards

Michael

BTW: this topic should be placed/removed in the Linux driver section. Done (MG)

dungcoph
Posts: 4
Joined: Wed 22. Apr 2015, 16:17

Re: Receivetest and cat /dev/pcan32 does not work

Post by dungcoph » Thu 23. Apr 2015, 16:36

Hi,

My kernel version is 3.11.0-15-generic.
I try to uninstall the 7.11 version to install 7.14 but the command "make uninstall" does not work.

Code: Select all

make[1]: Entering directory `/home/robotlab/peak-linux-driver-7.11/driver'
make[1]: [uninstall] Error 1 (ignored)
rm: cannot remove `/lib/modules/3.11.0-15-generic/misc/pcan.ko': Permission denied
make[1]: *** [uninstall] Error 1
make[1]: Leaving directory `/home/robotlab/peak-linux-driver-7.11/driver'
make[1]: Entering directory `/home/robotlab/peak-linux-driver-7.11/lib'
rm: cannot remove `/usr/lib/libpcan.so.0.6': Permission denied
make[1]: [uninstall] Error 1 (ignored)
rm: cannot remove `/usr/lib/libpcan.so.0': Permission denied
rm: cannot remove `/usr/lib/libpcan.so': Permission denied
make[1]: [uninstall] Error 1 (ignored)
rm: cannot remove `/usr/include/libpcan.h': Permission denied
make[1]: [uninstall] Error 1 (ignored)
/sbin/ldconfig
/sbin/ldconfig.real: Can't create temporary cache file /etc/ld.so.cache~: Permission denied
make[1]: *** [uninstall] Error 1
make[1]: Leaving directory `/home/robotlab/peak-linux-driver-7.11/lib'
make[1]: Entering directory `/home/robotlab/peak-linux-driver-7.11/test'
rm: cannot remove `/usr/local/bin/receivetest': Permission denied
make[1]: [uninstall] Error 1 (ignored)
rm: cannot remove `/usr/local/bin/transmitest': Permission denied
make[1]: [uninstall] Error 1 (ignored)
rm: cannot remove `/usr/local/bin/bitratetest': Permission denied
make[1]: [uninstall] Error 1 (ignored)
rm: cannot remove `/usr/local/bin/filtertest': Permission denied
make[1]: [uninstall] Error 1 (ignored)
rm: cannot remove `/usr/local/bin/pcan-settings': Permission denied
make[1]: [uninstall] Error 1 (ignored)
make[1]: Leaving directory `/home/robotlab/peak-linux-driver-7.11/test'.
I tried to install 7.14 driver but after finishing and I check with cat /proc/pcan, the driver is still 7.11

Code: Select all

*------------- PEAK-System CAN interfaces (http://www.peak-system.com) -------------
*------------- Release_20140430_n (7.11.0) Apr 22 2015 15:28:45 --------------
*---------------- [mod] [isa] [pci] [dng] [par] [usb] [pcc] -----------------
*--------------------- 1 interfaces @ major 246 found -----------------------
*n -type- ndev --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32    usb -NA- ffffffff 255 0x001c 00000000 00000000 00000000 00000000 0x0000
When I try biuld again with make make DBG=DEBUG and this is the output of this "cat /var/log/dmesg | grep -e pcan -e usb"

Code: Select all

[    1.265971] usbcore: registered new interface driver usbfs
[    1.265981] usbcore: registered new interface driver hub
[    1.266002] usbcore: registered new device driver usb
[    1.859268] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.859270] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.859273] usb usb1: Product: EHCI Host Controller
[    1.859275] usb usb1: Manufacturer: Linux 3.11.0-15-generic ehci_hcd
[    1.859277] usb usb1: SerialNumber: 0000:00:1a.0
[    1.875241] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.875244] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.875246] usb usb2: Product: EHCI Host Controller
[    1.875248] usb usb2: Manufacturer: Linux 3.11.0-15-generic ehci_hcd
[    1.875250] usb usb2: SerialNumber: 0000:00:1d.0
[    1.876564] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    1.876566] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.876568] usb usb3: Product: xHCI Host Controller
[    1.876571] usb usb3: Manufacturer: Linux 3.11.0-15-generic xhci_hcd
[    1.876573] usb usb3: SerialNumber: 0000:45:00.0
[    1.879337] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[    1.879339] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.879341] usb usb4: Product: xHCI Host Controller
[    1.879343] usb usb4: Manufacturer: Linux 3.11.0-15-generic xhci_hcd
[    1.879346] usb usb4: SerialNumber: 0000:45:00.0
[    2.171119] usb 1-1: new high-speed USB device number 2 using ehci-pci
[    2.309499] usb 1-1: New USB device found, idVendor=8087, idProduct=0020
[    2.309505] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.423106] usb 2-1: new high-speed USB device number 2 using ehci-pci
[    2.555853] usb 2-1: New USB device found, idVendor=8087, idProduct=0020
[    2.555859] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.667020] usb 3-1: new low-speed USB device number 2 using xhci_hcd
[    2.712179] usb 3-1: New USB device found, idVendor=0461, idProduct=4dfb
[    2.712185] usb 3-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[    2.712190] usb 3-1: Product: USB Optical Mouse
[    2.712539] usb 3-1: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
[    2.741263] usbcore: registered new interface driver usbhid
[    2.741266] usbhid: USB HID core driver
[    2.746589] input: USB Optical Mouse as /devices/pci0000:00/0000:00:1c.7/0000:45:00.0/usb3/3-1/3-1:1.0/input/input4
[    2.746829] hid-generic 0003:0461:4DFB.0001: input,hidraw0: USB HID v1.11 Mouse [USB Optical Mouse] on usb-0000:45:00.0-1/input0
[    2.783102] usb 1-1.3: new full-speed USB device number 3 using ehci-pci
[    2.876829] usb 1-1.3: New USB device found, idVendor=138a, idProduct=0007
[    2.876833] usb 1-1.3: New USB device strings: Mfr=0, Product=0, SerialNumber=1
[    2.876836] usb 1-1.3: SerialNumber: 0510a4898c00
[    2.947043] usb 1-1.5: new high-speed USB device number 4 using ehci-pci
[    3.077611] usb 1-1.5: New USB device found, idVendor=04f2, idProduct=b15e
[    3.077613] usb 1-1.5: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[    3.077615] usb 1-1.5: Product: HP Webcam [2 MP Macro]
[    3.077617] usb 1-1.5: Manufacturer: Chicony Electronics Co., Ltd.
[    3.150888] usb 2-1.3: new full-speed USB device number 3 using ehci-pci
[    3.247595] usb 2-1.3: New USB device found, idVendor=0c72, idProduct=000c
[    3.247597] usb 2-1.3: New USB device strings: Mfr=0, Product=3, SerialNumber=0
[    3.247599] usb 2-1.3: Product: VER1:PEAK    
[   11.759437] pcan: module verification failed: signature and/or required key missing - tainting kernel
[   11.759946] pcan: Release_20140430_n (le)
[   11.759950] pcan: driver config [mod] [isa] [pci] [dng] [par] [usb] [pcc] 
[   11.760496] pcan: new usb adapter with 1 CAN controller(s) detected
[   11.760509] pcan: usb hardware revision = 28
[   11.811464] pcan: usb device minor 0 found
[   11.811481] usbcore: registered new interface driver pcan
[   11.811500] pcan: major 246.
[   12.075998] input: HP Webcam [2 MP Macro] as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/input/input8
[   12.076188] usbcore: registered new interface driver uvcvideo
Thank you,
Cong
Last edited by M.Gerber on Tue 28. Apr 2015, 12:52, edited 1 time in total.
Reason: Inserted [code] tags for better readability

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

Re: Receivetest and cat /dev/pcan32 does not work

Post by M.Maidhof » Fri 24. Apr 2015, 11:42

Hi,

please call the make uninstall in the peak-linux-driver7.xx directory, not in the \driver directory.

To load the new driver you have to remove the old driver from the system before: rmmod pcan

regards

Michael

dungcoph
Posts: 4
Joined: Wed 22. Apr 2015, 16:17

Re: Receivetest and cat /dev/pcan32 does not work

Post by dungcoph » Tue 28. Apr 2015, 12:44

Hi,

I call the make unsintall in the peak-linux-driver-7.11 directory, not in the \driver directory.
This is the command and the error.

Code: Select all

robotlab@robotlab-HP-EliteBook-8540w:~/peak-linux-driver-7.11$ make uninstall
make[1]: Entering directory `/home/robotlab/peak-linux-driver-7.11/driver'
make[1]: [uninstall] Error 1 (ignored)
rm: cannot remove `/lib/modules/3.11.0-15-generic/misc/pcan.ko': Permission denied
make[1]: *** [uninstall] Error 1
make[1]: Leaving directory `/home/robotlab/peak-linux-driver-7.11/driver'
make[1]: Entering directory `/home/robotlab/peak-linux-driver-7.11/lib'
rm: cannot remove `/usr/lib/libpcan.so.0.6': Permission denied
make[1]: [uninstall] Error 1 (ignored)
rm: cannot remove `/usr/lib/libpcan.so.0': Permission denied
rm: cannot remove `/usr/lib/libpcan.so': Permission denied
make[1]: [uninstall] Error 1 (ignored)
rm: cannot remove `/usr/include/libpcan.h': Permission denied
make[1]: [uninstall] Error 1 (ignored)
/sbin/ldconfig

/sbin/ldconfig.real: Can't create temporary cache file /etc/ld.so.cache~: Permission denied
make[1]: *** [uninstall] Error 1
make[1]: Leaving directory `/home/robotlab/peak-linux-driver-7.11/lib'
make[1]: Entering directory `/home/robotlab/peak-linux-driver-7.11/test'
rm: cannot remove `/usr/local/bin/receivetest': Permission denied
make[1]: [uninstall] Error 1 (ignored)
rm: cannot remove `/usr/local/bin/transmitest': Permission denied
make[1]: [uninstall] Error 1 (ignored)
rm: cannot remove `/usr/local/bin/bitratetest': Permission denied
make[1]: [uninstall] Error 1 (ignored)
rm: cannot remove `/usr/local/bin/filtertest': Permission denied
make[1]: [uninstall] Error 1 (ignored)
rm: cannot remove `/usr/local/bin/pcan-settings': Permission denied
make[1]: [uninstall] Error 1 (ignored)
make[1]: Leaving directory `/home/robotlab/peak-linux-driver-7.11/test'
Regards,
Cong
Last edited by M.Gerber on Tue 28. Apr 2015, 12:53, edited 1 time in total.
Reason: Inserted [code] tags for better readability

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

Re: Receivetest and cat /dev/pcan32 does not work

Post by M.Maidhof » Wed 29. Apr 2015, 15:09

Hi,

you must have root privileges to call make install or make uninstall!

Try sudo make uninstall, when you have a debian based system.

regards

Michael

dungcoph
Posts: 4
Joined: Wed 22. Apr 2015, 16:17

Re: Receivetest and cat /dev/pcan32 does not work

Post by dungcoph » Mon 4. May 2015, 13:47

Hi,

I reinstall the driver 7.14 but the errors are still before.

My kernel version is 3.11.0-15-generic.

When I run cat /proc/pcan, I have

Code: Select all

*------------- PEAK-System CAN interfaces (http://www.peak-system.com) -------------
*------------- Release_20141219_n (7.14.0) Apr 29 2015 18:34:44 --------------
*---------------- [mod] [isa] [pci] [dng] [par] [usb] [pcc] -----------------
*--------------------- 1 interfaces @ major 247 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32    usb   -NA- ffffffff 255 0x001c 00000000 00000000 00000007 00000000 0x0000
When I run receivetest -f=dev/pcan32, that shows

Code: Select all

receivetest Version "Release_20090203_n"  (http://www.peak-system.com)
------- Copyright (C) 2004-2009 PEAK System-Technik GmbH ------
receivetest comes with ABSOLUTELY NO WARRANTY.     This is free
software  and you are welcome  to redistribute it under certain
conditions.   For   details   see    attached   COPYING   file.

receivetest: device node="dev/pcan32"
             Only standard frames are accepted, init with 500 kbit/sec.
receivetest: can't open dev/pcan32
receivetest: finished (2).
How do I fix this?

Thank you very much.

Regards,
Cong
Last edited by M.Gerber on Mon 4. May 2015, 14:40, edited 1 time in total.
Reason: Inserted [code] tags for better readability

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

Re: Receivetest and cat /dev/pcan32 does not work

Post by M.Maidhof » Mon 4. May 2015, 14:14

Hi,

"/" is missing in front of dev.

Try receivetest -f=/dev/pcan32

regards

Michael

Post Reply