When we go to sleep...

  • Thread starter Thread starter Moshe Peleg
  • Start date Start date
M

Moshe Peleg

Hi,

What happensto my application when the iPaq is shutdown ?
Is the application stopped at the middle of a function ?
What if I exactly write to a file ?
What if I have several high priority threads ?
Is something moving at the background or all freezed until wakeup ?


Thanks,


MP
 
All drivers run their own power-down code, RAM is put in self-refresh and
the processor clock is stopped. That means it stops executing whereever the
code execution pointer is. If you're writing to a file, nothing changes
(though if you're writing to a file in a mounted store, that's a different
story, as the store gets unmounted before suspend. THread priorities have
no effect at all. Not sure what your last question means.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com
 
Thank you for the answers.

I'll explain my last question.

Using an iPaq 2190 with WM5 and c# program on CF2,
I wrote a simple application that detects date change. Does several thing on
change and plays ding.

For some reason, when the iPaq is in the cradle, at 00:00 it awakes (the PC
even play the "usb detected sound"),
my application dings and the pc plays the "usb dissconnected" sound.
Nothing is on screen.

I have no alarm clocks set.

Any idea?

Thnaks !
 
It's getting something from the PC side. The PC is driving it. Unplug from
the PC and I bet the behavior goes away.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com
 
I'm afraid it keeps beeping and waking for a short period of time.

And, I wonder, how can the pc wake the iPaq ?
He doesn't know he's there because USB connection is dead.

Further more.

I had an iPaq model that woke up every 10 minutes (not connected to the pc).

Thnaks.
 
Probably not much help, but the wifes iPaq does something like that as
well, again not connected to anything or any alarms/calendar events.
For some reason better known to itself, it'll wake itself up in the
middle of the night, turning on the screen and then switches off again
after a second or two. Annoying if your half awake, that screen is
_really_ bright :)

Chris

I'm afraid it keeps beeping and waking for a short period of time.

And, I wonder, how can the pc wake the iPaq ?
He doesn't know he's there because USB connection is dead.

Further more.

I had an iPaq model that woke up every 10 minutes (not connected to the pc).

Thnaks.

"<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote in message



It's getting something from the PC side. The PC is driving it. Unplug
from the PC and I bet the behavior goes away.

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com
Moshe Peleg said:
Thank you for the answers.
I'll explain my last question.
Using an iPaq 2190 with WM5 and c# program on CF2,
I wrote a simple application that detects date change. Does several thing
on change and plays ding.
For some reason, when the iPaq is in the cradle, at 00:00 it awakes (the
PC even play the "usb detected sound"),
my application dings and the pc plays the "usb dissconnected" sound.
Nothing is on screen.
I have no alarm clocks set.
Any idea?
Thnaks !
"<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote in message
All drivers run their own power-down code, RAM is put in self-refresh
and the processor clock is stopped. That means it stops executing
whereever the code execution pointer is. If you're writing to a file,
nothing changes (though if you're writing to a file in a mounted store,
that's a different story, as the store gets unmounted before suspend.
THread priorities have no effect at all. Not sure what your last
question means.
--
Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com
Hi,
What happensto my application when the iPaq is shutdown ?
Is the application stopped at the middle of a function ?
What if I exactly write to a file ?
What if I have several high priority threads ?
Is something moving at the background or all freezed until wakeup ?
Thanks,
MP- Hide quoted text -

- Show quoted text -
 
The device is getting an interrupt that wakes it. Often that will be the
USB function controller (that's why the device wakes when you plug it into
the PC) but it could be a notification or timer interrupt that was set that
will cause it to wake. The notification doesn't have to be set by you - it
could be any system software doing it.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com


Moshe Peleg said:
I'm afraid it keeps beeping and waking for a short period of time.

And, I wonder, how can the pc wake the iPaq ?
He doesn't know he's there because USB connection is dead.

Further more.

I had an iPaq model that woke up every 10 minutes (not connected to the
pc).

Thnaks.


It's getting something from the PC side. The PC is driving it. Unplug
from the PC and I bet the behavior goes away.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com


Moshe Peleg said:
Thank you for the answers.

I'll explain my last question.

Using an iPaq 2190 with WM5 and c# program on CF2,
I wrote a simple application that detects date change. Does several
thing on change and plays ding.

For some reason, when the iPaq is in the cradle, at 00:00 it awakes (the
PC even play the "usb detected sound"),
my application dings and the pc plays the "usb dissconnected" sound.
Nothing is on screen.

I have no alarm clocks set.

Any idea?

Thnaks !




"<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote in message
All drivers run their own power-down code, RAM is put in self-refresh
and the processor clock is stopped. That means it stops executing
whereever the code execution pointer is. If you're writing to a file,
nothing changes (though if you're writing to a file in a mounted store,
that's a different story, as the store gets unmounted before suspend.
THread priorities have no effect at all. Not sure what your last
question means.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com



Hi,

What happensto my application when the iPaq is shutdown ?
Is the application stopped at the middle of a function ?
What if I exactly write to a file ?
What if I have several high priority threads ?
Is something moving at the background or all freezed until wakeup ?


Thanks,


MP
 
Back
Top