Page 1 of 1
PCAN USB connectivity problems
Posted: Fri 12. Sep 2014, 12:08
by meilbrecht
Hi,
We are using the PCAN-USB with a linux system (ubuntu 14.04) and it seems that we have connectivity problems to our hardware. We got the following log message from kernel:
Code: Select all
Sep 11 09:20:11 CAP kernel: [753689.590576] igb: p4p1 NIC Link is Down
Sep 11 09:20:13 CAP wdd[833]: Error - Receive Timeout
Sep 11 09:20:17 CAP wdd[833]: message repeated 2 times: [ Error - Receive Timeout]
Sep 11 09:20:17 CAP wdd[833]: Error - No SNK watchdog signal
Sep 11 09:20:35 CAP kernel: [753713.378777] igb: p4p1 NIC Link is Up 100 Mbps Full Duplex, Flow Control: RX/TX
wdd is an own process monitoring the CAN connection. Are the kernel messages related to the PCAN-USB driver? Do you have any experience concerning this problem?
Thanks,
Marius
Re: PCAN USB connectivity problems
Posted: Fri 12. Sep 2014, 12:29
by S.Grosjean
Hi,
First of all, we need to know which linux driver and the version you're using to connect with the PCAN-USB adapter.
- Is it the "pcan" driver ? In that case, we need its version and some other information set: please type "cat /proc/pcan" and send us the output of this command.
- If you're not a "pcan" user, you are certainly using the Kernel mainline "peak_usb" driver, aren't you? Please type "lsmod | grep peak" to verify that the module is loaded
Thanks and regards,
Stéphane
Re: PCAN USB connectivity problems
Posted: Mon 15. Sep 2014, 09:55
by meilbrecht
Hi,
We are using the pcan driver. "cat /proc/pcan" gives the following output:
Code: Select all
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20140723_n (7.12.0) Aug 18 2014 13:05:20 --------------
*------------- [mod] [isa] [pci] [dng] [par] [usb] [pcc] [net] --------------
*--------------------- 1 interfaces @ major 247 found -----------------------
*n -type- ndev --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usb can0 ffffffff 255 0x011c 000000a2 0000013e 0000018f 00000000 0x0000
Regards,
Marius
Re: PCAN USB connectivity problems
Posted: Mon 15. Sep 2014, 10:22
by S.Grosjean
Hi,
Thanks for your reply.
So you're using the pcan driver with the netdev option. So I suppose that you're application uses the socket API calls, does it?
About your logs: none of the lines you gave to use are produced by the pcan driver; the pcan driver always prefixes its own logs with "pcan:". Does your application detect any loss of CAN frames?
It looks like the wdd logs are surrounded by some logs related to your Intel GB Network Interface Card being Down then Up. Check if these logs aren't related to this NIC first.
Regards,
Stéphane
Re: PCAN USB connectivity problems
Posted: Mon 15. Sep 2014, 10:40
by meilbrecht
Hi,
Thanks for the fast reply. We will check our network interface first and come back to you if this does not solve the problem.
Thanks & Regards,
Marius