How do I set correct stdID for CAN-BUS?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-22 12:35 AM - last edited on ‎2024-02-22 1:07 AM by mƎALLEm
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?
Solved! Go to Solution.
- Labels:
-
CAN
-
STM32L4 series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-22 1:03 AM - edited ‎2024-02-23 8:25 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-22 1:03 AM - edited ‎2024-02-23 8:25 AM
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.
