<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19927">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">BSC_Tests/hopping: add TC_fh_params_si4_cbch<br><br>Change-Id: Ibc3b73697a1d2c8dbb27274e48f5e5ba21fdd540<br>Related: SYS#4868, OS#4545<br>---<br>M bsc/BSC_Tests.ttcn<br>1 file changed, 69 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/27/19927/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn</span><br><span>index 578b207..ff42f6a 100644</span><br><span>--- a/bsc/BSC_Tests.ttcn</span><br><span>+++ b/bsc/BSC_Tests.ttcn</span><br><span>@@ -7148,6 +7148,74 @@</span><br><span> setverdict(pass);</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/* Verify the hopping parameters in System Information Type 4 */</span><br><span style="color: hsl(120, 100%, 40%);">+testcase TC_fh_params_si4_cbch() runs on test_CT {</span><br><span style="color: hsl(120, 100%, 40%);">+ var FHParamsTrx fhp := f_TC_fh_params_gen(tr_tn := 1);</span><br><span style="color: hsl(120, 100%, 40%);">+ var ASP_RSL_Unitdata rx_rsl_ud;</span><br><span style="color: hsl(120, 100%, 40%);">+ timer T := 5.0;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ f_init_vty();</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ /* (Re)configure TS0 as BCCH and TS1 as SDCCH8+CBCH */</span><br><span style="color: hsl(120, 100%, 40%);">+ f_vty_enter_cfg_trx(BSCVTY, trx := 0);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ f_vty_transceive(BSCVTY, "timeslot 0");</span><br><span style="color: hsl(120, 100%, 40%);">+ f_vty_transceive(BSCVTY, "phys_chan_config ccch");</span><br><span style="color: hsl(120, 100%, 40%);">+ f_vty_transceive(BSCVTY, "exit"); /* go back */</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ f_vty_transceive(BSCVTY, "timeslot 1");</span><br><span style="color: hsl(120, 100%, 40%);">+ f_vty_transceive(BSCVTY, "phys_chan_config sdcch8+cbch");</span><br><span style="color: hsl(120, 100%, 40%);">+ f_vty_transceive(BSCVTY, "end"); /* we're done */</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ f_TC_fh_params_set(fhp); /* Enable frequency hopping */</span><br><span style="color: hsl(120, 100%, 40%);">+ f_vty_transceive(BSCVTY, "drop bts connection 0 oml");</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ f_init(1);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ T.start;</span><br><span style="color: hsl(120, 100%, 40%);">+ alt {</span><br><span style="color: hsl(120, 100%, 40%);">+ [] IPA_RSL[0].receive(tr_ASP_RSL_UD(tr_RSL_BCCH_INFO(RSL_SYSTEM_INFO_4))) -> value rx_rsl_ud {</span><br><span style="color: hsl(120, 100%, 40%);">+ var RSL_IE_Body ie := rx_rsl_ud.rsl.ies[2].body; /* FULL BCCH Information IE */</span><br><span style="color: hsl(120, 100%, 40%);">+ var SystemInformation si := dec_SystemInformation(ie.other.payload);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ /* Make sure that what we decoded is System Information Type 4 */</span><br><span style="color: hsl(120, 100%, 40%);">+ if (si.header.message_type != SYSTEM_INFORMATION_TYPE_4) {</span><br><span style="color: hsl(120, 100%, 40%);">+ setverdict(fail, "RSL FULL BCCH Information IE contains: ", si);</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%);">+ /* Make sure that CBCH Channel Description IE is present */</span><br><span style="color: hsl(120, 100%, 40%);">+ if (not ispresent(si.payload.si4.cbch_chan_desc)) {</span><br><span style="color: hsl(120, 100%, 40%);">+ setverdict(fail, "CBCH Channel Description IE is absent");</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%);">+ /* Finally, check the hopping parameters (HSN, MAIO) */</span><br><span style="color: hsl(120, 100%, 40%);">+ f_TC_fh_params_match_chan_desc(fhp, si.payload.si4.cbch_chan_desc.v);</span><br><span style="color: hsl(120, 100%, 40%);">+ }</span><br><span style="color: hsl(120, 100%, 40%);">+ [] IPA_RSL[0].receive { repeat; }</span><br><span style="color: hsl(120, 100%, 40%);">+ [] T.timeout {</span><br><span style="color: hsl(120, 100%, 40%);">+ setverdict(fail, "Timeout waiting for RSL BCCH INFOrmation (SI4)");</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 style="color: hsl(120, 100%, 40%);">+ /* Disable frequency hopping */</span><br><span style="color: hsl(120, 100%, 40%);">+ f_TC_fh_params_unset(fhp);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ /* (Re)configure TS0 as CCCH+SDCCH4 and TS1 as TCH/F */</span><br><span style="color: hsl(120, 100%, 40%);">+ f_vty_enter_cfg_trx(BSCVTY, trx := 0);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ f_vty_transceive(BSCVTY, "timeslot 0");</span><br><span style="color: hsl(120, 100%, 40%);">+ f_vty_transceive(BSCVTY, "phys_chan_config ccch+sdcch4");</span><br><span style="color: hsl(120, 100%, 40%);">+ f_vty_transceive(BSCVTY, "exit"); /* go back */</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ f_vty_transceive(BSCVTY, "timeslot 1");</span><br><span style="color: hsl(120, 100%, 40%);">+ f_vty_transceive(BSCVTY, "phys_chan_config tch/f");</span><br><span style="color: hsl(120, 100%, 40%);">+ f_vty_transceive(BSCVTY, "end"); /* we're done */</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ setverdict(pass);</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> /* Dyn PDCH todo:</span><br><span> * activate OSMO as TCH/F</span><br><span> * activate OSMO as TCH/H</span><br><span>@@ -7380,6 +7448,7 @@</span><br><span> execute( TC_fh_params_chan_activ() );</span><br><span> execute( TC_fh_params_imm_ass() );</span><br><span> execute( TC_fh_params_assignment_cmd() );</span><br><span style="color: hsl(120, 100%, 40%);">+ execute( TC_fh_params_si4_cbch() );</span><br><span> }</span><br><span> </span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19927">change 19927</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/+/19927"/><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: Ibc3b73697a1d2c8dbb27274e48f5e5ba21fdd540 </div>
<div style="display:none"> Gerrit-Change-Number: 19927 </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>