<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20757">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">BTS_Tests: introduce and use TCH loop - as_l1_tch_loop()<br><br>Change-Id: Icd4c86e04a5f7a88ff8874a6be194fe13bb9e80c<br>Related: OS#4799<br>---<br>M bts/BTS_Tests.ttcn<br>1 file changed, 12 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/57/20757/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn</span><br><span>index 7775083..b3bae2f 100644</span><br><span>--- a/bts/BTS_Tests.ttcn</span><br><span>+++ b/bts/BTS_Tests.ttcn</span><br><span>@@ -687,6 +687,7 @@</span><br><span>        [not ignore_other] as_l1_sacch();</span><br><span>    [not ignore_other] as_meas_res();</span><br><span>    [not ignore_other] as_l1_dcch_loop();</span><br><span style="color: hsl(120, 100%, 40%);">+ [not ignore_other] as_l1_tch_loop();</span><br><span>         [not ignore_other] RSL.receive {</span><br><span>             Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, "Unexpected RSL message received");</span><br><span>             }</span><br><span>@@ -1782,6 +1783,16 @@</span><br><span>           }</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+private altstep as_l1_tch_loop() runs on ConnHdlr {</span><br><span style="color: hsl(120, 100%, 40%);">+       var L1ctlDlMessage l1_dl;</span><br><span style="color: hsl(120, 100%, 40%);">+     [] L1CTL.receive(tr_L1CTL_TRAFFIC_IND(g_chan_nr)) -> value l1_dl {</span><br><span style="color: hsl(120, 100%, 40%);">+         log("TCH received: ", l1_dl.payload.traffic_ind.data);</span><br><span style="color: hsl(120, 100%, 40%);">+              L1CTL.send(ts_L1CTL_TRAFFIC_REQ(g_chan_nr, l1_dl.dl_info.link_id,</span><br><span style="color: hsl(120, 100%, 40%);">+                                             l1_dl.payload.traffic_ind.data));</span><br><span style="color: hsl(120, 100%, 40%);">+             repeat;</span><br><span style="color: hsl(120, 100%, 40%);">+               }</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> private type record MeasElem {</span><br><span>     uint6_t rxlev,</span><br><span>       uint3_t rxqual</span><br><span>@@ -2122,6 +2133,7 @@</span><br><span>       [] as_l1_sacch();</span><br><span>    [] as_meas_res();</span><br><span>    [] as_l1_dcch_loop();</span><br><span style="color: hsl(120, 100%, 40%);">+ [] as_l1_tch_loop();</span><br><span>         [] L1CTL.receive { repeat; }</span><br><span>         [g_Tmeas_exp.running] T.timeout {</span><br><span>            /* as_meas_res() would have done Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail) in case</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20757">change 20757</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20757"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Icd4c86e04a5f7a88ff8874a6be194fe13bb9e80c </div>
<div style="display:none"> Gerrit-Change-Number: 20757 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>