From: Antti Paila <antti.paila@nokia.com>
To: ofono@ofono.org
Subject: Re: [PATCH 0/4 v2] Network Time plugin
Date: Fri, 07 Jan 2011 12:32:18 +0200 [thread overview]
Message-ID: <1294396338.2602.20.camel@apaila-ThinkPad-T410> (raw)
In-Reply-To: <1294177770.5852.109.camel@aeonflux>
[-- Attachment #1: Type: text/plain, Size: 2156 bytes --]
Hi Marcel,
On Tue, 2011-01-04 at 13:49 -0800, ext Marcel Holtmann wrote:
> Hi Aki,
>
> > > > But then it is far simpler to have a D-Bus getter and a D-Bus signal by any
> > > > sane measure of complexity.
> > >
> > > So you did consider the complexity on both sides, ofonod and timed? And
> > > not just looked at one side of picture?
> >
> > Timed also needs to follow the registration status, namely the MNC/MCC
> > of the registered network. This information it needs to be able to find
> > the correct timezone, as the UTC offset alone only indicates the
> > geographic longitude for the timezone.
> >
> > Factor that in to the equation, and timed already needs to enumerate
> > available modems, call GetProperties, and listen to the
> > NetworkRegistration interface's PropertyChanged signals.
> >
> > However, if we refactor the time plugin to also send the MNC/MCC pair --
> > or better yet, the ISO country code based on MCC or even the actual
> > timezone from matching zone.tab entry -- then following netreg is no
> > longer needed.
> >
> > *Then* I agree a method call is actually a lot simpler from timed point
> > of view; all it needs to do is implement a single method on some
> > org.ofono.NetworkTimeConsumer interface and not worry about enumerating
> > modems via ModemManager or listening on any signals.
>
> we are doing the country alpha2 matching to MCC already in ConnMan for
> the WiFi regulatory enforcement update. I am not sure that I wanna copy
> these tables around all the time.
>
> So the struct ofono_nettime_context has already a reference to struct
> ofono_modem, so why not add a reference to the struct ofono_netreg and
> then you have the MCC/MNC details available inside the plugin.
If I would like to do conversion from mcc to alpha2 in ofono, what would
be your suggestion for doing this. I noticed that in connman you have
mcc.h that contains the mapping array, but in ofono we don't have such
an array. As a temporary solution, would it be feasible to just import
the mcc.h to ofono until a more generic solution is implemented?
Best Regards,
Antti
next prev parent reply other threads:[~2011-01-07 10:32 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-10 7:53 [PATCH 0/4 v2] Network Time plugin Antti Paila
2010-12-10 7:53 ` [PATCH 1/4 v2] plugins: Implementation of " Antti Paila
2010-12-10 7:53 ` [PATCH 2/4 v2] plugins: Enabling nettime plugin in Makefile.am Antti Paila
2010-12-10 7:53 ` [PATCH 3/4 v2] plugins: Test scripts for nettime plugin Antti Paila
2010-12-10 7:53 ` [PATCH 4/4 v2] plugins: Documentation " Antti Paila
2010-12-21 7:34 ` [PATCH 0/4 v2] Network Time plugin Antti Paila
2010-12-21 14:17 ` Marcel Holtmann
2010-12-21 15:54 ` Aki Niemi
2010-12-21 16:25 ` Marcel Holtmann
2010-12-21 17:04 ` Aki Niemi
2010-12-21 16:39 ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2010-12-21 17:02 ` Aki Niemi
2010-12-23 2:44 ` Marcel Holtmann
2011-01-03 15:00 ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2011-01-03 20:47 ` Marcel Holtmann
2011-01-04 8:54 ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2011-01-04 9:41 ` Marcel Holtmann
2011-01-04 13:37 ` Aki Niemi
2011-01-04 21:49 ` Marcel Holtmann
2011-01-05 8:29 ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2011-01-05 10:14 ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2011-01-07 10:32 ` Antti Paila [this message]
2011-01-07 21:05 ` Marcel Holtmann
2011-01-10 8:01 ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
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=1294396338.2602.20.camel@apaila-ThinkPad-T410 \
--to=antti.paila@nokia.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.