Isolating a second USB keyboard device.
The problem in question is how to make only a secondary USB keyboard device visible to a particular piece of software.
The PC in question is running a CNC machine tool, the OS is Debian Wheezy and the secondary keyboard device is a P.I. engineering Xkeys keyboard emulator. The Xkeys emulator is located in a remote pendent that allows adjustment of the machine's feed, speed, etc.
The problem is that the program that receives and decodes the data from the pendent also receives input from the primary keyboard. This has the potential to cause safety issues under the right (actually, wrong!) circumstances.
Trying to redirect the /dev/input/event file or the /dev/input/by-id/USB-Xkeys-event-kbd works, but also displays any input from the primary keyboard.
The ideal would be to separate the two keyboard inputs, and send the Xkeys input to a com port or a file. Any suggestions? Thanks.
|