I’m concerned … having the BP probe and guess unless it already knows what board is expected … not recommended.
Specifically, there is no way to know what future planks will be made. There’s also likely to be 3rd party planks, many of which will never see general use, and it’s critical that the firmware doesn’t mess with those, as it has no idea what is “safe” for those planks.
Thus, it would still appear to require a user-initiated command to perform the detection. At which point, I’d consider some alternatives that may better match the above constraints…
Alternative
Consider a command such as:
plank config --board-name SOP8
Where this does a substring match of “SOP8” against a table of known planks, and prints out information about each of the matching planks (including a board ID). This then allows something such as:
plank config --board-id AZ75
This sets up the buspirate to use that plank, using the board ID. As alluded to by Ian above, that board ID could be conspicuously printed on the plank.
Heuristics still interesting
After running a new command that is designed to “know” that a given plank is attached, I think it’d be amazing to have some sort of heuristic that attempts to verify that the attached plank actually matches the given plank ID.
At the same time, if this is enabled, there should be a way to force it (e.g., in case the heuristic is incorrect in some edge case):
plank config --board-id AZ75 --force












