Messages in this thread | | | Subject | keyboard hook? | From | Michael Rothwell <> | Date | 02 Jun 2001 17:56:15 -0400 |
| |
I'm beginning the process of writing a driver for the "Qoder" keyboard-fob barcode scanner made by InterMec. It communicates with the host computer using the PS/2 port by way of a "dock" that sits in between the keyboard and the computer.
The dock does handshaking with the host computer, which means that it listens for specific signals sent from the host. One of them is "turn numlock light on," which I can do with an ioctl from userspace (as root, anyway), but also caps lock, num lock and carriage-return scancodes.
I will have to modify the keyboard driver to capture and process data from the barcode scanner cleanly, and without requiring root access for the client programs.
The CueCat driver written by Pierre Coupard also modifies the keyboard driver. It would be nice if it was possible to load modules that hook into keyboard processing without requiring a kernel patch. And perhaps there is, but I haven't run across it yet.
I just need to scan the keystroke stream for an attention signal (shift,shift,shift,alt,ctrl) and then respond ("turn on numlock light") to initiate the data transfer; then, of course, capture and format that data and make it available via /proc, or something.
Does anyone have any suggestions before I go ugly-up the keyboard driver?
Thanks,
-- Michael Rothwell rothwell@holly-springs.nc.us
- 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/
| |