Re: Sending private data to a USB HID Keyboard

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Dave August wrote:
It's been a while since I've done any driver work or posted here but some of you may recognize my name.

I see a lot of the good old knowledgeable people are still here.

I have a client that's building a USB HID Keyboard. Besides all the usual functionality, of course they've put in a bunch of 'Value Added' stuff that gets activated by sending messages to the device.

So here's my basic questions, what's the best way to make some sort of API visible to User Mode programs.

Should I put together a Filter Driver with a control interface? If so upper or lower and who should I filter? What mechanism do I uses to send my private messages to the device?

Can I do this with some sort of UMDF?

I haven't gotten spec from the client yet so I have no idea if they have a private endpoint they are going to use or what. I think THEY are still in the dark on this too. FWIW They have a PS/2 version of this thing working so I'll bet they are just planning on using some off the shelf PS/2 to USB thingie so that kinda implies the private messages are just going to the same place the standard LED messages go.

Also what's the ramifications of this on Vista?

I want to thank Tanya for the URL she posted to the latest DDK.. It's D/Ling as I type..

TIA

Dave August



By far the easiest way is to implement feature reports. Feature reports can be sent even to keyboards which cannot be read or written. No drivers needed. Only Setup API for enumerating the HID devices and HID API for reading and writing feature reports.
http://www.codemercs.com our keyboard controllers work that way for programming the matrix tables.
A second endpoint breaks the USB boot protocol for keyboards and is therefore not the best solution.
.



Relevant Pages

  • Re: Keyboard Madness in TS Environment
    ... all users on that client, I would stop troubleshooting the issue ... out multimedia keyboard to a USB keyboard. ... session from the terminal services manager. ... once I ended my connection, ...
    (microsoft.public.windows.terminal_services)
  • Re: How to show underlined menu shortcut letters by default for a context menu ?
    ... This is not a decision your client is allowed to make, ... About the context menu key, the thing is I am subclassing the Web ... keyboard, you get shortcuts. ...
    (microsoft.public.vc.mfc)
  • RE: TN3270 Plus
    ... Dave, email support@xxxxxxxxx and I am sure they will be happy to answer ... > PC keyboard and the mouse" but that's all I see. ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: Configuring Quick Synergy to start automatically
    ... so a keyboard is needed for that. ... On the Ubuntu host, I don't want it running at system boot; ... so it's not active at the login screen... ... For the Ubuntu client, I haven't bothered to make it start at system ...
    (Ubuntu)
  • Re: Configuring Quick Synergy to start automatically
    ... On the Ubuntu host, I don't want it running at system boot; ... so it's not active at the login screen... ... For the Ubuntu client, I haven't bothered to make it start at system ... running both clients start and connect w/o the need for an extra keyboard. ...
    (Ubuntu)