LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-24-2015, 12:25 PM   #1
gmcrum
LQ Newbie
 
Registered: Mar 2015
Location: Indianapolis, in
Distribution: currently: Wheezy/Puppy/PCLinux OS
Posts: 1

Rep: Reputation: Disabled
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.
 
Old 03-24-2015, 04:18 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,984

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Hello and welcome to LQ.

I'd say that the only safe way is lock out tag out one of the keyboards where no control exists.

Maybe a kvm would accomplish it.

Generally you could blacklist a device maybe. Not sure that would comply with safety??

Split out the 5V on a lock out device?

http://unix.stackexchange.com/questi...-from-a-script

Last edited by jefro; 03-24-2015 at 04:21 PM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux USB Device Drivers and Linux USB Device Side user space application ashwindeshpande Linux - Embedded & Single-board computer 3 12-12-2014 07:05 AM
Built-in keyboard hub requires manually making configs for every usb device. Fix? Holering Linux - Hardware 1 07-06-2013 06:30 PM
How to know which usb keyboard device file. nithima Linux - Newbie 1 04-27-2010 05:23 AM
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 07:32 AM
How to force kernel to use a USB 2.0-compatible device (ehci_hcd) as a USB 1.1 device eze Linux - Hardware 0 05-16-2006 05:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration