Discussion:
[libhid-discuss] Adesso Bar-code scanner
Ian Thompson
2009-01-08 17:31:26 UTC
Permalink
All

I have just discovered Python-hid and am trying to use it to gather data from an Adesso bar-code reader.
Under Linux the device works when it is the only keyboard input device in the system but not when there is another
keyboard. I'm not running X, so it is not an X setup problem.

The reader has a vendor_id = 0x0000 and a product_id = 0x0001.
When running "test_libhid.py" I get a number of errors.
It appears that the vendor_id = 0x0000 is used as a MATCH_ANY vendor_id in the library, which is a problem when using
this device. Apparently there are a growing number of devices that have a vendor_id = 0x0000. Should the MATCH_ANY
define be changed to some other value, say 0xFFFF?

regards

Ian Thompson







This email and any files contained therein is confidential and may contain privileged information. If you are not the named addressee(s) or you have otherwise received this in error, you should not distribute or copy this e-mail or use any of its content for any purpose. Please notify the sender immediately by e-mail if you have received this e-mail in error and delete it from your system
Charles Lepple
2009-01-09 13:11:35 UTC
Permalink
Post by Ian Thompson
The reader has a vendor_id = 0x0000 and a product_id = 0x0001.
When running "test_libhid.py" I get a number of errors.
It appears that the vendor_id = 0x0000 is used as a MATCH_ANY
vendor_id in the library, which is a problem when using
this device. Apparently there are a growing number of devices that
have a vendor_id = 0x0000. Should the MATCH_ANY
define be changed to some other value, say 0xFFFF?
The original intention was to have a match value and a mask, much
like a subnet mask in a routing table. This would have made it
possible to match 0x0000.

It's definitely on the list of things to change in a future version
of the library.

Loading...