Power management in Bluetooth driver(sleep management) RRS feed

  • Question

  • Hi,
    There is lot of stuff available on the MSDN...but still not clear on this..
    Could somebody guide on the power and sleep management for windows 10... what extra code need to be added in driver to enable the? Any sample code having the sleep and other power features added code link please?

    Assuming the basic driver code is same as the below sample driver code:

    Thanks in advance.

    Monday, February 4, 2019 6:56 AM

All replies

  • The driver sample you reference is the bus driver used in UART-based Bluetooth radios. Since it is a WDF-based driver, most of the power management code (e.g. S or D-state transitions) is already integrated into the framework. The sample also shows how to enable/disable wake for a specific device. 

    If you can elaborate on the device or driver stack or have specific requirements or questions on power management, you can ask here.

    • Edited by A A A A A Friday, February 8, 2019 9:11 PM
    Friday, February 8, 2019 9:05 PM
  • Thanks for the reply.

    Actually in the bus driver there is function FdoSetIdleSettings() which is default taking the second argument as IdleCapCanTurnOff so I am changing that to IdleCapCanWake to support the sleep mode D2. but after the changes driver is crashing. Could someone guilde what is wrong here? Do I need to make any other changes?

    Status = FdoSetIdleSettings(_Device, IdleCapCanTurnOff);

     change to

    Status = FdoSetIdleSettings(_Device, IdleCapCanWake );



    Tuesday, February 12, 2019 5:09 AM