All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: RFC: API for Neighbouring Cell Info
Date: Fri, 29 Jan 2010 15:31:19 -0600	[thread overview]
Message-ID: <201001291531.20020.denkenz@gmail.com> (raw)
In-Reply-To: <97D5E1BB8FC13D4EA3B34BAE8E6898C9BACB21D9@orsmsx508.amr.corp.intel.com>

[-- Attachment #1: Type: text/plain, Size: 1753 bytes --]

Hi Waldo,

> > Hi Aki,
> >
> > > > 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.
> >
> > Fair enough, but we also have to consider the case of multiple
> > applications
> > being interested in this information.  We can't assume that it will be
> > polled on demand by just one...
> 
> Ny understanding is that typically there would be a location service that
>  queries this information from oFono and converts it into actual
>  coordinates through voodoo and black magic and that location-aware
>  applications will ask this location service for coordinates. E.g. you
>  would have something like GeoClue providing a single API for providing
>  coordinates to applications and under GeoClue there is the location
>  service, and the location service in turn talks to oFono.
> 

You're absolutely correct.  My point is that if only one entity is ever going 
to be interested in this information (e.g. GeoClue) then a full blown atom / 
DBus API is not even necessary.  We can do this similarly to the history atom 
and leave it up to the system integrator to decide how and what service to 
use.

DBus API implies that multiple user applications are interested in the 
information provided.  If this is the case, then in my view a procedural, 
application-driven polling API is not the best approach.

Regards,
-Denis

  reply	other threads:[~2010-01-29 21:31 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 [this message]
2010-01-31 11:11       ` Jussi Kukkonen
2010-01-31 16:04         ` Marcel Holtmann
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=201001291531.20020.denkenz@gmail.com \
    --to=denkenz@gmail.com \
    --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.