Board ID

4 years 11 months ago #29531411 by djyelee
Board ID was created by djyelee
I am using 4 controller boards in one system. How do I identify which board is connected to a specific port? Is there a board ID or serial number for each board that can be read back to identify the board?

Please Log in or Create an account to join the conversation.

4 years 11 months ago #29531412 by niko
Replied by niko on topic Board ID
You can use the command UID (?uid). There are six fields in uid:
?uid 1 => MCU type: 300 if STM32F30X, 100 if STM32F10X.
?uid 2 => DEVICE ID: 0x422 => STM32F30X
0x412 => STM32F10X_LD
0x410 => STM32F10X_MD
0x414 => STM32F10X_HD
0x418 => STM32F10X_CL
?uid 3
?uid 4
?uid 5 => The unique id of each MCU. You can use these values in order to discriminate the boards.

An easier way would be to configure the CAN node id (no matter if you use it or not). The respective command is CNOD (~cnod, ^cnod X)

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.120 seconds