2023-11-11 01:00 AM
Hi all!,
I have 2 STM32F103C8T6 connected by CAN bus.
Each STM32F103C8T6 has the same firmware.
This firmware starts sending a message "RequestID" by the CAN bus.
Is there a way to avoid send the "RequestID" in case another "RequestID" were detected on the CAN bus?
I though about arbitration lost, but if I put a logic analizer, I can see each device is sending its own "RequestID" with about 20us delay.
What I need is a way a device detect a "RequestID" message was sent, and then wait a time to send own "RequestID"
I tried to abort any pending transmission in case a "RequestID" was received, but doesn't work:
Any ideas on how can I do this??
Thanks in advance!!
2023-12-27 06:46 AM
Hello,
This statement is not clear: "Is there a way to avoid send the "RequestID" in case another "RequestID" were detected on the CAN bus?"
Could you please clarify what do you want to do?
Also I didn't understand the wording "RequestID"! Do you mean the ID of the CAN frame?