USB error 5: Entity Not Found

422 views
Skip to first unread message

jaanus....@gmail.com

unread,
Dec 16, 2015, 10:10:13 AM12/16/15
to usb4java
Hi!

Can anybody help me with the below issue?

I'm trying to send some bytes to a specific scanner device I have connected
to USB on my Windows 7 Pro 64-bit. The device's native driver has been
installed and it is also recognized by the Zadig tool that was suggested here:
https://github.com/libusb/libusb/wiki/Windows#How_to_use_libusb_on_Windows

I've used the examples on usb4java's homepage.
I can see and dump all the details of the device.
However, when I then try to obtain a handle to it, I get USB error -5,
meaning "Entity Not Found". What could be wrong?

So I'm doing this (where "device" is already successfully found device):

DeviceHandle handle = new DeviceHandle();
int result = LibUsb.open(device, handle);
if (result != LibUsb.SUCCESS) {
      throw new LibUsbException("Unable to open USB device", result);
}

And I get the exception thrown.
Any help/ideas/hints greatly appreciated!

thanks,
Jaanus
Reply all
Reply to author
Forward
0 new messages