On 4/27/07, Bret Towe <[EMAIL PROTECTED]> wrote:
On 4/27/07, Jiri Kosina <[EMAIL PROTECTED]> wrote:
> On Thu, 26 Apr 2007, Bret Towe wrote:
>
> > For some time now at a place I work at we have been using some Unitech
> > MS-180 barcode scanners todo logins the work around we had in place
> > basicly was using a 2.4 kernel on the thin clients doing the logins
> > since 2.4 worked with them 2.6 had some issue and I had posted here
> > asking for help and got some suggestions on how to precede, between the
> > work around working and me not knowing the USB/HID code any I had
> > ignored the issue.
>
> Hi Bret,
>
> do I get your mail right that 2.4 works fine with the hid driver, but to
> make things working in 2.6 you have to use usbkbd driver? If so, we
> certainly need to fix this regression. usbkbd should not be used in
> production.

correct

> > Checking the difference between the working older scanners and newer
> > broken I saw the following via usbmon the below is from a scan of the
> > same barcode from 2 scanners. all the C lines on the broken start with
> > 01 and seem to be shifted compaired to the working
> > working:
> > ffff810035c5ea40 536368059 C Ii:005:01 0 8 = 02000000 00000000
> > ffff810035c5ea40 536368088 S Ii:005:01 -115 8 <
> > ffff810035c5ea40 536376058 C Ii:005:01 0 8 = 02001800 00000000
> > ffff810035c5ea40 536376080 S Ii:005:01 -115 8 <
> > ffff810035c5ea40 536384057 C Ii:005:01 0 8 = 00000000 00000000
> > ffff810035c5ea40 536384075 S Ii:005:01 -115 8 <
> > broken:
> > ffff810035c5e980 593493403 C Ii:006:01 0 8 = 01020000 00000000
> > ffff810035c5e980 593493417 S Ii:006:01 -115 8 <
> > ffff810035c5e980 593501397 C Ii:006:01 0 8 = 01020018 00000000
> > ffff810035c5e980 593501413 S Ii:006:01 -115 8 <
> > ffff810035c5e980 593509400 C Ii:006:01 0 8 = 01000000 00000000
> > ffff810035c5e980 593509419 S Ii:006:01 -115 8 <
>
> This by itself doesn't necessairly mean that it's broken, the report
> descriptor for the two devices might be different, and therefore the
> individual bytes in the URB should have different meaning.
>
> > also I do have usbmon logs of one of the scanners being plugged in with
> > just hid loaded and with usbkbd loaded and unplugging again If wanted I
> > can attach or upload somewhere from what I gather usbkbd should not have
> > to be relied on unless your doing embedded work or inital boot
> > requirements?
>
> Exactly. We certainly have to make this supported by the hid driver if
> possible.
>
> What kernel version do you use? Could you please grab any recent one
> (2.6.21 is preferred), and compile the kernel with CONFIG_HID_DEBUG option
> enabled? (you'll find it under Device Drivers -> HID devices -> HID
> debugging support in menuconfig), and post the output corresponsing both
> to the time the device is connected to the system and also when the data
> is being processed?
>

currently on 2.6.20.7
by data being processed you mean what should appear on screen in this case?
ill update my laptop to .21 and add the debug items
in the mean time ill just attach the usbmon logs of the plugin between upgrade
and something else I need todo it will be a couple hours

