hidapi windows doesn't see USBRelay #487
Labels
No labels
3rdparty
Android
API
Author does not respond
bsd
bug
build system/CI
ci-virtual-device
CMake
Contributions Welcome
Core
dependencies
device-specific
documentation
don't_merge
duplicate
enhancement
Example
Haiku
hidraw
hotplug
info required
invalid
libusb
macOS
Misc
Not an issue
question
Release
Test
Test GUI
Windows
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libusb/hidapi#487
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I have an USBRelays mini board with USB ID: 0519:2018 vendor is Star micronics (sometimes Usbcreatefun).
It works smoothly with python hidapi on Linux, but I'm not able to use it on Windows 10.
I installed python hidapi (and hidapi.dll) and I can use hid.enumerate() to list attached devices. But the USBRelay board doesn't show (and dev.open(0x519, 0x2918) gives IOError).
hidapi seems OK because I can see other HID devices when I plug them in
Any hints?
what version of hidapi.dll?
try hidtest (from master) and lets see what is shows
share your device's HID Report descriptor (it is easy to do so on Linux)
I'm not sure about hidapi.dll version. I downloaded it fro github a few days ago. Comments in hidapi.h show: copyrighr 2022.
I'll do that, but see my final remark
here's the output from usbhid-dump:
001:006:000:DESCRIPTOR 1670057100.575673
06 00 FF 09 01 A1 01 09 02 15 00 26 00 FF 75 08
95 08 81 06 09 02 15 00 26 00 FF 75 08 95 08 91
06 C0
But I've some news: I could try again on a brand new PC with windows 11: the USBRelay works as expected just with Python 3.11 and hidapi.dll freshly installed.
The laptop for my previous test is Win 11 home all the same, but I messed it up with many attempts with PyUSB and the zelig driver installer. So now when I plug in the relay it shows up as a COM port (but flagged as 'non working'). I do not know how to remove completely the drivers provided by zelig
On the working PC, instead, the relay shows up as "vendor defined HID compatible device"
That's the reason why it doesn't work. COM port is not a HID device.
Follow from "Step 2. Open the Device Manager": https://www.digitalcitizen.life/completely-remove-faulty-drivers-windows/
Thanks, I tried to remove the driver associated to my HID relay from Win Device Manager, removing the HIDRelay/COM device. Then the relay showed up as a libusbK device (an effect of my previous tests with Zelig). This could not be removed by device manager. So I bootstrapped Linux from a flash memory and removed all files related to libusb (libusb0 and libusbK) from the windows disk
After that my Relay doesn't shows up at all when plugging in (I hear the beeps but the list of devices on device manager does not change)