-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
I noticed while doing some radio library development that I needed to have two CircuitPython boards (M0-based) connected to my Mac at once (one for transmitting, the other for receiving). This presented an interesting problem as both boards show up in Finder with the exact same drive name (CIRCUITPY):

If you use the command line you can see a small difference in the /Volumes directory with the name (one is given /Volumes/CIRCUITPY/ and another /Volumes/CIRCUITPY 1/):

In both cases though it's really hard to figure out which board to copy a file to as they both appear the same. A quick workaround is to add a dummy text file to the board so you can see it in finder and realize the difference. However I think we should consider some way to disambiguate the board names. This would greatly help scenarios like a classroom where a teacher might have multiple boards connected to set them up, etc. Or just normal users with two boards connected to their computer.
Some thoughts mentioned in discussion:
- Generate the filesystem label/name with a hash or few bits from the board's unique ID at the end. So CIRCUITPY could be CIRCUITPY_1AF etc.
- Allow users to change the name of the filesystem label programmatically, like in boot.py. This is actually kind of interesting because it would allow very clear board-specific names. Like a temperature sensor node could be named TEMP1, TEMP2, and be very easy to spot when connected to a computer.