Open Source Telephony
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: RE: [RFC 1/3] doc: addidng documentation for basic assisted gps
Date: Fri, 05 Nov 2010 21:46:30 +0100	[thread overview]
Message-ID: <1288989990.9615.149.camel@aeonflux> (raw)
In-Reply-To: <97D5E1BB8FC13D4EA3B34BAE8E6898C9014BAD979A@orsmsx508.amr.corp.intel.com>

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

Hi Waldo,

> > oFono is strict CamelCase, even for abbreviations.  You do this
> > correctly above (AgpsManager) but not here.  Please be consistent.  And
> > it might be a good idea to not have abbreviations at all.  What does LCS
> > stand for in this case?
> 
> It refers to terminology from 3GPP TS 04.31:
> RRLP -> Radio Resource LCS Protocol
> LCS -> Location Services

I am with Denis here. If you mean Location Services, then call it that
way. Even within the API naming we are trying to be consistent and avoid
abbreviations whenever possible.

> > > +			The raw frame data is formatted as the concatenated
> > > +			sequence of the two digit hexadecimal representation
> > > +			of each of its octets. Example: "00FC2345"
> >
> > Sending hex-encoded data screams as being non-portable and AT command
> > modem specific.  Is this really your intent here?
> 
> The intent is to send an array of octets. A string seemed a debug-friendly way of
> mapping it onto a DBUS API, but other suggestion for a suitable DBUS type are welcome.

That is an array of bytes what you are looking for. A string of hex
encoded octets is pretty much a bad idea for an API.

It might be convenient for an AT command based modem, but a bad idea for
an D-Bus based API.

> > > +		void RequestFineTimeInjection(string rat, uint16 pulselength)
> > It seems to me that making the upper layers pass in the rat as a
> > parameter to this function is a pretty bad idea.  You should either have
> > the atom figure this out if it can (e.g. by using netreg atom) or have
> > the driver take care of this directly.
> 
> I was asked to add it as the AGPS manager that makes the request presumes a certain RAT and there is no point in generating the pulse if the RAT has changed since.
> See also http://lists.ofono.org/pipermail/ofono/2010-May/002347.html

Seems still wrong to me. Why would an application have to deal with
this. This looks like an internal implementation detail to me. Pushing
such a thing out to the application is against the philosophy of our
D-Bus APIs to simplify things.

> > +		FineTimeInjectionNotification(dict radioframenumber)
> > +
> > +			Notification about fine time injection pulse
> > +			generated by modem. The radioframenumber dict
> > +			is defined as follow:
> > +
> >
> > Why is this returned in a separate signal as opposed to a reply to the
> > RequestFineTimeInjection method call?
> 
> The concern was that the reply would not be immediate, but I don't think it's that much delayed that it runs in any DBUS timeouts, so I think it can be turned into a reply instead.

And so is the signal. Both are bound to the scheduling of the D-Bus
daemon.

Regards

Marcel



  reply	other threads:[~2010-11-05 20:46 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-05 17:55 RFCs: Infineon modem support for agps Robertino Benis
2010-11-05 17:55 ` [RFC 1/3] doc: addidng documentation for basic assisted gps Robertino Benis
2010-11-05 19:24   ` Denis Kenzior
2010-11-05 19:47     ` Marcel Holtmann
2010-11-05 20:21       ` Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2010-11-05 20:26         ` Denis Kenzior
2010-11-05 20:41           ` Marcel Holtmann
2010-11-05 20:40     ` Bastian, Waldo
2010-11-05 20:46       ` Marcel Holtmann [this message]
2010-11-22 19:01         ` Joly, Frederic
2010-11-05 17:55 ` [RFC 2/3] agps: adding agps related functions Robertino Benis
2010-11-05 19:46   ` Denis Kenzior
2010-11-05 17:55 ` [RFC 3/3] ifxmodem: adding modem API to support agps Robertino Benis
2010-11-05 17:55 ` [PATCH] todo: ifxmodem apgs support Robertino Benis
2010-11-05 19:02   ` Denis Kenzior
2010-11-05 19:10   ` Marcel Holtmann

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=1288989990.9615.149.camel@aeonflux \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox