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_WindowsI'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