Scanning for expansion boards
-
Hi,
I'm testing out a MB6HC with a handful of expansion boards.
It's working but sometimes I need to know the address of an expansion board.
If I forget or lose my "sticky note" is there a way to scan and find currently connected boards?
Thanks.
Frederick
-
@fcwilt you can send this command:
M409 "boards"
That will list all expansion boards that have announced themselves to the main board.
Even better, write a macro to iterate boards[] in the object model and print each board type, its CAN address, firmware version etc. on a separate line.
-
@dc42 said in Scanning for expansion boards:
@fcwilt you can send this command:
M409 "boards"
That will list all expansion boards that have announced themselves to the main board.
Even better, write a macro to iterate boards[] in the object model and print each board type, its CAN address, firmware version etc. on a separate line.
M409 K"boards" worked.
I like the idea of a macro.
Thanks.
Frederick
-
@fcwilt here's a macro that I just knocked up:
while iterations < #boards echo boards[iterations].canAddress,boards[iterations].shortName,boards[iterations].firmwareVersion
Here is the output:
M98 P"0:/macros/List boards" 0 MB6HC 3.4beta1+ 1 EXP3HC 3.4beta1+ (2021-06-16 20:38:37) 2 EXP3HC 3.4beta1+ (2021-06-16 20:38:37) 3 EXP3HC 3.4beta1+ (2021-06-16 20:38:37) 40 EXP1XD 3.3 (2021-06-15 16:37:11) 121 TOOL1LC 3.3 (2021-06-15 16:38:14)
-
@dc42 said in Scanning for expansion boards:
while iterations < #boards echo boards[iterations].canAddress,boards[iterations].shortName,boards[iterations].firmwareVersion
Things just get better and better.
Thanks very much - for this macro and for all of the other hard work you do for us.
Frederick