> 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 [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/