cancel
Showing results for 
Search instead for 
Did you mean: 

How do I set correct stdID for CAN-BUS?

Mr4
Associate III

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?

 

1 ACCEPTED SOLUTION

Accepted Solutions
SofLit
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.
PS: This is NOT an online support (https://ols.st.com) but a collaborative space. So please be polite in your reply. Otherwise, it will be reported as inappropriate and you will be permanently blacklisted from my help/support.

View solution in original post

1 REPLY 1
SofLit
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.
PS: This is NOT an online support (https://ols.st.com) but a collaborative space. So please be polite in your reply. Otherwise, it will be reported as inappropriate and you will be permanently blacklisted from my help/support.