On Fri, 27 Sep 2013 12:00:01 +0100 Mark wrote:
Well I'm making progress of sorts but can't find relevant documentation anywhere, so far at least.
USB implementers forum has complete documentation for keyboards and point of sale devices (scanners) here:
http://www.usb.org/developers/hidpage/
In particular look at the 'HID Usage Tables 1.12' and 'HID Point of Sale Usage Tables 1.02'. You will also want to look at the Linux input event structure in /usr/include/linux/input.h, as these are what you see being emitted from the event device node. You might need to read the raw HID events from the scanner in order to determine the correct device state (from all the additional HID reports documented in POS 1.02). more details on raw HID devices in the kernel source tree:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/Do...
HTH, Phil.
On 27 September 2013 14:45, Phil Ashby phil.ashby@bt.com wrote:
USB implementers forum has complete documentation for keyboards and point of sale devices (scanners) here:
Thanks for that Phil. I did find that in my travels before posting here but there was a lot of information and I couldn't see the wood for the trees!
I did also browse through input.c for a while without seeing "the light". Sometimes you just get that feeling that this can't be *so* unusual a requirement that there isn't something a bit higher level than this around but maybe I'm more unique than I think I am :-)
Mark