We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2014-01-23 13:43:12 +0200

How to access phone specific behaviour via dbus using the ofono API?

Looking after a reliable source for the ofono APIs, I finally got something in my hands that looks quite good (nemomobile-packages/ofono).

However even when trying seemingly obvious stuff like the following, I get an error stating that the method is unknown:

dbus-send --print-reply --system --dest=org.ofono /ril_0 org.ofono.SimManager.GetProperties

Am I doing something fundamentally wrong here? Admittedly, my Jolla currently hasn't a SIM card inserted, nevertheless I wouldn't expect an error message telling me that the GetProperties method is unknown.

Interestingly, querying GetProperties of org.ofono.Modem works without any issues:

dbus-send --print-reply --system --dest=org.ofono /ril_0 org.ofono.Modem.GetProperties

My particular interest goes towards the Powered property of org.ofono.CellBroadcast, as it allow a good guess about the current connectivity. This one doesn't work either for me.

Any hints welcome, maybe I just don't see the obvious.

How to access phone specific behaviour via dbus using the ofono API?

Looking after a reliable source for the ofono APIs, I finally got something in my hands that looks quite good (nemomobile-packages/ofono).

However even when trying seemingly obvious stuff like the following, I get an error stating that the method is unknown:

dbus-send --print-reply --system --dest=org.ofono /ril_0 org.ofono.SimManager.GetProperties

Am I doing something fundamentally wrong here? Admittedly, my Jolla currently hasn't a SIM card inserted, nevertheless I wouldn't expect an error message telling me that the GetProperties method is unknown.

Interestingly, querying GetProperties of org.ofono.Modem works without any issues:

dbus-send --print-reply --system --dest=org.ofono /ril_0 org.ofono.Modem.GetProperties

My particular interest goes towards the Powered property of org.ofono.CellBroadcast, as it allow allows a good guess about the current connectivity. This one doesn't work either for me.me either.

Any hints welcome, maybe I just don't see the obvious.