Hi
I apologise if it is a simple task. I have a USB barcode scanner that
show up as an HID keyboard device. I am using it with linux-2.4.20 and a
slightly modified RedHat-8.0. The problem is that it is working as a
keyboard device so whatever I scan shows up as keyboard input (inserted
into keyboard input stream). I have been trying to use it not as a
keyboard device but as a serial type character device so an application
can read what it scans. I have not found any way of doing it using the
USB devices that are part of the kernel.

Can anyone point me to the right direction. I would like it to be a
device file that I can open from inside an application and read the
scans using something like fscanf(). Below is the log for usb and
hotplug. And below that I will include the device output from usbview.


Jun  2 14:56:36 linus24 kernel: hub.c: new USB device 00:1f.4-1, assigned address 8
Jun  2 14:56:36 linus24 kernel: usb-uhci.c: interrupt, status 2, frame# 1019
Jun  2 14:56:40 linus24 kernel: usb_control/bulk_msg: timeout
Jun  2 14:56:40 linus24 kernel: input0: USB HID v1.10 Keyboard [? Symbol Technologies, 
Inc, 2000 Bar Code Scanner       ] on usb2:8.0
Jun  2 14:56:44 linus24 /etc/hotplug/usb.agent: Setup hid for USB product 5e0/28a/204
Jun  2 14:56:44 linus24 /etc/hotplug/usb.agent: Setup keybdev for USB product 
5e0/28a/204


Bar Code Scanner       
Serial Number: S/N:b5abc3000000 Rev:NVRM7AAB3
Speed: 12Mb/s (full)
USB Version:  1.10
Device Class: 00(>ifc )
Device Subclass: 00
Device Protocol: 00
Maximum Default Endpoint Size: 8
Number of Configurations: 1
Vendor Id: 05e0
Product Id: 028a
Revision Number:  2.04

Config Number: 1
        Number of Interfaces: 1
        Attributes: 80
        MaxPower Needed: 400mA

        Interface Number: 0
                Name: hid
                Alternate Number: 0
                Class: 03(HID  ) 
                Sub Class: 1
                Protocol: 1
                Number of Endpoints: 1

                        Endpoint Address: 81
                        Direction: in
                        Attribute: 3
                        Type: Int.
                        Max Packet Size: 8
                        Interval: 10ms

-- 
Iftikhar Rathore <[EMAIL PROTECTED]>
Genome Sequencing Center
Washington University In St. Louis



-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to