Skip to main content
Associate III
February 22, 2024
Solved

How do I set correct stdID for CAN-BUS?

  • February 22, 2024
  • 1 reply
  • 1926 views

Hi! I've seen some tutorials on can communication and notice that each of them use different StdId's. I'm using two nucle-l433rc-p boards, do I need a specific StdId or will any number between  0 and 0x7FF suffice?

 

Best answer by mƎALLEm

Hello,

Standard ID is a 11bit field so the range is 0x0 - 0x7FF

For the Extended ID the field is 29-bit length. The range: 0x0 - 0x1FFF FFFF

Note that the ID is not the address of the node like I2C but any node could have many ID's. Each ID is specific to a function in the node.

The important thing: you need a unique ID on a bus for each function.

1 reply

mƎALLEm
mƎALLEmAnswer
Technical Moderator
February 22, 2024

Hello,

Standard ID is a 11bit field so the range is 0x0 - 0x7FF

For the Extended ID the field is 29-bit length. The range: 0x0 - 0x1FFF FFFF

Note that the ID is not the address of the node like I2C but any node could have many ID's. Each ID is specific to a function in the node.

The important thing: you need a unique ID on a bus for each function.

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