Gentoo Archives: gentoo-user

From: Roy Wright <roy@××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] USB barcode scanner
Date: Mon, 04 May 2009 07:56:19
Message-Id: 49FE3D98.6000003@wright.org
In Reply to: [gentoo-user] USB barcode scanner by dhk
1 dhk wrote:
2 > I have a 2-dimensional usb bar code scanner that I'm trying to get
3 > working ( This is the exact one if interested:
4 > http://www.barcodesinc.com/metrologic/ms1690.htm ). It scans, but
5 > nothing gets displayed. How can I get the focused window/terminal to
6 > understand that the device should be treated as stdin? The output from
7 > lsusb and lsusb -D is below. Thanks,
8 >
9
10 It doesn't look like you have the HID keyboard version. I have an ID
11 Tech IDT4439U which when plugged in behaves like a keyboard. In the
12 following lsusb output, notice the iConfiguration and bInterfaceClass
13 parameters. My wild guess is you will need a driver. Also you may want
14 to verify you have CONFIG_HID* enabled in your kernel config.
15
16 HTH,
17 Roy
18
19 Bus 006 Device 003: ID 04b4:0101 Cypress Semiconductor Corp. Keyboard/Hub
20 Device Descriptor:
21 bLength 18
22 bDescriptorType 1
23 bcdUSB 1.00
24 bDeviceClass 0 (Defined at Interface level)
25 bDeviceSubClass 0
26 bDeviceProtocol 0
27 bMaxPacketSize0 8
28 idVendor 0x04b4 Cypress Semiconductor Corp.
29 idProduct 0x0101 Keyboard/Hub
30 bcdDevice 0.01
31 iManufacturer 1 Marson
32 iProduct 2 Marson Barcode/USB Link KDBv1.21
33 iSerial 0
34 bNumConfigurations 1
35 Configuration Descriptor:
36 bLength 9
37 bDescriptorType 2
38 wTotalLength 34
39 bNumInterfaces 1
40 bConfigurationValue 1
41 iConfiguration 4 HID Keyboard / Mouse
42 bmAttributes 0xa0
43 (Bus Powered)
44 Remote Wakeup
45 MaxPower 100mA
46 Interface Descriptor:
47 bLength 9
48 bDescriptorType 4
49 bInterfaceNumber 0
50 bAlternateSetting 0
51 bNumEndpoints 1
52 bInterfaceClass 3 Human Interface Device
53 bInterfaceSubClass 1 Boot Interface Subclass
54 bInterfaceProtocol 1 Keyboard
55 iInterface 5 EP1 Interrupt
56 HID Device Descriptor:
57 bLength 9
58 bDescriptorType 33
59 bcdHID 1.00
60 bCountryCode 0 Not supported
61 bNumDescriptors 1
62 bDescriptorType 34 Report
63 wDescriptorLength 63
64 Report Descriptors:
65 ** UNAVAILABLE **
66 Endpoint Descriptor:
67 bLength 7
68 bDescriptorType 5
69 bEndpointAddress 0x81 EP 1 IN
70 bmAttributes 3
71 Transfer Type Interrupt
72 Synch Type None
73 Usage Type Data
74 wMaxPacketSize 0x0008 1x 8 bytes
75 bInterval 10
76 Device Status: 0x0002
77 (Bus Powered)
78 Remote Wakeup Enabled
79
80 # grep HID /usr/src/linux/.config
81 CONFIG_HID_SUPPORT=y
82 CONFIG_HID=y
83 CONFIG_HID_DEBUG=y
84 CONFIG_HIDRAW=y
85 CONFIG_USB_HID=y
86 # CONFIG_HID_PID is not set
87 CONFIG_USB_HIDDEV=y
88 # Special HID drivers
89 CONFIG_HID_COMPAT=y
90 CONFIG_HID_A4TECH=y
91 CONFIG_HID_APPLE=y
92 CONFIG_HID_BELKIN=y
93 CONFIG_HID_BRIGHT=y
94 CONFIG_HID_CHERRY=y
95 CONFIG_HID_CHICONY=y
96 CONFIG_HID_CYPRESS=y
97 CONFIG_HID_DELL=y
98 CONFIG_HID_EZKEY=y
99 CONFIG_HID_GYRATION=y
100 CONFIG_HID_LOGITECH=y
101 CONFIG_HID_MICROSOFT=y
102 CONFIG_HID_MONTEREY=y
103 CONFIG_HID_PANTHERLORD=y
104 CONFIG_HID_PETALYNX=y
105 CONFIG_HID_SAMSUNG=y
106 CONFIG_HID_SONY=y
107 CONFIG_HID_SUNPLUS=y
108 # CONFIG_USB_PHIDGET is not set