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/.
pespin gerrit-no-reply at lists.osmocom.orgpespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20793 ) Change subject: WIP: bts-lapdm: Introduce test TC_normal_reestablishment ...................................................................... WIP: bts-lapdm: Introduce test TC_normal_reestablishment Change-Id: I5eb07a6abf5a260e2f62c177f8c100305d44155a --- M bts/BTS_Tests_LAPDm.ttcn M library/LAPDm_Types.ttcn 2 files changed, 45 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/93/20793/1 diff --git a/bts/BTS_Tests_LAPDm.ttcn b/bts/BTS_Tests_LAPDm.ttcn index d16aa11..1a762d0 100644 --- a/bts/BTS_Tests_LAPDm.ttcn +++ b/bts/BTS_Tests_LAPDm.ttcn @@ -1330,6 +1330,50 @@ f_testmatrix_each_chan(pars, refers(f_TC_sabm_incorrect_c)); } +/* Test procedure for normal reestablishment, as per: + * OS#4819 + * 3GPP TS 44.006 8.4.1.2 "Normal establishment procedure" + * 3GPP TS 44.006 8.4.2.1 "General requirements" + * 3GPP TS 44.006 8.6.3 "Procedures for re-establishment" + * */ +private function f_TC_normal_reestablishment(charstring id) runs on ConnHdlr { + var RslLinkId link_id := valueof(ts_RslLinkID_DCCH(0)) + var octetstring l3_mo := f_rnd_octstring(c_TS0406_MAX_L3_OCTETS); + var default d; + timer T := 3.0; + var boolean use_sacch := false; + + fp_common_init(); + + /* some common altstep for meas res and other background noise */ + d := activate(as_ignore_background(true)); + RSL.clear; + LAPDM.clear; + + f_establish_mo(link_id); + + deactivate(d); + + var LapdmDlState dls := valueof(t_init_LapdmDlState); + f_lapdm_transceive_mo(dls, link_id, l3_mo); + + LAPDM.send(t_PH_DATA(link_id.sapi, use_sacch, ts_LAPDm_SABM(link_id.sapi, c_r:=cr_MO_CMD, p:=true, l3:=''O))); + T.start + alt { + [] LAPDM.receive(t_PH_DATA(?, use_sacch, tr_LAPDm_UA(link_id.sapi, cr_MT_RSP, f:=false, l3:=''O))) { } + [] RSL.receive { repeat; } + [] LAPDM.receive { repeat; } + [] T.timeout { } + } + LAPDM.send(t_PH_DATA(link_id.sapi, use_sacch, ts_LAPDm_RR(link_id.sapi, c_r:=cr_MT_CMD, p:=false, nr:=0))); + + fp_common_fini(); +} +testcase TC_normal_reestablishment() runs on test_CT { + var ConnHdlrPars pars := valueof(t_Pars(t_RslChanNr_Bm(1), ts_RSL_ChanMode_SIGN)); + f_testmatrix_each_chan(pars, refers(f_TC_normal_reestablishment)); +} + control { execute(TC_sabm_ua_dcch_sapi0()); execute(TC_sabm_ua_dcch_sapi0_nopayload()); diff --git a/library/LAPDm_Types.ttcn b/library/LAPDm_Types.ttcn index caccc12..5ef953d 100644 --- a/library/LAPDm_Types.ttcn +++ b/library/LAPDm_Types.ttcn @@ -166,7 +166,7 @@ external function dec_LapdmCtrlU(in octetstring stream) return LapdmCtrlU with { extension "prototype(convert) decode(RAW)" }; - /* Formats B, Bter and B4 are used on DCCHs for frames containing an information field: + /* Formats B, Bter and B4 are used on DCCHs for frames containing an information field: /* - format Bter is used on request of higher layers if and only if short L2 header type 1 is * supported and a UI command is to be transmitted on SAPI 0 */ /* - format B4 is used for UI frames transmitted by the network on SACCH; */ -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20793 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: I5eb07a6abf5a260e2f62c177f8c100305d44155a Gerrit-Change-Number: 20793 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin at sysmocom.de> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201019/c058cac7/attachment.htm>