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.orgPau Espin Pedrol has uploaded this change for review. ( https://gerrit.osmocom.org/9492
Change subject: bts: Set L1CTL rxlev_exp as module parameter
......................................................................
bts: Set L1CTL rxlev_exp as module parameter
Change-Id: If63e5c2d6abe1dd6dddd1a12e703ed069b940ab4
---
M bts/BTS_Tests.ttcn
M library/L1CTL_PortType.ttcn
M library/LAPDm_RAW_PT.ttcn
3 files changed, 5 insertions(+), 4 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/92/9492/1
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 36b1f9d..428eb21 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -56,6 +56,7 @@
integer mp_tolerance_rxlev := 3;
charstring mp_ctrl_ip := "127.0.0.1";
integer mp_ctrl_port := 4238;
+ integer mp_rxlev_exp := 57;
}
type record of RslChannelNr ChannelNrs;
@@ -396,7 +397,7 @@
}
private function f_l1_tune(L1CTL_PT L1CTL) {
- f_L1CTL_FBSB(L1CTL, { false, mp_trx0_arfcn }, CCCH_MODE_COMBINED);
+ f_L1CTL_FBSB(L1CTL, { false, mp_trx0_arfcn }, mp_rxlev_exp, CCCH_MODE_COMBINED);
}
private function f_trxc_connect() runs on ConnHdlr {
diff --git a/library/L1CTL_PortType.ttcn b/library/L1CTL_PortType.ttcn
index 51a3936..7ddf398 100644
--- a/library/L1CTL_PortType.ttcn
+++ b/library/L1CTL_PortType.ttcn
@@ -32,10 +32,10 @@
return len;
}
- function f_L1CTL_FBSB(L1CTL_PT pt, Arfcn arfcn, L1ctlCcchMode ccch_mode := CCCH_MODE_COMBINED) {
+ function f_L1CTL_FBSB(L1CTL_PT pt, Arfcn arfcn, integer rxlev_exp, L1ctlCcchMode ccch_mode := CCCH_MODE_COMBINED) {
timer T := 15.0;
for (var integer i := 0; i < 10; i := i+1) {
- pt.send(ts_L1CTL_FBSB_REQ(arfcn, valueof(t_L1CTL_FBSB_F_ALL), 0, ccch_mode, 57));
+ pt.send(ts_L1CTL_FBSB_REQ(arfcn, valueof(t_L1CTL_FBSB_F_ALL), 0, ccch_mode, rxlev_exp));
T.start
alt {
[] pt.receive(tr_L1CTL_FBSB_CONF(0)) { return; };
diff --git a/library/LAPDm_RAW_PT.ttcn b/library/LAPDm_RAW_PT.ttcn
index bdfc50b..5ef1908 100644
--- a/library/LAPDm_RAW_PT.ttcn
+++ b/library/LAPDm_RAW_PT.ttcn
@@ -186,7 +186,7 @@
set_ph_state(PH_STATE_SEARCHING_BCH);
/* send FB/SB req to sync to cell */
- f_L1CTL_FBSB(L1CTL, arfcn, mode);
+ f_L1CTL_FBSB(L1CTL, arfcn, 57, mode);
set_ph_state(PH_STATE_BCH);
}
--
To view, visit https://gerrit.osmocom.org/9492
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: If63e5c2d6abe1dd6dddd1a12e703ed069b940ab4
Gerrit-Change-Number: 9492
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/20180607/0a3fdda0/attachment.htm>