Solved

distinguish the data entered from two or more usb keyboards

Posted on 2004-04-05
9
329 Views
Last Modified: 2012-06-27
is there is any way to distinguish the data entered from two or more usb keyboards in a windows application..?
0
Comment
Question by:dxbspider
9 Comments
 
LVL 12

Expert Comment

by:farsight
ID: 10756687
Ooooh!  Good question.  I've always thought computers should be able to have any number of any type of devices attached: monitors, keyboards, mice, pointing devices, remote controls, terminals, etc.  I'd love two have two mouse-pointers, too -- one for a mouse in each hand.

Listening!
0
 
LVL 28

Expert Comment

by:iboutchkine
ID: 10756795
How about 2 mice and an accu-point for your nose :)
0
 
LVL 7

Expert Comment

by:dante469
ID: 10758253
dxbspider,

Have similar issue and unable to find solution...  Have looked but bottom line the driver passes the keystrokes w/o any identification of souce.  Sounds like only soultion is to write something at a lower level then the driver :(...

Sorry no great solution.

Have Fun,
Dante
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 22

Expert Comment

by:_TAD_
ID: 10760882

dxbspider>

I don't believe you'll find the answer that you are looking for unless you monitor each USB port yourself.

By simply monitoring keystrokes you are looking at the keyboard message queue (more or less).  

If I were in your shoes, I'd try and look at the port activity itself and determine what data is comming in from each port.

Of course, this in itself might not be very helpful either.  You can easily daisy-chain a number of items into a usb port and have them all use the same port.  If this is the case, then you need to start looking at the IRQ settings and find out when an object sends an interrupt request, which object is it?

I haven't done the research, but ultimately this may all pan out to nothing.  That is assuming that ALL key presses have the same IRQ id.  This would be okay if the two keyboards use different ports, but if both keyboards use the same port AND they both have the same IRQ settings.... I don't think it would be possible to tell the two apart.
0
 
LVL 1

Author Comment

by:dxbspider
ID: 10763824

  thanks dante and TAD for all the valuable inputs. all i wanted to know was whether it needs lower level coding but now  i know thats inevitable.  i'll focus my attention towards  win32 api classes and have a last try. meanwhile i'll keep this topic open and  all inputs are welcome from all corners.
  thanks a lot.
0
 
LVL 12

Accepted Solution

by:
farsight earned 250 total points
ID: 10766494
You might consider USB Monitor 2.26 available at:
http://www.hhdsoftware.com/
http://www.hhdsoftware.com/usbmon.html        --- details

"HHD Software USB Monitor is an invaluable tool for all developers and engineers, who design, create and connect to PC a whole range of equipment with universal serial bus on board. This tool captures all the USB Request Blocks (URBs) transferred from the device driver to the host controller and back."

(The eval version may gt you through your problem.)

I don't know anything about it, so I'm not certain it'll be useful.

--- Other potentially useful links ---
http://www.softconnex.com/products.html
http://www.jungo.com/  --- USB driver development tools
http://www.keil.com/books/usbbooks.asp   --- books

http://www.usb.org/home --- the org that controls the USB standard(s)
http://www.usb.org/developers/docs/ --- the actual USB 2.0 specification  (1.1 spec near bottom)
http://www.usb.org/developers/developers/tools/
0
 
LVL 1

Author Comment

by:dxbspider
ID: 10781859

thanks farsight i'll look into it and will give u a feedback .
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
EF5: Question about Metadata Artifact Processing 4 15
Store results in vb.net 3 21
VB.Net - MemoryMappedFiles - Confirm receipt 2 19
MailAddress in vb 4 15
Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question