summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-10-22 17:13:07 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-10-23 10:34:43 +0000
commite9571aaee55df396fb886938db7eeaf7e992a649 (patch)
tree41af0876f59e83e0fd086bc36467814d52f72e93
parent109e6aaaa122d920d32086970716cdc1186021bc (diff)
bts: Introduce mp_ul_rxlev_exp and use mp_rxlev_exp to craft meas rep
-rw-r--r--bts/BTS_Tests.ttcn11
1 files changed, 5 insertions, 6 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 2f48b0f..a2d4ca4 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -58,6 +58,7 @@ modulepar {
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;
@@ -518,11 +519,11 @@ private template ConnHdlrPars t_Pars(template RslChannelNr chan_nr,
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
}
},
@@ -1162,7 +1163,7 @@ altstep as_l1_sacch() runs on ConnHdlr {
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);
@@ -1405,10 +1406,8 @@ function f_TC_meas_res_periodic(charstring id) runs on ConnHdlr {
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(rxlev2dbm(mp_ul_rxlev_exp));
f_trx_fake_toffs256(g_pars.l1_pars.timing_offset_256syms);
}