well that took longer than I would of liked
attached is dmesg output with hid debug enabled
has the device being rejected by hid and then working after i modprobe usbkbd
[  274.279972] hub 5-0:1.0: state 8 ports 8 chg 0000 evt 0000
[  274.279972] usb usb5: usb auto-resume
[  274.279972] usb usb5: finish resume
[  274.279972] hub 5-0:1.0: hub_resume
[  274.279972] ehci_hcd 0000:00:1d.7: resume root hub
[  274.313305] ehci_hcd 0000:00:1d.7: GetStatus port 1 status 001403 POWER 
sig=k CSC CONNECT
[  274.313305] hub 5-0:1.0: port 1, status 0501, change 0001, 480 Mb/s
[  274.433305] hub 5-0:1.0: debounce: port 1: total 100ms stable 100ms status 
0x501
[  274.433305] ehci_hcd 0000:00:1d.7: port 1 low speed --> companion
[  274.486639] ehci_hcd 0000:00:1d.7: GetStatus port 1 status 003002 POWER 
OWNER sig=se0 CSC
[  274.486639] hub 5-0:1.0: state 7 ports 8 chg 0000 evt 0002
[  274.486639] hub 1-0:1.0: state 8 ports 2 chg 0000 evt 0000
[  274.486639] usb usb1: usb auto-resume
[  274.486639] usb usb1: finish resume
[  274.486639] hub 1-0:1.0: hub_resume
[  274.486639] usb usb1: wakeup_rh
[  274.523305] uhci_hcd 0000:00:1d.0: port 1 portsc 01a3,00
[  274.523305] hub 1-0:1.0: port 1, status 0301, change 0001, 1.5 Mb/s
[  274.643305] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 
0x301
[  274.749972] usb 1-1: new low speed USB device using uhci_hcd and address 2
[  274.896639] usb 1-1: skipped 1 descriptor after interface
[  274.903305] usb 1-1: default language 0x0409
[  274.916639] usb 1-1: new device strings: Mfr=1, Product=2, SerialNumber=0
[  274.916639] usb 1-1: Product: Generic DE64-401
[  274.916639] usb 1-1: Manufacturer: Guest
[  274.916639] PM: Adding info for usb:1-1
[  274.916639] usb 1-1: uevent
[  274.916639] usb 1-1: usb_probe_device
[  274.916639] PM: Adding info for No Bus:usbdev1.2_ep00
[  274.916639] usb 1-1: configuration #1 chosen from 1 choice
[  274.926639] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[  274.926639] PM: Adding info for usb:1-1:1.0
[  274.926639] usb 1-1:1.0: uevent
[  274.933305] PM: Adding info for No Bus:usbdev1.2_ep81
[  274.933305] PM: Adding info for No Bus:usbdev1.2
[  274.933305] drivers/usb/core/inode.c: creating file '002'
[  274.933305] hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0002
[  275.056639] usbcore: registered new interface driver hiddev
[  275.056639] usbhid 1-1:1.0: usb_probe_interface
[  275.056639] usbhid 1-1:1.0: usb_probe_interface - got id
[  275.056639] drivers/usb/input/hid-core.c: HID probe called for ifnum 0
[  275.076639] drivers/usb/input/hid-core.c: report descriptor (size 97, read 
97) =  05 01 09 06 a1 01 85 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 05 
75 08 26 e7 00 15 00 05 07 29 e7 19 00 81 00 c0 05 01 09 03 a1 01 85 02 29 ff 
19 00 95 07 75 08 81 02 05 88 29 ff 19 00 95 07 75 08 91 02 c0
[  275.076639] drivers/usb/input/hid-core.c: parsing report descriptor failed
[  275.079972] usbcore: registered new interface driver usbhid
[  275.079972] drivers/usb/input/hid-core.c: v2.6:USB HID core driver
[  276.486639] hub 5-0:1.0: hub_suspend
[  276.486639] ehci_hcd 0000:00:1d.7: suspend root hub
[  276.486639] usb usb5: usb auto-suspend
[  277.079972] usb 1-1: usb auto-suspend
[  279.093305] hub 1-0:1.0: hub_suspend
[  279.093305] usb usb1: suspend_rh
[  279.093305] usb usb1: usb auto-suspend
[  349.513298] hub 1-0:1.0: state 8 ports 2 chg 0000 evt 0000
[  349.513298] usb usb1: usb auto-resume
[  349.513298] usb usb1: finish resume
[  349.513298] hub 1-0:1.0: hub_resume
[  349.513298] usb usb1: wakeup_rh
[  349.549965] uhci_hcd 0000:00:1d.0: port 1 portsc 01a5,01
[  349.549965] usb 1-1: usb wakeup-resume
[  349.563298] usb 1-1: finish resume
[  349.566631] hub 1-0:1.0: resume on port 1, status 0
[  349.566631] hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0000
[  351.566631] usb 1-1: usb auto-suspend
[  353.579964] hub 1-0:1.0: hub_suspend
[  353.579964] usb usb1: suspend_rh
[  353.579964] usb usb1: usb auto-suspend
[  366.423296] usbkbd 1-1:1.0: usb_probe_interface
[  366.423296] usbkbd 1-1:1.0: usb_probe_interface - got id
[  366.423296] usb usb1: usb auto-resume
[  366.423296] usb usb1: finish resume
[  366.423296] hub 1-0:1.0: hub_resume
[  366.423296] usb usb1: wakeup_rh
[  366.459963] hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0000
[  366.459963] usb 1-1: usb auto-resume
[  366.489963] uhci_hcd 0000:00:1d.0: port 1 portsc 0195,01
[  366.503296] usb 1-1: finish resume
[  366.506630] input: Guest Generic DE64-401 as /class/input/input7
[  366.509963] uhci_hcd 0000:00:1d.0: reserve dev 2 ep81-INT, period 8, phase 
4, 118 us
[  366.509963] usbcore: registered new interface driver usbkbd
[  366.509963] drivers/usb/input/usbkbd.c: :USB HID Boot Protocol keyboard 
driver
[  415.069958] usb 1-1: uhci_result_common: failed with status 440000
[  415.093291] usb 1-1: uhci_result_common: failed with status 440000
[  415.116625] usb 1-1: uhci_result_common: failed with status 440000
[  415.143291] usb 1-1: uhci_result_common: failed with status 440000
[  415.166625] usb 1-1: uhci_result_common: failed with status 440000
[  415.189958] usb 1-1: uhci_result_common: failed with status 440000
[  415.213291] hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0002
[  415.213291] uhci_hcd 0000:00:1d.0: port 1 portsc 008a,00
[  415.213291] hub 1-0:1.0: port 1, status 0100, change 0003, 12 Mb/s
[  415.213291] usb 1-1: USB disconnect, address 2
[  415.213291] usb 1-1: unregistering device
[  415.213291] usb 1-1: usb_disable_device nuking all URBs
[  415.213291] uhci_hcd 0000:00:1d.0: shutdown urb ed4552c0 pipe 40408280 
ep1in-intr
[  415.213291] uhci_hcd 0000:00:1d.0: release dev 2 ep81-INT, period 8, phase 
4, 118 us
[  415.213291] usb 1-1: unregistering interface 1-1:1.0
[  415.213291] PM: Removing info for No Bus:usbdev1.2_ep81
[  415.213291]  usbdev1.2_ep81: ep_device_release called for usbdev1.2_ep81
[  415.213291] PM: Removing info for usb:1-1:1.0
[  415.213291] usb 1-1:1.0: uevent
[  415.213291] PM: Removing info for No Bus:usbdev1.2
[  415.213291] PM: Removing info for No Bus:usbdev1.2_ep00
[  415.213291]  usbdev1.2_ep00: ep_device_release called for usbdev1.2_ep00
[  415.213291] PM: Removing info for usb:1-1
[  415.213291] usb 1-1: uevent
[  415.333291] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 
0x100
[  416.463291] usb usb1: suspend_rh (auto-stop)
[  417.333291] hub 1-0:1.0: hub_suspend
[  417.333291] usb usb1: suspend_rh
[  417.333291] usb usb1: usb auto-suspend
-------------------------------------------------------------------------
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/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to