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

Win CE 5.0 desktop - Battery status indicator

313 views
Skip to first unread message

GS

unread,
Nov 24, 2009, 1:16:06 AM11/24/09
to
We're running Win CE 5.0 on MIPS II CPU board.
Issue:-

Our customer wants to have battery status indicator icon on top corner of
the LCD just like a mobile phone/Win Mobile(either as application or
somewhere on desktop).
But the target is not a Win Mobile device. It is a home remote control

Our BSP for Win CE 5.0 is a generic one. We have battery driver that can
read battery voltage status using our ADC pin.

Is there any shortcut to get this done ?. Is this related to OS design
template ?. I've seen battery and other status indicator on Win Mobile
desktop on the top right corner.
But for Win CE 5.0 generic desktop it looks just like a typical desktop.

How to go about getting this done ?

regards,
GS-ICN


Vinoth [MCTS]

unread,
Nov 24, 2009, 2:44:01 AM11/24/09
to

Windows CE 5.0 support battery driver, it is having MDD and stub for PDD in
\WINCE500\PUBLIC\COMMON\OAK\DRIVERS\BATTDRVR.
you have to create the PDD driver. Sample are available in
\WINCE600\PLATFORM\VOIP_PXA270 (Windows CE 6.0 BSP.i don't have 5.0
development environment). May be check with some of the sample BSP in 5.0 dev
environment.

if you integrate this, windows ce will take care of the remaining thing(it
is having control panel applet, as well as it will show the status as a icon
in the system tray.

Otherwise you have to develop your own driver, API set and control panel
applet etc...).

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


"GS" wrote:

> .
>

GS

unread,
Nov 24, 2009, 4:16:13 AM11/24/09
to
Thank for your references Vinoth.. We have PDD driver. Do we need to do
anything more to let Win CE 5.0 automatically handle Battery status ? Will
try and update you.

regards,
GS-ICN
"Vinoth [MCTS]" <vin...@discussions.microsoft.com> wrote in message
news:0C459EAD-8811-4758...@microsoft.com...

embedinfo

unread,
Nov 25, 2009, 10:16:09 AM11/25/09
to
> >> .- Hide quoted text -
>
> - Show quoted text -

Hi there,

By default Wince will be showing battery status as AC_ONLINE because
of which on system tray you will be seeing always connected to
external power. You need to create a thread that will be monitor
charger plug/unplug events and accordingly set system power status by
calling SetPowerState (I dont remember API but something similar,
please refer Wince documents on setting system power states APIs).

Also periodically you can get battery power level, display status as
charging by calling SetPowerState() API.

Thanks

0 new messages