aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-05-31 12:05:20 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2017-06-12 15:33:17 +0200
commit56bf31c82a6b38d2a3b5bdb2699d2981f704c6d3 (patch)
treee6a43ca5f8a0a4f2739dd0a2fa81d64c47b45cea
parentf8e61864065aba72e0e8df7438e28e4127a77f5a (diff)
ofono_client: Print debug information about network registration changes
-rw-r--r--src/osmo_gsm_tester/ofono_client.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osmo_gsm_tester/ofono_client.py b/src/osmo_gsm_tester/ofono_client.py
index 83f3e0d..46300ec 100644
--- a/src/osmo_gsm_tester/ofono_client.py
+++ b/src/osmo_gsm_tester/ofono_client.py
@@ -259,6 +259,7 @@ class Modem(log.Origin):
self.dbus = ModemDbusInteraction(self.path)
self.dbus.required_signals = {
I_SMS: ( ('IncomingMessage', self._on_incoming_message), ),
+ I_NETREG: ( ('PropertyChanged', self._on_netreg_property_changed), ),
}
self.dbus.watch_interfaces()
@@ -319,6 +320,9 @@ class Modem(log.Origin):
def ki(self):
return self.conf.get('ki')
+ def _on_netreg_property_changed(self, name, value):
+ self.dbg('%r.PropertyChanged() -> %s=%s' % (I_NETREG, name, value))
+
def connect(self, nitb):
'set the modem up to connect to MCC+MNC from NITB config'
self.log('connect to', nitb)