PC Review


Reply
Thread Tools Rate Thread

Suspend and Resume notification

 
 
David
Guest
Posts: n/a
 
      13th Mar 2008
How do I get notifications in CF .NET 3.5 that the device has gone to
Suspend mode (powered off) and then how to get notification that it has
resumed (powered on)?

 
Reply With Quote
 
 
 
 
Fabien
Guest
Posts: n/a
 
      13th Mar 2008
Hi,

There is no managed API to do this, you must use PInvke, but the best
way is to use OpenNetCF which wraps all these functionalities.

BR

Fabien Decret (Device Application Development MVP)
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/ | http://fabdecret.blogspot.com/


On Mar 13, 4:55*pm, "David" <da...@simmonds.ca> wrote:
> How do I get notifications in CF .NET 3.5 that the device has gone to
> Suspend mode (powered off) and then how to get notification that it has
> resumed (powered on)?


 
Reply With Quote
 
 
 
 
David
Guest
Posts: n/a
 
      14th Mar 2008
OpenNetCF is a nice toolkit. Too bad Microsoft didn't go the extra step and
add this funtionality.

"Fabien" <(E-Mail Removed)> wrote in message
news:7248d55f-32ef-4548-9611-(E-Mail Removed)...
Hi,

There is no managed API to do this, you must use PInvke, but the best
way is to use OpenNetCF which wraps all these functionalities.

BR

Fabien Decret (Device Application Development MVP)
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/ | http://fabdecret.blogspot.com/


On Mar 13, 4:55 pm, "David" <da...@simmonds.ca> wrote:
> How do I get notifications in CF .NET 3.5 that the device has gone to
> Suspend mode (powered off) and then how to get notification that it has
> resumed (powered on)?



 
Reply With Quote
 
Chris Tacke, eMVP
Guest
Posts: n/a
 
      14th Mar 2008
It would be nice, but they can't cover everything for everyone. Contrary to
popular belief, they don't have infinite resources. With each version of
the CF they make decisions on what features to add to the framework based on
customer feedback, desktop compatibility and a lot of other things.
Fortunately they give us the hooks to do most (someday I'll be able to say
"all" I hope) of what we need that they've not done. In fact it's their
decision to give developers the power to extend the platform that makes it
such a good target.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com



"David" <(E-Mail Removed)> wrote in message
news:5EE89CC8-BF4E-4C2F-8853-(E-Mail Removed)...
> OpenNetCF is a nice toolkit. Too bad Microsoft didn't go the extra step
> and add this funtionality.
>
> "Fabien" <(E-Mail Removed)> wrote in message
> news:7248d55f-32ef-4548-9611-(E-Mail Removed)...
> Hi,
>
> There is no managed API to do this, you must use PInvke, but the best
> way is to use OpenNetCF which wraps all these functionalities.
>
> BR
>
> Fabien Decret (Device Application Development MVP)
> Windows Embedded Consultant
>
> ADENEO (ADESET)
> http://www.adeneo.adetelgroup.com/ | http://fabdecret.blogspot.com/
>
>
> On Mar 13, 4:55 pm, "David" <da...@simmonds.ca> wrote:
>> How do I get notifications in CF .NET 3.5 that the device has gone to
>> Suspend mode (powered off) and then how to get notification that it has
>> resumed (powered on)?

>
>



 
Reply With Quote
 
David
Guest
Posts: n/a
 
      14th Mar 2008
Yes, I absolutely agree with you.

"Chris Tacke, eMVP" <ctacke.at.opennetcf.dot.com> wrote in message
news:%(E-Mail Removed)...
> It would be nice, but they can't cover everything for everyone. Contrary
> to popular belief, they don't have infinite resources. With each version
> of the CF they make decisions on what features to add to the framework
> based on customer feedback, desktop compatibility and a lot of other
> things. Fortunately they give us the hooks to do most (someday I'll be
> able to say "all" I hope) of what we need that they've not done. In fact
> it's their decision to give developers the power to extend the platform
> that makes it such a good target.
>
>
> --
>
> Chris Tacke, Embedded MVP
> OpenNETCF Consulting
> Giving back to the embedded community
> http://community.OpenNETCF.com
>
>
>
> "David" <(E-Mail Removed)> wrote in message
> news:5EE89CC8-BF4E-4C2F-8853-(E-Mail Removed)...
>> OpenNetCF is a nice toolkit. Too bad Microsoft didn't go the extra step
>> and add this funtionality.
>>
>> "Fabien" <(E-Mail Removed)> wrote in message
>> news:7248d55f-32ef-4548-9611-(E-Mail Removed)...
>> Hi,
>>
>> There is no managed API to do this, you must use PInvke, but the best
>> way is to use OpenNetCF which wraps all these functionalities.
>>
>> BR
>>
>> Fabien Decret (Device Application Development MVP)
>> Windows Embedded Consultant
>>
>> ADENEO (ADESET)
>> http://www.adeneo.adetelgroup.com/ | http://fabdecret.blogspot.com/
>>
>>
>> On Mar 13, 4:55 pm, "David" <da...@simmonds.ca> wrote:
>>> How do I get notifications in CF .NET 3.5 that the device has gone to
>>> Suspend mode (powered off) and then how to get notification that it has
>>> resumed (powered on)?

