diff options
-rw-r--r-- | example/defaults.conf | 2 | ||||
-rw-r--r-- | example/scenarios/mod-srsue-airplane_mode_sim@.conf | 4 | ||||
-rw-r--r-- | src/osmo_gsm_tester/resource.py | 2 | ||||
-rw-r--r-- | src/osmo_gsm_tester/templates/srsue.conf.tmpl | 15 |
4 files changed, 23 insertions, 0 deletions
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 @@ 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 0000000..c05fba1 --- /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 8a93ea4..757a9c5 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 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 @@ nof_phy_threads = 1 #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. |