Re: Unitech USB barcode scanner issues

Jiri Kosina <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Mon, 30 Apr 2007, Bret Towe wrote:

> accutally as soon as i had sent off that previous email I went looking 
> for scanners to make sure they all worked or not the below is what i got 
> with a 61
> [  135.479986] usbhid 1-1:1.0: usb_probe_interface
> [  135.479986] usbhid 1-1:1.0: usb_probe_interface - got id
> [  135.479986] drivers/usb/input/hid-core.c: HID probe called for ifnum 0
> [  135.493319] drivers/usb/input/hid-core.c: Not fixing Cypress report
> descriptor
> [  135.496653] drivers/usb/input/hid-core.c: report descriptor (size
> 64, read 64) =  05 01 09 06 a1 01 05 07 29 e7 19 e0 25 01 15 00 75 01
> 95 08 81 02 95 01 75 08 81 01 95 05 75 01 05 08 29 05 19 01 91 02 95
> 01 75 03 91 01 95 06 75 08 26 e7 00 15 00 05 07 29 e7 19 00 81 00 c0
> [  135.496653] drivers/usb/input/hid-core.c: parsing report descriptor failed
> [  135.496653] usbcore: registered new interface driver usbhid
> [  135.496653] drivers/usb/input/hid-core.c: v2.6:USB HID core driver
> [  136.949986] hub 5-0:1.0: hub_suspend
> [  136.949986] ehci_hcd 0000:00:1d.7: suspend root hub
> [  136.949986] usb usb5: usb auto-suspend
> [  137.496652] usb 1-1: usb auto-suspend
> [  139.509986] hub 1-0:1.0: hub_suspend
> and i did this for the hid-core.c bit
> 	if (le16_to_cpu(dev->descriptor.idVendor) == 0x04b4 &&
> 			(le16_to_cpu(dev->descriptor.idProduct == 0xde64) ||
> 			le16_to_cpu(dev->descriptor.idProduct == 0xde61)))
> I thought this would be more handy

Thanks for the report - it clearly shows that Cypress produces different 
hardware with different report descriptors, all broken in a very similar 
way (improper order of usage minimum and maximum items), but not 
identical. This would require more general handling and care ... I will 
send you updated patch for test.

-- 
Jiri Kosina
SUSE Labs

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.