jolly has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37519?usp=email )


Change subject: Fix BTS_Tests_ASCI.TC_vbs_notification, add missing SI1
......................................................................

Fix BTS_Tests_ASCI.TC_vbs_notification, add missing SI1

Because System Information Type 1 was missing, the BTS could not assign
time slots to NCH. Without NCH, notification is not possible.

Related: OS#6467
Change-Id: I65dc55da78bc53a1265124e6b6f6bb9a1650206e
---
M bts/BTS_Tests.ttcn
M bts/BTS_Tests_ASCI.ttcn
2 files changed, 23 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/19/37519/1

diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 29879b9..c667851 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -439,13 +439,13 @@
        }
 }

-private function f_rsl_bcch_fill_raw(RSL_IE_SysinfoType rsl_si_type, 
octetstring si_enc)
+function f_rsl_bcch_fill_raw(RSL_IE_SysinfoType rsl_si_type, octetstring 
si_enc)
 runs on test_CT {
        log("Setting ", rsl_si_type, ": ", si_enc);
        RSL_CCHAN.send(ts_ASP_RSL_UD(ts_RSL_BCCH_INFO(rsl_si_type, si_enc)));
 }

-private function f_rsl_bcch_fill(RSL_IE_SysinfoType rsl_si_type, template 
(value) SystemInformation si_dec)
+friend function f_rsl_bcch_fill(RSL_IE_SysinfoType rsl_si_type, template 
(value) SystemInformation si_dec)
 runs on test_CT {
        var octetstring si_enc := enc_SystemInformation(valueof(si_dec));
        log("Setting ", rsl_si_type, ": ", si_dec);
@@ -4922,7 +4922,7 @@

 /* helper function: Set given SI via RSL + validate scheduling.
  * CALLER MUST MAKE SURE TO CHANGE GLOBAL si_cfg! */
-private function f_TC_si_sched(float duration := 8.0) runs on test_CT {
+function f_TC_si_sched(float duration := 8.0) runs on test_CT {
        var SystemInformationVectorPerTc si_per_tc;
        f_init_l1ctl();
        f_l1_tune(L1CTL);
diff --git a/bts/BTS_Tests_ASCI.ttcn b/bts/BTS_Tests_ASCI.ttcn
index 6814295..d262929 100644
--- a/bts/BTS_Tests_ASCI.ttcn
+++ b/bts/BTS_Tests_ASCI.ttcn
@@ -43,6 +43,12 @@



+/* Set up NCH channel: 1 block, starting at slot 0 */
+friend function f_init_nch_position() runs on test_CT {
+       si_cfg.si1_present := true;
+       f_rsl_bcch_fill_raw(RSL_SYSTEM_INFO_1, 
'5506198fb38000000000000000000000000000e5040083'O);
+}
+
 /* convert from boolean value to BIT1 */
 private function bool2bit1(boolean inp) return BIT1 {
        if (inp) {
@@ -75,6 +81,7 @@
        timer T;

        f_init();
+       f_init_nch_position();
        f_init_l1ctl();
        f_l1_tune(L1CTL);


--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37519?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I65dc55da78bc53a1265124e6b6f6bb9a1650206e
Gerrit-Change-Number: 37519
Gerrit-PatchSet: 1
Gerrit-Owner: jolly <[email protected]>
Gerrit-MessageType: newchange

Reply via email to