Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ce power managment

0 views
Skip to first unread message

TONY98

unread,
Nov 26, 2009, 3:02:18 PM11/26/09
to
is it posible to power off a ce device when the battery drops below a level

will this work

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power]
"PowerOffBatteryVoltage"=dword:00000E10

TONY98

unread,
Nov 26, 2009, 3:02:29 PM11/26/09
to

TONY98

unread,
Nov 26, 2009, 3:02:08 PM11/26/09
to

Luca Calligaris [eMVP]

unread,
Nov 27, 2009, 3:01:14 AM11/27/09
to
Generally speacking I think this won't work, it is not a standard registry
value as far as I know. But if the Power Manager implementation of your
device is aware of that setting and is configured to turn off the device in
this condition, it will work.
And if you have the code for the BSP you can actually implement that
behaviour by yourself

--
Luca Calligaris (MVP-Windows Embedded)
l.calliga...@eurotech.it.nospam
www.eurotech.it


"TONY98" <u56502@uwe> ha scritto nel messaggio news:9fb4d9602d0f0@uwe...

Vinoth [MCTS]

unread,
Nov 27, 2009, 3:14:01 AM11/27/09
to

Hi,
I don't think, such a registry key is available on window CE.
if your device is using windows ce battery driver (
WINCE600\PUBLIC\COMMON\OAK\DRIVERS\BATTDRVR), you can call
GetSystemPowerStatusEx2() with the SYSTEM_POWER_STATUS_EX2 in a thread with a
time intervel to current get the battery level indication.

BatteryFlag member of the SYSTEM_POWER_STATUS_EX2 provides the current
battery level.
based on this, you can power off your device.

otherwise.. if you have a custom battery driver, you have to check the
voltage level in the driver or check the battery level with your custom API
and power of your device.

Good luck,
--
vinoth.R
http://www.windowsfordevices.com/articles/AT8185724467.html
http://e-consystems.com/gprsconnectivity.asp
http://vinoth-vinothblog.blogspot.com
http://e-consystems.com/blog


"TONY98" wrote:

> .
>

0 new messages