on hidusbfx2 sample code,
I’d like to send report data to HIDClass driver periodically.
Namely, hidusbfx2 driver send previous report data periodically. If hidusbfx2 receives a new report data frome the device, then hidusbfx2 driver send the updated previous report data with new report data to HIDClass driver periodically.
I tried request copying and timer event but meaningless.
could someone tell me the procedure outline?
thanks in advance.
Hidclass continuously sends get report data ioctls to your miniport. You complete them when you have data. I don’t understand what your question really is here
d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@hanmail.net
Sent: Wednesday, January 20, 2010 12:14 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Send HID report data periodically.
on hidusbfx2 sample code,
I’d like to send report data to HIDClass driver periodically.
Namely, hidusbfx2 driver send previous report data periodically. If hidusbfx2 receives a new report data frome the device, then hidusbfx2 driver send the updated previous report data with new report data to HIDClass driver periodically.
I tried request copying and timer event but meaningless.
could someone tell me the procedure outline?
thanks in advance.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Hi…
I’m new to WDF/WDM.
when I traced EvtInternalDeviceControl, IOCTL_HID_READ_REPORT code seems to arrive while device send some data.
Actually I’m developing a touch driver which is compatible with the old FW. The old FW send data only when touch data changes. I want to return HID report regardless of touch movement if finger is on touch.
Even though I don’t have data now, I want to return HID report using old data periodically untill getting new data.
My question is meaningful?
xxxxx@hanmail.net wrote:
I’m new to WDF/WDM.
when I traced EvtInternalDeviceControl, IOCTL_HID_READ_REPORT code seems to arrive while device send some data.
Actually I’m developing a touch driver which is compatible with the old FW. The old FW send data only when touch data changes. I want to return HID report regardless of touch movement if finger is on touch.
Even though I don’t have data now, I want to return HID report using old data periodically untill getting new data.
My question is meaningful?
The only reason to return a report is if something has changed. If you
want to send a simulated mouse press, great. If you want to report
movement, great. If not, what’s the point of sending a report? What do
you gain?
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
Hi,
I want to return a simulated touch movement report even though device send press data but no movement data.
The old FW send press data but no movement data if there is no finger movement (finger fix-on). In that case, WIN7 fails to make mouse-right-click effect of digitizer. that’s why I want to send a simulated touch movement report.
Your HID miniport is doing one of two things
- taking the get report IRP sent from hidclass, formatting the next stack location and sending it to the hw (assuming you are protocol based like usb and need to send IRPs to touch the hw), and when it completes back to you, potentially fill in the right HID data for hidclass
- you are queueing the get report IRP sent from hidclass and polling your hw on your own (through URBs or registers or whatever) and you complete the hidclass IRPs when you have data
If you are doing 1, you need to move to something like 2 where you send your own IRPs to the hw. This lets you complete the hidclass sent get data IRPs as you need them, be it from hw or from your driver without hw reporting the data. If you are doing 2), you have very little work to do, you just complete the queued request when you want to inject data
d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@hanmail.net
Sent: Wednesday, January 20, 2010 4:40 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Send HID report data periodically.
Hi,
I want to return a simulated touch movement report even though device send press data but no movement data.
The old FW send press data but no movement data if there is no finger movement (finger fix-on). In that case, WIN7 fails to make mouse-right-click effect of digitizer. that’s why I want to send a simulated touch movement report.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer