diff options
authorPau Espin Pedrol <>2017-09-05 19:04:06 +0200
committerPau Espin Pedrol <>2017-09-09 18:36:49 +0000
commit77631215f79997b2406e796fba8087d32841e674 (patch)
parentee6e4912a4a13b78edd23f4cc2f3492eb4ca8ec0 (diff)
modem: log property changes from Modem interface
The purpose of this patch is to make sure we output to the extended log some information regarding the firwmare version of the modem being used, even if the test being run doesn't call print( explicitly. Printing just after waiting for Powered==true doesn't always work, because the properties are not populated after a while after. Calling Modem.GetProperties() immediately after receiving Powered==true, will provide with empty strings on properties such as Revision. 18:59:55.747412 bus /sierra_1: Setting Powered True 18:59:55.938889 bus /sierra_1: DBG: 'org.ofono.Modem'.PropertyChanged() -> Powered=True 18:59:55.964694 bus /sierra_1: DBG: Powered == True 18:59:55.987777 bus /sierra_1: DBG: interface enabled: org.ofono.VoiceCallManager 18:59:56.006278 bus /sierra_1: DBG: 'org.ofono.Modem'.PropertyChanged() -> Features=[] 18:59:56.027366 bus /sierra_1: Setting Online True 18:59:56.189991 bus /sierra_1: DBG: 'org.ofono.Modem'.PropertyChanged() -> Manufacturer=Sierra Wireless, Incorporated 18:59:56.210935 bus /sierra_1: DBG: interface enabled: org.ofono.LocationReporting 18:59:56.233217 bus /sierra_1: DBG: 'org.ofono.Modem'.PropertyChanged() -> Features=['gps'] 18:59:56.255807 bus /sierra_1: DBG: 'org.ofono.Modem'.PropertyChanged() -> Model=MC7304 18:59:56.279374 bus /sierra_1: DBG: 'org.ofono.Modem'.PropertyChanged() -> Online=True 18:59:56.315008 bus /sierra_1: DBG: Online == True 18:59:56.338779 bus /sierra_1: DBG: interface enabled: org.ofono.SimManager 18:59:56.357744 bus /sierra_1: DBG: 'org.ofono.Modem'.PropertyChanged() -> Features=['sim', 'gps'] 18:59:56.379532 bus /sierra_1: DBG: 'org.ofono.Modem'.PropertyChanged() -> Revision=SWI9X15C_06.03.32.04 r28324 CNSHZ-AR-BUILD 2015/05/25 01:09:15 18:59:56.401241 bus /sierra_1: DBG: 'org.ofono.Modem'.PropertyChanged() -> Serial=356853054230919 Change-Id: If215c7d63ce1b86314ed25f8e76413b15676b7f5
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osmo_gsm_tester/ b/src/osmo_gsm_tester/
index 3958b5e..e3858f9 100644
--- a/src/osmo_gsm_tester/
+++ b/src/osmo_gsm_tester/
@@ -224,6 +224,8 @@ class ModemDbusInteraction(log.Origin):
def on_property_change(self, name, value):
if name == 'Interfaces':
+ else:
+ self.dbg('%r.PropertyChanged() -> %s=%s' % (I_MODEM, name, value))
def on_interfaces_change(self, interfaces_now):
# First some logging.