handling power states in filter driver

Dear all,

We have written a lower filter for bthusb and its working fine.
I am able to send a URB to lower layer when the Bluetooth adapter is in D0 state.
But when the Bluetooth adapter goes to D2 state, Sending URB fails with code device not found.
Is there any way I can change the power state from D2 to D0 before sending URB in my filter driver.

BR,
Dhaval

No, as a filter you must abide by the power state and operate only when the power policy owner decides to be in d0

d

Bent from my phone


From: xxxxx@gmail.commailto:xxxxx
Sent: ?3/?16/?2015 5:45 AM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: [ntdev] handling power states in filter driver

Dear all,

We have written a lower filter for bthusb and its working fine.
I am able to send a URB to lower layer when the Bluetooth adapter is in D0 state.
But when the Bluetooth adapter goes to D2 state, Sending URB fails with code device not found.
Is there any way I can change the power state from D2 to D0 before sending URB in my filter driver.

BR,
Dhaval


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

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</mailto:xxxxx></mailto:xxxxx>

Dear doron & Marion,

Thanks for the reply. I understand ur point.
But I just want to make sure that the device is in d0
State when I send a vendor specific URB to the adapter from my filter.

I have noticed that if I am in Bluetooth settings screen the device momentarily switches from
D2 to d0 state, so can I make use of one of the Bluetooth Api like Bluetoothfindfirstradio() from application before I make a call to send vendor specific URB in the filter driver.

That is an implementation detail that is not last of the behavioral contract or can easily change.

d

Bent from my phone


From: xxxxx@gmail.commailto:xxxxx
Sent: ?3/?16/?2015 8:04 PM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: RE: Re: [ntdev] handling power states in filter driver

Dear doron & Marion,

Thanks for the reply. I understand ur point.
But I just want to make sure that the device is in d0
State when I send a vendor specific URB to the adapter from my filter.

I have noticed that if I am in Bluetooth settings screen the device momentarily switches from
D2 to d0 state, so can I make use of one of the Bluetooth Api like Bluetoothfindfirstradio() from application before I make a call to send vendor specific URB in the filter driver.


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

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</mailto:xxxxx></mailto:xxxxx>