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/.
pespin gerrit-no-reply at lists.osmocom.orgpespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18991 )
Change subject: bts: Introduce TC_tx_power_ramp_adm_state_change
......................................................................
bts: Introduce TC_tx_power_ramp_adm_state_change
Change-Id: I03efdfe19e9cecadb0d03811a7029b54bf6281da
---
M bts/BTS_Tests.ttcn
1 file changed, 54 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/91/18991/1
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index c781fdb..08d5795 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -2214,6 +2214,59 @@
Misc_Helpers.f_shutdown(__BFILE__, __LINE__);
}
+/* Verify Tx power:
+ * + ramping down during ADM state UNLOCKED->LOCKED
+ * + ramping up during ADM state LOCKED->UNLOCKED
+ */
+function f_TC_tx_power_ramp_adm_state_change(charstring id) runs on ConnHdlr {
+ var L1ctlDlMessage l1_dl;
+ var integer last_rx_lvl;
+
+ f_connhdlr_init_vty_bsc();
+
+ f_l1_tune(L1CTL);
+ RSL.clear;
+
+ /* Wait until BTS is started and at full power */
+ var integer max_rx_lvl := f_wait_ramp_up();
+ log("Reached nominal level ", max_rx_lvl, ", changing ADM state to LOCKED");
+
+ log("ADM STATE UNLOCKED->LOCKED");
+ f_vty_enter_cfg_trx(BSCVTY);
+ f_vty_transceive(BSCVTY, "rf_locked 1");
+ last_rx_lvl := max_rx_lvl;
+ f_verify_ramp_down(max_rx_lvl);
+
+ /* Let some time after we received 0dBm, then check we don't receive BCCH
+ *anymore because scheduler has stopped after ramping down */
+ f_sleep(2.0);
+ L1CTL.clear;
+ timer Tlocked := 2.0;
+ Tlocked.start;
+ alt {
+ [] L1CTL.receive(tr_L1CTL_DATA_IND(t_RslChanNr_BCCH(0), ?)) -> value l1_dl {
+ Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail,
+ log2str("Received data_ind during rf_locked: ", l1_dl));
+ }
+ [] L1CTL.receive { repeat; }
+ [] Tlocked.timeout { setverdict(pass, "Didn't receive data_ind while in rf_locked state."); }
+ }
+
+ log("ADM STATE LOCKED->UNLOCKED");
+ f_vty_transceive(BSCVTY, "rf_locked 0");
+ f_verify_ramp_up();
+}
+testcase TC_tx_power_ramp_adm_state_change() runs on test_CT {
+ var ConnHdlr vc_conn;
+ var ConnHdlrPars pars;
+ f_init();
+ pars := valueof(t_Pars(t_RslChanNr_Bm(0), ts_RSL_ChanMode_SIGN));
+ vc_conn := f_start_handler(refers(f_TC_tx_power_ramp_adm_state_change), pars,
+ pcu_comp := false, trxc_comp := true);
+ vc_conn.done;
+ Misc_Helpers.f_shutdown(__BFILE__, __LINE__);
+}
+
function f_check_meas_bs_power_level(integer level) runs on ConnHdlr {
timer T := 8.0;
T.start;
@@ -6633,6 +6686,7 @@
execute( TC_meas_res_sign_tchh_toa256() );
execute( TC_tx_power_start_ramp_up_bcch() );
execute( TC_tx_power_start_ramp_down_bcch() );
+ execute( TC_tx_power_ramp_adm_state_change() );
execute( TC_rsl_bs_pwr_static_ass() );
execute( TC_rsl_bs_pwr_static_power_control() );
execute( TC_rsl_ms_pwr_ctrl() );
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18991
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I03efdfe19e9cecadb0d03811a7029b54bf6281da
Gerrit-Change-Number: 18991
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200623/1223f219/attachment.htm>