[MERGED] osmo-gsm-tester[master]: ofono_client: Set modem online before connecting to the network

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/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Tue May 2 12:30:58 UTC 2017


Neels Hofmeyr has submitted this change and it was merged.

Change subject: ofono_client: Set modem online before connecting to the network
......................................................................


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(-)

Approvals:
  Neels Hofmeyr: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo_gsm_tester/ofono_client.py b/src/osmo_gsm_tester/ofono_client.py
index a10784f..4476fdb 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
@@ -124,6 +129,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: merged
Gerrit-Change-Id: I62ba1bfbdee64b18a443e8ad3974bb035b0be344
Gerrit-PatchSet: 2
Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: neels <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list