?
Solved

Reading AND Writing to a USB Keyboard

Posted on 2006-06-19
2
Medium Priority
?
233 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 1500 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Introduction Many of the most common information processing tasks require sorting data sets.  For example, you may want to find the largest or smallest value in a collection.  Or you may want to order the data set in numeric or alphabetical order. …
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

801 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