All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Particular APN and Ofono+Connman+BBB+Buildroot
Date: Fri, 28 Mar 2014 09:43:57 -0500	[thread overview]
Message-ID: <53358AAD.5030302@gmail.com> (raw)
In-Reply-To: <CAM5ihG_a-o9YpTw7A034oD9kJ9Y8D2A5Cfiii_JrjsHN==C+jQ@mail.gmail.com>

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

Hi Jerônimo,

> Ok, if I write my own how can I include it to my application? Do I need
> to include this source file in ofono compilation or is there another way?
>

The easiest is to include it into oFono source.  We do support external
plugins but I can't point you to an example off the top of my head.
There were a couple of external plugins in the past.  See src/plugin.c
and Makefile* to see how to do this.

> Another question, make both work at the same time? I mean, make ofono
> look first at 'my own provider', if doesn't have a specific APN, look at
> the Mobile Broadband Provider.

This can be done by setting the plugin priority appropriately. Plugins
with higher priorities are queried first.

> That's nice, but I need Python to achieve that. I would like to keep the
> system (an embedded one) as simple as possible, and for now I don't have
> Python, I don't think it's a good idea to include it just for that.
> 
> Can I do that with C? 

Sure.  Python just gives you an example of what D-Bus properties to set.

> 
> If so, what is the difference between first method and this one?

No difference in the end.  For an embedded system which has no user
input, the provisioning approach will likely be easier.

Regards,
-Denis

  reply	other threads:[~2014-03-28 14:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-27 19:09 Particular APN and Ofono+Connman+BBB+Buildroot =?unknown-8bit?q?Jer=C3=B4nimo?= Lopes
2014-03-27 19:48 ` Denis Kenzior
2014-03-28 14:05   ` =?unknown-8bit?q?Jer=C3=B4nimo?= Lopes
2014-03-28 14:43     ` Denis Kenzior [this message]
2014-03-28 17:20       ` =?unknown-8bit?q?Jer=C3=B4nimo?= Lopes
2014-03-28 20:51         ` Denis Kenzior

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=53358AAD.5030302@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.