redirecting the output of a USB barcode scanner (= USB keyboard)
I have a USB barcode scanner that acts like a keyboard: whenever a
barcode is read it sends the code where the keyboard would normally write.
I would like to redirect the output to /dev/rtfX (RTAI FIFO).
What I do know is to read from the USB barcode scanner using libhid and
write to the FIFO using dedicated API. However, it's a bit complicated,
and I have the feeling that the result could be obtained with very few
lines of code.
MardukKurios suggested this:
They normally configure as a keyboard, though in Linux, by default, some
of the COM ports may not be accessible. Add "8250.nr_uarts=8" to the end
of your kernel line to have it configure past COM4. I.E.:
kernel /boot/vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/ 8250.nr_uarts=8
If you cat /dev/ttySX (X is the number of the COM port you want to listen
to) and scan something, you should see input.
This seems like a good idea, but unfortunately 8250.nr_uarts is not an
option recognized by my kernel. However, this suggests that what I want to
do should be possible.
Does anybody have an idea?
PS: dmesg shows this
usb 2-1: new full speed USB device using uhci_hcd and address 3 input: �
Symbol Technologies, Inc, 2000 Symbol Bar Code Scanner as
/class/input/input3 input: USB HID v1.10 Keyboard [� Symbol
Technologies, Inc, 2000 Symbol Bar Code Scanner ] on usb-0000:00:1d.0-1
I also want to read from barcode reader. I tried to read from it is device descriptor at /dev/input/by-id/kbd. But I am receiving scan code with the original input. Please can you help me to read barcode scanner using hid lib? ...Thanks in advance it will really help me.
|All times are GMT -5. The time now is 08:26 PM.|