Yes, though I think the wakeup is not synchronous.  It may end while
the application code is being run.  If your app doesn't have much to do
you're probably safe not grabbing a wake lock yourself, but if the data
causes you to kick off a longer task you should probably grab a wakelock.

R



On Mon, Apr 16, 2012 at 8:35 PM, Heshan Perera <
[email protected]> wrote:

> Hi Robert,
>
> Thanks for the response. When you say that a wake up interrupt is
> triggered to get data to the applications does it imply the following
> scenario ?
>
> An application is listening to data on let's say port 8080. The CPU
> goes to sleep. Data arrives at port 8080 while CPU is asleep. The
> chipset will wake up the CPU to call the code (of the said
> application) listening to data on this port and then send the CPU back
> to sleep ?
>
> On Apr 17, 12:13 am, Robert Greenwalt <[email protected]> wrote:
> > When the device receives network traffic the chipset triggers a wakeup
> > interrupt to get the data to the kernel, then a time-limited wakelock is
> > held while the data is delivered to applications.  If you want to keep
> the
> > device awake after receiving the data you should grab your own wakelock
> > when you get the data.
> >
> > R
> >
> > On Sun, Apr 15, 2012 at 10:58 PM, Heshan Perera <
> >
> >
> >
> >
> >
> >
> >
> > [email protected]> wrote:
> > > As stated in the answer to this (http://stackoverflow.com/questions/
> > > 5120185/android-sleep-standby-mode)
> >
> > > question, the CDMA and GSM radios are kept on, even after the CPU is
> > > put to sleep on an Android device.
> >
> > > My questions are...
> >
> > > When a call is received, what is it that wakes the CPU / phone up ?
> >
> > > Is there a similar mechanism to wake my application up when data is
> > > received via an active TCP connection to a server, even after the
> > > phone has gone to sleep mode ?
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to