summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-10-19 17:34:52 +0700
committerlaforge <laforge@osmocom.org>2020-10-19 17:36:19 +0000
commit52787bf97f8ee9f5bb3228c1c79e4bbb4591bad6 (patch)
treeecea25a6c2c3b43722e6acb939703ff0757a7145 /library
parentd0ec1490c656748eb80fc74fae9f107479f8854d (diff)
BTS_Tests: indicate TCH mode to the L1 in f_est_dchan()
Otherwise the L1 (trxcon or Calypso PHY) would 'think' that we're in signalling mode, and would not send us Bad Frame Indications. Change-Id: I0ade3bd63f604c7f0665124b182a023d50030d0b Depends: I6f403ed0506b4b1872361d9976d3186bfe514b52 Related: OS#4799
Diffstat (limited to 'library')
-rw-r--r--library/L1CTL_PortType.ttcn14
1 files changed, 14 insertions, 0 deletions
diff --git a/library/L1CTL_PortType.ttcn b/library/L1CTL_PortType.ttcn
index 7d69b46..19b3ee3 100644
--- a/library/L1CTL_PortType.ttcn
+++ b/library/L1CTL_PortType.ttcn
@@ -80,6 +80,20 @@ module L1CTL_PortType {
}
}
+ function f_L1CTL_TCH_MODE(L1CTL_PT pt, L1ctlTchMode tch_mode) {
+ timer T := 2.0;
+ pt.send(ts_L1CTL_TCH_MODE_REQ(tch_mode));
+ T.start;
+ alt {
+ [] pt.receive(tr_L1CTL_MsgType(L1CTL_TCH_MODE_CONF)) { }
+ [] pt.receive { repeat; }
+ [] T.timeout {
+ setverdict(fail, "Timeout waiting for L1CTL_TCH_MODE_CONF");
+ mtc.stop;
+ }
+ }
+ }
+
function f_L1CTL_RACH(L1CTL_PT pt, uint8_t ra, uint8_t combined := 1, uint16_t offset := 0,
template (value) RslChannelNr chan_nr := ts_RslChanNr_RACH(0),
template (value) RslLinkId link_id := ts_RslLinkID_DCCH(0))