Solved

Reading AND Writing to a USB Keyboard

Posted on 2006-06-19
2
232 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Pretext and Context In previous  (http://www.experts-exchange.com/Programming/Theory/Software-Design/A_4457-System-Data-Modeling-Series-Identity-Management-System-Basic-System.html)article, I designed the data model of a basic Identity Management…
Before You Read The Article Please make sure you understand these two concepts: Variable Scope (http://www.php.net/manual/en/language.variables.scope.php) and Property Visibility (http://www.php.net/manual/en/language.oop5.visibility.php).  And to …
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

707 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