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
Connection problem with PCAN usb-fd
-
- Posts: 1
- Joined: Fri 31. Jul 2015, 04:46
Connection problem with PCAN usb-fd
- 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.
- canInit2.png (453.54 KiB) Viewed 17646 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.
- canInit1.png (423.66 KiB) Viewed 17646 times
Re: Connection problem with PCAN usb-fd
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:
regards
Michael
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:
regards
Michael
Re: Connection problem with PCAN usb-fd
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.
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.
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: Connection problem with PCAN usb-fd
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.
-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
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------
Re: Connection problem with PCAN usb-fd
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)
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)
- PEAK-Support
- Sales & Support
- Posts: 1646
- Joined: Fri 10. Sep 2010, 19:34
Re: Connection problem with PCAN usb-fd
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 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.
Here the Info about the LED for the IPEH-004022 PCAN-USB FD 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
-------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------