none
How can shutdown be succeeded in Windows Embedded CE 6.0? RRS feed

  • Question

  • Hi all,

    How can real shutdown be succeeded in Windows Embedded CE 6.0? Normally, Windows CE does not support it. Where should I modify on BSP source if it is supported? Can you please explain whether it is possible and how?

    Thanks a lot for your helps in advance

    Best regards,

    Tuesday, November 9, 2010 3:41 PM

Answers

  • And none of this actually turns the device OFF.  If you really want to turn the device off (remove power), you'll need to have hardware that supports this.  If you don't need to distinguish between off and suspend (always turn the device off) you could put your code to turn power off in OEMPowerOff().  If you do want to distinguish between suspend and off, then you'll need to modify the PM to honor the POWER_STATE_OFF flag.
    Dean Ramsier eMVP BSQUARE Corporation
    • Marked as answer by yaseminyilmaz Thursday, November 11, 2010 7:05 AM
    Wednesday, November 10, 2010 4:30 PM

All replies

  • As far as i know probably calling these functions from the driver in the following sequence would do an honourable shutdown :-

    /* Turn off file system drivers */

    FileSystemPowerFunction(FSNOTIFY_POWER_OFF);

    Sleep(1000);

    SetSystemPowerState(NULL, POWER_STATE_SUSPEND, POWER_FORCE);

    PowerOffSystem();

     

    Thanks

    Misbah

    Tuesday, November 9, 2010 4:04 PM
  • AFIK, you can call FileSystemPowerFunction(FSNOTIFY_POWER_OFF) after that PowerOffSystem() is enough. SetSystemPowerState(NULL, POWER_STATE_SUSPEND, POWER_FORCE); is end in processor suspend and it will be invoked only through some wakeup source. calling this PowerOffSystem() after the SetSystemPowerState() is meaning less.

    Vinoth.R http://vinoth-vinothblog.blogspot.com http://www.e-consystems.com
    Tuesday, November 9, 2010 4:28 PM
  • And none of this actually turns the device OFF.  If you really want to turn the device off (remove power), you'll need to have hardware that supports this.  If you don't need to distinguish between off and suspend (always turn the device off) you could put your code to turn power off in OEMPowerOff().  If you do want to distinguish between suspend and off, then you'll need to modify the PM to honor the POWER_STATE_OFF flag.
    Dean Ramsier eMVP BSQUARE Corporation
    • Marked as answer by yaseminyilmaz Thursday, November 11, 2010 7:05 AM
    Wednesday, November 10, 2010 4:30 PM