From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: Re: RFC: API for Neighbouring Cell Info
Date: Sun, 31 Jan 2010 08:04:04 -0800 [thread overview]
Message-ID: <1264953844.5591.321.camel@localhost.localdomain> (raw)
In-Reply-To: <4B656545.1020509@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1800 bytes --]
Hi Jussi,
> >> Honestly I don't like either approach, the Agent pattern would be a
> >> much better fit here. This would allow us to specify
> >> the polling/update interval and stop neighbor cell updates when no one
> >> is interested in them.
> >
> > In my experience, the positioning guys don't need periodic updates at
> > all. The data needs to be fetched on demand. Like whenever the user
> > starts up a location-aware application.
>
> I'm willing to bet this is a chicken-egg problem: Why design software
> that uses periodic location updates if they aren't available?
>
> Only exposing plain polling is fine if it makes sense in a powersaving
> (and api simplicity) sense: a version of periodic updating can always be
> implemented at the position service (geoclue) level if it seems useful.
there is no problem in polling the hardware if we have to. However if
that is the case, then we obviously should only poll when we have a
user/client asking for the information. And we should poll in an
interval that the user/client needs this information.
As Denis mentioned, if we have a D-Bus API for retrieving these
information then we need to able to handle multiple users in a smart way
without wasting system resources or blocking each other.
I consider this similar to usage statistics. And in ConnMan I went for
an agent concept to solve this. The similar approach seems to fit here
perfectly if we wanna expose these information over D-Bus. That is the
only way, we have control over clients. If nothing has changed there is
not point in waking up more processes and let the determine noting has
changed to only go back to sleep afterwards. If these clients actually
have UI components that redraw, it is even worse.
Regards
Marcel
next prev parent reply other threads:[~2010-01-31 16:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-28 18:03 RFC: API for Neighbouring Cell Info Bastian, Waldo
2010-01-29 8:04 ` Aki Niemi
2010-01-29 15:56 ` Denis Kenzior
2010-01-29 16:29 ` Aki Niemi
2010-01-29 16:51 ` Denis Kenzior
2010-01-29 21:14 ` Bastian, Waldo
2010-01-29 21:31 ` Denis Kenzior
2010-01-31 11:11 ` Jussi Kukkonen
2010-01-31 16:04 ` Marcel Holtmann [this message]
2010-01-29 21:04 ` Bastian, Waldo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1264953844.5591.321.camel@localhost.localdomain \
--to=marcel@holtmann.org \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.