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

Thanks,

--
Jiri Kosina


Thanks for the reply
ffff810037c91900 1644347854 C Ii:001:01 0 1 = 04
ffff810037c91900 1644347864 S Ii:001:01 -115 2 <
ffff810028cd6980 1644401173 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6980 1644401179 C Ci:001:00 0 4 = 01030100
ffff810028cd6980 1644401181 S Co:001:00 s 23 01 0010 0002 0000 0
ffff810028cd6980 1644401184 C Co:001:00 0 0
ffff810028cd6980 1644401187 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6980 1644401190 C Ci:001:00 0 4 = 01030000
ffff810028cd6980 1644431145 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6980 1644431153 C Ci:001:00 0 4 = 01030000
ffff810028cd6980 1644461178 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6980 1644461185 C Ci:001:00 0 4 = 01030000
ffff810028cd6980 1644491258 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6980 1644491265 C Ci:001:00 0 4 = 01030000
ffff810028cd6980 1644521135 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6980 1644521143 C Ci:001:00 0 4 = 01030000
ffff810028cd6980 1644521158 S Co:001:00 s 23 03 0004 0002 0000 0
ffff810028cd6980 1644521161 C Co:001:00 0 0
ffff810028cd6980 1644574472 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6980 1644574494 C Ci:001:00 0 4 = 03030000
ffff810028cd6980 1644627793 S Co:001:00 s 23 01 0014 0002 0000 0
ffff810028cd6980 1644627798 C Co:001:00 0 0
ffff810028cd6980 1644627816 S Ci:000:00 s 80 06 0100 0000 0040 64 <
ffff810028cd6980 1644634815 C Ci:000:00 0 18 = 12011001 00000008 b40464de 
00040102 0001
ffff810028cd6980 1644635043 S Co:001:00 s 23 03 0004 0002 0000 0
ffff810028cd6980 1644635048 C Co:001:00 0 0
ffff810028cd6980 1644687815 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6980 1644687837 C Ci:001:00 0 4 = 03030000
ffff810028cd6980 1644741139 S Co:001:00 s 23 01 0014 0002 0000 0
ffff810028cd6980 1644741144 C Co:001:00 0 0
ffff810028cd6980 1644741149 S Co:000:00 s 00 05 0003 0000 0000 0
ffff810028cd6980 1644743799 C Co:000:00 0 0
ffff810028cd6980 1644757817 S Ci:003:00 s 80 06 0100 0000 0012 18 <
ffff810028cd6980 1644763796 C Ci:003:00 0 18 = 12011001 00000008 b40464de 
00040102 0001
ffff810028cd6980 1644763825 S Ci:003:00 s 80 06 0200 0000 0009 9 <
ffff810028cd6980 1644768791 C Ci:003:00 0 9 = 09022200 010104a0 32
ffff810028cd6980 1644768814 S Ci:003:00 s 80 06 0200 0000 0022 34 <
ffff810028cd6980 1644776791 C Ci:003:00 0 34 = 09022200 010104a0 32090400 
00010301 01050921 00010001 22610007 05810308
ffff810028cd6980 1644776829 S Ci:003:00 s 80 06 0300 0000 00ff 255 <
ffff810028cd6980 1644781787 C Ci:003:00 0 4 = 04030904
ffff810028cd6980 1644782912 S Ci:003:00 s 80 06 0302 0409 00ff 255 <
ffff810028cd6980 1644791787 C Ci:003:00 0 34 = 22034700 65006e00 65007200 
69006300 20004400 45003600 34002d00 34003000
ffff810028cd6980 1644791825 S Ci:003:00 s 80 06 0301 0409 00ff 255 <
ffff810028cd6980 1644797784 C Ci:003:00 0 12 = 0c034700 75006500 73007400
ffff810028cd6980 1644797965 S Co:003:00 s 00 09 0001 0000 0000 0
ffff810028cd6980 1644800791 C Co:003:00 0 0
ffff810028cd6980 1644800843 S Ci:003:00 s 80 06 0304 0409 00ff 255 <
ffff810028cd6980 1644806783 C Ci:003:00 0 14 = 0e034800 49004400 20004b00 4200
ffff810028cd6980 1644806886 S Co:003:00 s 21 0a 0000 0000 0000 0
ffff810028cd6980 1644809782 C Co:003:00 0 0
ffff810028cd6980 1644809798 S Ci:003:00 s 81 06 2200 0000 0061 97 <
ffff810028cd6980 1644825792 C Ci:003:00 0 97 = 05010906 a1018501 050729e7 
19e02501 15007501 95088102 95017508 81019505
ffff810028cd6980 1644825908 S Ci:003:00 s 80 06 0305 0409 00ff 255 <
ffff810028cd6980 1644831782 C Ci:003:00 0 8 = 08034500 50003100
ffff810037c91900 1647847575 C Ii:001:01 0 1 = 04
ffff810037c91900 1647847581 S Ii:001:01 -115 2 <
ffff810028cd6980 1647847637 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6980 1647847643 C Ci:001:00 0 4 = 00030300
ffff810028cd6980 1647847646 S Co:001:00 s 23 01 0010 0002 0000 0
ffff810028cd6980 1647847649 C Co:001:00 0 0
ffff810028cd6980 1647847651 S Co:001:00 s 23 01 0011 0002 0000 0
ffff810028cd6980 1647847653 C Co:001:00 0 0
ffff810028cd6980 1647847884 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6980 1647847887 C Ci:001:00 0 4 = 00030000
ffff810028cd6980 1647877574 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6980 1647877583 C Ci:001:00 0 4 = 00030000
ffff810028cd6980 1647907568 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6980 1647907577 C Ci:001:00 0 4 = 00030000
ffff810028cd6980 1647937566 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6980 1647937573 C Ci:001:00 0 4 = 00030000
ffff810028cd6980 1647967590 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6980 1647967599 C Ci:001:00 0 4 = 00030000
ffff810037c91900 1689094816 C Ii:001:01 0 1 = 04
ffff810037c91900 1689094826 S Ii:001:01 -115 2 <
ffff810028cd6b00 1689148146 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6b00 1689148153 C Ci:001:00 0 4 = 01030100
ffff810028cd6b00 1689148154 S Co:001:00 s 23 01 0010 0002 0000 0
ffff810028cd6b00 1689148157 C Co:001:00 0 0
ffff810028cd6b00 1689148159 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6b00 1689148162 C Ci:001:00 0 4 = 01030000
ffff810028cd6b00 1689178092 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6b00 1689178100 C Ci:001:00 0 4 = 01030000
ffff810028cd6b00 1689208063 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6b00 1689208070 C Ci:001:00 0 4 = 01030000
ffff810028cd6b00 1689238061 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6b00 1689238069 C Ci:001:00 0 4 = 01030000
ffff810028cd6b00 1689268117 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6b00 1689268125 C Ci:001:00 0 4 = 01030000
ffff810028cd6b00 1689268139 S Co:001:00 s 23 03 0004 0002 0000 0
ffff810028cd6b00 1689268142 C Co:001:00 0 0
ffff810028cd6b00 1689321388 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6b00 1689321411 C Ci:001:00 0 4 = 03030000
ffff810028cd6b00 1689374717 S Co:001:00 s 23 01 0014 0002 0000 0
ffff810028cd6b00 1689374722 C Co:001:00 0 0
ffff810028cd6b00 1689374739 S Ci:000:00 s 80 06 0100 0000 0040 64 <
ffff810028cd6b00 1689380775 C Ci:000:00 0 18 = 12011001 00000008 b40464de 
00040102 0001
ffff810028cd6b00 1689380814 S Co:001:00 s 23 03 0004 0002 0000 0
ffff810028cd6b00 1689380819 C Co:001:00 0 0
ffff810028cd6b00 1689431425 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6b00 1689431446 C Ci:001:00 0 4 = 03030000
ffff810028cd6b00 1689484731 S Co:001:00 s 23 01 0014 0002 0000 0
ffff810028cd6b00 1689484737 C Co:001:00 0 0
ffff810028cd6b00 1689484742 S Co:000:00 s 00 05 0005 0000 0000 0
ffff810028cd6b00 1689486763 C Co:000:00 0 0
ffff810028cd6b00 1689501374 S Ci:005:00 s 80 06 0100 0000 0012 18 <
ffff810028cd6b00 1689506758 C Ci:005:00 0 18 = 12011001 00000008 b40464de 
00040102 0001
ffff810028cd6b00 1689506790 S Ci:005:00 s 80 06 0200 0000 0009 9 <
ffff810028cd6b00 1689511752 C Ci:005:00 0 9 = 09022200 010104a0 32
ffff810028cd6b00 1689511775 S Ci:005:00 s 80 06 0200 0000 0022 34 <
ffff810028cd6b00 1689519756 C Ci:005:00 0 34 = 09022200 010104a0 32090400 
00010301 01050921 00010001 22610007 05810308
ffff810028cd6b00 1689519809 S Ci:005:00 s 80 06 0300 0000 00ff 255 <
ffff810028cd6b00 1689524748 C Ci:005:00 0 4 = 04030904
ffff810028cd6b00 1689524894 S Ci:005:00 s 80 06 0302 0409 00ff 255 <
ffff810028cd6b00 1689533748 C Ci:005:00 0 34 = 22034700 65006e00 65007200 
69006300 20004400 45003600 34002d00 34003000
ffff810028cd6b00 1689533782 S Ci:005:00 s 80 06 0301 0409 00ff 255 <
ffff810028cd6b00 1689539744 C Ci:005:00 0 12 = 0c034700 75006500 73007400
ffff810028cd6b00 1689539895 S Co:005:00 s 00 09 0001 0000 0000 0
ffff810028cd6b00 1689542751 C Co:005:00 0 0
ffff810028cd6b00 1689542802 S Ci:005:00 s 80 06 0304 0409 00ff 255 <
ffff810028cd6b00 1689548746 C Ci:005:00 0 14 = 0e034800 49004400 20004b00 4200
ffff810028cd6b00 1689548846 S Co:005:00 s 21 0a 0000 0000 0000 0
ffff810028cd6b00 1689551744 C Co:005:00 0 0
ffff810028cd6b00 1689551760 S Ci:005:00 s 81 06 2200 0000 0061 97 <
ffff810028cd6b00 1689567757 C Ci:005:00 0 97 = 05010906 a1018501 050729e7 
19e02501 15007501 95088102 95017508 81019505
ffff810028cd6b00 1689568019 S Ii:005:01 -115 8 <
ffff810028cd6ec0 1689568103 S Ci:005:00 s 80 06 0305 0409 00ff 255 <
ffff810028cd6ec0 1689573742 C Ci:005:00 0 8 = 08034500 50003100
ffff810028cd6b00 1692473264 C Ii:005:01 -84 0
ffff810028cd6b00 1692473269 S Ii:005:01 -115 8 <
ffff810028cd6b00 1692497257 C Ii:005:01 -84 0
ffff810028cd6b00 1692497260 S Ii:005:01 -115 8 <
ffff810028cd6b00 1692521256 C Ii:005:01 -84 0
ffff810028cd6b00 1692521259 S Ii:005:01 -115 8 <
ffff810028cd6b00 1692545251 C Ii:005:01 -84 0
ffff810028cd6b00 1692545255 S Ii:005:01 -115 8 <
ffff810028cd6b00 1692569248 C Ii:005:01 -84 0
ffff810028cd6b00 1692569251 S Ii:005:01 -115 8 <
ffff810028cd6b00 1692593240 C Ii:005:01 -84 0
ffff810028cd6b00 1692593243 S Ii:005:01 -115 8 <
ffff810037c91900 1692594497 C Ii:001:01 0 1 = 04
ffff810037c91900 1692594501 S Ii:001:01 -115 2 <
ffff810028cd6ec0 1692594530 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6ec0 1692594535 C Ci:001:00 0 4 = 00030300
ffff810028cd6ec0 1692594538 S Co:001:00 s 23 01 0010 0002 0000 0
ffff810028cd6ec0 1692594540 C Co:001:00 0 0
ffff810028cd6ec0 1692594542 S Co:001:00 s 23 01 0011 0002 0000 0
ffff810028cd6ec0 1692594544 C Co:001:00 0 0
ffff810028cd6b00 1692596238 C Ii:005:01 -108 0
ffff810028cd68c0 1692596585 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd68c0 1692596590 C Ci:001:00 0 4 = 00030000
ffff810028cd6800 1692624515 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6800 1692624524 C Ci:001:00 0 4 = 00030000
ffff810028cd6800 1692654512 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6800 1692654520 C Ci:001:00 0 4 = 00030000
ffff810028cd6800 1692684491 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6800 1692684498 C Ci:001:00 0 4 = 00030000
ffff810028cd6800 1692714487 S Ci:001:00 s a3 00 0000 0002 0004 4 <
ffff810028cd6800 1692714494 C Ci:001:00 0 4 = 00030000
-------------------------------------------------------------------------
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