Skip to main content
Associate II
January 8, 2024
Solved

Controller Area Network: 29-bit identifier example

Hi @everyone

 i completed the CAN2.0A based communication. Now i want to learn about CAN2.0B that is 29-bit identifier. so can you please provide the example if available for my reference.

This topic has been closed for replies.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
January 8, 2024

Hello,

It doesn't need additional knowledge. In your example you need to change:

TxHeader.IDE = CAN_ID_EXT;

TxHeader.ExtId = <ID from 0 to 0x1FFFFFFF>

Also take care about the filters configuration.

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

4 replies

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
January 8, 2024

Hello,

It doesn't need additional knowledge. In your example you need to change:

TxHeader.IDE = CAN_ID_EXT;

TxHeader.ExtId = <ID from 0 to 0x1FFFFFFF>

Also take care about the filters configuration.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
vedant_joshi
Visitor II
July 7, 2024

Dude, can you please tell me about, how to set the Extended CAN ID in reception of CAN MESSAGES??

mƎALLEm
ST Technical Moderator
July 8, 2024

Hello @vedant_joshi 

I suggest you to open a new thread for your question.

Thank you for your understanding.

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

Hi @mƎALLEm 

Thank you so much i will try it.