diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-09-12 20:04:08 +0700 |
---|---|---|
committer | fixeria <vyanitskiy@sysmocom.de> | 2020-09-14 09:04:39 +0000 |
commit | 7fefceea711acd54cd3806aeaeed609d3222a528 (patch) | |
tree | 418a1c2b9601931ebc56b615354fc79a90378534 | |
parent | ca81392360955497838dc4b43f45df7778fe4d3f (diff) |
BTS_Tests_SMSCB: handle frequency hopping parameters
-rw-r--r-- | bts/BTS_Tests_SMSCB.ttcn | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/bts/BTS_Tests_SMSCB.ttcn b/bts/BTS_Tests_SMSCB.ttcn index 29489fc3..953801bb 100644 --- a/bts/BTS_Tests_SMSCB.ttcn +++ b/bts/BTS_Tests_SMSCB.ttcn @@ -56,6 +56,8 @@ t_CbchPC(template (value) CbchTestMsgs msgs, template (omit) CbchTestMsg def := type record CbchTestPars { /* Should we execute on SDCCH4 or SDCCH8? */ RslChannelNr chan_nr, + /* Frequency Hopping parameters */ + FreqHopPars fhp, /* Parameters for BASIC CBCH */ CbchTestParsChan basic, /* Parameters for EXTENDED CBCH */ @@ -235,6 +237,12 @@ private function f_smscb_setup(inout CbchTestPars pars) runs on test_CT { mtc.stop; } + /* Obtain frequency hopping parameters for a given timeslot */ + if (mp_freq_hop_enabled and mp_transceiver_num > 1) + { f_resolve_fh_params(pars.fhp, pars.chan_nr.tn); } + else + { pars.fhp.enabled := false; } + f_cbch_compute_exp_blocks(pars); f_init_vty_bsc(); @@ -249,10 +257,18 @@ private function f_smscb_setup(inout CbchTestPars pars) runs on test_CT { f_l1_tune(L1CTL, ccch_mode := CCCH_MODE_COMBINED_CBCH); } else { f_l1_tune(L1CTL, ccch_mode := CCCH_MODE_COMBINED); - /* TODO: also handle frequency hopping parameters */ - L1CTL.send(ts_L1CTL_DM_EST_REQ_H0(pars.chan_nr, - 7 /* TODO: mp_tsc */, - mp_trx0_arfcn)); + + if (pars.fhp.enabled) { + L1CTL.send(ts_L1CTL_DM_EST_REQ_H1(pars.chan_nr, + 7 /* TODO: mp_tsc */, + pars.fhp.maio_hsn.hsn, + pars.fhp.maio_hsn.maio, + pars.fhp.ma)); + } else { + L1CTL.send(ts_L1CTL_DM_EST_REQ_H0(pars.chan_nr, + 7 /* TODO: mp_tsc */, + mp_trx0_arfcn)); + } } /* send SMSCB[s] via RSL */ |