Change in osmo-ttcn3-hacks[master]: bts: Introduce mp_ul_rxlev_exp and use mp_rxlev_exp to craft meas rep

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
Mon Oct 22 16:32:15 UTC 2018


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


Change subject: bts: Introduce mp_ul_rxlev_exp and use mp_rxlev_exp to craft meas rep
......................................................................

bts: Introduce mp_ul_rxlev_exp and use mp_rxlev_exp to craft meas rep

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



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

diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 907a76a..bf85818 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -58,6 +58,7 @@
 	integer mp_tolerance_rxlev := 3;
 	integer mp_tolerance_timing_offset_256syms := 0;
 	integer mp_rxlev_exp := 57;
+	integer mp_ul_rxlev_exp := 10;
 	integer mp_ms_power_level_exp := 7;
 	integer mp_ms_actual_ta_exp := 0;
 	integer mp_timing_offset_256syms_exp := 512;
@@ -530,11 +531,11 @@
 		toa256_enabled := false,
 		meas_ul := {
 			full := {
-				rxlev := dbm2rxlev(-53),
+				rxlev := mp_ul_rxlev_exp,
 				rxqual := 0
 			},
 			sub := {
-				rxlev := dbm2rxlev(-53),
+				rxlev := mp_ul_rxlev_exp,
 				rxqual := 0
 			}
 		},
@@ -1174,7 +1175,7 @@
 	var L1ctlDlMessage l1_dl;
 	[] L1CTL.receive(tr_L1CTL_DATA_IND(g_chan_nr, tr_RslLinkID_SACCH(?))) -> value l1_dl {
 		log("SACCH received: ", l1_dl.payload.data_ind.payload);
-		var GsmRrL3Message meas_rep := valueof(ts_MEAS_REP(true, 23, 23, 0, 0, omit));
+		var GsmRrL3Message meas_rep := valueof(ts_MEAS_REP(true, mp_rxlev_exp, mp_rxlev_exp, 0, 0, omit));
 		var LapdmFrameAB lb := valueof(ts_LAPDm_AB(0, false, false, enc_GsmRrL3Message(meas_rep)));
 		log("LAPDm: ", lb);
 
@@ -1417,10 +1418,8 @@
 	f_l1_tune(L1CTL);
 	RSL.clear;
 
-	g_pars.l1_pars.meas_ul.full.rxlev := dbm2rxlev(-100);
-	g_pars.l1_pars.meas_ul.sub.rxlev := g_pars.l1_pars.meas_ul.full.rxlev;
 	if (mp_bb_trxc_port != -1) {
-		f_trxc_fake_rssi(100);
+		f_trxc_fake_rssi(-1 * rxlev2dbm(mp_ul_rxlev_exp));
 		f_trx_fake_toffs256(g_pars.l1_pars.timing_offset_256syms);
 	}
 

-- 
To view, visit https://gerrit.osmocom.org/11430
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: I1c8f05bde6f9dc8e8a649e877209192d829dd923
Gerrit-Change-Number: 11430
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/20181022/86f5b4cd/attachment.htm>


More information about the gerrit-log mailing list