PCAN Router FD issue

Universal Programmable Converter for CAN FD and CAN
Post Reply
Jeffjfc16
Posts: 5
Joined: Mon 22. Nov 2021, 09:29

PCAN Router FD issue

Post by Jeffjfc16 » Mon 22. Nov 2021, 09:39

Hello

We have an issue with a PCAN ROUTER FD.
We are using it to modify CAN HS in Entry to CAN FD to integrate a new component in a vehicle.
When we upload the complete script, the periodicity of all frames are not OK and fluctuate a lot.
Below the complete list of frame with the type, size and period.
It seems that the router is "overload". If we limit the number of frame, period values are OK.
Do you know what is the maximum possibility and performances of this router?

Thank you in advance for your support.

Frame Type "Frame Size
(Bytes)" "Transmission
Type" "Period
(ms)"
CAN-FD_container 24 Periodic and Event 500
CAN-FD_container 24 Periodic 10
CAN-FD_container 48 Periodic 10
CAN-FD_container 24 Periodic 10
CAN-FD_container 24 Periodic 10
CAN-FD_container 24 Periodic 10
CAN-FD_container 64 Periodic 10
CAN-FD_container 20 Periodic 20
CAN-FD_container 64 Periodic 20
CAN-FD_regular 3 Periodic 100
CAN-FD_container 48 Periodic and Event 100
CAN-FD_regular 7 Periodic and Event 100
CAN-FD_container 24 Periodic and Event 100
CAN-FD_container 24 Periodic and Event 100
CAN-FD_regular 8 Periodic and Event 100
CAN-FD_regular 8 Periodic and Event 1000
CAN-FD_regular 6 Periodic and Event 3000
CAN-FD_container 48 Periodic and Event 100
CAN-FD_regular 8 Periodic and Event 3000
CAN-FD_regular 8 Periodic and Event 3000

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

Re: PCAN Router FD issue

Post by PEAK-Support » Mon 22. Nov 2021, 12:04

It is not possible to give you a number like "40 Messages are OK" it is all depending how you develop your firmware.
It is a C/C++ compiler (not a scrip as you wrote)and if your code is speed optimized it should also work
(but as i wrote - we do not see all needed information in your post to give a real feedback)

You always must think about how many CAN Frames do you try to send ? Is the CAN Bus able to handle it (Busload / depending on your environment)
Maybe the CAN Bus is overload, high prio CAN Frames are on the Bus etc. it is very complex to check, and depending on what exact happened on the real Network it could change all.

If possible send the compete project to support[at]peak-system.com and we could take a lock at it...
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Jeffjfc16
Posts: 5
Joined: Mon 22. Nov 2021, 09:29

Re: PCAN Router FD issue

Post by Jeffjfc16 » Mon 22. Nov 2021, 14:54

Thank you for your answer.
Sorry for the term "script" !
Currently, the router is not connected to a vehicle network, I just tested on bench directly connected to Vector VN1640 interface. So we don't have other frames on the output CAN2.
I will check if it is possible to send you more details and also the .c used for these tests.
In fact we are picking some signals in CAN HS frames and integrate them in FD frame with different IDs and not at the same position.
We also have some CAN HS frames which are integrated as PDU in one FD Container frame with also signals at different positions.
For some frames we also need to add a counter process and CRC calculation.
Globaly we are with around 400 Bytes of data in this code. I think that as all components you should have some limitations so I would say at first view, do you think that it should not be a problem with this PCAN_ROUTER_FD?

Thank you in advance and if I receive the GO from my company, I could send you more details about the code.

JF

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

Re: PCAN Router FD issue

Post by PEAK-Support » Mon 22. Nov 2021, 15:19

The Router FD use a NXP LPC4078 running on 120Mhz, based on a Arm® Cortex® M4 - it is fast but when calculate many CRC in "realtime" etc. you will come to the limits.
We also have a much more powerfull Device that use a STM32 with 200 MHz, based on a Arm® Cortex® M7 - the Router Pro FD - but it is also much bigger and more expensive.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Jeffjfc16
Posts: 5
Joined: Mon 22. Nov 2021, 09:29

Re: PCAN Router FD issue

Post by Jeffjfc16 » Tue 1. Mar 2022, 09:16

Hello

I have a new problem with my Pcan FD.
Fisrt use, the goal was to catch Can HS network from a vehicle to Can FD and it is now OK.
Today, I try to use it on a Can FD vehicle.
I just uses the exemple Routing in the library of the PCAN ROUTER FD.
When I try with my CANOE with a Replay bloc CAN (record made on the CAN FD from my vehicle), it doesnt work, the record is blocked and I have a CAN error (Form error)
If I keep the same config and try my replay block with a CAN HS record, it works
In the vehicle, when the PCAN is powered, the vehicle network crashed .
Is there a specific configuration on the PCAN FD?
Sorry but I am not a "big" expert!

Thank you in advance

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

Re: PCAN Router FD issue

Post by PEAK-Support » Tue 1. Mar 2022, 09:43

Using CAN-FD need a exact timing ! You need to get all needed Information about the CAN-FD Timing from the Vehicle manufacturer, calculate your exact Timing for the Router Pro FD and use this inside the PCAN-Router PROI FD for Initialize the CAN-FD Channels.
If the unit use BRS (Bit Rate Switch) the Data Bitrate is used - and this must also fit 100% in the settings. Otherwise you will get differnt types of errors....
Simply try to capture and send CAN-FD Frames with BRS from PCAN-View with a PCAN-USB FD Interface and if you find the correct timing, you could use this also for the Router Pro FD.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Jeffjfc16
Posts: 5
Joined: Mon 22. Nov 2021, 09:29

Re: PCAN Router FD issue

Post by Jeffjfc16 » Tue 1. Mar 2022, 11:12

Hello

Thank you for your answer. I found in the forum the tool bit rate calculation.
After initialyze both CAN with the correct values, it is now ok

Thank you!

Best regard

JF

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

Re: PCAN Router FD issue

Post by PEAK-Support » Tue 1. Mar 2022, 12:04

Thank you for teh feedback !
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Post Reply