Hi all,
Forwarding the whole discussion to the list. Lets continue from here please.
Forwarded conversation
Subject: Re: Need some help regarding ofono library
------------------------
From: Ramkrishna, Sriram <sriram.ramkrishna(a)intel.com>
Date: Tue, Jun 3, 2014 at 8:59 PM
To: "Holtmann, Marcel" <marcel.holtmann(a)intel.com>
Cc: "zeenix(a)gmail.com" <zeenix(a)gmail.com>, "Aygon, Bertrand"
<bertrand.aygon(a)intel.com>, "Kenzior, Denis"
<denis.kenzior(a)intel.com>
On Tue, 2014-06-03 at 16:48 +0000, Holtmann, Marcel wrote:
HI Sriram,
oFono is maintained, but from our point of view it is feature complete and stable. So any
new features or modem support has to come from the community. We are doing maintenance on
oFono only. Patches will be reviewed.
I have a Red Hat engineer as well as a GNOME contributor. Zeeshan is
currently been working on the location services for GNOME through the
geoclue library. (we use geoclue in Tizen btw) Zeeshan has been trying
to get Mozilla to use geoclue2 but requires some work on ofono to make
it happen.
He's been having some issues, 1) gobjection introspection doesn't seem
to be complete on ofono 2) documentation has been sparse.
This is what he said in his blog on the hackfest:
http://zee-nix.blogspot.com/2014/05/location-hackfest-2014-report.html
"Had some discussion with Firefox and Firefox OS using Geoclue2.
Hopefully we'll at least have Firefox using Geoclue2 soon. I might need
to add support for totally unmaintained ofono in Geoclue2 unfortunately
for making a very compelling case for Firefox OS to adapt geoclue2."
To be clear, he is talking about ofono support in geoclue2. :-)
Are there any plans to have a more complete gobject introspection? I
assume you and the ofono community would help out with any questions
regarding ofono.
Having geoclue2 would be beneficial from a Tizen perspective since we
use geoclue1 for location services, but having a feature complete
geoclue2 would be great too.
I have included Zeeshan in this email.. he can probably elaborate
further if needed.
Thanks!
sri
sri
Regards
Marcel
________________________________________
From: Aygon, Bertrand
Sent: Tuesday, June 03, 2014 09:43
To: Ramkrishna, Sriram
Cc: Kenzior, Denis; Holtmann, Marcel
Subject: RE: Need some help regarding ofono library
Hi Sriram,
I am not more involved with oFono, but yes of course it's still maintained.
Marcel, Denis, can you please help Sriram?
Regards,
Bertrand
Bertrand Aygon Engineering Manager
Bertrand.Aygon(a)Intel.com Open Source Technology Center, Intel Corporation
-----Original Message-----
From: Ramkrishna, Sriram
Sent: Tuesday, June 3, 2014 6:37 PM
To: Aygon, Bertrand
Subject: Need some help regarding ofono library
Hi Bertrand,
Would you be able to help a GNOME community person regarding ofono?
What is the state of ofono? Is it still maintained?
sri
--
Sriram Ramkrishna <sriram.ramkrishna(a)intel.com> OTC - Tizen Build and Release team
----------
From: Zeeshan Ali (Khattak) <zeeshanak(a)gnome.org>
Date: Tue, Jun 3, 2014 at 9:31 PM
To: "Ramkrishna, Sriram" <sriram.ramkrishna(a)intel.com>
Cc: "Holtmann, Marcel" <marcel.holtmann(a)intel.com>, "Aygon,
Bertrand"
<bertrand.aygon(a)intel.com>, "Kenzior, Denis"
<denis.kenzior(a)intel.com>
On Tue, Jun 3, 2014 at 8:59 PM, Ramkrishna, Sriram
<sriram.ramkrishna(a)intel.com> wrote:
On Tue, 2014-06-03 at 16:48 +0000, Holtmann, Marcel wrote:
> HI Sriram,
Hi Sri,
Thanks for starting this discsussion.
> oFono is maintained, but from our point of view it is feature
complete and stable. So any new features or modem support has to come from the community.
We are doing maintenance on oFono only. Patches will be reviewed.
I have a Red Hat engineer as well as a GNOME contributor. Zeeshan is
currently been working on the location services for GNOME through the
geoclue library. (we use geoclue in Tizen btw) Zeeshan has been trying
to get Mozilla to use geoclue2 but requires some work on ofono to make
it happen.
Also Jolla.
He's been having some issues, 1) gobjection introspection
doesn't seem
to be complete on ofono
I was talking about D-Bus introspection, not introspection. Ofono
doesn't provide a library AFAICT so no gobject introspection needed.
2) documentation has been sparse.
There's more:
3) No GPS API. Jolla/Qt dev told me that he had to add custom GPS API to ofono.
4) None of my modems work out of the box with ofono. :( I am hoping
that can be locally worked around with popular udev rule fiddling but
would be easier for me to add ofono support in geoclue if it worked
out of the box.
--
Regards,
Zeeshan Ali (Khattak)
________________________________________
Befriend GNOME:
http://www.gnome.org/friends/
----------
From: Denis Kenzior <denis.kenzior(a)intel.com>
Date: Tue, Jun 3, 2014 at 10:04 PM
To: "Zeeshan Ali (Khattak)" <zeeshanak(a)gnome.org>, "Ramkrishna,
Sriram" <sriram.ramkrishna(a)intel.com>
Cc: "Holtmann, Marcel" <marcel.holtmann(a)intel.com>, "Aygon,
Bertrand"
<bertrand.aygon(a)intel.com>
Hi,
I was talking about D-Bus introspection, not introspection. Ofono
doesn't provide a library AFAICT so no gobject introspection needed.
What issues are you having with D-Bus introspection? Last I checked this
works just fine. oFono only provides a D-Bus API, no bindings are
provided.
>
>
2) documentation has been sparse.
>
Documentation of what exactly?
There's more:
3) No GPS API. Jolla/Qt dev told me that he had to add custom GPS API to ofono.
It surely exists. But do note that we only provide access to low level
NMEA sentences for hardware devices that have internal GPS units. This
is accomplished by passing a file-desciptor over D-Bus. See
doc/location-reporting-api.txt for more details. This API is meant for
GPS daemons such as gpsd, not for consumption by applications.
4) None of my modems work out of the box with ofono. :( I am hoping
that can be locally worked around with popular udev rule fiddling but
would be easier for me to add ofono support in geoclue if it worked
out of the box.
While we haven't added any new modem devices for a while, most modems
work out of the box. This may be a case of not installing
usb_modeswitch package properly or a kernel misconfiguration.
Again, what device are you having an issue with exactly?
Regards,
-Denis
----------
From: Zeeshan Ali (Khattak) <zeeshanak(a)gnome.org>
Date: Tue, Jun 3, 2014 at 10:49 PM
To: Denis Kenzior <denis.kenzior(a)intel.com>
Cc: "Ramkrishna, Sriram" <sriram.ramkrishna(a)intel.com>, "Holtmann,
Marcel" <marcel.holtmann(a)intel.com>, "Aygon, Bertrand"
<bertrand.aygon(a)intel.com>
On Tue, Jun 3, 2014 at 10:04 PM, Denis Kenzior <denis.kenzior(a)intel.com> wrote:
Hi,
Hi Dennis,
I was talking about D-Bus introspection, not introspection. Ofono
doesn't provide a library AFAICT so no gobject introspection needed.
What issues are you having with D-Bus introspection? Last I checked this
works just fine.
Oh on second look I realize that introspection is there but not
exactly complete. E.g the properties are not listed or at least d-feet
is unable to see them. I'm attaching screenshots of d-feet
introspecting both ofono and ModemManager to illustrate. Also I only
see a handful of methods and signals. Is most things done through
properties?
oFono only provides a D-Bus API, no bindings are
provided.
Thats fine but would be nice to have online/easily browsable docs that
are easy to find. Also does ofono install the API XML somewhere so
binidings could be generated against that?
>>
2) documentation has been sparse.
>>
>
> Documentation of what exactly?
The D-Bus API of course. :) Something like this:
http://www.freedesktop.org/software/ModemManager/api/latest/
Sorry if this sounds too much to ask but every D-Bus API I use seem to
provide those.
There's more:
3) No GPS API. Jolla/Qt dev told me that he had to add custom GPS API to ofono.
It surely exists. But do note that we only provide access to low level
NMEA sentences for hardware devices that have internal GPS units.
I can work with that, although high-level API would be nice.
This
is accomplished by passing a file-desciptor over D-Bus. See
doc/location-reporting-api.txt for more details. This API is meant for
GPS daemons such as gpsd, not for consumption by applications.
And geoclue is one of those but I don't think hiding it behind fds is
needed. IMO everything should be available through the D-Bus API
directly, even if using program is a system daemon as there is no
reason to make things specifically hard for daemons. Hiding it like
this would only result in people not being able to discover it and
spread around incorrect info and worse, act on such misinformation.
4) None of my modems work out of the box
with ofono. :( I am hoping
that can be locally worked around with popular udev rule fiddling but
would be easier for me to add ofono support in geoclue if it worked
out of the box.
While we haven't added any new modem devices for a while, most modems
work out of the box. This may be a case of not installing
usb_modeswitch package properly or a kernel misconfiguration.
Well they work out of the box with ModemManager so I was hoping they
work with ofono too. I have usb_modeswitch installed fwiw.
Again, what device are you having an issue with exactly?
The screenshots attached will also give you that information. :)
----------
From: Denis Kenzior <denis.kenzior(a)intel.com>
Date: Tue, Jun 3, 2014 at 11:09 PM
To: "Zeeshan Ali (Khattak)" <zeeshanak(a)gnome.org>
Cc: "Ramkrishna, Sriram" <sriram.ramkrishna(a)intel.com>, "Holtmann,
Marcel" <marcel.holtmann(a)intel.com>, "Aygon, Bertrand"
<bertrand.aygon(a)intel.com>
Hi,
Oh on second look I realize that introspection is there but not
exactly complete. E.g the properties are not listed or at least d-feet
is unable to see them. I'm attaching screenshots of d-feet
introspecting both ofono and ModemManager to illustrate. Also I only
see a handful of methods and signals. Is most things done through
properties?
oFono does not support DBus ObjectManager, which may explain why you
don't have the nice results with d-feet. However, D-Bus introspection
works just fine. Try running the introspection method by hand using
dbus-send if you do not believe me.
I encourage you to actually read the documentation first. As an
additional resource, take a look at the large amount of test scripts
inside test/. These exercise just about every aspect of the oFono API.
Thats fine but would be nice to have online/easily browsable docs
that
are easy to find. Also does ofono install the API XML somewhere so
binidings could be generated against that?
Try
https://git.kernel.org/cgit/network/ofono/ofono.git/tree/doc
No XML is provided. The XML is auto generated at run time by our DBus
binding library and we have no plans to maintain a separate / fake XML.
If you want to write bindings this should be quite easy to do by
yourself. Please note that oFono API is mostly string based, so using
bindings would offer no real advantage anyway.
The D-Bus API of course. :) Something like this:
http://www.freedesktop.org/software/ModemManager/api/latest/
Sorry if this sounds too much to ask but every D-Bus API I use seem to
provide those.
See above. Our documentation is in plain text format and easily
readable / obtainable. We have no plans to support doxygen / gtk-doc /
qdoc.
And geoclue is one of those but I don't think hiding it behind
fds is
needed. IMO everything should be available through the D-Bus API
directly, even if using program is a system daemon as there is no
reason to make things specifically hard for daemons. Hiding it like
this would only result in people not being able to discover it and
spread around incorrect info and worse, act on such misinformation.
All GPS middleware has NMEA parsers built in. We saw no point in
maintaining yet-another-NMEA-parser inside oFono, the project is large
enough as it is.
Well they work out of the box with ModemManager so I was hoping they
work with ofono too. I have usb_modeswitch installed fwiw.
Try disabling ModemManager. oFono and ModemManager can't be run
side-by-side. You won't get far with the GOBI based card, but the
Option one should work just fine.
Regards,
-Denis
----------
From: Zeeshan Ali (Khattak) <zeeshanak(a)gnome.org>
Date: Tue, Jun 3, 2014 at 11:50 PM
To: Denis Kenzior <denis.kenzior(a)intel.com>
Cc: "Ramkrishna, Sriram" <sriram.ramkrishna(a)intel.com>, "Holtmann,
Marcel" <marcel.holtmann(a)intel.com>, "Aygon, Bertrand"
<bertrand.aygon(a)intel.com>
On Tue, Jun 3, 2014 at 11:09 PM, Denis Kenzior <denis.kenzior(a)intel.com> wrote:
Hi,
>
>> Oh on second look I realize that introspection is there but not
>> exactly complete. E.g the properties are not listed or at least d-feet
>> is unable to see them. I'm attaching screenshots of d-feet
>> introspecting both ofono and ModemManager to illustrate. Also I only
>> see a handful of methods and signals. Is most things done through
>> properties?
>
> oFono does not support DBus ObjectManager, which may explain why you
> don't have the nice results with d-feet.
I don't think thats it. See below.
However, D-Bus introspection
works just fine. Try running the introspection method by hand using
dbus-send if you do not believe me.
I did and I still don't see properties listed in the XML returned from
this method. See screenshots attached. One is against ofono and the
other is against ModemManager.
I encourage you to actually read the documentation first. As an
additional resource, take a look at the large amount of test scripts
inside test/. These exercise just about every aspect of the oFono API.
Sure, I'll do that now that I know there is docs and where to find them. :)
Thats fine but would be nice to have
online/easily browsable docs that
are easy to find. Also does ofono install the API XML somewhere so
binidings could be generated against that?
Try
https://git.kernel.org/cgit/network/ofono/ofono.git/tree/doc
Ah. Funny how google couldn't find it. Can it be linked on the
official docs webpage?
https://ofono.org/documentation
It only shows an architecture diagram so it gets easier to conclude
that there is no online docs. :)
No XML is provided. The XML is auto generated at run time by our
DBus
binding library and we have no plans to maintain a separate / fake XML.
If you want to write bindings this should be quite easy to do by
yourself. Please note that oFono API is mostly string based, so using
bindings would offer no real advantage anyway.
It'll offer little advantage, yes but still it'll be something.
The D-Bus API of course. :) Something like
this:
http://www.freedesktop.org/software/ModemManager/api/latest/
Sorry if this sounds too much to ask but every D-Bus API I use seem to
provide those.
See above. Our documentation is in plain text format and easily
readable / obtainable. We have no plans to support doxygen / gtk-doc /
qdoc.
Thats a shame. Its very hard to browse through without any links. :(
And geoclue is one of those but I
don't think hiding it behind fds is
needed. IMO everything should be available through the D-Bus API
directly, even if using program is a system daemon as there is no
reason to make things specifically hard for daemons. Hiding it like
this would only result in people not being able to discover it and
spread around incorrect info and worse, act on such misinformation.
All GPS middleware has NMEA parsers built in. We saw no point in
maintaining yet-another-NMEA-parser inside oFono, the project is large
enough as it is.
Thats a good argument but only against providing API exposing info
from NMEA sentences. However, it would be nice to get the strings
directly from the service through some property rather than having to
deal with fds. ModemManager provides two interfaces: raw NMEA
sentences and coordinates extracted from GGA sentences.
> Well they work out of the box with ModemManager so I was hoping
they
> work with ofono too. I have usb_modeswitch installed fwiw.
>
Try disabling ModemManager. oFono and ModemManager can't be run
side-by-side. You won't get far with the GOBI based card, but the
Option one should work just fine.
Ah indeed it works (as in, it appears in d-feet) now. Thanks.
----------
From: Zeeshan Ali (Khattak) <zeeshanak(a)gnome.org>
Date: Wed, Jun 4, 2014 at 12:07 AM
To: Denis Kenzior <denis.kenzior(a)intel.com>
Cc: "Ramkrishna, Sriram" <sriram.ramkrishna(a)intel.com>, "Holtmann,
Marcel" <marcel.holtmann(a)intel.com>, "Aygon, Bertrand"
<bertrand.aygon(a)intel.com>
On Tue, Jun 3, 2014 at 11:50 PM, Zeeshan Ali (Khattak)
<zeeshanak(a)gnome.org> wrote:
> On Tue, Jun 3, 2014 at 11:09 PM, Denis Kenzior <denis.kenzior(a)intel.com>
wrote:
>
Hi,
>>
>>> Oh on second look I realize that introspection is there but not
>>> exactly complete. E.g the properties are not listed or at least d-feet
>>> is unable to see them. I'm attaching screenshots of d-feet
>>> introspecting both ofono and ModemManager to illustrate. Also I only
>>> see a handful of methods and signals. Is most things done through
>>> properties?
>>
>> oFono does not support DBus ObjectManager, which may explain why you
>> don't have the nice results with d-feet.
>
> I don't think thats it. See below.
>
>> However, D-Bus introspection
>> works just fine. Try running the introspection method by hand using
>> dbus-send if you do not believe me.
>
> I did and I still don't see properties listed in the XML returned from
> this method. See screenshots attached. One is against ofono and the
> other is against ModemManager.
Also I see some interfaces entirely missing from introspection. E.g
org.ofono.LocationReporting that I'm guessing I'm supposed to use in
geoclue? Or is this interface not supported for Option modem?
----------
From: Zeeshan Ali (Khattak) <zeeshanak(a)gnome.org>
Date: Wed, Jun 4, 2014 at 12:24 AM
To: Denis Kenzior <denis.kenzior(a)intel.com>
Cc: "Ramkrishna, Sriram" <sriram.ramkrishna(a)intel.com>, "Holtmann,
Marcel" <marcel.holtmann(a)intel.com>, "Aygon, Bertrand"
<bertrand.aygon(a)intel.com>
On Wed, Jun 4, 2014 at 12:07 AM, Zeeshan Ali (Khattak)
<zeeshanak(a)gnome.org> wrote:
> On Tue, Jun 3, 2014 at 11:50 PM, Zeeshan Ali (Khattak)
> <zeeshanak(a)gnome.org> wrote:
>> On Tue, Jun 3, 2014 at 11:09 PM, Denis Kenzior <denis.kenzior(a)intel.com>
wrote:
>>
Hi,
>>>
>>>> Oh on second look I realize that introspection is there but not
>>>> exactly complete. E.g the properties are not listed or at least d-feet
>>>> is unable to see them. I'm attaching screenshots of d-feet
>>>> introspecting both ofono and ModemManager to illustrate. Also I only
>>>> see a handful of methods and signals. Is most things done through
>>>> properties?
>>>
>>> oFono does not support DBus ObjectManager, which may explain why you
>>> don't have the nice results with d-feet.
>>
>> I don't think thats it. See below.
>>
>>> However, D-Bus introspection
>>> works just fine. Try running the introspection method by hand using
>>> dbus-send if you do not believe me.
>>
>> I did and I still don't see properties listed in the XML returned from
>> this method. See screenshots attached. One is against ofono and the
>> other is against ModemManager.
>
> Also I see some interfaces entirely missing from introspection. E.g
> org.ofono.LocationReporting that I'm guessing I'm supposed to use in
> geoclue? Or is this interface not supported for Option modem?
I also seem some issues with properties interfaces:
$ gdbus call --system -d org.ofono -o /hso_5 -m
org.freedesktop.DBus.Properties.GetAll org.ofono.Modem
Error: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Method
"GetAll" with signature "s" on interface
"org.freedesktop.DBus.Properties" doesn't exist
$ gdbus call --system -d org.ofono -o /hso_5 -m
org.freedesktop.DBus.Properties.Set org.ofono.Modem "Online" true
Error: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Method
"Set" with signature "ssb" on interface
"org.freedesktop.DBus.Properties" doesn't exist
Is ofono actually implementing the standard D-Bus properties interface?
----------
From: Denis Kenzior <denis.kenzior(a)intel.com>
Date: Wed, Jun 4, 2014 at 1:00 AM
To: "Zeeshan Ali (Khattak)" <zeeshanak(a)gnome.org>
Cc: "Ramkrishna, Sriram" <sriram.ramkrishna(a)intel.com>, "Holtmann,
Marcel" <marcel.holtmann(a)intel.com>, "Aygon, Bertrand"
<bertrand.aygon(a)intel.com>
Hi,
Is ofono actually implementing the standard D-Bus properties interface?
I said this already, oFono does not support D-Bus ObjectManager or
related interfaces (see
http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfac...),
nor do we have plans to at the moment. The API was developed prior to
ObjectManager related changes to DBus. Changing over would be quite
invasive, require API changes and the the API is structured similarly
enough anyway. Since the API is currently frozen, support of
ObjectManager will have to wait until oFono 2.x.
Interfaces that are not supported by a particular hardware or modem
state are not reported in introspection. Refer to Modem.Interfaces
property.
Properties are not reported in introspection data. Some properties are
optional and require semantics that DBus does not support. Again, maybe
this will be added in oFono 2.x.
Regards,
-Denis
----------
From: Zeeshan Ali (Khattak) <zeeshanak(a)gnome.org>
Date: Wed, Jun 4, 2014 at 1:18 PM
To: Denis Kenzior <denis.kenzior(a)intel.com>
Cc: "Ramkrishna, Sriram" <sriram.ramkrishna(a)intel.com>, "Holtmann,
Marcel" <marcel.holtmann(a)intel.com>, "Aygon, Bertrand"
<bertrand.aygon(a)intel.com>
On Wed, Jun 4, 2014 at 1:00 AM, Denis Kenzior <denis.kenzior(a)intel.com> wrote:
Hi,
Hi Denis,
> Is ofono actually implementing the standard D-Bus properties
interface?
>
I said this already, oFono does not support D-Bus ObjectManager or
related interfaces (see
http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfac...),
nor do we have plans to at the moment. The API was developed prior to
ObjectManager related changes to DBus. Changing over would be quite
invasive, require API changes and the the API is structured similarly
enough anyway. Since the API is currently frozen, support of
ObjectManager will have to wait until oFono 2.x.
I understood that you are not implementing that but I don't see how
its relevant here. Can you confirm that nofono doesn't support the
standard properties interface either (as demonstrated by the gdbus
commandlines I pasted)? This interfaces has been there for as long as
I remember D-Bus and I don't know how else am I expected to access
these properties.
Interfaces that are not supported by a particular hardware or modem
state are not reported in introspection. Refer to Modem.Interfaces
property.
Ah ok so that means my Option modem is pretty much unsupported. :(
That would make testing my code impossible for me. :(
Properties are not reported in introspection data.
i-e introspection is very much incomplete, especially since your API
is heavily reliant on them.
Some properties are
optional and require semantics that DBus does not support. Again, maybe
this will be added in oFono 2.x.
There is plans for oFono 2.x?
----------
From: Holtmann, Marcel <marcel.holtmann(a)intel.com>
Date: Wed, Jun 4, 2014 at 1:24 PM
To: "Zeeshan Ali (Khattak)" <zeeshanak(a)gnome.org>, "Kenzior,
Denis"
<denis.kenzior(a)intel.com>
Cc: "Ramkrishna, Sriram" <sriram.ramkrishna(a)intel.com>, "Aygon,
Bertrand" <bertrand.aygon(a)intel.com>
Hi Zeeshan,
what about asking these questions on ofono(a)ofono.org mailing list.
Regards
Marcel
________________________________________
From: zeenix(a)gmail.com [zeenix(a)gmail.com] on behalf of Zeeshan Ali
(Khattak) [zeeshanak(a)gnome.org]
Sent: Wednesday, June 04, 2014 05:18
To: Kenzior, Denis
Cc: Ramkrishna, Sriram; Holtmann, Marcel; Aygon, Bertrand
Subject: Re: Need some help regarding ofono library
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen, Deutschland
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk
Registergericht: Muenchen HRB 47456
Ust.-IdNr./VAT Registration No.: DE129385895
Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052
----------
From: Zeeshan Ali (Khattak) <zeeshanak(a)gnome.org>
Date: Wed, Jun 4, 2014 at 1:33 PM
To: "Holtmann, Marcel" <marcel.holtmann(a)intel.com>
Cc: "Kenzior, Denis" <denis.kenzior(a)intel.com>, "Ramkrishna,
Sriram"
<sriram.ramkrishna(a)intel.com>, "Aygon, Bertrand"
<bertrand.aygon(a)intel.com>
On Wed, Jun 4, 2014 at 1:24 PM, Holtmann, Marcel
<marcel.holtmann(a)intel.com> wrote:
Hi Zeeshan,
Hi Marcel,
what about asking these questions on ofono(a)ofono.org mailing list.
Sure. I should have done that from the start but since I saw no
releases for 2 years I assumed the project is unmaintained. Sri then
came along and connected us all. :)
I'll forward the whole discussion there now and lets talk further in there..
----------
From: Zeeshan Ali (Khattak) <zeeshanak(a)gnome.org>
Date: Wed, Jun 4, 2014 at 1:35 PM
To: ofono(a)ofono.org
Hi all,
Moving this discussion to the list.
Forwarded conversation
Subject: Re: Need some help regarding ofono library
------------------------
From: Ramkrishna, Sriram <sriram.ramkrishna(a)intel.com>
Date: Tue, Jun 3, 2014 at 8:59 PM
To: "Holtmann, Marcel" <marcel.holtmann(a)intel.com>
Cc: "zeenix(a)gmail.com" <zeenix(a)gmail.com>, "Aygon, Bertrand"
<bertrand.aygon(a)intel.com>, "Kenzior, Denis"
<denis.kenzior(a)intel.com>
On Tue, 2014-06-03 at 16:48 +0000, Holtmann, Marcel wrote:
HI Sriram,
oFono is maintained, but from our point of view it is feature complete and stable. So any
new features or modem support has to come from the community. We are doing maintenance on
oFono only. Patches will be reviewed.
I have a Red Hat engineer as well as a GNOME contributor. Zeeshan is
currently been working on the location services for GNOME through the
geoclue library. (we use geoclue in Tizen btw) Zeeshan has been trying
to get Mozilla to use geoclue2 but requires some work on ofono to make
it happen.
He's been having some issues, 1) gobjection introspection doesn't seem
----------
From: Zeeshan Ali (Khattak) <zeeshanak(a)gnome.org>
Date: Tue, Jun 3, 2014 at 9:31 PM
To: "Ramkrishna, Sriram" <sriram.ramkrishna(a)intel.com>
Cc: "Holtmann, Marcel" <marcel.holtmann(a)intel.com>, "Aygon,
Bertrand"
<bertrand.aygon(a)intel.com>, "Kenzior, Denis"
<denis.kenzior(a)intel.com>
On Tue, Jun 3, 2014 at 8:59 PM, Ramkrishna, Sriram
<sriram.ramkrishna(a)intel.com> wrote:
On Tue, 2014-06-03 at 16:48 +0000, Holtmann, Marcel wrote:
> HI Sriram,
Hi Sri,
Thanks for starting this discsussion.
> oFono is maintained, but from our point of view it is feature
complete and stable. So any new features or modem support has to come from the community.
We are doing maintenance on oFono only. Patches will be reviewed.
I have a Red Hat engineer as well as a GNOME contributor. Zeeshan is
currently been working on the location services for GNOME through the
geoclue library. (we use geoclue in Tizen btw) Zeeshan has been trying
to get Mozilla to use geoclue2 but requires some work on ofono to make
it happen.
Also Jolla.
He's been having some issues, 1) gobjection introspection
doesn't seem
to be complete on ofono
I was talking about D-Bus introspection, not introspection. Ofono
doesn't provide a library AFAICT so no gobject introspection needed.
2) documentation has been sparse.
There's more:
3) No GPS API. Jolla/Qt dev told me that he had to add custom GPS API to ofono.
4) None of my modems work out of the box with ofono. :( I am hoping
that can be locally worked around with popular udev rule fiddling but
would be easier for me to add ofono support in geoclue if it worked
out of the box.
--
Regards,
Zeeshan Ali (Khattak)
________________________________________
Befriend GNOME:
http://www.gnome.org/friends/
----------
From: Denis Kenzior <denis.kenzior(a)intel.com>
Date: Tue, Jun 3, 2014 at 10:04 PM
To: "Zeeshan Ali (Khattak)" <zeeshanak(a)gnome.org>, "Ramkrishna,
Sriram" <sriram.ramkrishna(a)intel.com>
Cc: "Holtmann, Marcel" <marcel.holtmann(a)intel.com>, "Aygon,
Bertrand"
<bertrand.aygon(a)intel.com>
Hi,
I was talking about D-Bus introspection, not introspection. Ofono
doesn't provide a library AFAICT so no gobject introspection needed.
What issues are you having with D-Bus introspection? Last I checked this
works just fine. oFono only provides a D-Bus API, no bindings are
provided.
>
>
2) documentation has been sparse.
>
Documentation of what exactly?
There's more:
3) No GPS API. Jolla/Qt dev told me that he had to add custom GPS API to ofono.
It surely exists. But do note that we only provide access to low level
NMEA sentences for hardware devices that have internal GPS units. This
is accomplished by passing a file-desciptor over D-Bus. See
doc/location-reporting-api.txt for more details. This API is meant for
GPS daemons such as gpsd, not for consumption by applications.
4) None of my modems work out of the box with ofono. :( I am hoping
that can be locally worked around with popular udev rule fiddling but
would be easier for me to add ofono support in geoclue if it worked
out of the box.
While we haven't added any new modem devices for a while, most modems
work out of the box. This may be a case of not installing
usb_modeswitch package properly or a kernel misconfiguration.
Again, what device are you having an issue with exactly?
Regards,
-Denis
----------
From: Zeeshan Ali (Khattak) <zeeshanak(a)gnome.org>
Date: Tue, Jun 3, 2014 at 10:49 PM
To: Denis Kenzior <denis.kenzior(a)intel.com>
Cc: "Ramkrishna, Sriram" <sriram.ramkrishna(a)intel.com>, "Holtmann,
Marcel" <marcel.holtmann(a)intel.com>, "Aygon, Bertrand"
<bertrand.aygon(a)intel.com>
On Tue, Jun 3, 2014 at 10:04 PM, Denis Kenzior <denis.kenzior(a)intel.com> wrote:
Hi,
Hi Dennis,
I was talking about D-Bus introspection, not introspection. Ofono
doesn't provide a library AFAICT so no gobject introspection needed.
What issues are you having with D-Bus introspection? Last I checked this
works just fine.
Oh on second look I realize that introspection is there but not
exactly complete. E.g the properties are not listed or at least d-feet
is unable to see them. I'm attaching screenshots of d-feet
introspecting both ofono and ModemManager to illustrate. Also I only
see a handful of methods and signals. Is most things done through
properties?
oFono only provides a D-Bus API, no bindings are
provided.
Thats fine but would be nice to have online/easily browsable docs that
are easy to find. Also does ofono install the API XML somewhere so
binidings could be generated against that?
>>
2) documentation has been sparse.
>>
>
> Documentation of what exactly?
The D-Bus API of course. :) Something like this:
http://www.freedesktop.org/software/ModemManager/api/latest/
Sorry if this sounds too much to ask but every D-Bus API I use seem to
provide those.
There's more:
3) No GPS API. Jolla/Qt dev told me that he had to add custom GPS API to ofono.
It surely exists. But do note that we only provide access to low level
NMEA sentences for hardware devices that have internal GPS units.
I can work with that, although high-level API would be nice.
This
is accomplished by passing a file-desciptor over D-Bus. See
doc/location-reporting-api.txt for more details. This API is meant for
GPS daemons such as gpsd, not for consumption by applications.
And geoclue is one of those but I don't think hiding it behind fds is
needed. IMO everything should be available through the D-Bus API
directly, even if using program is a system daemon as there is no
reason to make things specifically hard for daemons. Hiding it like
this would only result in people not being able to discover it and
spread around incorrect info and worse, act on such misinformation.
4) None of my modems work out of the box
with ofono. :( I am hoping
that can be locally worked around with popular udev rule fiddling but
would be easier for me to add ofono support in geoclue if it worked
out of the box.
While we haven't added any new modem devices for a while, most modems
work out of the box. This may be a case of not installing
usb_modeswitch package properly or a kernel misconfiguration.
Well they work out of the box with ModemManager so I was hoping they
work with ofono too. I have usb_modeswitch installed fwiw.
Again, what device are you having an issue with exactly?
The screenshots attached will also give you that information. :)
----------
From: Denis Kenzior <denis.kenzior(a)intel.com>
Date: Tue, Jun 3, 2014 at 11:09 PM
To: "Zeeshan Ali (Khattak)" <zeeshanak(a)gnome.org>
Cc: "Ramkrishna, Sriram" <sriram.ramkrishna(a)intel.com>, "Holtmann,
Marcel" <marcel.holtmann(a)intel.com>, "Aygon, Bertrand"
<bertrand.aygon(a)intel.com>
Hi,
Oh on second look I realize that introspection is there but not
exactly complete. E.g the properties are not listed or at least d-feet
is unable to see them. I'm attaching screenshots of d-feet
introspecting both ofono and ModemManager to illustrate. Also I only
see a handful of methods and signals. Is most things done through
properties?
oFono does not support DBus ObjectManager, which may explain why you
don't have the nice results with d-feet. However, D-Bus introspection
works just fine. Try running the introspection method by hand using
dbus-send if you do not believe me.
I encourage you to actually read the documentation first. As an
additional resource, take a look at the large amount of test scripts
inside test/. These exercise just about every aspect of the oFono API.
Thats fine but would be nice to have online/easily browsable docs
that
are easy to find. Also does ofono install the API XML somewhere so
binidings could be generated against that?
Try
https://git.kernel.org/cgit/network/ofono/ofono.git/tree/doc
No XML is provided. The XML is auto generated at run time by our DBus
binding library and we have no plans to maintain a separate / fake XML.
If you want to write bindings this should be quite easy to do by
yourself. Please note that oFono API is mostly string based, so using
bindings would offer no real advantage anyway.
The D-Bus API of course. :) Something like this:
http://www.freedesktop.org/software/ModemManager/api/latest/
Sorry if this sounds too much to ask but every D-Bus API I use seem to
provide those.
See above. Our documentation is in plain text format and easily
readable / obtainable. We have no plans to support doxygen / gtk-doc /
qdoc.
And geoclue is one of those but I don't think hiding it behind
fds is
needed. IMO everything should be available through the D-Bus API
directly, even if using program is a system daemon as there is no
reason to make things specifically hard for daemons. Hiding it like
this would only result in people not being able to discover it and
spread around incorrect info and worse, act on such misinformation.
All GPS middleware has NMEA parsers built in. We saw no point in
maintaining yet-another-NMEA-parser inside oFono, the project is large
enough as it is.
Well they work out of the box with ModemManager so I was hoping they
work with ofono too. I have usb_modeswitch installed fwiw.
Try disabling ModemManager. oFono and ModemManager can't be run
side-by-side. You won't get far with the GOBI based card, but the
Option one should work just fine.
Regards,
-Denis
----------
From: Zeeshan Ali (Khattak) <zeeshanak(a)gnome.org>
Date: Tue, Jun 3, 2014 at 11:50 PM
To: Denis Kenzior <denis.kenzior(a)intel.com>
Cc: "Ramkrishna, Sriram" <sriram.ramkrishna(a)intel.com>, "Holtmann,
Marcel" <marcel.holtmann(a)intel.com>, "Aygon, Bertrand"
<bertrand.aygon(a)intel.com>
On Tue, Jun 3, 2014 at 11:09 PM, Denis Kenzior <denis.kenzior(a)intel.com> wrote:
Hi,
>
>> Oh on second look I realize that introspection is there but not
>> exactly complete. E.g the properties are not listed or at least d-feet
>> is unable to see them. I'm attaching screenshots of d-feet
>> introspecting both ofono and ModemManager to illustrate. Also I only
>> see a handful of methods and signals. Is most things done through
>> properties?
>
> oFono does not support DBus ObjectManager, which may explain why you
> don't have the nice results with d-feet.
I don't think thats it. See below.
However, D-Bus introspection
works just fine. Try running the introspection method by hand using
dbus-send if you do not believe me.
I did and I still don't see properties listed in the XML returned from
this method. See screenshots attached. One is against ofono and the
other is against ModemManager.
----------
From: Zeeshan Ali (Khattak) <zeeshanak(a)gnome.org>
Date: Wed, Jun 4, 2014 at 12:07 AM
To: Denis Kenzior <denis.kenzior(a)intel.com>
Cc: "Ramkrishna, Sriram" <sriram.ramkrishna(a)intel.com>, "Holtmann,
Marcel" <marcel.holtmann(a)intel.com>, "Aygon, Bertrand"
<bertrand.aygon(a)intel.com>
On Tue, Jun 3, 2014 at 11:50 PM, Zeeshan Ali (Khattak)
<zeeshanak(a)gnome.org> wrote:
> On Tue, Jun 3, 2014 at 11:09 PM, Denis Kenzior <denis.kenzior(a)intel.com>
wrote:
>
Hi,
>>
>>> Oh on second look I realize that introspection is there but not
>>> exactly complete. E.g the properties are not listed or at least d-feet
>>> is unable to see them. I'm attaching screenshots of d-feet
>>> introspecting both ofono and ModemManager to illustrate. Also I only
>>> see a handful of methods and signals. Is most things done through
>>> properties?
>>
>> oFono does not support DBus ObjectManager, which may explain why you
>> don't have the nice results with d-feet.
>
> I don't think thats it. See below.
>
>> However, D-Bus introspection
>> works just fine. Try running the introspection method by hand using
>> dbus-send if you do not believe me.
>
> I did and I still don't see properties listed in the XML returned from
> this method. See screenshots attached. One is against ofono and the
> other is against ModemManager.
Also I see some interfaces entirely missing from introspection. E.g
org.ofono.LocationReporting that I'm guessing I'm supposed to use in
geoclue? Or is this interface not supported for Option modem?
----------
From: Zeeshan Ali (Khattak) <zeeshanak(a)gnome.org>
Date: Wed, Jun 4, 2014 at 12:24 AM
To: Denis Kenzior <denis.kenzior(a)intel.com>
Cc: "Ramkrishna, Sriram" <sriram.ramkrishna(a)intel.com>, "Holtmann,
Marcel" <marcel.holtmann(a)intel.com>, "Aygon, Bertrand"
<bertrand.aygon(a)intel.com>
On Wed, Jun 4, 2014 at 12:07 AM, Zeeshan Ali (Khattak)
<zeeshanak(a)gnome.org> wrote:
> On Tue, Jun 3, 2014 at 11:50 PM, Zeeshan Ali (Khattak)
> <zeeshanak(a)gnome.org> wrote:
>> On Tue, Jun 3, 2014 at 11:09 PM, Denis Kenzior <denis.kenzior(a)intel.com>
wrote:
>>
Hi,
>>>
Is ofono actually implementing the standard D-Bus properties interface?
----------
From: Denis Kenzior <denis.kenzior(a)intel.com>
Date: Wed, Jun 4, 2014 at 1:00 AM
To: "Zeeshan Ali (Khattak)" <zeeshanak(a)gnome.org>
Cc: "Ramkrishna, Sriram" <sriram.ramkrishna(a)intel.com>, "Holtmann,
Marcel" <marcel.holtmann(a)intel.com>, "Aygon, Bertrand"
<bertrand.aygon(a)intel.com>
Hi,
Is ofono actually implementing the standard D-Bus properties interface?
I said this already, oFono does not support D-Bus ObjectManager or
related interfaces (see
http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfac...),
nor do we have plans to at the moment. The API was developed prior to
ObjectManager related changes to DBus. Changing over would be quite
invasive, require API changes and the the API is structured similarly
enough anyway. Since the API is currently frozen, support of
ObjectManager will have to wait until oFono 2.x.
Interfaces that are not supported by a particular hardware or modem
state are not reported in introspection. Refer to Modem.Interfaces
property.
Properties are not reported in introspection data. Some properties are
optional and require semantics that DBus does not support. Again, maybe
this will be added in oFono 2.x.
Regards,
-Denis
----------
From: Zeeshan Ali (Khattak) <zeeshanak(a)gnome.org>
Date: Wed, Jun 4, 2014 at 1:18 PM
To: Denis Kenzior <denis.kenzior(a)intel.com>
Cc: "Ramkrishna, Sriram" <sriram.ramkrishna(a)intel.com>, "Holtmann,
Marcel" <marcel.holtmann(a)intel.com>, "Aygon, Bertrand"
<bertrand.aygon(a)intel.com>
----------
From: Holtmann, Marcel <marcel.holtmann(a)intel.com>
Date: Wed, Jun 4, 2014 at 1:24 PM
To: "Zeeshan Ali (Khattak)" <zeeshanak(a)gnome.org>, "Kenzior,
Denis"
<denis.kenzior(a)intel.com>
Cc: "Ramkrishna, Sriram" <sriram.ramkrishna(a)intel.com>, "Aygon,
Bertrand" <bertrand.aygon(a)intel.com>
Hi Zeeshan,
what about asking these questions on ofono(a)ofono.org mailing list.
Regards
Marcel
________________________________________
From: zeenix(a)gmail.com [zeenix(a)gmail.com] on behalf of Zeeshan Ali
(Khattak) [zeeshanak(a)gnome.org]
Sent: Wednesday, June 04, 2014 05:18
To: Kenzior, Denis
Cc: Ramkrishna, Sriram; Holtmann, Marcel; Aygon, Bertrand
Subject: Re: Need some help regarding ofono library
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen, Deutschland
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk
Registergericht: Muenchen HRB 47456
Ust.-IdNr./VAT Registration No.: DE129385895
Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052
----------
From: Zeeshan Ali (Khattak) <zeeshanak(a)gnome.org>
Date: Wed, Jun 4, 2014 at 1:33 PM
To: "Holtmann, Marcel" <marcel.holtmann(a)intel.com>
Cc: "Kenzior, Denis" <denis.kenzior(a)intel.com>, "Ramkrishna,
Sriram"
<sriram.ramkrishna(a)intel.com>, "Aygon, Bertrand"
<bertrand.aygon(a)intel.com>
On Wed, Jun 4, 2014 at 1:24 PM, Holtmann, Marcel
<marcel.holtmann(a)intel.com> wrote:
Hi Zeeshan,
Hi Marcel,
what about asking these questions on ofono(a)ofono.org mailing list.
Sure. I should have done that from the start but since I saw no
releases for 2 years I assumed the project is unmaintained. Sri then
came along and connected us all. :)
I'll forward the whole discussion there now and lets talk further in there..
----------
From: Holtmann, Marcel <marcel.holtmann(a)intel.com>
Date: Wed, Jun 4, 2014 at 1:48 PM
To: "Zeeshan Ali (Khattak)" <zeeshanak(a)gnome.org>
Cc: "Kenzior, Denis" <denis.kenzior(a)intel.com>, "Ramkrishna,
Sriram"
<sriram.ramkrishna(a)intel.com>, "Aygon, Bertrand"
<bertrand.aygon(a)intel.com>
Hi Zeeshan,
start a new thread on the mailing list. I dislike people that just
take out of context discussion public. And on a side note, you could
have just looked at the oFono mailing list archive. And the last oFono
release is from end of December 2013. For a stable and complete
project a release every 6 month is pretty solid.
Regards
Marcel
________________________________________
From: zeenix(a)gmail.com [zeenix(a)gmail.com] on behalf of Zeeshan Ali
(Khattak) [zeeshanak(a)gnome.org]
Sent: Wednesday, June 04, 2014 05:33
To: Holtmann, Marcel
Cc: Kenzior, Denis; Ramkrishna, Sriram; Aygon, Bertrand
----------
From: Zeeshan Ali (Khattak) <zeeshanak(a)gnome.org>
Date: Wed, Jun 4, 2014 at 2:03 PM
To: "Holtmann, Marcel" <marcel.holtmann(a)intel.com>
Cc: "Kenzior, Denis" <denis.kenzior(a)intel.com>, "Ramkrishna,
Sriram"
<sriram.ramkrishna(a)intel.com>, "Aygon, Bertrand"
<bertrand.aygon(a)intel.com>
On Wed, Jun 4, 2014 at 1:48 PM, Holtmann, Marcel
<marcel.holtmann(a)intel.com> wrote:
Hi Zeeshan,
>
> start a new thread on the mailing list. I dislike people that just take out of
context discussion public.
No out of context discussion, I was going to forward the whole
discussion. Would that be ok?
And on a side note, you could have just looked at the oFono mailing
list archive. And the last oFono release is from end of December 2013. For a stable and
complete project a release every 6 month is pretty solid.
Well it didn't strike like a complete project to me due to all the
reasons I mentioned in this discussion. Although I must admit that I
should know better than to expect all releases to be announced on the
project website (I always forget that myself).
----------
From: Zeeshan Ali (Khattak) <zeeshanak(a)gnome.org>
Date: Wed, Jun 4, 2014 at 2:14 PM
To: "Holtmann, Marcel" <marcel.holtmann(a)intel.com>
Cc: "Kenzior, Denis" <denis.kenzior(a)intel.com>, "Ramkrishna,
Sriram"
<sriram.ramkrishna(a)intel.com>, "Aygon, Bertrand"
<bertrand.aygon(a)intel.com>
On Wed, Jun 4, 2014 at 2:03 PM, Zeeshan Ali (Khattak)
<zeeshanak(a)gnome.org> wrote:
> On Wed, Jun 4, 2014 at 1:48 PM, Holtmann, Marcel
> <marcel.holtmann(a)intel.com> wrote:
>
Hi Zeeshan,
>>
>> start a new thread on the mailing list. I dislike people that just take out of
context discussion public.
>
> No out of context discussion, I was going to forward the whole
> discussion. Would that be ok?
Oh and it seems I need to be subscribed to list to post there but I
get a 404 when I click subscribe:
https://lists.ofono.org/listinfo/ofono
----------
From: Zeeshan Ali (Khattak) <zeeshanak(a)gnome.org>
Date: Wed, Jun 4, 2014 at 2:19 PM
To: "Holtmann, Marcel" <marcel.holtmann(a)intel.com>
Cc: "Kenzior, Denis" <denis.kenzior(a)intel.com>, "Ramkrishna,
Sriram"
<sriram.ramkrishna(a)intel.com>, "Aygon, Bertrand"
<bertrand.aygon(a)intel.com>
On Wed, Jun 4, 2014 at 2:14 PM, Zeeshan Ali (Khattak)
<zeeshanak(a)gnome.org> wrote:
> On Wed, Jun 4, 2014 at 2:03 PM, Zeeshan Ali (Khattak)
> <zeeshanak(a)gnome.org> wrote:
>> On Wed, Jun 4, 2014 at 1:48 PM, Holtmann, Marcel
>> <marcel.holtmann(a)intel.com> wrote:
>>
Hi Zeeshan,
>>>
>>> start a new thread on the mailing list. I dislike people that just take out
of context discussion public.
>>
>> No out of context discussion, I was going to forward the whole
>> discussion. Would that be ok?
>
> Oh and it seems I need to be subscribed to list to post there but I
> get a 404 when I click subscribe:
>
>
https://lists.ofono.org/listinfo/ofono
Seems the link is wrong (more like obsolete, i'm guessing). The
correct one was on the 404 page. :)
https://lists.ofono.org/mailman/listinfo/ofono
--
Regards,
Zeeshan Ali (Khattak)
________________________________________
Befriend GNOME:
http://www.gnome.org/friends/