Change in osmo-ttcn3-hacks[master]: bts: Add parameter to set and expect a specific MS power level

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

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Fri Sep 28 14:21:05 UTC 2018


Pau Espin Pedrol has uploaded this change for review. ( https://gerrit.osmocom.org/11148


Change subject: bts: Add parameter to set and expect a specific MS power level
......................................................................

bts: Add parameter to set and expect a specific MS power level

This change uses recently added ts_L1CTL_DATA_REQ_SACCH to be able to
set the L1 Header parameters to match the expected MS power level
announced by the BTS.

Change-Id: Iedab8681a0ba4652a6bb1c001418599a4ff746b6
---
M bts/BTS_Tests.ttcn
1 file changed, 10 insertions(+), 5 deletions(-)



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

diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 4209e4e..e7df027 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -57,6 +57,7 @@
 	integer mp_tolerance_rxlev := 3;
 	integer mp_tolerance_timing_offset_256syms := 0;
 	integer mp_rxlev_exp := 57;
+	integer mp_ms_power_level_exp := 7;
 	integer mp_ms_actual_ta_exp := 0;
 	integer mp_timing_offset_256syms_exp := 512;
 }
@@ -167,7 +168,7 @@
 
 template (value) CellSelectionParameters ts_CellSelPar_default := {
 	cell_resel_hyst_2dB := 2,
-	ms_txpwr_max_cch := 7,
+	ms_txpwr_max_cch := mp_ms_power_level_exp,
 	acs := '0'B,
 	neci := true,
 	rxlev_access_min := 0
@@ -526,7 +527,7 @@
 		},
 		timing_offset_256syms := mp_timing_offset_256syms_exp,
 		bs_power_level := 0,
-		ms_power_level := 0,
+		ms_power_level := mp_ms_power_level_exp,
 		ms_actual_ta := mp_ms_actual_ta_exp
 	},
 	spec := omit,
@@ -1163,9 +1164,13 @@
 		var GsmRrL3Message meas_rep := valueof(ts_MEAS_REP(true, 23, 23, 0, 0, omit));
 		var LapdmFrameAB lb := valueof(ts_LAPDm_AB(0, false, false, enc_GsmRrL3Message(meas_rep)));
 		log("LAPDm: ", lb);
-		var octetstring pl := '0000'O & enc_LapdmFrameAB(lb);
-		L1CTL.send(ts_L1CTL_DATA_REQ(g_chan_nr, ts_RslLinkID_SACCH(0),
-			f_pad_oct(pl, 23, '2B'O)));
+
+		var L1ctlDataReq data_req := {
+			l1header := valueof(ts_SACCH_L1_HEADER(g_pars.l1_pars.ms_power_level, false, g_pars.l1_pars.ms_actual_ta)),
+			l2_payload := f_pad_oct(enc_LapdmFrameAB(lb), 21, '2B'O)
+		}
+		log("Sending Measurement Report: ", data_req);
+		L1CTL.send(ts_L1CTL_DATA_REQ_SACCH(g_chan_nr, ts_RslLinkID_SACCH(0), data_req));
 		repeat;
 		}
 }

-- 
To view, visit https://gerrit.osmocom.org/11148
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: Iedab8681a0ba4652a6bb1c001418599a4ff746b6
Gerrit-Change-Number: 11148
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180928/120157a3/attachment.htm>


More information about the gerrit-log mailing list