Skip to content
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

Unable to Open Device Handle #55

Closed
tecklund opened this issue May 11, 2017 · 4 comments
Closed

Unable to Open Device Handle #55

tecklund opened this issue May 11, 2017 · 4 comments
Labels

Comments

@tecklund
Copy link

I am using a DS6878 Barcode Scanner (in HID mode) on OS X. I am running the example code which enumerates the devices allows me to see attached and detached events. However, open always returns false, and my OS retains ownership of the interface. hidDevice.getLastErrorMessage() returns Device not initialised.

@gary-rowe
Copy link
Owner

Just a quick check - is your device running as a keyboard/mouse in Windows? There is a note in the README covering this:

Check that the usage page is not 0x06 which is reserved for keyboards and mice. Windows opens these devices for its exclusive use and thus hid4java cannot establish its own connection to them. You will need to use the lower level usb4java library for this.

@tecklund
Copy link
Author

The usage page is 0x06, but I am not using Windows

@gary-rowe
Copy link
Owner

Were you able to resolve this?

@gary-rowe
Copy link
Owner

Closing as no response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants