From 35234f2e21333d1c5cdf1877863f3493095fbd59 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Mon, 23 Mar 2020 18:52:41 +0100 Subject: [PATCH] srs_ue: add scenario for airplane mode simulation in srsUE Change-Id: I5db2ff325ce4b4236c1ceec0831dd7420d52dedb --- example/defaults.conf | 2 ++ .../scenarios/mod-srsue-airplane_mode_sim@.conf | 4 ++++ src/osmo_gsm_tester/resource.py | 2 ++ src/osmo_gsm_tester/templates/srsue.conf.tmpl | 15 +++++++++++++++ 4 files changed, 23 insertions(+) create mode 100644 example/scenarios/mod-srsue-airplane_mode_sim@.conf diff --git a/example/defaults.conf b/example/defaults.conf index 60539c8a..dcb84db0 100644 --- a/example/defaults.conf +++ b/example/defaults.conf @@ -108,3 +108,5 @@ srsenb: srsue: enable_pcap: false + airplane_t_on_ms: -1 + airplane_t_off_ms: -1 diff --git a/example/scenarios/mod-srsue-airplane_mode_sim@.conf b/example/scenarios/mod-srsue-airplane_mode_sim@.conf new file mode 100644 index 00000000..c05fba1e --- /dev/null +++ b/example/scenarios/mod-srsue-airplane_mode_sim@.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 8a93ea49..757a9c5b 100644 --- a/src/osmo_gsm_tester/resource.py +++ b/src/osmo_gsm_tester/resource.py @@ -106,6 +106,8 @@ RESOURCES_SCHEMA = { '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 ffcafcd8..12081c50 100644 --- a/src/osmo_gsm_tester/templates/srsue.conf.tmpl +++ b/src/osmo_gsm_tester/templates/srsue.conf.tmpl @@ -335,6 +335,21 @@ nof_phy_threads = 1 #pdsch_8bit_decoder = false #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 #