Multiple frame retransmission by Hot Plugin of CAN cable
Posted: Thu 11. Aug 2022, 12:18
Hello Peak-System team.
I observe the multiple frame retransmission by Hot plug-In of the CAN cable between two Peak Devices
It relies to CAN interconnect cable, the both CAN devices remain plugged in in PC.
I have running PCANView (NOT IN LISTEN_ONLY MODE, NO FILTER APPLIED) with PCAN USBFD PCAN_USB Driver 4.3.0.16563 and latest FW on one side and
my own applibation using PCAN Chip USB and PCANBasic.dll.
The application sends CAN frames using CAN_Write and PCAN Chip USB once per second and does CAN_Uninitialize-CAN_Initialize sequence when it recognizes the CAN bus problem.
As expected I see on the disconnected from PCANView bus from the application the CAN frames repeated with maximal possible rate (3 frames per ms at 250 Kb speed)
But when I connect the CAN cable between devices I see sometimes several hunderts of repeated messages with the same rate 3-4 messages per millisecond
I expect that PCANView acknowleges the incoming CAN messages and the retransmission shall stop after first succesfull transmission i.e. when sender recognizes that ACK bit was driven by receiver
But It looks for me that PCAN Chip USB continues to send those messages
I observe these hunderts of CAN messages in the PCANView after cable connection, after several hunderts of nilliseconds everything recovers
I have a question : Is it possible to get the state of ACK bit of received message using PCANView or PCAN Explorer in trace mode?
Another question is : howto limit the amount of transmitted but not acknowleged CAN messages from PCAN Chip USB?
It is required to know the transmission status of the message, but it is not desired to transmit it 128 times before error recognition.
Thank You
Best regards, Fedor Solodovnik
I observe the multiple frame retransmission by Hot plug-In of the CAN cable between two Peak Devices
It relies to CAN interconnect cable, the both CAN devices remain plugged in in PC.
I have running PCANView (NOT IN LISTEN_ONLY MODE, NO FILTER APPLIED) with PCAN USBFD PCAN_USB Driver 4.3.0.16563 and latest FW on one side and
my own applibation using PCAN Chip USB and PCANBasic.dll.
The application sends CAN frames using CAN_Write and PCAN Chip USB once per second and does CAN_Uninitialize-CAN_Initialize sequence when it recognizes the CAN bus problem.
As expected I see on the disconnected from PCANView bus from the application the CAN frames repeated with maximal possible rate (3 frames per ms at 250 Kb speed)
But when I connect the CAN cable between devices I see sometimes several hunderts of repeated messages with the same rate 3-4 messages per millisecond
I expect that PCANView acknowleges the incoming CAN messages and the retransmission shall stop after first succesfull transmission i.e. when sender recognizes that ACK bit was driven by receiver
But It looks for me that PCAN Chip USB continues to send those messages
I observe these hunderts of CAN messages in the PCANView after cable connection, after several hunderts of nilliseconds everything recovers
I have a question : Is it possible to get the state of ACK bit of received message using PCANView or PCAN Explorer in trace mode?
Another question is : howto limit the amount of transmitted but not acknowleged CAN messages from PCAN Chip USB?
It is required to know the transmission status of the message, but it is not desired to transmit it 128 times before error recognition.
Thank You
Best regards, Fedor Solodovnik