-
Notifications
You must be signed in to change notification settings - Fork 39
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
Serial Number of PPK2 #41
Comments
By looking at
It may be a good idea to but serial number in PPK2_API object so people can easily get the serial number |
@berkersal Will this suffice #43 ? |
Yes it helps for my case but it will break the examples for Windows |
Ah, of course. Will have a look at that later when I have access to a Windows computer. If you have any input and you're able to test, please feel free to pitch in and I will update the PR (I don't know if serialtools has the same support for fetching the serial in Windows) |
Added the same changes to the windows part of |
I don't have access to a Windows computer that I can use with PPK. But the documentation of pyserial says Windows also supports serial number. |
Got around to test it now, it works for both systems |
I know it is possible to get which port the device is connected to with
list_devices()
but I have two PPK2's in a system and need to know which is which without relying on systems enumeration (a.k.a/dev/ttyACM0
).I checked the source code of the library but couldn't find it.
Thanks in advance.
The text was updated successfully, but these errors were encountered: