From 57fe8232db3fc6647596423873ae209f8aa06aba Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 26 Feb 2018 17:52:50 +0100 Subject: bts: Instruct trxcon for TA=2 at every testcase start as fake_trx keeps running during the entire test suite run, and the protocol being UDP based, it doesn't know when BTS_Test will re-start and hence the old TA/FAKE_TIMING value will remain until it is set. Let's explicitly set a FAKE_TIMING of two bits at start-up of each test case during f_init() Change-Id: I9f07768346e0d68a4dbe36780e36b799d27a7f06 --- bts/BTS_Tests.ttcn | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bts/BTS_Tests.ttcn') diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn index 88001392..45fcb064 100644 --- a/bts/BTS_Tests.ttcn +++ b/bts/BTS_Tests.ttcn @@ -212,6 +212,10 @@ function f_init(charstring id := "BTS-Test") runs on test_CT { /* SI2 + SI4 are required for SI testing as they are mandatory defaults */ f_rsl_bcch_fill(RSL_SYSTEM_INFO_2, ts_SI2_default); f_rsl_bcch_fill(RSL_SYSTEM_INFO_4, ts_SI4_default); + + /* start with a default moderate timing offset equalling TA=2 */ + f_main_trxc_connect(); + BB_TRXC.send(ts_TRXC_Send(g_bb_trxc_conn_id, ts_TRXC_FAKE_TIMING(2*256))); } /* Attach L1CTL to master test_CT (classic tests, non-handler mode) */ @@ -599,7 +603,6 @@ testcase TC_rach_max_ta() runs on test_CT { f_init(testcasename()); f_init_l1ctl(); f_l1_tune(L1CTL); - f_main_trxc_connect(); f_sleep(1.0); /* default max-ta is 63 (full range of GSM timing advance */ -- cgit v1.2.3