I've checked those code files, it seams that both do exactly what I need.
Just a few more questions...
2014-03-27 16:48 GMT-03:00 Denis Kenzior <denkenz(a)gmail.com>:
> As fair as I understand, ofono gets the correct APN settings using
> Gnome Service Provider Database.
Mobile Broadband Provider Info can be used, but the
provisioning system is plugin based. You can write your own if you
wish. See examples/provision.c in oFono git.
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?
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.
> My questions are:
> - How can I 'tell' ofono to use a specific APN settings?
One can edit context settings via the D-Bus interface, if that is what
you mean. See test/create-internet-context for an example.
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?
If so, what is the difference between first method and this one?
> - It seams that ofono only works if is started after
> detects the modem and create /dev/ttyUSBx devices. Is there anything to
> do to configure that to work properly?
As long as the modem is configured by usb-modeswitch properly and
detected by udev, the order of events doesn't matter. oFono will detect
Ok, I'll recheck that.
ofono mailing list