locked
Can we start/wake the device from sleep mode programatically? RRS feed

  • Question

  • Windows mobile [MC 75] will switching the mobile off on the device when the battery life gets to approximately 10%. Can we start/wake the device programatically when battery life raise above 10%.

    Please suggest, provide sample code if possible.

    Thanks,

    Mobike 

    Wednesday, June 22, 2011 4:33 AM

Answers

  • It depends on how the sleep mode is implemented on the device also the power mode supported by the processor. Say for example some processor having the On, core idle, sleep and deep sleep as a power modes. if you enter in to the sleep mode, Nothing will run except some basic clock and the processor will wait for some hardware wake up source. wake up source may be a GPIO pin connect to some switch etc.

    if your battery gauge support any interrupt for the battery life indication, you can connect the interrupt as a wakeup source to processor. during the sleep or deep sleep mode, if the battery life raise above 10 %, an interrupt should be triggered by the battery gauge and that will wake up the processor to normal mode.

    I am not sure how the sleep/wake up is implemented on your device better you can contact your device vendor for this issue.


    Vinoth.R http://vinoth-vinothblog.blogspot.com http://www.e-consystems.com
    • Proposed as answer by Jesse Jiang Tuesday, June 28, 2011 8:49 AM
    • Marked as answer by Jesse Jiang Monday, July 4, 2011 7:21 AM
    Wednesday, June 22, 2011 9:02 AM

All replies

  • It depends on how the sleep mode is implemented on the device also the power mode supported by the processor. Say for example some processor having the On, core idle, sleep and deep sleep as a power modes. if you enter in to the sleep mode, Nothing will run except some basic clock and the processor will wait for some hardware wake up source. wake up source may be a GPIO pin connect to some switch etc.

    if your battery gauge support any interrupt for the battery life indication, you can connect the interrupt as a wakeup source to processor. during the sleep or deep sleep mode, if the battery life raise above 10 %, an interrupt should be triggered by the battery gauge and that will wake up the processor to normal mode.

    I am not sure how the sleep/wake up is implemented on your device better you can contact your device vendor for this issue.


    Vinoth.R http://vinoth-vinothblog.blogspot.com http://www.e-consystems.com
    • Proposed as answer by Jesse Jiang Tuesday, June 28, 2011 8:49 AM
    • Marked as answer by Jesse Jiang Monday, July 4, 2011 7:21 AM
    Wednesday, June 22, 2011 9:02 AM
  • Is this question different from the one you posted in the Visual Studio Smart Device Development - Native C++ Project forum?
    http://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesnative/thread/fced3777-8562-43ea-b6eb-2d02d2c3da13

    -PaulH

    Wednesday, June 22, 2011 1:59 PM