Connection problem with PCAN usb-fd

CAN FD Interface for High-Speed USB 2.0
Post Reply
danielChan
Posts: 1
Joined: Fri 31. Jul 2015, 04:46

Connection problem with PCAN usb-fd

Post by danielChan » Fri 31. Jul 2015, 05:17

Hi,

Recently, we have decided to upgrade our can interface from PCAN USB to PCAN USB FD. We have been using PCAN USB on our Linux - Redhat quite some time and we encountered no problems.

When we changed to PCAN USB FD, we encountered some problems. Below is the description of our problem.

On reboot of our RedHat PC, we entered the following to bring up the CAN network node.

#ifconfig can0 up

We then use cansend and canrecv from the socket CAN package to test for CAN connectivity between the PC to our hardware. The PEAKCAN USB FD displays error (red blinking light) and upon investigating in the /proc/pcan, its error status shows 0x0003.

We discovered that we have to unplug and re-insert the PCAN USB FD into the computer again, and reinvoking the CAN network node. The sending and the receiving of CAN messages will then be done properly. This result is consistent and it happens every time we reboot our RedHat PC.

Please advise us on how to troubleshoot this problem.


Thanks.

Regards
Daniel Chan
Attachments
This picture shows that when the PCAn USB FD is unplug and the CAN network is reinvoked, a similar CAN message will then be send successfully.
This picture shows that when the PCAn USB FD is unplug and the CAN network is reinvoked, a similar CAN message will then be send successfully.
canInit2.png (453.54 KiB) Viewed 17642 times
This picture shows upon a reboot of the PC and after invoking the CAN network, send a CAN message will result in an error.
This picture shows upon a reboot of the PC and after invoking the CAN network, send a CAN message will result in an error.
canInit1.png (423.66 KiB) Viewed 17642 times

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

Re: Connection problem with PCAN usb-fd

Post by M.Maidhof » Fri 31. Jul 2015, 09:37

Hi,

please check with a Windows PC and PCAN-View, which firmware version is on your PCAN-USB-FD module. There is a newer firmware version 2.1 available on our product CD, which will fix that reboot problem. You can flash the firmware with the PCANFlash Windows tool. Here the link to the needed files.

http://www.peak-system.com/produktcd/

see:
PCAN-USB-FD-Firmware_small.jpg
PCAN-USB-FD-Firmware_small.jpg (86.08 KiB) Viewed 17634 times
regards

Michael

hmluqman
Posts: 8
Joined: Wed 12. Aug 2015, 13:01

Re: Connection problem with PCAN usb-fd

Post by hmluqman » Fri 14. Aug 2015, 12:41

Hello,

I am programming using python. Whenever I make mistake in code it makes communication error(Blinking RED). I have to restart the computer otherwise it wont work. Even replugging or restarting CAN bus wont work.

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: Connection problem with PCAN usb-fd

Post by PEAK-Support » Mon 17. Aug 2015, 09:03

Hi hmluqman the red LED flashing is NO Error - please read the manual.
-RED LED on - > driver loaded - module detect by Device Driver
-RED LED slow flashing --> Application have init the CAN Controller
-RED LED fast flashing --> Application send / receive CAN Frames

You never need to "restart" the PC if you have a CAN Bus error - somply call a CAN_Init() to reset the CAN Cpontroller.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

hmluqman
Posts: 8
Joined: Wed 12. Aug 2015, 13:01

Re: Connection problem with PCAN usb-fd

Post by hmluqman » Mon 17. Aug 2015, 09:35

Thanks Wilhelm for your reply.
Well issue is solved. I was initialising as CAN FD but indeed it was simple CAN.
On user manual of USB-FD:
"Red Blinking: An error is occuring durig transmission of AN data" (page 17)

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: Connection problem with PCAN usb-fd

Post by PEAK-Support » Mon 17. Aug 2015, 10:03

You are right - i did not read that you use a PCAN-USB FD Hardware The info was for the PCAN-USB Hardware.
Here the Info about the LED for the IPEH-004022 PCAN-USB FD
USB-FD LED.JPG
USB-FD LED.JPG (45.37 KiB) Viewed 17504 times
Red LED means a physical problem on CAN Bus (wrong Baudrate, wrong wirering, wrong or missing Termination etc.) Also mix up CAN2.0A/CAN2.0B with ISO or nonISO FD.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Post Reply