-
Notifications
You must be signed in to change notification settings - Fork 28
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
The serial_number
returned by the list_devices
function is in uppercase, while libusb returns it in normal case (lowercase).
#22
Comments
Looks like you're on Windows. The Windows backend parses the serial_number from the instance ID, and I guess that's case insensitive like a Windows path and is getting uppercased by Windows. Does the I noticed that Libusb makes you open a device and then you can read any descriptor and it may perform IO. The nusb Also, the strings returned for |
The example code cannot run directly (it panics). I made some modifications to the example code, and now I am able to retrieve the correct Serial. However, I believe it should be possible to read the Serial without opening the device. |
Yes, I want What was the |
A watcher here… Very pleased to see this repository… Thanks for your efforts so far. |
@CCnut also points out that the current code also returns incorrect serial numbers when Windows assigns unique instance IDs for devices with duplicate serial numbers. I tested using Included that change in #57, all of which needs more testing. |
I tested with my Xiaomi Mi 8 connected to a computer. Here is the code I used and the corresponding results
The text was updated successfully, but these errors were encountered: