On Mon, Jun 02, 2003 at 03:08:44PM -0500, Iftikhar Rathore wrote:
> 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.

Sorry, not really possible to do, unless you want to not use the hid
keyboard driver and try to read the keyboard events yourself from
userspace (I think the input event interface will let you read them.)

Or you might want to complain to the manufacturer of the barcode
scanner, I know most of them consider USB keyboard emulation a
"feature".  You might want to get a serial interface scanner, and use a
usb to serial converter if you really want serial data.

Good luck,

greg k-h
(who wrote firmware for barcode scanners to look like USB hid keyboards
in a previous life...)


-------------------------------------------------------
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