Skip to main content
Explorer
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?

 

    This topic has been closed for replies.
    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Ǝ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.