Router overloaded?
Posted: Wed 29. Jun 2022, 16:04
Hi. I realize it is difficult to inform on when the PCAN-Router FD might be overloaded, but I suspect that is what is happening in our situation. We are using the router to convert about 15 CAN messages from CAN FD to CAN 2.0. However, the CAN FD network has 316 unique messages on it. Message rates range from 10 msec to 1000 msec, with 100 msec and 250 msec being the most common. Message DLCs range from 6 to 64... the average is about 11.
We recorded about 5 seconds of the CAN FD traffic. On average, a message is received about every 260 microseconds. On average, about 43 DLCs worth of data is received every millisecond.
Is the above information enough to make a judgment call that the router is probably overloaded?
Are the limits of the router known and quantified in any way? If so, could you share that information?
We have tested the firmware on a "test bench" with very low message load... everything works great.
However, when we put the router on the actual vehicle CAN FD network it does not transmit any messages. The firmware is programmed to blink the CAN1 LED when a message is successfully received (CAN_UserRead(CAN_BUS1, &RxMsg) == CAN_ERR_OK evaluates as true). The CAN1 LED does blink when the router is running, so we think messages are being received OK (CAN data bit rates are configured OK, etc.).
The firmware is programmed to blink the CAN2 LED if it attempts to transmit a message (regardless of success). The CAN2 LED does not blink. We also connected PCAN-View to the CAN2 side and we do not see any messages.
So, we are thinking our firmware code never completely executes the processing loop because the router is overloaded with handling the incoming CAN messages. Could this be? Is the user-programmable code interrupted to handle incoming CAN messages?
What happens when the router is overloaded? Does it go into constant reset?
Is there a way to check if the router is being overloaded?
Any opinion you can offer would be greatly appreciated!
We recorded about 5 seconds of the CAN FD traffic. On average, a message is received about every 260 microseconds. On average, about 43 DLCs worth of data is received every millisecond.
Is the above information enough to make a judgment call that the router is probably overloaded?
Are the limits of the router known and quantified in any way? If so, could you share that information?
We have tested the firmware on a "test bench" with very low message load... everything works great.
However, when we put the router on the actual vehicle CAN FD network it does not transmit any messages. The firmware is programmed to blink the CAN1 LED when a message is successfully received (CAN_UserRead(CAN_BUS1, &RxMsg) == CAN_ERR_OK evaluates as true). The CAN1 LED does blink when the router is running, so we think messages are being received OK (CAN data bit rates are configured OK, etc.).
The firmware is programmed to blink the CAN2 LED if it attempts to transmit a message (regardless of success). The CAN2 LED does not blink. We also connected PCAN-View to the CAN2 side and we do not see any messages.
So, we are thinking our firmware code never completely executes the processing loop because the router is overloaded with handling the incoming CAN messages. Could this be? Is the user-programmable code interrupted to handle incoming CAN messages?
What happens when the router is overloaded? Does it go into constant reset?
Is there a way to check if the router is being overloaded?
Any opinion you can offer would be greatly appreciated!