Solved

Reading AND Writing to a USB Keyboard

Posted on 2006-06-19
2
226 Views
Last Modified: 2013-11-12
I think this problem is, what one might call, a poison chalice!  It goes as follows:

I have been given the task of communicating with a bespoke USB button pad.  It represents a subset of a normal keyboard and basically contains function keys and left and right mouse button clicks.   As well as being able to read these keys and feeding them back to the OS (the bit I think I have the hang of)  I also need to be able to write values to this device that allow me to control 4 LED's and the backlighting of the button pad.

In theory the button pad represents a standard Microsoft HID device for which I have a third part API that allows me (via VB) to communicate with it. Unfortunately I'm getting an error that typically occurs when you have select a system device that is in use by the operating system.  As I understand it, for security purposes, Windows 2000/NT/XP retains exclusive access to all system devices including mice, keyboards, etc.

So this leaves me with the following problem;

1. How do I open to a USB device that represents a system device under Windows
2. I need help on how to communicate with said device via VB6 (my preferred choice only because the rest of the project is in VB)
3. I've also been given crazy time scales (crazier than normal) so there's 500 points up for grabs and I don’t mind  a quick and dirty solution - basically I need to do this by any means necessary!


Thanks in advance!
0
Comment
Question by:BLAZEPOINT
2 Comments
 
LVL 15

Accepted Solution

by:
lakshman_ce earned 500 total points
ID: 16946168
You cannot just open and access a USB device from a User Mode application. You need to have a driver to work for you. Read more at
http://support.microsoft.com/?kbid=323594
0
 

Author Comment

by:BLAZEPOINT
ID: 16999603
Many thanks, you have pointed me in the right direction.  The points are yours.
Darren
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Property Management rental database in MS Access 7 1,258
mangling a text file 4 285
sameEnds challenge 25 73
scores100 challenge 3 84
Pretext and Context: In this series, I wish to design the data model of systems in question. I will start by defining the scope and boundaries of the system, followed by subsystems involved, then finally the entities in those systems and subsystems…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

759 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now