Share via


How can shutdown be succeeded in Windows Embedded CE 6.0?

Question

Tuesday, November 9, 2010 3:41 PM

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,

All replies (3)

Wednesday, November 10, 2010 4:30 PM âś…Answered | 1 vote

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


Tuesday, November 9, 2010 4:04 PM

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:28 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