none
Wake up problem after suspending by using CeRunAppAtTime RRS feed

  • Question

  • Hi all,

    During suspend mode I need to wake up the CE 6.0 device after x minutes. I've followed Bruce Eitman's artice "Waking the system using RTC" in http://geekswithblogs.net/BruceEitman/archive/2008/11/25/windows-ce-waking-the-system-using-the-rtc.aspx. I've been using Device Emulator BSP. The application runs in user space. If I don't use SetSystemPowerState in order to start suspend mode, only CeRunAppAtTime call launches the specified application at the specified time. When I use SetSystemPowerState, Device Emulator is closed but it does not wake up. Is the problem related to Device Emulator? Please can you explain how the problem can be solved?

    Thanks so much for your helps and clarifications in advance

    Best regards,

    Wednesday, November 10, 2010 12:05 PM

Answers

All replies

  • I rarely (never?) use the device emulator, so I can't say for sure what is going on.  But on real hardware, this functionality relies on the ability of the real time clock to serve as a wake up source to the system.  It wouldn't surprise me if the device emulator implementation does not include the RTC as a possible wakeup source.
    Dean Ramsier eMVP BSQUARE Corporation
    Wednesday, November 10, 2010 2:01 PM
  • Dean Ramsier, thanks so much for your reply.

    Without using RTC, are there other methods to succeed the wake up the system after entering suspend mode with programmatically (with SetSystemPowerState)?

    Wednesday, November 10, 2010 2:54 PM
  • On a real device, wake up sources are hardware specific.  The CPU in question has various wakeup sources (e.g. certain interrupts, GPIO pins, the RTC etc).  The hardware design may implement one or more of those wakeup sources.  Then the software implemenation has to enable those sources.  If anything in that chain is missing, then the CPU can't wakeup and you can't resume from suspend.

     


    Dean Ramsier eMVP BSQUARE Corporation
    Wednesday, November 10, 2010 3:16 PM
  • The emulator doesn't handle suspend/resume like a real hardware device.  The only way that I have been able to suspend/resume the emulator is documented here:  http://geekswithblogs.net/BruceEitman/archive/2008/08/11/platform-builder-getting-the-emulator-to-resume.aspx
    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    • Marked as answer by yaseminyilmaz Thursday, November 11, 2010 6:51 AM
    Wednesday, November 10, 2010 3:44 PM
    Moderator
  • Thanks so so much to you!
    Wednesday, November 10, 2010 4:02 PM