From 8c242f041a713058963ed22bd05533d2b1092f26 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sun, 13 Oct 2019 15:25:54 +0700 Subject: BTS_Tests.ttcn: add a test case for PTCCH/D and PTCCH/U This test case is aimed to verify handling of both PTCCH/U and PTCCH/D logical channels, recently implemented in [1]. This is done by sending 16 Access Bursts on PTCCH/U, and then by sending a random data block on PTCCH/D. The existing TC_pcu_data_req_ptcch does not cover PTCCH/U, and moreover involves TBF handling which has nothing to do with PTCCH. Let's keep it anyway. [1] I232e5f514fbad2c51daaa59ff516004aba97c8a3 Change-Id: I011ffdfa63b698ce6085968d15ffb4ff4bd23ee5 Related: OS#4102 --- library/GSM_Types.ttcn | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'library') diff --git a/library/GSM_Types.ttcn b/library/GSM_Types.ttcn index ec74ce52..ee6d1326 100644 --- a/library/GSM_Types.ttcn +++ b/library/GSM_Types.ttcn @@ -158,7 +158,8 @@ module GSM_Types { /* TS 48.058 9.3.2 Link ID */ type enumerated RslLinkIdC { FACCH_SDCCH (0), - SACCH (1) + SACCH (1), + OSMO_PTCCH (2) /* Osmocom (trxcon) specific extension */ } with { variant "FIELDLENGTH(2)" }; type enumerated RslSapi0Prio { @@ -195,6 +196,12 @@ module GSM_Types { sapi := sapi }; + template RslLinkId tr_RslLinkID_OSMO_PTCCH(template GsmSapi sapi) modifies tr_RslLinkId := { + c := OSMO_PTCCH, + na := false, + sapi := sapi + }; + template (value) RslLinkId ts_RslLinkID_DCCH(GsmSapi sapi) := { c := FACCH_SDCCH, na := false, @@ -209,6 +216,13 @@ module GSM_Types { sapi := sapi }; + template (value) RslLinkId ts_RslLinkID_OSMO_PTCCH(GsmSapi sapi) := { + c := OSMO_PTCCH, + na := false, + prio := SAPI0_PRIO_NORMAL, + sapi := sapi + }; + function f_hex_is_odd_length(hexstring digits) return bitstring { if (lengthof(digits) rem 2 == 1) { return '1'B; -- cgit v1.2.3