Change in osmo-ttcn3-hacks[master]: bts: Extend BTS_Tests.ttcn with test for RSL channel activation with ...

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

Eric Wild gerrit-no-reply at lists.osmocom.org
Thu May 23 17:35:31 UTC 2019


Eric Wild has uploaded this change for review. ( https://gerrit.osmocom.org/14151


Change subject: bts: Extend BTS_Tests.ttcn with test for RSL channel activation with TA from initial activation onwards
......................................................................

bts: Extend BTS_Tests.ttcn with test for RSL channel activation with TA from initial activation onwards

Change-Id: I4b2eec223e961aeedfd8afa77cb671d2842910fb
Related: OS##3750
---
M bts/BTS_Tests.ttcn
1 file changed, 50 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/51/14151/1

diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 7912ff6..0eba242 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -1783,6 +1783,55 @@
 	Misc_Helpers.f_shutdown(__BFILE__, __LINE__);
 }
 
+/* establish DChan, verify that the BTS sets the TA in the first SACCH L1 header. 
+TA for the IMM ASS messages is still controlled by g_pars.l1_pars.ms_actual_ta! */
+function f_tc_rsl_chan_initial_ta(charstring id) runs on ConnHdlr {
+	var L1ctlDlMessage l1_dl;
+	var uint5_t ta_to_test := 16;
+
+
+	f_l1_tune(L1CTL);
+	RSL.clear;
+
+	/* tell fake_trx to use a given timing offset for all bursts */
+	f_trx_fake_toffs256(ta_to_test*256);
+
+	f_est_dchan(more_ies :={valueof(t_RSL_IE(RSL_IE_TIMING_ADVANCE, RSL_IE_Body:{timing_adv := ta_to_test}))} );
+
+
+	alt {
+
+	/* Pick all SACCH blocks for checking */
+	[] L1CTL.receive(tr_L1CTL_DATA_IND(g_chan_nr, tr_RslLinkID_SACCH(?))) -> value l1_dl {
+
+		/* The second byte of the L1 header contains the TA. */
+		if (not (l1_dl.payload.data_ind.payload[1] == int2oct(ta_to_test, 1))) {
+			setverdict(fail, "TA in L1 header does not match the signaled (RSL) TA.");
+		}
+
+		}
+
+	/* Ignore all other blocks */
+	[] L1CTL.receive { repeat; }
+
+	}
+
+	f_rsl_chan_deact();
+	f_L1CTL_DM_REL_REQ(L1CTL, g_chan_nr);
+
+	setverdict(pass);
+}
+
+testcase TC_rsl_chan_initial_ta() runs on test_CT {
+	var ConnHdlr vc_conn;
+	var ConnHdlrPars pars;
+	f_init(testcasename());
+	pars := valueof(t_Pars(t_RslChanNr_Bm(1), ts_RSL_ChanMode_SIGN));
+	vc_conn := f_start_handler(refers(f_tc_rsl_chan_initial_ta), pars);
+	vc_conn.done;
+	Misc_Helpers.f_shutdown(__BFILE__, __LINE__);
+}
+
 /* Test if a channel without valid uplink bursts generates RSL CONN FAIL IND (TS 48.058 4.10) */
 private function f_TC_conn_fail_crit(charstring id) runs on ConnHdlr {
 	f_l1_tune(L1CTL);
@@ -4621,6 +4670,7 @@
 	execute( TC_meas_res_sign_sdcch8() );
 	execute( TC_meas_res_sign_tchh_toa256() );
 	execute( TC_rsl_ms_pwr_ctrl() );
+	execute( TC_rsl_chan_initial_ta() );
 	execute( TC_conn_fail_crit() );
 	execute( TC_paging_imsi_80percent() );
 	execute( TC_paging_tmsi_80percent() );

-- 
To view, visit https://gerrit.osmocom.org/14151
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4b2eec223e961aeedfd8afa77cb671d2842910fb
Gerrit-Change-Number: 14151
Gerrit-PatchSet: 1
Gerrit-Owner: Eric Wild <ewild at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190523/0f2bee3f/attachment.htm>


More information about the gerrit-log mailing list