Skip to main content
Choudharyas
Associate III
June 3, 2022
Solved

How can I send multiple frames of data with FD-CAN using different IDs?

Hi everyone,

I am working on a FD-CAN project and i am able to send a 64 byte data frame. But I want to send multiple frames of data with different IDs. Any help would be greatly appreciated!

This topic has been closed for replies.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
June 6, 2022

Hello,

You're using the filter in Mask Mode and that's normal. Try to use FDCAN_FILTER_RANGE instead of FDCAN_FILTER_MASK.

0693W00000NrFb0QAF.png

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

9 replies

mƎALLEm
ST Technical Moderator
June 3, 2022

Hello,

What do you mean by "send multiple frames of data with different IDs."?

based on your question, the solution is simply sending successive messages with different IDs

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
Choudharyas
Associate III
June 3, 2022

Yeah i tried sending successive messages but how can i assign different IDs to every message without changing the TxHeader(as I initialized the ID in TxHeader). Thanks for help.

mƎALLEm
ST Technical Moderator
June 3, 2022

Hello,

Sorry I didn't understand.

You said "assign different IDs to every message" but at the same type you want to keep it by "without changing the TxHeader(as I initialized the ID in TxHeader)"

Do you want to keep the same ID for several messages or set each message with its specific ID?

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