This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
fixeria gerrit-no-reply at lists.osmocom.orgfixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15638 Change subject: PCU_Tests_RAW.ttcn: introduce a test case for PTCCH/D coding ...................................................................... PCU_Tests_RAW.ttcn: introduce a test case for PTCCH/D coding Change-Id: I887c8922446d0c1a959e6f2678f50e5754f55e83 Related: SYS#4606 --- M pcu/PCU_Tests_RAW.ttcn 1 file changed, 40 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/38/15638/1 diff --git a/pcu/PCU_Tests_RAW.ttcn b/pcu/PCU_Tests_RAW.ttcn index 6b45af2..5bd966d 100644 --- a/pcu/PCU_Tests_RAW.ttcn +++ b/pcu/PCU_Tests_RAW.ttcn @@ -605,6 +605,45 @@ } } +/* Verify that the PCU generates valid PTCCH/D messages + * while neither Uplink nor Downlink TBF is established. */ +testcase TC_ta_ptcch_idle() runs on RAW_PCU_Test_CT { + var PTCCHDownlinkMsg ptcch_msg; + var PCUIF_Message pcu_msg; + timer T; + + /* Initialize the PCU interface abstraction */ + f_init_raw(testcasename()); + + /* Sent an RTS.req for PTCCH/D */ + BTS.send(ts_PCUIF_RTS_REQ(bts_nr := 0, trx_nr := 0, ts_nr := 7, + sapi := PCU_IF_SAPI_PTCCH, fn := 0, + arfcn := 871, block_nr := 0)); + T.start(5.0); + alt { + [] BTS.receive(tr_PCUIF_DATA_REQ(bts_nr := 0, trx_nr := 0, ts_nr := 7, + sapi := PCU_IF_SAPI_PTCCH)) -> value pcu_msg { + log("Rx DATA.req message: ", pcu_msg); + setverdict(pass); + } + [] BTS.receive(PCUIF_Message:?) { repeat; } + [] T.timeout { + setverdict(fail, "Timeout waiting for a PTCCH/D block"); + mtc.stop; + } + } + + ptcch_msg := dec_PTCCHDownlinkMsg(pcu_msg.u.data_req.data); + log("Decoded PTCCH/D message: ", ptcch_msg); + + /* Make sure the message is encoded correctly + * TODO: do we expect all TA values to be equal '1111111'B? */ + if (not match(ptcch_msg, tr_PTCCHDownlinkMsg)) { + setverdict(fail, "Malformed PTCCH/D message"); + mtc.stop; + } +} + /* Default link quality adaptation (Coding Scheme) ranges: /* CS1: ... 6 dB, CS2: 5 .. 8 dB, CS3: 7 .. 13 db, CS4: 12 ... dB */ private template integer CS1_lqual_dB_range := (-infinity .. 6); @@ -719,6 +758,7 @@ execute( TC_ns_so_block() ); execute( TC_pcuif_suspend() ); + execute( TC_ta_ptcch_idle() ); execute( TC_ta_rach_imm_ass() ); execute( TC_cs_lqual_ul_tbf() ); } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15638 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: I887c8922446d0c1a959e6f2678f50e5754f55e83 Gerrit-Change-Number: 15638 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <axilirator at gmail.com> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190930/92403cbe/attachment.htm>