cancel
Showing results for 
Search instead for 
Did you mean: 

CAN question with STM32F103C8T6.

JAlca
Senior

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!!




1 REPLY 1
SofLit
ST Employee

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?

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.