Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Waking up Windows Mobile 6 prof device

 
   PDA (Home) -> Pocket PC - Developer RSS
Next:  GUI API  
Author Message
coder

External


Since: Jul 23, 2009
Posts: 3



(Msg. 1) Posted: Thu Jul 23, 2009 1:25 pm
Post subject: Waking up Windows Mobile 6 prof device
Archived from groups: microsoft>public>windowsce>platbuilder, others (more info?)

Hi, I was wondering when a WM6 Prof device is in the suspended state ie user
has hit power button but its not fully 'OFF' (just the screen and backlight
are off) are 1) services still running
2) are apps still running. I can tell they are still in memory as when you
tap the power button
the apps are still there.

If services are not running ( ie services in Service.exe) then i need to be
able to wake up a
thread (thread is blocked on an array of events most of the time anyway)in
my service to run every 30 minutes to get some data from back end server so
this would be a http request. How would i do this, i know i can set a
notification trigger to set an event but if a thread is not runing how would
it unblock on this event?

We have a Wm6 Professional service implemented in C++ , that need to wake up
every 30m ins to get some data from a server on the internet.

Thanks



__________ Information from ESET Smart Security, version of virus signature database 4270 (20090723) __________

The message was checked by ESET Smart Security.

http://www.eset.com
Back to top
Login to vote
Bruce Eitman [eMVP]

External


Since: Jul 08, 2008
Posts: 7



(Msg. 2) Posted: Thu Jul 23, 2009 1:25 pm
Post subject: Re: Waking up Windows Mobile 6 prof device [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Take a look at:
http://geekswithblogs.net/BruceEitman/archive/2008/11/25/windows-ce-wa...g-the-s

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

EuroTech Inc.
www.EuroTech.com

"coder" <codert.DeleteThis@hotmail.com> wrote in message
news:uk2tlW7CKHA.1492@TK2MSFTNGP03.phx.gbl...
> Hi, I was wondering when a WM6 Prof device is in the suspended state ie
> user has hit power button but its not fully 'OFF' (just the screen and
> backlight are off) are 1) services still running
> 2) are apps still running. I can tell they are still in memory as when you
> tap the power button
> the apps are still there.
>
> If services are not running ( ie services in Service.exe) then i need to
> be able to wake up a
> thread (thread is blocked on an array of events most of the time anyway)in
> my service to run every 30 minutes to get some data from back end server
> so this would be a http request. How would i do this, i know i can set a
> notification trigger to set an event but if a thread is not runing how
> would it unblock on this event?
>
> We have a Wm6 Professional service implemented in C++ , that need to wake
> up every 30m ins to get some data from a server on the internet.
>
> Thanks
>
>
> __________ Information from ESET Smart Security, version of virus
> signature database 4270 (20090723) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
>
>
>
Back to top
Login to vote
coder

External


Since: Jul 23, 2009
Posts: 3



