Change in osmo-gsm-tester[master]: srs_ue: add scenario for airplane mode simulation in srsUE

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

srs_andre gerrit-no-reply at lists.osmocom.org
Tue Mar 24 08:39:00 UTC 2020


srs_andre has submitted this change. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17577 )

Change subject: srs_ue: add scenario for airplane mode simulation in srsUE
......................................................................

srs_ue: add scenario for airplane mode simulation in srsUE

Change-Id: I5db2ff325ce4b4236c1ceec0831dd7420d52dedb
---
M example/defaults.conf
A example/scenarios/mod-srsue-airplane_mode_sim at .conf
M src/osmo_gsm_tester/resource.py
M src/osmo_gsm_tester/templates/srsue.conf.tmpl
4 files changed, 23 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, approved



diff --git a/example/defaults.conf b/example/defaults.conf
index 60539c8..dcb84db 100644
--- a/example/defaults.conf
+++ b/example/defaults.conf
@@ -108,3 +108,5 @@
 
 srsue:
   enable_pcap: false
+  airplane_t_on_ms: -1
+  airplane_t_off_ms: -1
diff --git a/example/scenarios/mod-srsue-airplane_mode_sim at .conf b/example/scenarios/mod-srsue-airplane_mode_sim at .conf
new file mode 100644
index 0000000..c05fba1
--- /dev/null
+++ b/example/scenarios/mod-srsue-airplane_mode_sim at .conf
@@ -0,0 +1,4 @@
+modifiers:
+  modem:
+    - airplane_t_on_ms: ${param1}
+      airplane_t_off_ms: ${param2}
diff --git a/src/osmo_gsm_tester/resource.py b/src/osmo_gsm_tester/resource.py
index 8a93ea4..757a9c5 100644
--- a/src/osmo_gsm_tester/resource.py
+++ b/src/osmo_gsm_tester/resource.py
@@ -106,6 +106,8 @@
         'modem[].features[]': schema.MODEM_FEATURE,
         'modem[].rf_dev_type': schema.STR,
         'modem[].rf_dev_args': schema.STR,
+        'modem[].airplane_t_on_ms': schema.INT,
+        'modem[].airplane_t_off_ms': schema.INT,
         'osmocon_phone[].serial_device': schema.STR,
     }
 
diff --git a/src/osmo_gsm_tester/templates/srsue.conf.tmpl b/src/osmo_gsm_tester/templates/srsue.conf.tmpl
index ffcafcd..12081c5 100644
--- a/src/osmo_gsm_tester/templates/srsue.conf.tmpl
+++ b/src/osmo_gsm_tester/templates/srsue.conf.tmpl
@@ -336,6 +336,21 @@
 #force_ul_amplitude = 0
 
 #####################################################################
+# Simulation configuration options
+#
+# The UE simulation supports turning on and off airplane mode in the UE.
+# The actions are carried periodically until the UE is stopped.
+#
+# airplane_t_on_ms:   Time to leave airplane mode turned on (in ms)
+#
+# airplane_t_off_ms:  Time to leave airplane mode turned off (in ms)
+#
+#####################################################################
+[sim]
+airplane_t_on_ms  = ${ue.airplane_t_on_ms}
+airplane_t_off_ms = ${ue.airplane_t_off_ms}
+
+#####################################################################
 # General configuration options
 #
 # metrics_csv_enable:   Write UE metrics to CSV file.

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17577
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: I5db2ff325ce4b4236c1ceec0831dd7420d52dedb
Gerrit-Change-Number: 17577
Gerrit-PatchSet: 2
Gerrit-Owner: srs_andre <andre at softwareradiosystems.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: srs_andre <andre at softwareradiosystems.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200324/42fcbbfe/attachment.htm>


More information about the gerrit-log mailing list