-
-
Notifications
You must be signed in to change notification settings - Fork 193
Enumeration returns multiple devices for Model T (Windows 10) #223
Comments
I swear I saw the problem on Friday, but today I can't reproduce. I see both devices just as you say, but enumerate is returning only the correct one. I tried to install about eleventy different libusb drivers at once, maybe it's a problem with a specific one that is not in use now? |
I'm also using libusb 1.0.21. I haven't installed libusbK, the devices are using the drivers that Windows automatically installed for them, so winusb.sys for the USB instance. |
Huh. This seems to be a libusb bug in any case. But perhaps your proposed workaround is a good idea anyway. |
I've just built libusb 1.0.22-rc3 and the issue does not happen with that version, so I guess they've already caught and fixed this! |
I implemented the workaround you proposed here: https://github.com/matejcik/python-trezor/commit/9f2583f893ebf206d72025f4041d55b212992c1b this will be merged as part of #226 |
See the linked issue in trezor-core |
Connecting a Model T to my Windows 10 machine causes two devices to appear in Device Manager:
-a USB device with Hardware ID USB\VID_1209&PID_53C1&REV_0200&MI_00
-a HID device with Hardware ID HID\VID_1209&PID_53C1&REV_0200&MI_01
Calling TrezorDevice.enumerate() returns both of these devices, but calling open() on the HID device fails while calling open() on the USB device succeeds.
One workaround is to change WebUsbTransport.enumerate() to check whether dev.getProduct() returns successfully and discard the device if it does not.
The text was updated successfully, but these errors were encountered: