BTS_Tests: introduce and use TCH loop - as_l1_tch_loop()

Change-Id: Icd4c86e04a5f7a88ff8874a6be194fe13bb9e80c
Related: OS#4799
This commit is contained in:
Vadim Yanitskiy 2020-10-19 14:42:04 +07:00 committed by laforge
parent a4f88c6949
commit dc00811b7f
1 changed files with 12 additions and 0 deletions

View File

@ -687,6 +687,7 @@ runs on ConnHdlr return RSL_Message {
[not ignore_other] as_l1_sacch();
[not ignore_other] as_meas_res();
[not ignore_other] as_l1_dcch_loop();
[not ignore_other] as_l1_tch_loop();
[not ignore_other] RSL.receive {
Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, "Unexpected RSL message received");
}
@ -1782,6 +1783,16 @@ private altstep as_l1_dcch_loop() runs on ConnHdlr {
}
}
private altstep as_l1_tch_loop() runs on ConnHdlr {
var L1ctlDlMessage l1_dl;
[] L1CTL.receive(tr_L1CTL_TRAFFIC_IND(g_chan_nr)) -> value l1_dl {
log("TCH received: ", l1_dl.payload.traffic_ind.data);
L1CTL.send(ts_L1CTL_TRAFFIC_REQ(g_chan_nr, l1_dl.dl_info.link_id,
l1_dl.payload.traffic_ind.data));
repeat;
}
}
private type record MeasElem {
uint6_t rxlev,
uint3_t rxqual
@ -2141,6 +2152,7 @@ private function f_TC_meas_res_periodic(charstring id) runs on ConnHdlr {
[] as_l1_sacch();
[] as_meas_res();
[] as_l1_dcch_loop();
[] as_l1_tch_loop();
[] L1CTL.receive { repeat; }
[g_Tmeas_exp.running] T.timeout {
/* as_meas_res() would have done Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail) in case