All of lore.kernel.org
 help / color / mirror / Atom feed
From: andrzej zaborowski <balrogg@gmail.com>
To: ofono@ofono.org
Subject: Re: [RFCv2] doc: Assisted Satellite Navigation API and Agent API
Date: Tue, 23 Nov 2010 18:15:07 +0100	[thread overview]
Message-ID: <AANLkTi=dxaXQ1h2BZQecs9YS_Xjswgs81Spf5Uz9M_uv@mail.gmail.com> (raw)
In-Reply-To: <B4268AAFAFA3E244B5B0641D5914917048BCE1C099@EXDCVYMBSTM006.EQ1STM.local>

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

Hi Simon,

On 23 November 2010 16:07, Simon LETHBRIDGE
<simon.lethbridge@stericsson.com> wrote:
>> -----Original Message-----
>> From: andrzej zaborowski [mailto:balrogg(a)gmail.com]
>> Since (correct me if I'm wrong) SendPositioningControl can only be
>> called in response to PositioningRequest(), it would seem more logical
>> to skip SendPositioningControl and have the agent return the xml
>> string from PositioningRequest(), e.g.
>>
>> string PositioningRequest(string xml_element)
>>
>> A D-bus call can take a couple of minutes to respond if needed.
>>
> There may be several calls to PositioningRequest() before a response is sent.
> The ofono agent would need to interpret the messages to see
> whether it should pend waiting for a response from the GNSS/GPS driver.
> Once a positioning procedure has been started it may get aborted.
> This abort may not be detected by the agent If the call
> to the PositioningRequest() does not return.

So should the agent interface additionally have a method like void
AbortPositioningRequest()?

I have posted this as just a possible idea.  However parallel agent
calls and aborting calls are both used in the agent interfaces in
bluez and ofono.  D-bus is asynchronous, so whether you call a method
and return immediately and then call another method to pass the
response, or make it a single method call is just a difference in the
protocol.

Best regards

  reply	other threads:[~2010-11-23 17:15 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-11 19:44 [PATCH] doc: Add Location Services API Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2010-11-11 21:49 ` Denis Kenzior
2010-11-11 23:03   ` Marcel Holtmann
2010-11-17  6:34     ` Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2010-11-15 11:19   ` Simon LETHBRIDGE
2010-11-18  9:50   ` [PATCH] doc: Add Location Services API (resending now that I am on ofono mailing list) Simon LETHBRIDGE
2010-11-22 21:50     ` Joly, Frederic
2010-11-18 10:57   ` [PATCH] doc: Add Location Services API Simon LETHBRIDGE
2010-11-20  1:01 ` Bastian, Waldo
2010-11-20  2:04   ` Bastian, Waldo
2010-11-22  9:01     ` Marko.Ovaska
2010-11-22 23:16       ` Joly, Frederic
2010-11-23 17:16         ` Simon LETHBRIDGE
2010-11-26 15:29         ` Marko.Ovaska
2010-11-26 16:20         ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2010-11-22 14:04     ` Simon LETHBRIDGE
2010-11-26 16:11   ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2010-12-01 13:35     ` Simon LETHBRIDGE
2010-11-22 15:11 ` [RFCv2] doc: Assisted Satellite Navigation API and Agent API Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2010-11-23 13:28   ` andrzej zaborowski
2010-11-23 15:07     ` Simon LETHBRIDGE
2010-11-23 17:15       ` andrzej zaborowski [this message]
2010-11-23 17:24         ` Simon LETHBRIDGE
2010-11-30 13:23   ` Denis Kenzior
2011-01-26 14:52     ` Simon LETHBRIDGE

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='AANLkTi=dxaXQ1h2BZQecs9YS_Xjswgs81Spf5Uz9M_uv@mail.gmail.com' \
    --to=balrogg@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.