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

My Device HP 4430 2D Imaging Barcode Scanner not listing #50

Open
IlmadEddine opened this issue Feb 7, 2018 · 10 comments
Open

My Device HP 4430 2D Imaging Barcode Scanner not listing #50

IlmadEddine opened this issue Feb 7, 2018 · 10 comments

Comments

@IlmadEddine
Copy link

I tried pure javahedabe api to read data from my device but I could not find it in list of devices attached

I loved it because the others APIs doesn't have input Listener

any idea for resolve this

@tresf
Copy link

tresf commented Feb 7, 2018

I could not find it in list of devices attached

Barcode Scanners can be programmed to operate in different modes. There's usually a booklet with a bunch of barcodes to switch modes. If you don't have the booklet you should be able to find a PDF online with the barcodes.

For example, if this barcode scanner is configured for RS232 communication, it will show up as a COM/Serial port on your computer.

@nyholku
Copy link
Owner

nyholku commented Feb 7, 2018 via email

@IlmadEddine
Copy link
Author

Windows x64
I can switch to COM / USB ... I'm sure it's a USB HID like keyboard

@tresf
Copy link

tresf commented Feb 7, 2018

@IlmadEddine you will have to switch it off of Keyboard mode per: https://github.com/nyholku/purejavahidapi#why-hid

Most HID devices (like Mouse, Keyboard etc) have specific APIs provided by the operating system and you should use those to access them.

However some device which are not really Human Interface Devices in the original intent of the USB HID standard nevertheless represent themselves as HID devices. Devices like ThinkGeek USB Rocket Launcher or Oregon Scientific WMR100 weather stations to name two.

@IlmadEddine
Copy link
Author

I try Hid4Java .. in console i have this

Device attached: HidServicesEvent{hidDevice=HidDevice [path=\?\hid#vid_03f0&pid_0139#7&2dbe7f3a&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}, vendorId=0x3f0, productId=0x139, serialNumber=S/N VNC2442289, releaseNumber=0x77, manufacturer=Hewlett-Packard, product=HP Image Scanner, usagePage=0x1, usage=0x6, interfaceNumber=-1]}

Device detached: HidServicesEvent{hidDevice=HidDevice [path=\?\hid#vid_03f0&pid_0139#7&2dbe7f3a&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}, vendorId=0x3f0, productId=0x139, serialNumber=S/N VNC2442289, releaseNumber=0x77, manufacturer=Hewlett-Packard, product=HP Image Scanner, usagePage=0x1, usage=0x6, interfaceNumber=-1]}

@nyholku
Copy link
Owner

nyholku commented Feb 13, 2018

Next thing to do would be to step through or instrument the enumeration code to see what happens:

public List<purejavahidapi.HidDeviceInfo> enumerateDevices() {

@IlmadEddine
Copy link
Author

I read this

Device USB\VID_03F0&PID_0139\S/N_VNC2442289 was not migrated due to partial or ambiguous match.

Last Device Instance Id: USB\VID_0461&PID_0010&MI_00\7&30821C4&0&0000
Class Guid: {745A17A0-74D3-11D0-B6FE-00A0C90F57DA}
Location Path:
Migration Rank: 0xF000FFFF0000F130
Present: false
Status: 0xC0000719

witch part i should add to InterfaceClassGuid List ?

i don't understand your code but i show some message
inside enumerateDevices function :
devinfo_data.cbSize 28
device_interface_data.cbSize 28
Continue line 120
Break line 117
Break line 166

Continue line 120
Break line 117
Break line 166

Continue line 120
Break line 117

Continue line 120
Break line 117
Break line 166

Continue line 120
Break line 117

Continue line 120
Break line 117

Break line 102

These line in your example after call PureJavaHidApi.enumerateDevices() function :
Device : \?\hid#vid_04f3&pid_0103&mi_01&col01#8&109674c3&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
Device : \?\hid#vid_04f3&pid_0103&mi_01&col02#8&109674c3&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}
Device : \?\hid#vid_1bcf&pid_0007&col02#7&296bdc72&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}

@nyholku
Copy link
Owner

nyholku commented Feb 13, 2018

Does this device work with any software in your system?

googling for " was not migrated due to partial or ambiguous match." suggest that this could be a driver issue...

@IlmadEddine
Copy link
Author

As Standard output yes (must be text input editable) (I can switch to Serial Port ... No)

hid

@tresf
Copy link

tresf commented Mar 28, 2018

I can confirm this library works properly with HID barcode scanners. I've recently integrated with a Honeywell Scanner using PureJavaHIDAPI.

I ran into two caveats which may or may not be immediately beneficial to this thread:

  • The drivers from the vendor were needed for proper operation
  • The device exposed two matching VID/PID endpoints, I needed to use the Usage Page to distinguish the correct endpoint.

The HP scanner offers some drivers as well. If they don't install automatically you may need to browse to the driver location and install them manually. https://support.hp.com/us-en/drivers/selfservice/hp-imaging-barcode-scanner/5061524/model/5061525

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

No branches or pull requests

3 participants