Solved

Reading AND Writing to a USB Keyboard

Posted on 2006-06-19
2
227 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
visual php diagrams 2 350
Doesn't seem logical 8 232
Accessing sub list data in a C# struct 6 436
object oriented javascript web form 8 125
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…
The CRUD Functions CRUD, meaning "Create, Read, Update, Delete (http://en.wikipedia.org/wiki/Create,_read,_update_and_delete)" is a common term to data base developers.  It describes the essential functions of data base table maintenance.  This art…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

772 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