Switch of error frames

Universal CAN Converter
Post Reply
mathies_s
Posts: 3
Joined: Fri 21. Jun 2019, 12:23

Switch of error frames

Post by mathies_s » Fri 21. Jun 2019, 12:52

Hello together,

I'm quite new in this development and faq, so I hope that I did raise my question in the right thread :D

I need to send CAN messages to a CAN-FD interface (don't ask me why but this is the system structure :lol:). Therefore I use a PCAN router and SW itself is running fine.

The partner control unit expects CAN messages as input (there I need the gateway) and sends CAN-FD messages which I need for other topics.
My problem is that the partner control unit does not accept any kind of error frames. As I only have the CAN router my feeling is that the PCAN device is sending error frames as it cannot handle the CAN-FD messages.

Is there any way to switch off this kind of error frames on the PCAN device?

Thank you very much and a nice day :)

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

Re: Switch of error frames

Post by PEAK-Support » Fri 21. Jun 2019, 14:13

Error Frames are generatedt by the CAN Core - you could not "STOP" this. If you try to send on a CAN2.0A/B Network a CAN-FD Frame you definittly create Error Frame, because the CAN 2.0A/B Core could not handle the CAN FD Frames as a correct CAN Frame. What exact do you want to do? Keep in mind that teh Router split a CAN Network in 2 Segments that are 2 independent CAN Networks which need als be terminated seperatly.
If you still get your system not to work, send a short e-mail to support@peak-system.com with your detailed system setup and your needed workflow.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

mathies_s
Posts: 3
Joined: Fri 21. Jun 2019, 12:23

Re: Switch of error frames

Post by mathies_s » Fri 21. Jun 2019, 15:20

Hello and thanks for the fast response. I need to send CAN messages to sensors which have one CAN-FD port only but expect CAN input values. This is my situation (simplified):
system.png
system.png (10.49 KiB) Viewed 6658 times
The sensors A and B can handle the situation that there are some "standard" CAN messages on the CAN-FD connection but the PCAN GW not. I only need to send messages to the direction of Sensors A and B and do not read any messages from the CAN-FD connection. However, PCAN throws errors which cause a stop of the sensors.

:(

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

Re: Switch of error frames

Post by PEAK-Support » Fri 21. Jun 2019, 15:50

You need to configure your Firmware that it works like this:
NewPic.jpg
NewPic.jpg (28.4 KiB) Viewed 6657 times
1. You need a PCAN-Router FD
2. You need to Init CAN1 with CAN2.0A/B Mode
3. You need to Init CAN2 with CAN FD Mode
4. You need to Split incomming Messages from CAN 2 (DLC>8) into your own Data
Format in CAN2..0A/B Mode (DLC max. 8). Using your own code.

That´s all
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

mathies_s
Posts: 3
Joined: Fri 21. Jun 2019, 12:23

Re: Switch of error frames

Post by mathies_s » Fri 21. Jun 2019, 16:17

Great, thanks for the fast support!

Will try to get a PCAN FD device and follow your steps.

Have a great weekend :)

Post Reply