Harald Welte has submitted this change and it was merged. Change subject: bts: Make f_TC_meas_res_periodic work with real BTS ......................................................................
bts: Make f_TC_meas_res_periodic work with real BTS In a real BTS + OsmocomBB-L1, we cannot control fake ToA/RSSI, but we simply assume the signal is strong/good. Change-Id: I55a79f9e23118d2bb28f27cbcc7ab28712570ef1 --- M bts/BTS_Tests.ttcn 1 file changed, 10 insertions(+), 5 deletions(-) Approvals: Harald Welte: Looks good to me, approved Jenkins Builder: Verified diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn index e97c6d9..7b6fc2f 100644 --- a/bts/BTS_Tests.ttcn +++ b/bts/BTS_Tests.ttcn @@ -921,12 +921,17 @@ 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; - f_trxc_fake_rssi(100); + if (mp_bb_trxc_port != -1) { + g_pars.l1_pars.meas_ul.full.rxlev := dbm2rxlev(-100); + f_trxc_fake_rssi(100); - g_pars.l1_pars.timing_offset_256syms := 512; /* 2 symbols */ - f_trx_fake_toffs256(g_pars.l1_pars.timing_offset_256syms); + g_pars.l1_pars.timing_offset_256syms := 512; /* 2 symbols */ + f_trx_fake_toffs256(g_pars.l1_pars.timing_offset_256syms); + } else { + g_pars.l1_pars.timing_offset_256syms := 0; /* FIXME */ + g_pars.l1_pars.meas_ul.full.rxlev := dbm2rxlev(-55); /* FIXME */ + } + g_pars.l1_pars.meas_ul.sub.rxlev := g_pars.l1_pars.meas_ul.full.rxlev; f_est_dchan(); -- To view, visit https://gerrit.osmocom.org/7245 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I55a79f9e23118d2bb28f27cbcc7ab28712570ef1 Gerrit-PatchSet: 3 Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Owner: Harald Welte <lafo...@gnumonks.org> Gerrit-Reviewer: Harald Welte <lafo...@gnumonks.org> Gerrit-Reviewer: Jenkins Builder