Modem-Manager SMS/Contacts not working?

Hi List,

I am trying to get something working with the SMS (and, for testing,
Contacts) stuff with python.

Here is my code:

import dbus

bus = dbus.SystemBus()
manager_proxy = bus.get_object('org.freedesktop.ModemManager',
manager_iface = dbus.Interface(manager_proxy,

modems = manager_iface.EnumerateDevices()

proxy = bus.get_object('org.freedesktop.ModemManager', modems[0])

sms = dbus.Interface(proxy,

# Each of the following gives an DBusException:
# org.freedesktop.ModemManager.Modem.OperationNotSupported:
# Operation not supported
my_sms_list = sms.List()
my_first_sms = sms.Get(0)
my_smsc = sms.GetSmsc()

contacts = dbus.Interface(proxy,
# The following gives an DBusException:
# org.freedesktop.DBus.Error.UnknownMethod:
# Method "List" with signature "" on interface
#"org.freedesktop.ModemManager.Modem.Gsm.Contacts" doesn't exist
my_contacts = contacts.List()

What is wrong with my code? The modem exists; I can access f.e. the
"Card" and the "Network" interfaces. I tried it with an UMTS modem (iCon
210) and with a mobile phone (W810i) connected via USB or bluetooth.

I found some mailing list entries that these interfaces are implemented;
are they really or are they still vapourware?

The version I installed is
modemmanager-0.2.git.2009.10.14t233208.16fe300 (Ubuntu 9.10).



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]