(Msg. 3) Posted: Fri Jul 24, 2009 8:25 am
Post subject: Re: Waking up Windows Mobile 6 prof device [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks Bruce but i do not have an app to run, i have a service, and i need
a particular thread within the service to unblock ideally when a given event
is set.

"Bruce Eitman [eMVP]" <bruce.eitman.nospam.RemoveThis@EuroTech.com.nospam> wrote in
message news:epMu%23m7CKHA.1380@TK2MSFTNGP02.phx.gbl...
> Take a look at:
> http://geekswithblogs.net/BruceEitman/archive/2008/11/25/windows-ce-wa...g-the-s
>
> --
> Bruce Eitman (eMVP)
> Senior Engineer
> Bruce.Eitman AT EuroTech DOT com
> My BLOG http://geekswithblogs.net/bruceeitman
>
> EuroTech Inc.
> www.EuroTech.com
>
> "coder" <codert.RemoveThis@hotmail.com> wrote in message
> news:uk2tlW7CKHA.1492@TK2MSFTNGP03.phx.gbl...
>> Hi, I was wondering when a WM6 Prof device is in the suspended state ie
>> user has hit power button but its not fully 'OFF' (just the screen and
>> backlight are off) are 1) services still running
>> 2) are apps still running. I can tell they are still in memory as when
>> you tap the power button
>> the apps are still there.
>>
>> If services are not running ( ie services in Service.exe) then i need to
>> be able to wake up a
>> thread (thread is blocked on an array of events most of the time
>> anyway)in my service to run every 30 minutes to get some data from back
>> end server so this would be a http request. How would i do this, i know i
>> can set a notification trigger to set an event but if a thread is not
>> runing how would it unblock on this event?
>>
>> We have a Wm6 Professional service implemented in C++ , that need to wake
>> up every 30m ins to get some data from a server on the internet.
>>
>> Thanks
>>
>>
>> __________ Information from ESET Smart Security, version of virus
>> signature database 4270 (20090723) __________
>>
>> The message was checked by ESET Smart Security.
>>
>> http://www.eset.com
>>
>>
>>
>>
>
>
>
> __________ Information from ESET Smart Security, version of virus
> signature database 4273 (20090724) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
>
>



__________ Information from ESET Smart Security, version of virus signature database 4273 (20090724) __________

The message was checked by ESET Smart Security.

http://www.eset.com
Back to top
Login to vote
Bruce Eitman [eMVP]

External


Since: Jul 08, 2008
Posts: 7



(Msg. 4) Posted: Fri Jul 24, 2009 8:25 am
Post subject: Re: Waking up Windows Mobile 6 prof device [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Great, then write an app to run when the system wakes and set an event that
you can listen for in your service.

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

EuroTech Inc.
www.EuroTech.com

"coder" <codert.TakeThisOut@hotmail.com> wrote in message
news:%23IHTj5EDKHA.4608@TK2MSFTNGP02.phx.gbl...
> Thanks Bruce but i do not have an app to run, i have a service, and i
> need a particular thread within the service to unblock ideally when a
> given event is set.
>
> "Bruce Eitman [eMVP]" <bruce.eitman.nospam.TakeThisOut@EuroTech.com.nospam> wrote in
> message news:epMu%23m7CKHA.1380@TK2MSFTNGP02.phx.gbl...
>> Take a look at:
>> http://geekswithblogs.net/BruceEitman/archive/2008/11/25/windows-ce-wa...g-the-s
>>
>> --
>> Bruce Eitman (eMVP)
>> Senior Engineer
>> Bruce.Eitman AT EuroTech DOT com
>> My BLOG http://geekswithblogs.net/bruceeitman
>>
>> EuroTech Inc.
>> www.EuroTech.com
>>
>> "coder" <codert.TakeThisOut@hotmail.com> wrote in message
>> news:uk2tlW7CKHA.1492@TK2MSFTNGP03.phx.gbl...
>>> Hi, I was wondering when a WM6 Prof device is in the suspended state ie
>>> user has hit power button but its not fully 'OFF' (just the screen and
>>> backlight are off) are 1) services still running
>>> 2) are apps still running. I can tell they are still in memory as when
>>> you tap the power button
>>> the apps are still there.
>>>
>>> If services are not running ( ie services in Service.exe) then i need to
>>> be able to wake up a
>>> thread (thread is blocked on an array of events most of the time
>>> anyway)in my service to run every 30 minutes to get some data from back
>>> end server so this would be a http request. How would i do this, i know
>>> i can set a notification trigger to set an event but if a thread is not
>>> runing how would it unblock on this event?
>>>
>>> We have a Wm6 Professional service implemented in C++ , that need to
>>> wake up every 30m ins to get some data from a server on the internet.
>>>
>>> Thanks
>>>
>>>
>>> __________ Information from ESET Smart Security, version of virus
>>> signature database 4270 (20090723) __________
>>>
>>> The message was checked by ESET Smart Security.
>>>
>>> http://www.eset.com
>>>
>>>
>>>
>>>
>>
>>
>>
>> __________ Information from ESET Smart Security, version of virus
>> signature database 4273 (20090724) __________
>>
>> The message was checked by ESET Smart Security.
>>
>> http://www.eset.com
>>
>>
>>
>
>
>
> __________ Information from ESET Smart Security, version of virus
> signature database 4273 (20090724) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
>
>
>
Back to top
Login to vote
coder

