-
Notifications
You must be signed in to change notification settings - Fork 11
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
Claim interface error 87 #27
Comments
maybe this could be relevant? |
Are you using version 1.0 of the library? Are you using Java 22 or 23? |
yes, using version 1 and using Java 22 |
Using a similar device (SIL CP2102), I can reproduce your case. It's a rather confusing Windows error message. The actual problem is that device has already been claimed by a driver, most likely the Prolific driver that makes the device available as a COM port. Such devices can be enumerated and queried. But it's not possible to claim an interface and communicate with its endpoints. On Windows, an interface can only be claimed if the device (or rather the interface or composite function) uses the WinUSB driver (also see README / Windows). If you want to communicate with the device using this library, you have to replace the driver with WinUSB (using Zadig). It will then no longer be available as a COM port. Unfortunately, this is a restriction of the rigid Windows driver model for USB devices. |
Hello,
I am trying to use your library, on Windows 10 64bit, but I am getting error 87 when attempt to claim an interface
test code in Kotlin
interface should exist as enumerated here:
The text was updated successfully, but these errors were encountered: