This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Review at https://gerrit.osmocom.org/2456
ofono_client: Set modem online before connecting to the network
Change-Id: I62ba1bfbdee64b18a443e8ad3974bb035b0be344
---
M src/osmo_gsm_tester/ofono_client.py
1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/56/2456/1
diff --git a/src/osmo_gsm_tester/ofono_client.py b/src/osmo_gsm_tester/ofono_client.py
index 974746c..44f959a 100644
--- a/src/osmo_gsm_tester/ofono_client.py
+++ b/src/osmo_gsm_tester/ofono_client.py
@@ -76,6 +76,11 @@
self.dbus_obj().SetProperty('Powered', Variant('b', on))
test.poll()
+ def set_online(self, on=True):
+ test.poll()
+ self.dbus_obj().SetProperty('Online', Variant('b', on))
+ test.poll()
+
def dbus_obj(self):
if self._dbus_obj is not None:
return self._dbus_obj
@@ -141,6 +146,7 @@
'set the modem up to connect to MCC+MNC from NITB config'
self.log('connect to', nitb)
self.set_powered()
+ self.set_online()
if not self.has_interface(I_NETREG):
self.log('No %r interface, hoping that the modem connects by itself' % I_NETREG)
else:
--
To view, visit https://gerrit.osmocom.org/2456
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I62ba1bfbdee64b18a443e8ad3974bb035b0be344
Gerrit-PatchSet: 1
Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>