External


Since: Jul 23, 2009
Posts: 3



(Msg. 5) Posted: Fri Jul 24, 2009 10:25 am
Post subject: Re: Waking up Windows Mobile 6 prof device [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

so you are saying its not possible to wake up the device and set an event
only, i dont really
want to have another little app unless there is absolutely no other way
"Bruce Eitman [eMVP]" <bruce.eitman.nospam.RemoveThis@EuroTech.com.nospam> wrote in
message news:u423mSFDKHA.4004@TK2MSFTNGP05.phx.gbl...
> Great, then write an app to run when the system wakes and set an event
> that you can listen for in your service.
>
> --
> Bruce Eitman (eMVP)
> Senior Engineer
> Bruce.Eitman AT EuroTech DOT com
> My BLOG http://geekswithblogs.net/bruceeitman
>
> EuroTech Inc.
> www.EuroTech.com
>
> "coder" <codert.RemoveThis@hotmail.com> wrote in message
> news:%23IHTj5EDKHA.4608@TK2MSFTNGP02.phx.gbl...
>> Thanks Bruce but i do not have an app to run, i have a service, and i
>> need a particular thread within the service to unblock ideally when a
>> given event is set.
>>
>> "Bruce Eitman [eMVP]" <bruce.eitman.nospam.RemoveThis@EuroTech.com.nospam> wrote in
>> message news:epMu%23m7CKHA.1380@TK2MSFTNGP02.phx.gbl...
>>> Take a look at:
>>> http://geekswithblogs.net/BruceEitman/archive/2008/11/25/windows-ce-wa...g-the-s
>>>
>>> --
>>> Bruce Eitman (eMVP)
>>> Senior Engineer
>>> Bruce.Eitman AT EuroTech DOT com
>>> My BLOG http://geekswithblogs.net/bruceeitman
>>>
>>> EuroTech Inc.
>>> www.EuroTech.com
>>>
>>> "coder" <codert.RemoveThis@hotmail.com> wrote in message
>>> news:uk2tlW7CKHA.1492@TK2MSFTNGP03.phx.gbl...
>>>> Hi, I was wondering when a WM6 Prof device is in the suspended state ie
>>>> user has hit power button but its not fully 'OFF' (just the screen and
>>>> backlight are off) are 1) services still running
>>>> 2) are apps still running. I can tell they are still in memory as when
>>>> you tap the power button
>>>> the apps are still there.
>>>>
>>>> If services are not running ( ie services in Service.exe) then i need
>>>> to be able to wake up a
>>>> thread (thread is blocked on an array of events most of the time
>>>> anyway)in my service to run every 30 minutes to get some data from back
>>>> end server so this would be a http request. How would i do this, i know
>>>> i can set a notification trigger to set an event but if a thread is not
>>>> runing how would it unblock on this event?
>>>>
>>>> We have a Wm6 Professional service implemented in C++ , that need to
>>>> wake up every 30m ins to get some data from a server on the internet.
>>>>
>>>> Thanks
>>>>
>>>>
>>>> __________ Information from ESET Smart Security, version of virus
>>>> signature database 4270 (20090723) __________
>>>>
>>>> The message was checked by ESET Smart Security.
>>>>
>>>> http://www.eset.com
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> __________ Information from ESET Smart Security, version of virus
>>> signature database 4273 (20090724) __________
>>>
>>> The message was checked by ESET Smart Security.
>>>
>>> http://www.eset.com
>>>
>>>
>>>
>>
>>
>>
>> __________ Information from ESET Smart Security, version of virus
>> signature database 4273 (20090724) __________
>>
>> The message was checked by ESET Smart Security.
>>
>> http://www.eset.com
>>
>>
>>
>>
>
>
>
> __________ Information from ESET Smart Security, version of virus
> signature database 4273 (20090724) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
>
>



