1 |
I have a 2-dimensional usb bar code scanner that I'm trying to get |
2 |
working ( This is the exact one if interested: |
3 |
http://www.barcodesinc.com/metrologic/ms1690.htm ). It scans, but |
4 |
nothing gets displayed. How can I get the focused window/terminal to |
5 |
understand that the device should be treated as stdin? The output from |
6 |
lsusb and lsusb -D is below. Thanks, |
7 |
|
8 |
# lsusb |
9 |
Bus 006 Device 001: ID 1d6b:0001 |
10 |
Bus 005 Device 002: ID 0c2e:0720 Metro |
11 |
Bus 005 Device 001: ID 1d6b:0001 |
12 |
Bus 004 Device 001: ID 1d6b:0001 |
13 |
Bus 003 Device 001: ID 1d6b:0001 |
14 |
Bus 002 Device 001: ID 1d6b:0002 |
15 |
Bus 001 Device 001: ID 1d6b:0002 |
16 |
# lsusb -D /proc/bus/usb/005/002 |
17 |
Device: ID 0c2e:0720 Metro |
18 |
Device Descriptor: |
19 |
bLength 18 |
20 |
bDescriptorType 1 |
21 |
bcdUSB 1.10 |
22 |
bDeviceClass 0 (Defined at Interface level) |
23 |
bDeviceSubClass 0 |
24 |
bDeviceProtocol 0 |
25 |
bMaxPacketSize0 16 |
26 |
idVendor 0x0c2e Metro |
27 |
idProduct 0x0720 |
28 |
bcdDevice 53.57 |
29 |
iManufacturer 1 Metrologic |
30 |
iProduct 2 Metrologic Scanner |
31 |
iSerial 0 |
32 |
bNumConfigurations 1 |
33 |
Configuration Descriptor: |
34 |
bLength 9 |
35 |
bDescriptorType 2 |
36 |
wTotalLength 41 |
37 |
bNumInterfaces 1 |
38 |
bConfigurationValue 1 |
39 |
iConfiguration 3 POS USB |
40 |
bmAttributes 0x80 |
41 |
(Bus Powered) |
42 |
MaxPower 450mA |
43 |
Interface Descriptor: |
44 |
bLength 9 |
45 |
bDescriptorType 4 |
46 |
bInterfaceNumber 0 |
47 |
bAlternateSetting 0 |
48 |
bNumEndpoints 2 |
49 |
bInterfaceClass 255 Vendor Specific Class |
50 |
bInterfaceSubClass 0 |
51 |
bInterfaceProtocol 0 |
52 |
iInterface 0 |
53 |
** UNRECOGNIZED: 09 21 11 01 00 01 22 3f 00 |
54 |
Endpoint Descriptor: |
55 |
bLength 7 |
56 |
bDescriptorType 5 |
57 |
bEndpointAddress 0x02 EP 2 OUT |
58 |
bmAttributes 3 |
59 |
Transfer Type Interrupt |
60 |
Synch Type None |
61 |
Usage Type Data |
62 |
wMaxPacketSize 0x0040 1x 64 bytes |
63 |
bInterval 10 |
64 |
Endpoint Descriptor: |
65 |
bLength 7 |
66 |
bDescriptorType 5 |
67 |
bEndpointAddress 0x81 EP 1 IN |
68 |
bmAttributes 3 |
69 |
Transfer Type Interrupt |
70 |
Synch Type None |
71 |
Usage Type Data |
72 |
wMaxPacketSize 0x0008 1x 8 bytes |
73 |
bInterval 10 |
74 |
Device Status: 0x0000 |
75 |
(Bus Powered) |
76 |
# |
77 |
|
78 |
|
79 |
Thanks again, |
80 |
|
81 |
dave |