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/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15421 Change subject: bts: Test if BTS forwards ETWS Primary Notification to PCU ...................................................................... bts: Test if BTS forwards ETWS Primary Notification to PCU All MS/UE must be notified of ETWS Primary Notifiations. Depending on their state, the notification goes different paths: * CS dedicated mode: BSC sends it as L3 message over LAPDm / DCCH * CS/PS idle mode: BTS sends paging messages on PCH * PS TBF active: PCU send Packet Application Info This tests the last of the three methods by checking that a ETWS Primary Notification sent on RSL to the BTS is received by the PCU socket. Change-Id: I2661df7f7d870a0ac1c89bb8a85df81644b00b0a Related: OS#4047, OS#4048 Depends: osmo-bts Ic0b3f38b400a0ca7e4089061ceb6548b0695faa6 --- M bts/BTS_Tests_SMSCB.ttcn M library/PCUIF_Types.ttcn 2 files changed, 72 insertions(+), 2 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/21/15421/1 diff --git a/bts/BTS_Tests_SMSCB.ttcn b/bts/BTS_Tests_SMSCB.ttcn index 49416c2..292205a 100644 --- a/bts/BTS_Tests_SMSCB.ttcn +++ b/bts/BTS_Tests_SMSCB.ttcn @@ -26,6 +26,9 @@ import from RSL_Types all; +import from PCUIF_Types all; +import from PCUIF_CodecPort all; + import from Osmocom_VTY_Functions all; import from BTS_Tests all; @@ -1046,6 +1049,32 @@ } } +/* Ensure ETWS Primary Notification is passed from RSL to PCU interface */ +testcase TC_etws_pcu() runs on test_CT { + timer T := 10.0; + + f_init(); + f_init_l1ctl(); + f_l1_tune(L1CTL, ccch_mode := CCCH_MODE_COMBINED_CBCH); + + RSL_CCHAN.send(ts_RSL_UD(ts_RSL_OSMO_ETWS_CMD(c_etws))); + + T.start; + alt { + [] PCU.receive(t_SD_PCUIF(g_pcu_conn_id, tr_PCUIF_APP_INFO_REQ(0, 0, c_etws))) { + setverdict(pass); + } + [] PCU.receive(t_SD_PCUIF(g_pcu_conn_id, tr_PCUIF_APP_INFO_REQ(?, ?, ?))) { + setverdict(fail, "PCU socket received invalid APP INFO"); + } + [] PCU.receive { repeat; } + [] T.timeout { + setverdict(fail, "PCU socket timeout receiving APP INFO (ETWS)"); + } + } +} + + /* SMSCB TODO: * multiple SMS BC CMD at the same time: Ensure all of them are sent exactly once @@ -1083,6 +1112,7 @@ execute( TC_etws_p1ro() ); execute( TC_etws_p1ro_end() ); + execute( TC_etws_pcu() ); } diff --git a/library/PCUIF_Types.ttcn b/library/PCUIF_Types.ttcn index 132b72d..27d9b92 100644 --- a/library/PCUIF_Types.ttcn +++ b/library/PCUIF_Types.ttcn @@ -22,6 +22,7 @@ PCU_IF_MSG_DATA_CNF ('01'O), PCU_IF_MSG_DATA_IND ('02'O), PCU_IF_MSG_SUSP_REQ ('03'O), + PCU_IF_MSG_APP_INFO_REQ ('04'O), PCU_IF_MSG_RTS_REQ ('10'O), PCU_IF_MSG_DATA_CNF_DT ('11'O), PCU_IF_MSG_RACH_IND ('22'O), @@ -198,6 +199,14 @@ OCT9 identity_lv } with { variant "" }; +type record PCUIF_app_info_req { + uint8_t application_type, + uint8_t len, + octetstring data +} with { + variant (len) "LENGTHTO(data)" +} + type record PCUIF_susp_req { OCT4 tlli, OCT6 ra_id, @@ -219,7 +228,8 @@ PCUIF_info_ind info_ind, PCUIF_act_req act_req, PCUIF_time_ind time_ind, - PCUIF_pag_req pag_req + PCUIF_pag_req pag_req, + PCUIF_app_info_req app_info_req } with { variant "" }; type record PCUIF_Message { @@ -239,7 +249,8 @@ info_ind, msg_type = PCU_IF_MSG_INFO_IND; act_req, msg_type = PCU_IF_MSG_ACT_REQ; time_ind, msg_type = PCU_IF_MSG_TIME_IND; - pag_req, msg_type = PCU_IF_MSG_PAG_REQ)" + pag_req, msg_type = PCU_IF_MSG_PAG_REQ; + app_info_req, msg_type = PCU_IF_MSG_APP_INFO_REQ)" variant "PADDING(1696)" /* 212 * 8 */ }; @@ -812,5 +823,34 @@ } } +template (value) PCUIF_Message ts_PCUIF_APP_INFO_REQ(template (value) uint8_t bts_nr, + template (value) uint8_t app_type, + template (value) octetstring app_data) := { + msg_type := PCU_IF_MSG_APP_INFO_REQ, + bts_nr := bts_nr, + spare := '0000'O, + u := { + app_info_req := { + application_type := app_type, + len := 0, /* overwritten */ + data := app_data + } + } +} +template (present) PCUIF_Message tr_PCUIF_APP_INFO_REQ(template (present) uint8_t bts_nr, + template (present) uint8_t app_type, + template (present) octetstring app_data) := { + msg_type := PCU_IF_MSG_APP_INFO_REQ, + bts_nr := bts_nr, + spare := '0000'O, + u := { + app_info_req := { + application_type := app_type, + len := ?, + data := app_data + } + } +} + } with { encode "RAW" variant "BYTEORDER(first)" }; -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15421 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: I2661df7f7d870a0ac1c89bb8a85df81644b00b0a Gerrit-Change-Number: 15421 Gerrit-PatchSet: 1 Gerrit-Owner: laforge <laforge at gnumonks.org> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190905/b632ba80/attachment.htm>