lkml.org 
[lkml]   [2006]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: The Input Layer and the Serial Port

> To the King of Penguins and the Wise Architects of the Kernel:
>
> Greetings and Smooth Compiling to All,
>
> I, a humble pilgrim in the Land of Tux, have spent over a year
> seeking a simple answer to what seems to me a simple question:
> How do I expose my RS232 barcode scanner to the input layer so
> that the scanned information shows up in applications? Basically,
> I need the scanner to act like another keyboard. Scan a code,
> see the numbers.

By the magic of serio. Take for example the AT keyboard which is
one of the most common keyboards in the world. I have seen and
used it attached to a PC via parport, serial port and the standard
PS/2 port. So to handle cases like this the input layer created a
serio interface. This way it does matter what bus the keyboard is
attached to the same code can be used to drive the keyboard.
The good news for you is that a serial port serio exist already.
All you need to do is write the device interface. I recommend you
take a look at sermouse.c in the drivers/input.mouse directory
for a guide.

P.S
In fact I have been playing with serio for a way to
work with LCD panels that can be wired via parport, gpio etc.
Its just so flexiable :-)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-12-27 22:13    [W:0.046 / U:1.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site