>>
>>

>
>
>


 
Reply With Quote
 
Chris Tacke, eMVP
Guest
Posts: n/a
 
      6th May 2009
You're definitely posting in the wrong group. There are few people who do
CF development that would understand what you're talking about here, let
alone how to fix the issue. You're much better off posting in the
microsoft.public.windowsce.platbuilder group.

The obvious question is where does it go from BSPPowerOn - you should add
some more RETAILMSG calls and trace it out that way.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com


"bob" <(E-Mail Removed)> wrote in message
news:368f9faf-b6ad-49bd-b191-(E-Mail Removed)...
> Hi,
>
> I have a problem with the suspend wake-up procedure. I'm using the sam9263
> with wince 6.0R2. I'm using a key button to wake-up the system.
>
> I put in suspend mode the system using the menu start->suspend,
> 1) if I wake-up the system in about 30 seconds everything works fine
> 2) if I wake-up the system after 30 seconds the system hangs
>
> KeyPadPowerOff customclass
> KeyPadPowerOff
> resetting RTT to delay rollover
> BSPPowerOff
> +SOCSaveAndDisableAllIntrBeforeSuspend()
> SOCPioSaveAndDisableAllIntrBeforeSuspend()
> +SOCPioControllerIntrEnable()
> OALPowerWakeSource enable 17
>
> SUSPEND CPU
>
> +SOCRestoreAllIntrAfterSuspend()
> +SOCPioRestoreAllIntrAfterSuspend()
> BSPPowerOn
> -----system hangs -----
> any idea? (I have disabled all the timers in the PM power module)
>
> thanks
>
> From
> http://www.google.it/search?q=suspen...&start=10&sa=N
>
> Posted via DevelopmentNow.com Groups
> http://www.developmentnow.com/g/



 
Reply With Quote
 
bob
Guest
Posts: n/a
 
      7th May 2009
Sorry Chris,

I will post it in the suggested group.

I will try to put some more RETAILMSG in the driver's PowerUp function
to see what happen. The thing that I can't understand really is why is
I resume within 30 seconds everything goes well....

thanks in any case


 
Reply With Quote
 
Chris Tacke, eMVP
Guest
Posts: n/a
 
      7th May 2009
Likely power-related. If you heat it up or cool it down, I bet the time
changes. My guess is that your resume isn't properly handling memory, so
when you power down, you slowly leak power from RAM and after 30 seconds the
power drops to a level where RAM cannot be held in refresh and the state
gets corrupted. I've certainly seen this behavior before.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com


"bob" <(E-Mail Removed)> wrote in message
news:3846c4e4-0708-4674-820f-(E-Mail Removed)...
> Sorry Chris,
>
> I will post it in the suggested group.
>
> I will try to put some more RETAILMSG in the driver's PowerUp function
> to see what happen. The thing that I can't understand really is why is
> I resume within 30 seconds everything goes well....
>
> thanks in any case
>
>



 
Reply With Quote
 
New Member
Join Date: May 2009
Posts: 1
 
      8th May 2009
Dear Chris,

you are right it was a refresh problem of the SDRAM
thanks again
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SUSPEND & REMOVE SUSPEND IN WINDOWS 7 Athinarayanan Windows 7 3 27th Jul 2010 06:03 PM
Pausing and resuming a thread without Suspend() and Resume() SpookyET Microsoft C# .NET 1 10th Mar 2005 08:30 AM
scheduled tasks and resume from suspend David Shorthouse Windows XP General 0 25th Oct 2004 04:12 AM
C# iterators and suspend/resume in Simula 67 Jiri Kripac Microsoft C# .NET 11 27th Feb 2004 09:32 AM
Suspend and Resume Functionality in the Framework Drydo Microsoft Dot NET Framework 2 1st Oct 2003 09:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:00 AM.