Can a small app run while the ppc is in sleep mode?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to know if one could write a small app, like a service or
something, that would remain running in the background even though the ppc
has gone to sleep?

Any help, thoughts, or examples would be great.

Thanks in advance and God bless.
 
That depends on what "sleep mode" means. What device and what version of
the OS are we talking about? If the device is 'suspended', no, no software
is running. A program could arrange to wake up the device periodically and
do something, but that would mean shorter battery life than actually leaving
it suspended. If the screen is just off, then sure, *all* software on the
device is running. This is all very similar to a desktop Windows machine.
When the power is off, does your code run? Well, no, of course. When the
screen switches off because of the screen saver time-out or something,
*everything* continues to run.

Paul T.
 
On a PPC there appears to be two things that I am concerned about. We are
using an iPAQ running the latest WinCE OS.

I thought when the screen goes dim (backlight) was called turning off/on
backlight you can touch the screen and everything is back alive.

and ....

I thought when the screen goes black was called sleep and you have to touch
the power button to get the screen to come back on. (I am not sure if the
whole ppc is shutting down or not)

So, in either of these conditions is it possible to have a program running ?

We are trying to write a small program that will turn on/off WiFi and
transmit data without user intervention. Obviously there is user intervention
when you have to tap the screen or touch a button. We want the little program
to run during sleep mode to check for data and send it via WiFi.

Hope this helps someone to understand what we are trying to do here cause I
am not sure it can be done until a true "wake on wireless" chipset is
available.


------------------------------------------
Noble D. Bell
AgForest Partners, Inc.



Paul G. Tobey said:
That depends on what "sleep mode" means. What device and what version of
the OS are we talking about? If the device is 'suspended', no, no software
is running. A program could arrange to wake up the device periodically and
do something, but that would mean shorter battery life than actually leaving
it suspended. If the screen is just off, then sure, *all* software on the
device is running. This is all very similar to a desktop Windows machine.
When the power is off, does your code run? Well, no, of course. When the
screen switches off because of the screen saver time-out or something,
*everything* continues to run.

Paul T.
 
You need to tell us *which* WinCE OS. All Pocket PC devices run Windows CE,
but there are numerous variations. For example, I have two Windows Mobile
2005 devices, both Pocket PC Phone Edition-type devices. They are *never*
off. The power button doesn't turn them off, because that would prevent you
from receiving calls. If the battery dies, then I guess it's really off;
otherwise not.

As I said, you can periodically turn the device on (CeRunAppAtTime()), do
whatever you want, then turn it off again. In your case, you'd have to wait
for the device to reassociate with the access point and so on before sending
the data and, if you would normally turn off the wireless when you're done,
you'll have to figure out how to do that. If you're talking about waking up
when wireless data arrives, then, obviously, if the device is off, it's
*not* associated with a wireless network (no software running = no driver
running to send/receive the data).

Paul T.

Noble Bell said:
On a PPC there appears to be two things that I am concerned about. We are
using an iPAQ running the latest WinCE OS.

I thought when the screen goes dim (backlight) was called turning off/on
backlight you can touch the screen and everything is back alive.

and ....

I thought when the screen goes black was called sleep and you have to
touch
the power button to get the screen to come back on. (I am not sure if the
whole ppc is shutting down or not)

So, in either of these conditions is it possible to have a program running
?

We are trying to write a small program that will turn on/off WiFi and
transmit data without user intervention. Obviously there is user
intervention
when you have to tap the screen or touch a button. We want the little
program
to run during sleep mode to check for data and send it via WiFi.

Hope this helps someone to understand what we are trying to do here cause
I
am not sure it can be done until a true "wake on wireless" chipset is
available.


------------------------------------------
Noble D. Bell
AgForest Partners, Inc.
 
This ppc is running 2003, 4.2

We just talked with an engineer at HP and he said that in the modes of
operation that I am refering to (backlight) and (sleep) the PPC is not off
and the OS is fully functional. In backlight just the screen is dim and in
sleep the screen is off and so is wifi and bluetooth but the os and running
programs are still operating.

I see your point and might give it a shot later on this week.

nb

------------------------------------------
Noble D. Bell
AgForest Partners, Inc.
 
Back
Top