drivers >> HID mouse, digitizer device/driver

by RGF2aWQ » Sun, 28 Jan 2007 22:56:00 GMT

Hi to kernel gurus!
I have custom HW (non HID) connected to PC via USB + software system which
calculates Tablet PC- like stylus position.
The goal is to provide valid mouse and digitizer input form kernel mode. As
far as I understand I have to provide valid HID reports to OS. I have to
create HID minidriver which does not have any real HW behind , but receives
coordinates form NT service.
1) Is HID minidriver an appropriate solution ?
2) In case I would like to provide mouse input will I be able to communicate
with my driver form my software ? I understand that OS exclusively locks
mouse driver stack.
3) Should I implement separate driver for mouse and digitizer?
4) Can anybody give a reference to the useful driver sample?
5) What is the best way to communicate between my HID driver and my
software? (HID reports, CreateFile() , Pipes, Section)
Thank you in advance, David.


drivers >> HID mouse, digitizer device/driver

by Doron Holan [MS] » Mon, 29 Jan 2007 15:17:44 GMT


1) yes
2) as a hid minidriver, you cannot communicate with any stack, hidclass
doesn't allow it...BUT, there is a KMDF sample Driver http://9573f00jrksyaq7x-fvlpkrrco.hop.clickbank.net/?tid=DATABASEFORUM " target="_top" rel="nofollow">[Driver Robot fixes your driver problems] which is actually 2
drivers. a pass through HID minidriver and then a full fledged KMDF driver
as a lower filter. email XXXX@XXXXX.COM and ask for the sample to
be sent to you.
3) no, as one hid minidriver you can report both the mouse and the digitizer
in your HID descriptor as separate top level collections
4) hidvmini in the WDK or the KMDF sample
5) Pipes/Section objects are not documented, so don'tuse them. If you
write a pure minidriver, a fake HID report will work just fine. If you use
the KMDF sample, you can actually enumerate your own PDO and communicate
with it using CreateFile()

d


--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.

drivers >> HID mouse, digitizer device/driver

by RGF2aWQ » Mon, 29 Jan 2007 18:45:00 GMT

Thanks for you prompt response, Doron
I would like to clarify couple of points :
1. AFAIU hooking into mouse "chain" with HID is not trivial task. Perhaps is
enough to implement digitizer ?
2. Should I abandon WDM and move to KMDF ?
I asked for the sample and will try to understand it.
David

drivers >> HID mouse, digitizer device/driver

by Doron Holan [MS] » Tue, 30 Jan 2007 14:19:57 GMT

the digitizer route definitely requires HID if you want to interface with
tablet PC and other technologies which use it. KMDF will be easier for you
in the end over WDM

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.

Similar Threads

1. Mouse Device as a Generic HID Device

Hi,

I want to use the mouse device as a generic or raw HID Device. That is
if I want to write a HID mini driver that interfaces with HID class
driver instead of Mouse Class Driver then can it be done? If yes what
are the areas which I need to look into? Where can I get a sample or
close to example for the same?

2. Multi-touch digitizer works as single-touch Digitizer on Windows 7

3. Multi-touch digitizer works as single-touch Digitizer on Windo

Hi All,
I have the same problem. When i ran my device under W7 ultimate, it's 
working and in starter it only works as single touch.
I found on net that starter won't allow multi-touch support but if i want to 
develop it in starter using WDK, then does it possible?



4. BUG: at drivers/hid/hid-core.c:778 implement() with bluetooth keyboard/mouse - Linux

5. BUG: at drivers/hid/hid-core.c:778 implement() with bluetooth keyboard/mouse

6. Raw Input from Mouse-like HID device

7. Vista pointing devices (HID-compliant mouse)

Hello:

The OS is Windows Vista Ultimate.

When my system starts up it enables an HID-compliant mouse (two
drivers). When I plug in a USB mouse it enables a second HID-compliant
mouse. Looking in device manager, two are listed. If I start the
system with a mouse in a USB port it automatically enables two devices
(HID-compliant mice). Even if I right choose uninstall, or disable and
one of the mice is removed it comes back on restart.

When I click or double click the mouse the actions occur twice. For
example, two browser windows open.

How do I remove one of the mice permanently, and please don't tell me
to use a mouse trap.

Thank you, and have a great day.

8. Mouse HID Device driver loading twice