On Thursday 23 July 2009, matzehuber wrote: > can someone help me to get gprs to work ?
You're not getting the dbus object bit right. Try replacing the lines with the modified ones below. > i tried : > self.bus = dbus.SystemBus() > self.gprs = self.bus.get_object('org.freesmartphone.GSM', > '/org/freesmartphone/GSM') self.gprs = self.bus.get_object('org.freesmartphone.ogsmd', '/org/freesmartphone/GSM/Device') self.pdp = dbus.Interface(self.gprs, 'org.freesmartphone.GSM.PDP') > self.gprs.ActivateContext(self.apn, self.login, self.password, > reply_handler = self.dbusnothing, error_handler = self.dbusnothing) self.pdp.ActivateContext(self.apn, self.login, self.password, reply_handler = self.dbusnothing, error_handler = self.dbusnothing) > and got: > Using **pending_return in dbus_connection_send_with_reply_setup() without > pending_setup is deprecated and strongly discouraged > Using **pending_return in dbus_connection_send_with_reply_setup() without > pending_setup is deprecated and strongly discouraged > Using **pending_return in dbus_connection_send_with_reply_setup() without > pending_setup is deprecated and strongly discouraged > Traceback (most recent call last): > File "gprsup.py", line 62, in <module> > x = Gprs() > File "gprsup.py", line 15, in __init__ > self.gprs = self.bus.get_object('org.freesmartphone.GSM', > '/org/freesmartphone/GSM') > File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 244, in > get_object > follow_name_owner_changes=follow_name_owner_changes) > File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 241, in > __init__ > self._named_service = conn.activate_name_owner(bus_name) > File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 183, in > activate_name_owner > self.start_service_by_name(bus_name) > File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 281, in > start_service_by_name > 'su', (bus_name, flags))) > File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 622, in > call_blocking > message, timeout) > dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: > The name org.freesmartphone.GSM was not provided by any .service files _______________________________________________ devel mailing list devel@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/devel