Skip to main content
Explorer
November 11, 2023
Question

CAN question with STM32F103C8T6.

  • November 11, 2023
  • 1 reply
  • 915 views

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"

JAlca_0-1699692973609.png


I tried to abort any pending transmission in case a "RequestID" was received, but doesn't work:

JAlca_1-1699693190500.png

Any ideas on how can I do this??

Thanks in advance!!




    This topic has been closed for replies.

    1 reply

    Technical Moderator
    December 27, 2023

    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?