Hi List,
I am trying to get something working with the SMS (and, for testing,
Contacts) stuff with python.
Here is my code:
-------------------------------------------8<--------------------------
import dbus
bus = dbus.SystemBus()
manager_proxy = bus.get_object('org.freedesktop.ModemManager',
'/org/freedesktop/ModemManager')
manager_iface = dbus.Interface(manager_proxy,
dbus_interface='org.freedesktop.ModemManager')
modems = manager_iface.EnumerateDevices()
proxy = bus.get_object('org.freedesktop.ModemManager', modems[0])
sms = dbus.Interface(proxy,
dbus_interface='org.freedesktop.ModemManager.Modem.Gsm.SMS')
# 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,
dbus_interface='org.freedesktop.ModemManager.Modem.Gsm.Contacts')
# 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()
-------------------------------------------8<--------------------------
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).
Regards
Ole
_______________________________________________
NetworkManager-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/networkmanager-list