S
Scott Gifford
Hello again,
I have a small app which reads data from a serial port periodically,
and sends it over the network. I'm running it on Windows Mobile 5
with .NET 2.0, compiled with the VS2008 beta.
I'm doing the periodic polling with an OpenNetCF LongIntervalTimer.
Every 30 seconds, the device wakes up, goes into unattended mode,
reads the serial port, writes to the network, then leaves unattended
mode.
This works exactly right when I turn the device off with the power
button: it leaves the backlight off, wakes up at the appropriate times
to do processing, and uses much less power.
However, while my app is running, the device will never idle time out
into suspend mode and turn the backlight off. I'd like to get this to
work, because it's easy to forget to push the power button and end up
wasting a ton of battery power.
My questions are:
* Normal applications go to sleep just fine with no user input, so
it must be something my app is doing to keep it awake. What sorts
of things could cause this? Using the serial port? Network
activity? Entering and leaving unattended mode? Screen updates?
* Is there a way to have the OS ignore whatever's causing it to
reset the idle timer?
* Any other ideas what might be causing this, and how to fix it?
Thanks!
----Scott.
I have a small app which reads data from a serial port periodically,
and sends it over the network. I'm running it on Windows Mobile 5
with .NET 2.0, compiled with the VS2008 beta.
I'm doing the periodic polling with an OpenNetCF LongIntervalTimer.
Every 30 seconds, the device wakes up, goes into unattended mode,
reads the serial port, writes to the network, then leaves unattended
mode.
This works exactly right when I turn the device off with the power
button: it leaves the backlight off, wakes up at the appropriate times
to do processing, and uses much less power.
However, while my app is running, the device will never idle time out
into suspend mode and turn the backlight off. I'd like to get this to
work, because it's easy to forget to push the power button and end up
wasting a ton of battery power.
My questions are:
* Normal applications go to sleep just fine with no user input, so
it must be something my app is doing to keep it awake. What sorts
of things could cause this? Using the serial port? Network
activity? Entering and leaving unattended mode? Screen updates?
* Is there a way to have the OS ignore whatever's causing it to
reset the idle timer?
* Any other ideas what might be causing this, and how to fix it?
Thanks!
----Scott.