-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method to list connected Glasgow boards #206
Comments
While flashing and testing the batch of boards I've just run, I also noticed that the Glasgow's serial isn't reported correctly until the This seems to be because the firmware needs to be loaded (software/glasgow/device/hardware.py:88), which is fair enough / makes sense. While digging, I also noticed that a list of connected serials is in fact listed if A) no serial number is given, and B) there are more than 1x Glasgows attached to the system. See software/glasgow/device/hardware.py:120, for example:
I appreciate that this is only presented when required... but it isn't presented when an invalid serial is given (e.g: "oops - pick from this list"), and it feels like a bit of an unexpected route (i.e: "just try running something" vs "show me a list"). |
Yeah, reasonable request.
You can also run |
Oh, oops... I didn't run this step for the batch I've just done - I just ran
Huh, interesting... For clarity, do boards need to be shipped with firmware flashed? (i.e: which state are you referring to by "in that state") |
Boards need to be shipped with firmware flashed so that they present the WinUSB descriptor on first plug-in. Otherwise Windows remembers the lack of the descriptor and you'll get an access violation even if you plug a flashed board in. You can fix that by deleting a single registry key (which I think it's possible to write a .reg file for, and it's definitely possible with a short PowerShell snippet), or by using a driverless INF file (which someone will have to write, but it's straightforward). But it's easiest to ship flashed boards, in which case no interaction is necessary. Install the Python package and off you go. |
Understood - thanks for the clarification! I had expected it to be that way round, but wanted to be sure. |
It doesn't appear that the
glasgow
utility has a method to list / enumerate connected Glasgow boards.I'd like to propse a new
glasgow list
subcommand that will produce a list of boards connected to the system, with their revision and serial number (ready for use with--serial
)... and possibly even their position in the USB tree too.It is possible to get this information using other system utilities (examples below), but I feel we could streamline the process and present the information in a better way.
lsusb -d 20b7:9db1 -v | grep iSerial
dmesg | grep -A2 'Glasgow Debug Tool'
Is there already a method to do this with the
glasgow
tool (ignoring methods that employ other system utilities such aslsusb
/dmesg
), and/or does this sound sensible?The text was updated successfully, but these errors were encountered: