2014-03-11 16:39:22 +00:00
|
|
|
#!/usr/bin/python3
|
2010-06-06 18:11:57 +00:00
|
|
|
|
|
|
|
import dbus, sys
|
|
|
|
|
|
|
|
bus = dbus.SystemBus()
|
|
|
|
|
|
|
|
if len(sys.argv) == 2:
|
|
|
|
path = sys.argv[1]
|
|
|
|
else:
|
|
|
|
manager = dbus.Interface(bus.get_object('org.ofono', '/'),
|
|
|
|
'org.ofono.Manager')
|
2010-09-09 19:37:37 +00:00
|
|
|
modems = manager.GetModems()
|
|
|
|
path = modems[0][0]
|
2010-06-06 18:11:57 +00:00
|
|
|
|
|
|
|
radiosettings = dbus.Interface(bus.get_object('org.ofono', path),
|
|
|
|
'org.ofono.RadioSettings')
|
|
|
|
|
|
|
|
properties = radiosettings.GetProperties()
|
|
|
|
|
2014-03-11 16:39:18 +00:00
|
|
|
print("Technology preference: %s" % (properties["TechnologyPreference"]))
|