__________ Information from ESET Smart Security, version of virus signature database 4273 (20090724) __________

The message was checked by ESET Smart Security.

http://www.eset.com
Back to top
Login to vote
Bruce Eitman [eMVP]

External


Since: Jul 08, 2008
Posts: 7



(Msg. 6) Posted: Fri Jul 24, 2009 10:25 am
Post subject: Re: Waking up Windows Mobile 6 prof device [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Well... Thinking about this more, you could try:

1. Use CeRunAppAtTime() but set the app to a non-existent app (not sure
if this will actually work
2. In your service
A. Use WaitForSingleObject (or multiple) with a timeout
B. Use notifications to run when the system wakes (see
http://geekswithblogs.net/BruceEitman/archive/2009/02/14/windows-ce-mo...or-powe)
and set your event if the device woke up.
C. Someplace check to see if the correct amount of time has
elapsed, this wake up could be because of something else - but of course you
would need to do that anyway.

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

EuroTech Inc.
www.EuroTech.com

"coder" <codert DeleteThis @hotmail.com> wrote in message
news:uSJovLGDKHA.1380@TK2MSFTNGP02.phx.gbl...
> so you are saying its not possible to wake up the device and set an event
> only, i dont really
> want to have another little app unless there is absolutely no other way
> "Bruce Eitman [eMVP]" <bruce.eitman.nospam DeleteThis @EuroTech.com.nospam> wrote in
> message news:u423mSFDKHA.4004@TK2MSFTNGP05.phx.gbl...
>> Great, then write an app to run when the system wakes and set an event
>> that you can listen for in your service.
>>
>> --
>> Bruce Eitman (eMVP)
>> Senior Engineer
>> Bruce.Eitman AT EuroTech DOT com
>> My BLOG http://geekswithblogs.net/bruceeitman
>>
>> EuroTech Inc.
>> www.EuroTech.com
>>
>> "coder" <codert DeleteThis @hotmail.com> wrote in message
>> news:%23IHTj5EDKHA.4608@TK2MSFTNGP02.phx.gbl...
>>> Thanks Bruce but i do not have an app to run, i have a service, and i
>>> need a particular thread within the service to unblock ideally when a
>>> given event is set.
>>>
>>> "Bruce Eitman [eMVP]" <bruce.eitman.nospam DeleteThis @EuroTech.com.nospam> wrote in
>>> message news:epMu%23m7CKHA.1380@TK2MSFTNGP02.phx.gbl...
>>>> Take a look at:
>>>> http://geekswithblogs.net/BruceEitman/archive/2008/11/25/windows-ce-wa...g-the-s
>>>>
>>>> --
>>>> Bruce Eitman (eMVP)
>>>> Senior Engineer
>>>> Bruce.Eitman AT EuroTech DOT com
>>>> My BLOG http://geekswithblogs.net/bruceeitman
>>>>
>>>> EuroTech Inc.
>>>> www.EuroTech.com
>>>>
>>>> "coder" <codert DeleteThis @hotmail.com> wrote in message
>>>> news:uk2tlW7CKHA.1492@TK2MSFTNGP03.phx.gbl...
>>>>> Hi, I was wondering when a WM6 Prof device is in the suspended state
>>>>> ie user has hit power button but its not fully 'OFF' (just the screen
>>>>> and backlight are off) are 1) services still running
>>>>> 2) are apps still running. I can tell they are still in memory as when
>>>>> you tap the power button
>>>>> the apps are still there.
>>>>>
>>>>> If services are not running ( ie services in Service.exe) then i need
>>>>> to be able to wake up a
>>>>> thread (thread is blocked on an array of events most of the time
>>>>> anyway)in my service to run every 30 minutes to get some data from
>>>>> back end server so this would be a http request. How would i do this,
>>>>> i know i can set a notification trigger to set an event but if a
>>>>> thread is not runing how would it unblock on this event?
>>>>>
>>>>> We have a Wm6 Professional service implemented in C++ , that need to
>>>>> wake up every 30m ins to get some data from a server on the internet.
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>>> __________ Information from ESET Smart Security, version of virus
>>>>> signature database 4270 (20090723) __________
>>>>>
>>>>> The message was checked by ESET Smart Security.
>>>>>
>>>>> http://www.eset.com
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> __________ Information from ESET Smart Security, version of virus
>>>> signature database 4273 (20090724) __________
>>>>
>>>> The message was checked by ESET Smart Security.
>>>>
>>>> http://www.eset.com
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> __________ Information from ESET Smart Security, version of virus
>>> signature database 4273 (20090724) __________
>>>
>>> The message was checked by ESET Smart Security.
>>>
>>> http://www.eset.com
>>>
>>>
>>>
>>>
>>
>>
>>
>> __________ Information from ESET Smart Security, version of virus
>> signature database 4273 (20090724) __________
>>
>> The message was checked by ESET Smart Security.
>>
>> http://www.eset.com
>>
>>
>>
>
>
>
> __________ Information from ESET Smart Security, version of virus
> signature database 4273 (20090724) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
>
>
>
Back to top
Login to vote
Chris Tacke, MVP

External


Since: Apr 21, 2008
Posts: 18



(Msg. 7) Posted: Fri Jul 24, 2009 1:02 pm
Post subject: Re: Waking up Windows Mobile 6 prof device [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

CeRunAppAtTime is slightly misnamed. You can use it to wake the device and
set a named system event without running anything. Just use the proper
"name" when you create it. It looks like this (OE seems to want to mess
with the string, so hopefully it will come through right):

_T("\\.\Notifications\NamedEvents\[MyNamedEvent]")



--

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



"Bruce Eitman [eMVP]" <bruce.eitman.nospam DeleteThis @EuroTech.com.nospam> wrote in
message news:%23%23iNBTGDKHA.3848@TK2MSFTNGP02.phx.gbl...
> Well... Thinking about this more, you could try:
>
> 1. Use CeRunAppAtTime() but set the app to a non-existent app (not
> sure if this will actually work
> 2. In your service
> A. Use WaitForSingleObject (or multiple) with a timeout
> B. Use notifications to run when the system wakes (see
> http://geekswithblogs.net/BruceEitman/archive/2009/02/14/windows-ce-mo...or-powe)
> and set your event if the device woke up.
> C. Someplace check to see if the correct amount of time has
> elapsed, this wake up could be because of something else - but of course
> you would need to do that anyway.
>
> --
> Bruce Eitman (eMVP)
> Senior Engineer
> Bruce.Eitman AT EuroTech DOT com
> My BLOG http://geekswithblogs.net/bruceeitman
>
> EuroTech Inc.
> www.EuroTech.com
>
> "coder" <codert DeleteThis @hotmail.com> wrote in message
> news:uSJovLGDKHA.1380@TK2MSFTNGP02.phx.gbl...
>> so you are saying its not possible to wake up the device and set an event
>> only, i dont really
>> want to have another little app unless there is absolutely no other way
>> "Bruce Eitman [eMVP]" <bruce.eitman.nospam DeleteThis @EuroTech.com.nospam> wrote in
>> message news:u423mSFDKHA.4004@TK2MSFTNGP05.phx.gbl...
>>> Great, then write an app to run when the system wakes and set an event
>>> that you can listen for in your service.
>>>
>>> --
>>> Bruce Eitman (eMVP)
>>> Senior Engineer
>>> Bruce.Eitman AT EuroTech DOT com
>>> My BLOG http://geekswithblogs.net/bruceeitman
>>>
>>> EuroTech Inc.
>>> www.EuroTech.com
>>>
>>> "coder" <codert DeleteThis @hotmail.com> wrote in message
>>> news:%23IHTj5EDKHA.4608@TK2MSFTNGP02.phx.gbl...
>>>> Thanks Bruce but i do not have an app to run, i have a service, and i
>>>> need a particular thread within the service to unblock ideally when a
>>>> given event is set.
>>>>
>>>> "Bruce Eitman [eMVP]" <bruce.eitman.nospam DeleteThis @EuroTech.com.nospam> wrote
>>>> in message news:epMu%23m7CKHA.1380@TK2MSFTNGP02.phx.gbl...
>>>>> Take a look at:
>>>>> http://geekswithblogs.net/BruceEitman/archive/2008/11/25/windows-ce-wa...g-the-s
>>>>>
>>>>> --
>>>>> Bruce Eitman (eMVP)
>>>>> Senior Engineer
>>>>> Bruce.Eitman AT EuroTech DOT com
>>>>> My BLOG http://geekswithblogs.net/bruceeitman
>>>>>
>>>>> EuroTech Inc.
>>>>> www.EuroTech.com
>>>>>
>>>>> "coder" <codert DeleteThis @hotmail.com> wrote in message
>>>>> news:uk2tlW7CKHA.1492@TK2MSFTNGP03.phx.gbl...
>>>>>> Hi, I was wondering when a WM6 Prof device is in the suspended state
>>>>>> ie user has hit power button but its not fully 'OFF' (just the screen
>>>>>> and backlight are off) are 1) services still running
>>>>>> 2) are apps still running. I can tell they are still in memory as
>>>>>> when you tap the power button
>>>>>> the apps are still there.
>>>>>>
>>>>>> If services are not running ( ie services in Service.exe) then i need
>>>>>> to be able to wake up a
>>>>>> thread (thread is blocked on an array of events most of the time
>>>>>> anyway)in my service to run every 30 minutes to get some data from
>>>>>> back end server so this would be a http request. How would i do this,
>>>>>> i know i can set a notification trigger to set an event but if a
>>>>>> thread is not runing how would it unblock on this event?
>>>>>>
>>>>>> We have a Wm6 Professional service implemented in C++ , that need to
>>>>>> wake up every 30m ins to get some data from a server on the internet.
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>>
>>>>>> __________ Information from ESET Smart Security, version of virus
>>>>>> signature database 4270 (20090723) __________
>>>>>>
>>>>>> The message was checked by ESET Smart Security.
>>>>>>
>>>>>> http://www.eset.com
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> __________ Information from ESET Smart Security, version of virus
>>>>> signature database 4273 (20090724) __________
>>>>>
>>>>> The message was checked by ESET Smart Security.
>>>>>
>>>>> http://www.eset.com
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> __________ Information from ESET Smart Security, version of virus
>>>> signature database 4273 (20090724) __________
>>>>
>>>> The message was checked by ESET Smart Security.
>>>>
>>>> http://www.eset.com
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> __________ Information from ESET Smart Security, version of virus
>>> signature database 4273 (20090724) __________
>>>
>>> The message was checked by ESET Smart Security.
>>>
>>> http://www.eset.com
>>>
>>>
>>>
>>
>>
>>
>> __________ Information from ESET Smart Security, version of virus
>> signature database 4273 (20090724) __________
>>
>> The message was checked by ESET Smart Security.
>>
>> http://www.eset.com
>>
>>
>>
>>
>
>
Back to top
Login to vote
James Devitt

External


Since: Aug 04, 2009
Posts: 2



(Msg. 8) Posted: Tue Aug 04, 2009 11:49 am
Post subject: Re: Waking up Windows Mobile 6 prof device [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Just for added measure, coder, follow the link below. This is 11 minute
video to perform what you need. It is from the "How Do I" series and is
presented by Jim Wilson - I enjoy his videos although he tends to talk lots
(has a wide group of followers).

http://msdn.microsoft.com/en-ca/netframework/bb738102.aspx

-James


"Chris Tacke, MVP" <ctacke.at.opennetcf.dot.com> wrote in message
news:B9670E17-CEDC-4469-83D3-5430079E60F5@microsoft.com...
> CeRunAppAtTime is slightly misnamed. You can use it to wake the device
> and set a named system event without running anything. Just use the
> proper "name" when you create it. It looks like this (OE seems to want to
> mess with the string, so hopefully it will come through right):
>
> _T("\\.\Notifications\NamedEvents\[MyNamedEvent]")
>
>
>
> --
>
> Chris Tacke, Embedded MVP
> OpenNETCF Consulting
> Giving back to the embedded community
> http://community.OpenNETCF.com
>
>
>
> "Bruce Eitman [eMVP]" <bruce.eitman.nospam RemoveThis @EuroTech.com.nospam> wrote in
> message news:%23%23iNBTGDKHA.3848@TK2MSFTNGP02.phx.gbl...
>> Well... Thinking about this more, you could try:
>>
>> 1. Use CeRunAppAtTime() but set the app to a non-existent app (not
>> sure if this will actually work
>> 2. In your service
>> A. Use WaitForSingleObject (or multiple) with a timeout
>> B. Use notifications to run when the system wakes (see
>> http://geekswithblogs.net/BruceEitman/archive/2009/02/14/windows-ce-mo...or-powe)
>> and set your event if the device woke up.
>> C. Someplace check to see if the correct amount of time has
>> elapsed, this wake up could be because of something else - but of course
>> you would need to do that anyway.
>>
>> --
>> Bruce Eitman (eMVP)
>> Senior Engineer
>> Bruce.Eitman AT EuroTech DOT com
>> My BLOG http://geekswithblogs.net/bruceeitman
>>
>> EuroTech Inc.
>> www.EuroTech.com
>>
>> "coder" <codert RemoveThis @hotmail.com> wrote in message
>> news:uSJovLGDKHA.1380@TK2MSFTNGP02.phx.gbl...
>>> so you are saying its not possible to wake up the device and set an
>>> event only, i dont really
>>> want to have another little app unless there is absolutely no other way
>>> "Bruce Eitman [eMVP]" <bruce.eitman.nospam RemoveThis @EuroTech.com.nospam> wrote in
>>> message news:u423mSFDKHA.4004@TK2MSFTNGP05.phx.gbl...
>>>> Great, then write an app to run when the system wakes and set an event
>>>> that you can listen for in your service.
>>>>
>>>> --
>>>> Bruce Eitman (eMVP)
>>>> Senior Engineer
>>>> Bruce.Eitman AT EuroTech DOT com
>>>> My BLOG http://geekswithblogs.net/bruceeitman
>>>>
>>>> EuroTech Inc.
>>>> www.EuroTech.com
>>>>
>>>> "coder" <codert RemoveThis @hotmail.com> wrote in message
>>>> news:%23IHTj5EDKHA.4608@TK2MSFTNGP02.phx.gbl...
>>>>> Thanks Bruce but i do not have an app to run, i have a service, and
>>>>> i need a particular thread within the service to unblock ideally when
>>>>> a given event is set.
>>>>>
>>>>> "Bruce Eitman [eMVP]" <bruce.eitman.nospam RemoveThis @EuroTech.com.nospam> wrote
>>>>> in message news:epMu%23m7CKHA.1380@TK2MSFTNGP02.phx.gbl...
>>>>>> Take a look at:
>>>>>> http://geekswithblogs.net/BruceEitman/archive/2008/11/25/windows-ce-wa...g-the-s
>>>>>>
>>>>>> --
>>>>>> Bruce Eitman (eMVP)
>>>>>> Senior Engineer
>>>>>> Bruce.Eitman AT EuroTech DOT com
>>>>>> My BLOG http://geekswithblogs.net/bruceeitman
>>>>>>
>>>>>> EuroTech Inc.
>>>>>> www.EuroTech.com
>>>>>>
>>>>>> "coder" <codert RemoveThis @hotmail.com> wrote in message
>>>>>> news:uk2tlW7CKHA.1492@TK2MSFTNGP03.phx.gbl...
>>>>>>> Hi, I was wondering when a WM6 Prof device is in the suspended state
>>>>>>> ie user has hit power button but its not fully 'OFF' (just the
>>>>>>> screen and backlight are off) are 1) services still running
>>>>>>> 2) are apps still running. I can tell they are still in memory as
>>>>>>> when you tap the power button
>>>>>>> the apps are still there.
>>>>>>>
>>>>>>> If services are not running ( ie services in Service.exe) then i
>>>>>>> need to be able to wake up a
>>>>>>> thread (thread is blocked on an array of events most of the time
>>>>>>> anyway)in my service to run every 30 minutes to get some data from
>>>>>>> back end server so this would be a http request. How would i do
>>>>>>> this, i know i can set a notification trigger to set an event but if
>>>>>>> a thread is not runing how would it unblock on this event?
>>>>>>>
>>>>>>> We have a Wm6 Professional service implemented in C++ , that need to
>>>>>>> wake up every 30m ins to get some data from a server on the
>>>>>>> internet.
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>>
>>>>>>> __________ Information from ESET Smart Security, version of virus
>>>>>>> signature database 4270 (20090723) __________
>>>>>>>
>>>>>>> The message was checked by ESET Smart Security.
>>>>>>>
>>>>>>> http://www.eset.com
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> __________ Information from ESET Smart Security, version of virus
>>>>>> signature database 4273 (20090724) __________
>>>>>>
>>>>>> The message was checked by ESET Smart Security.
>>>>>>
>>>>>> http://www.eset.com
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> __________ Information from ESET Smart Security, version of virus
>>>>> signature database 4273 (20090724) __________
>>>>>
>>>>> The message was checked by ESET Smart Security.
>>>>>
>>>>> http://www.eset.com
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> __________ Information from ESET Smart Security, version of virus
>>>> signature database 4273 (20090724) __________
>>>>
>>>> The message was checked by ESET Smart Security.
>>>>
>>>> http://www.eset.com
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> __________ Information from ESET Smart Security, version of virus
>>> signature database 4273 (20090724) __________
>>>
>>> The message was checked by ESET Smart Security.
>>>
>>> http://www.eset.com
>>>
>>>
>>>
>>>
>>
>>
>
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Missing device deployment target option - Mobile Device SD.. - Dear all, I have recently downloaded and installed the Windows Mobile 6.0 SDK in order to obtain the emulators for use within Visual Studio 2005 (SP1) on Vista. For some strange reason, I'm not able to select any of the Windows Mobile 6.0 emulators -...

Developing for Windows Mobile Device - For an existing ASP.Net v1.1 application that is accessed over HTTPS can this be used by a Windows Mobile device? If not what changes are normally required in the application and on the server?

Disabling the power key in Windows mobile device - Hi, I am trying to disable the power key in windows mobile version 6.0 while my application is running. The user should not be able to turn off or turn on the device. Those functionalities should happen by programming using C# codes. Could someone..

Retrieving the firmware/ROM version on a Windows Mobile de.. - I need to retrieve the firmware/ROM version of a Windows Mobile device - preferably through managed code but pointing me in the right WIN32 API direction will do just fine! :-) To be more specific the problem is on Qtek/HTC devices as well as HP iPaq..

Vista RTM Ultimate and Oulook 2007 RTM Windows Mobile 5 de.. - I have vista RTM ultimate and outlook 2007 RTM on my PC. When I plug my t mobile MDA running windows mobile 5.0 into the machine it asks me to SYNC with windows media player. in the windows mobile device center it shows it connected. I am going crazy....
       PDA (Home) -> Pocket PC - Developer All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
 Linux Forums
 Mac Forums
  PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact