lists.osmocom.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

gerrit-log

Thread Start a new thread
Download
Threads by month
  • ----- 2026 -----
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2025 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2024 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2023 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2022 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
gerrit-log@lists.osmocom.org

July 2023

  • 1 participants
  • 3051 discussions
[M] Change in osmo-ttcn3-hacks[master]: BTS_Test_ASCI: Add UPLINK FREE / UPLINK BUSY test
by Jenkins Builder 19 Jul '23

19 Jul '23
Jenkins Builder has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33817 ) Change subject: BTS_Test_ASCI: Add UPLINK FREE / UPLINK BUSY test ...................................................................... Patch Set 1: (1 comment) File bts/BTS_Tests_ASCI.ttcn: Robot Comment from checkpatch (run ID jenkins-gerrit-lint-9764): https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33817/comment/18ef6960_666b… PS1, Line 138: * When the UPLINK FREE message is sent, the MS is expected to receive serveral UPLINK FREE messages. 'serveral' may be misspelled - perhaps 'several'? -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33817 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: I2f70adb4a6f71eb8972feccf9dda0f77e7a942b9 Gerrit-Change-Number: 33817 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-CC: Jenkins Builder Gerrit-Comment-Date: Wed, 19 Jul 2023 07:00:50 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Gerrit-MessageType: comment
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: BTS_Test_ASCI: Add first ASCI test to check NCH support
by Jenkins Builder 19 Jul '23

19 Jul '23
Jenkins Builder has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33816 ) Change subject: BTS_Test_ASCI: Add first ASCI test to check NCH support ...................................................................... Patch Set 1: (1 comment) File bts/BTS_Tests_ASCI.ttcn: Robot Comment from checkpatch (run ID jenkins-gerrit-lint-9762): https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33816/comment/ef5e5653_b953… PS1, Line 72: * When it stops, it is expected that NCH is not recevied anymore. */ 'recevied' may be misspelled - perhaps 'received'? -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33816 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: I3727c471663b731117a264f60d2f1ba5fd16928e Gerrit-Change-Number: 33816 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-CC: Jenkins Builder Gerrit-CC: laforge <laforge(a)osmocom.org> Gerrit-Comment-Date: Wed, 19 Jul 2023 07:00:47 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Gerrit-MessageType: comment
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: Fix typo: REL_REL_MODE_LOCAL -> RSL_REL_MODE_LOCAL
by jolly 19 Jul '23

19 Jul '23
jolly has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33815 ) Change subject: Fix typo: REL_REL_MODE_LOCAL -> RSL_REL_MODE_LOCAL ...................................................................... Fix typo: REL_REL_MODE_LOCAL -> RSL_REL_MODE_LOCAL Change-Id: I2f55aebff776bf7b63d60573f9131da01921d91c --- M library/RSL_Types.ttcn 1 file changed, 10 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/15/33815/1 diff --git a/library/RSL_Types.ttcn b/library/RSL_Types.ttcn index 64025a5..fa1d928 100644 --- a/library/RSL_Types.ttcn +++ b/library/RSL_Types.ttcn @@ -1080,7 +1080,7 @@ /* 9.3.20 */ type enumerated RSL_IE_ReleaseMode { RSL_REL_MODE_NORMAL ('00'B), - REL_REL_MODE_LOCAL ('01'B) + RSL_REL_MODE_LOCAL ('01'B) } type record RSL_IE_OSMO_TrainingSequence { -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33815 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: I2f55aebff776bf7b63d60573f9131da01921d91c Gerrit-Change-Number: 33815 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-MessageType: newchange
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: Add LAPDm Bter frames to LAPDm_Types.ttcn and BTS_Tests.ttcn
by jolly 19 Jul '23

19 Jul '23
jolly has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33814 ) Change subject: Add LAPDm Bter frames to LAPDm_Types.ttcn and BTS_Tests.ttcn ...................................................................... Add LAPDm Bter frames to LAPDm_Types.ttcn and BTS_Tests.ttcn The new type LapdmFrameBter and its send and receive template is used to send and receive Bter frames, which has a short L2 header and uses all 23 octets for payload. Bter frames are DCCH UI frames with SAPI 0 and 23 octets sent on downlink only. Change-Id: I07a4fd9879dfd9de441c0348a84b7dd5c9864eb4 --- M bts/BTS_Tests.ttcn M library/LAPDm_Types.ttcn 2 files changed, 40 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/14/33814/1 diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn index 2a56a25..37d15b8 100644 --- a/bts/BTS_Tests.ttcn +++ b/bts/BTS_Tests.ttcn @@ -7325,6 +7325,8 @@ lapdm.b4 := dec_LapdmFrameB4(l2); } else if (ischosen(exp.bbis)) { lapdm.bbis := dec_LapdmFrameBbis(l2); + } else if (ischosen(exp.bter)) { + lapdm.bter := dec_LapdmFrameBter(l2); } log("Rx LAPDm ", lapdm); if (match(lapdm, exp)) { diff --git a/library/LAPDm_Types.ttcn b/library/LAPDm_Types.ttcn index baa2b7e..4d02863 100644 --- a/library/LAPDm_Types.ttcn +++ b/library/LAPDm_Types.ttcn @@ -211,10 +211,20 @@ external function dec_LapdmFrameBbis(in octetstring stream) return LapdmFrameBbis with { extension "prototype(convert) decode(RAW)" }; + type record LapdmFrameBter { + octetstring payload + } with { variant "" }; + + external function enc_LapdmFrameBter(in LapdmFrameBter si) return octetstring + with { extension "prototype(convert) encode(RAW)" }; + external function dec_LapdmFrameBter(in octetstring stream) return LapdmFrameBter + with { extension "prototype(convert) decode(RAW)" }; + type union LapdmFrame { LapdmFrameAB ab, LapdmFrameBbis bbis, - LapdmFrameB4 b4 + LapdmFrameB4 b4, + LapdmFrameBter bter } with { variant "" }; external function enc_LapdmFrame(in LapdmFrame si) return octetstring @@ -361,6 +371,17 @@ } } + template LapdmFrame ts_LAPDm_Bter_UI(octetstring l3) := { + bter := { + payload := l3 + } + } + template LapdmFrame tr_LAPDm_Bter_UI(template octetstring l3) := { + bter := { + payload := l3 + } + } + template LapdmFrame tr_LAPDm_I(template LapdmSapi sapi, template boolean c_r, template boolean p, template uint3_t nr, template uint3_t ns, template octetstring l3, -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33814 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: I07a4fd9879dfd9de441c0348a84b7dd5c9864eb4 Gerrit-Change-Number: 33814 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-MessageType: newchange
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: BTS_Test_ASCI: Add first ASCI test to check NCH support
by jolly 19 Jul '23

19 Jul '23
jolly has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33816 ) Change subject: BTS_Test_ASCI: Add first ASCI test to check NCH support ...................................................................... BTS_Test_ASCI: Add first ASCI test to check NCH support Send Notification command to start and stop notifying an ASCI call. When it starts, it is expected that NCH is received. Also it is expected that NCH is received again. When it stops, it is expected that NCH is not recevied anymore. Change-Id: I3727c471663b731117a264f60d2f1ba5fd16928e --- M bts/BTS_Tests.ttcn A bts/BTS_Tests_ASCI.ttcn 2 files changed, 146 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/16/33816/1 diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn index 37d15b8..d893601 100644 --- a/bts/BTS_Tests.ttcn +++ b/bts/BTS_Tests.ttcn @@ -74,6 +74,7 @@ import from TELNETasp_PortType all; import from BTS_Tests_LAPDm all; +friend module BTS_Tests_ASCI; friend module BTS_Tests_SMSCB; friend module BTS_Tests_VAMOS; friend module BTS_Tests_virtphy; diff --git a/bts/BTS_Tests_ASCI.ttcn b/bts/BTS_Tests_ASCI.ttcn new file mode 100644 index 0000000..22e965e --- /dev/null +++ b/bts/BTS_Tests_ASCI.ttcn @@ -0,0 +1,131 @@ +module BTS_Tests_ASCI { + +/* ASCI Integration Tests for OsmoBTS + * + * (C) 2023 by sysmocom - s.f.m.c. GmbH <info(a)sysmocom.de> + * All Rights Reserved + * + * SPDX-License-Identifier: AGPL-3.0+ + * + * Authors: Harald Welte; Andreas Eversberg + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +import from Misc_Helpers all; +import from General_Types all; +import from Osmocom_Types all; +import from GSM_Types all; +import from L1CTL_PortType all; +import from L1CTL_Types all; +import from LAPDm_Types all; +import from IPA_Emulation all; +import from GSM_RR_Types all; +import from L3_Templates all; + +import from MobileL3_CommonIE_Types all; + +import from RSL_Emulation all; +import from RSL_Types all; + +import from BTS_Tests all; + + + +/* convert from boolean value to BIT1 */ +private function bool2bit1(boolean inp) return BIT1 { + if (inp) { + return '1'B; + } else { + return '0'B; + } +} + +/* encode a VBS/VGCS call reference into it's OCT5 representation */ +private function f_enc_gcr(integer call_ref, boolean is_group_call, boolean ack_required := false) +return OCT5 +{ + var DescriptiveGroupOrBroadcastCallReference_V v := { + binaryCodingOfGroupOrBroadcastCallReference := int2bit(call_ref, 27), + sF := bool2bit1(is_group_call), + aF := bool2bit1(ack_required), + callPriority := '000'B, + cipheringInformation := '0000'B, + spare := '0000'B + } + return bit2oct(encvalue(v)); +} + +/* Send Notification command to start and stop notifying an ASCI call. + * When it starts, it is expected that NCH is received by MS. Also it is expected that NCH is received again. + * When it stops, it is expected that NCH is not recevied anymore. */ +testcase TC_vbs_notification() runs on test_CT +{ + timer T := 2.0; + + f_init(); + f_init_l1ctl(); + f_l1_tune(L1CTL); + + var OCT5 gcr := f_enc_gcr(hex2int('2342'H), false, false); + var OCT3 chan_desc := '234266'O; + var octetstring notif_nch := '090620B42230000091A1330B2B2B2B2B2B2B2B2B2B2B2B'O; + var integer recv_count := 0; + + log("Sending RSL NOTIF_CMD (start)"); + RSL_CCHAN.send(ts_ASP_RSL_UD(ts_RSL_NOTIF_CMD_START(gcr, chan_desc))); + + /* NCH must be received twice. */ + T.start; + alt { + [] L1CTL.receive(tr_L1CTL_DATA_IND(t_RslChanNr_PCH_AGCH(0), ?, notif_nch)) { + log("Received matching NOTIFICATION/NCH."); + recv_count := recv_count + 1; + if (recv_count != 2) { + repeat; + } + T.stop; + } + [] L1CTL.receive { repeat; } + [] T.timeout { + setverdict(fail, "Timeout waiting for NCH message"); + } + } + + log("Sending RSL NOTIF_CMD (stop)"); + RSL_CCHAN.send(ts_ASP_RSL_UD(ts_RSL_NOTIF_CMD_STOP(gcr))); + + /* NCH must not be received. */ + T.start; + alt { + [] L1CTL.receive(tr_L1CTL_DATA_IND(t_RslChanNr_PCH_AGCH(0), ?, notif_nch)) { + T.stop; + setverdict(fail, "Received unexpected NOTIFICATION/NCH."); + } + [] L1CTL.receive { repeat; } + [] T.timeout { + log("Not received NOTIFICATION/NCH. (as expected)"); + setverdict(pass); + } + } + + Misc_Helpers.f_shutdown(__BFILE__, __LINE__); +} + +control { + execute( TC_vbs_notification() ); + +} + +} -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33816 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: I3727c471663b731117a264f60d2f1ba5fd16928e Gerrit-Change-Number: 33816 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-CC: laforge <laforge(a)osmocom.org> Gerrit-MessageType: newchange
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: BTS_Test_ASCI: Add Talker detect and link fail test
by jolly 19 Jul '23

19 Jul '23
jolly has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33818 ) Change subject: BTS_Test_ASCI: Add Talker detect and link fail test ...................................................................... BTS_Test_ASCI: Add Talker detect and link fail test A VGCS channel is activated. The BSC sends UPLINK FREE message. The MS sends RACH on VGCS channel. The MS receives VGCS UPLINK GRAND, but does not respond to it. It is expeced that the BSC receivce RSL CONN FAIL. Change-Id: I3b292f6a5f47298195bd942a5ca73d9d63f921b5 --- M bts/BTS_Tests_ASCI.ttcn 1 file changed, 114 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/18/33818/1 diff --git a/bts/BTS_Tests_ASCI.ttcn b/bts/BTS_Tests_ASCI.ttcn index fbaf79e..c53d0b7 100644 --- a/bts/BTS_Tests_ASCI.ttcn +++ b/bts/BTS_Tests_ASCI.ttcn @@ -186,9 +186,110 @@ Misc_Helpers.f_shutdown(__BFILE__, __LINE__); } +/* Sub function to test talker detect. */ +private function f_vgcs_talker_detect() runs on ConnHdlr +{ + var octetstring uplink_free := '082B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B'O; + var octetstring uplink_access := 'C0'O; + var template octetstring uplink_grant := '0609C0*'O; + var RSL_Message rm; + var GsmFrameNumber fn; + + f_l1_tune(L1CTL); + RSL.clear; + + /* Activate channel on the BTS side. */ + log("Activating VGCS channel."); + f_rsl_chan_act(g_pars.chan_mode); + + /* Enable dedicated mode. */ + f_l1ctl_est_dchan(L1CTL, g_pars); + + /* Send one UPLINK FREE message and expect them to be repeated. */ + log("Send UPLINK FREE."); + RSL.send(ts_RSL_UNITDATA_REQ(g_chan_nr, ts_RslLinkID_DCCH(0), uplink_free)); + f_l1_exp_lapdm(tr_LAPDm_Bter_UI(uplink_free)); + log("Received UPLINK FREE."); + + /* Send UPLINK ACCESS on VGCS channel. */ + log("Send UPLINK ACCESS."); + fn := f_L1CTL_RACH(L1CTL, oct2int(uplink_access), chan_nr := g_pars.chan_nr); + + /* Receive UPLINK GRANT by the MS. */ + f_l1_exp_lapdm(tr_LAPDm_UI(0, cr_MT_CMD, uplink_grant)); + log("Received VGCS UPLINK GRANT."); + + /* Wait for talker detection. */ + timer T := 1.0; + T.start; + alt { + [] RSL.receive(tr_RSL_TALKER_DET(g_pars.chan_nr, ?)) -> value rm { + log("RSL Talker Detect has been detected: ", rm); + T.stop; + } + [] RSL.receive(tr_RSL_CHAN_RQD(?, ?, ?, ?)) -> value rm { + setverdict(fail, log2str("RSL_CHAN_RQD was not expected: ", rm)); + T.stop; + } + [] RSL.receive { repeat; } + [] T.timeout { + setverdict(fail, "Timeout waiting for RSL Talker Detect."); + } + } +} + +/* A VGCS channel is activated. The BSC sends UPLINK FREE message. The MS sends RACH on VGCS channel. + * The MS receives VGCS UPLINK GRAND, but does not respond to it. It is expeced that the BSC receivce RSL CONN FAIL. + */ +private function f_TC_vgcs_talker_fail(charstring id) runs on ConnHdlr +{ + var RSL_Message rm; + + /* Perform link establishment and talker detection. */ + f_vgcs_talker_detect(); + + /* Leave dedicated channel, to force link timeout. */ + f_L1CTL_RESET(L1CTL); + f_l1_tune(L1CTL); + + /* Wait for link timeout. */ + timer T := 40.0; + T.start; + alt { + [] RSL.receive(tr_RSL_CONN_FAIL_IND(g_pars.chan_nr, ?)) -> value rm { + log("RSL Conn Fail Ind has been detected as expected: ", rm); + T.stop; + } + [] RSL.receive { repeat; } + [] T.timeout { + setverdict(fail, "Timeout waiting for RSL Conn Fail Ind."); + } + } + + /* Deactivate and cleanup. */ + f_vgcs_cleanup(); +} +testcase TC_vgcs_talker_fail() runs on test_CT +{ + var template RSL_IE_ChannelMode ch_mode; + var ConnHdlrPars pars; + var ConnHdlr vc_conn; + + f_init(); + + ch_mode := ts_RSL_ChanMode(RSL_CHRT_TCH_F_GROUP, RSL_CMOD_SP_GSM1); + pars := valueof(t_Pars(t_RslChanNr_Bm(1), ch_mode)); + pars.t_guard := 60.0; + vc_conn := f_start_handler(refers(f_TC_vgcs_talker_fail), pars); + vc_conn.done; + + Misc_Helpers.f_shutdown(__BFILE__, __LINE__); +} + control { execute( TC_vbs_notification() ); execute( TC_vgcs_uplink_free_and_busy() ); + execute( TC_vgcs_talker_fail() ); } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33818 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: I3b292f6a5f47298195bd942a5ca73d9d63f921b5 Gerrit-Change-Number: 33818 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-MessageType: newchange
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: BTS_Test_ASCI: Add Talker establishment/release test
by jolly 19 Jul '23

19 Jul '23
jolly has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33819 ) Change subject: BTS_Test_ASCI: Add Talker establishment/release test ...................................................................... BTS_Test_ASCI: Add Talker establishment/release test A VGCS channel is activated. The BSC sends UPLINK FREE message. The MS sends RACH on VGCS channel. The MS receives VGCS UPLINK GRAND and establishes layer 2. Then the BSC forces to releases the uplink. The MS receives UPLINK FREE again. Change-Id: Ic86bc34890c7d1e6e0b255c3d40eda3dfaa59285 --- M bts/BTS_Tests.ttcn M bts/BTS_Tests_ASCI.ttcn 2 files changed, 59 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/19/33819/1 diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn index d92b9c6..3602746 100644 --- a/bts/BTS_Tests.ttcn +++ b/bts/BTS_Tests.ttcn @@ -7350,7 +7350,7 @@ } /* establish one Radio Link Layer via SABM -> UA. Use l3 for contention resolution */ -private function f_est_rll_mo(uint3_t sapi, RslLinkId link_id, octetstring l3) runs on ConnHdlr { +friend function f_est_rll_mo(uint3_t sapi, RslLinkId link_id, octetstring l3) runs on ConnHdlr { timer T := 2.0; /* send SABM from MS -> BTS */ f_tx_lapdm(ts_LAPDm_SABM(sapi, cr_MO_CMD, true, l3), link_id); diff --git a/bts/BTS_Tests_ASCI.ttcn b/bts/BTS_Tests_ASCI.ttcn index c53d0b7..06e6563 100644 --- a/bts/BTS_Tests_ASCI.ttcn +++ b/bts/BTS_Tests_ASCI.ttcn @@ -286,10 +286,54 @@ Misc_Helpers.f_shutdown(__BFILE__, __LINE__); } +/* A VGCS channel is activated. The BSC sends UPLINK FREE message. The MS sends RACH on VGCS channel. + * The MS receives VGCS UPLINK GRAND and establishes layer 2. Then the BSC forces to releases the uplink. + */ +private function f_TC_vgcs_talker_est_rel(charstring id) runs on ConnHdlr +{ + var octetstring uplink_free := '082B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B'O; + var octetstring l3 := '01020304'O; + template RslLinkId link_id := ts_RslLinkID_DCCH(0); + var RSL_Message rm; + + /* Perform link establishment and talker detection. */ + f_vgcs_talker_detect(); + + /* Establish layer 2. It also detects, if RSL Est Ind is received. */ + f_est_rll_mo(0, valueof(link_id), l3); + + /* Release link by BSC. */ + RSL.send(ts_RSL_REL_REQ(g_chan_nr, link_id, RSL_REL_MODE_LOCAL)); + + log("Send UPLINK FREE."); + RSL.send(ts_RSL_UNITDATA_REQ(g_chan_nr, link_id, uplink_free)); + f_l1_exp_lapdm(tr_LAPDm_Bter_UI(uplink_free)); + log("Received UPLINK FREE."); + + /* Deactivate and cleanup. */ + f_vgcs_cleanup(); +} +testcase TC_vgcs_talker_est_rel() runs on test_CT +{ + var template RSL_IE_ChannelMode ch_mode; + var ConnHdlrPars pars; + var ConnHdlr vc_conn; + + f_init(); + + ch_mode := ts_RSL_ChanMode(RSL_CHRT_TCH_F_GROUP, RSL_CMOD_SP_GSM1); + pars := valueof(t_Pars(t_RslChanNr_Bm(1), ch_mode)); + vc_conn := f_start_handler(refers(f_TC_vgcs_talker_est_rel), pars); + vc_conn.done; + + Misc_Helpers.f_shutdown(__BFILE__, __LINE__); +} + control { execute( TC_vbs_notification() ); execute( TC_vgcs_uplink_free_and_busy() ); execute( TC_vgcs_talker_fail() ); + execute( TC_vgcs_talker_est_rel() ); } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33819 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: Ic86bc34890c7d1e6e0b255c3d40eda3dfaa59285 Gerrit-Change-Number: 33819 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-MessageType: newchange
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: BTS_Test_ASCI: Add UPLINK FREE / UPLINK BUSY test
by jolly 19 Jul '23

19 Jul '23
jolly has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33817 ) Change subject: BTS_Test_ASCI: Add UPLINK FREE / UPLINK BUSY test ...................................................................... BTS_Test_ASCI: Add UPLINK FREE / UPLINK BUSY test A VGCS channel is activated. The BSC sends UPLINK FREE message and UPLINK BUSY message. When the UPLINK FREE message is sent, the MS is expected to receive serveral UPLINK FREE messages. Then the UPLINK BUSY message is sent, the MS is expected to receive one UPLINK BUSY message. Change-Id: I2f70adb4a6f71eb8972feccf9dda0f77e7a942b9 --- M bts/BTS_Tests.ttcn M bts/BTS_Tests_ASCI.ttcn 2 files changed, 80 insertions(+), 2 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/17/33817/1 diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn index d893601..d92b9c6 100644 --- a/bts/BTS_Tests.ttcn +++ b/bts/BTS_Tests.ttcn @@ -2501,7 +2501,7 @@ } /* Tune to a dedicated channel: L1CTL only */ -private function f_l1ctl_est_dchan(L1CTL_PT pt, ConnHdlrPars pars) { +friend function f_l1ctl_est_dchan(L1CTL_PT pt, ConnHdlrPars pars) { if (not pars.fhp.enabled) { var TrxParsItem trx_pars := mp_trx_pars[pars.trx_nr]; pt.send(ts_L1CTL_DM_EST_REQ_H0(pars.chan_nr, pars.tsc, @@ -7338,7 +7338,7 @@ } [] L1CTL.receive { repeat; } } -private function f_l1_exp_lapdm(template LapdmFrame exp, float t := 3.0) runs on ConnHdlr { +friend function f_l1_exp_lapdm(template LapdmFrame exp, float t := 3.0) runs on ConnHdlr { timer T := t; T.start; alt { diff --git a/bts/BTS_Tests_ASCI.ttcn b/bts/BTS_Tests_ASCI.ttcn index 22e965e..fbaf79e 100644 --- a/bts/BTS_Tests_ASCI.ttcn +++ b/bts/BTS_Tests_ASCI.ttcn @@ -123,8 +123,72 @@ Misc_Helpers.f_shutdown(__BFILE__, __LINE__); } +/* Sub function to clean up MS and BTS. */ +private function f_vgcs_cleanup() runs on ConnHdlr +{ + /* Cleanup L1CTL. */ + f_L1CTL_RESET(L1CTL); + f_l1_tune(L1CTL); + + /* Cleanup VGCS Channel. */ + f_rsl_chan_deact(); +} + +/* A VGCS channel is activated. The BSC sends UPLINK FREE message and UPLINK BUSY message. + * When the UPLINK FREE message is sent, the MS is expected to receive serveral UPLINK FREE messages. + * Then the UPLINK BUSY message is sent, the MS is expected to receive one UPLINK BUSY message. + */ +private function f_TC_vgcs_uplink_free_and_busy(charstring id) runs on ConnHdlr +{ + var octetstring uplink_free := '082B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B'O; + var octetstring uplink_busy := '062A'O; + + f_l1_tune(L1CTL); + RSL.clear; + + /* Activate channel on the BTS side */ + log("Activating VGCS channel."); + f_rsl_chan_act(g_pars.chan_mode); + + /* enable dedicated mode */ + f_l1ctl_est_dchan(L1CTL, g_pars); + + /* Send one UPLINK FREE message and expect them to be repeated. */ + log("Send UPLINK FREE."); + RSL.send(ts_RSL_UNITDATA_REQ(g_chan_nr, ts_RslLinkID_DCCH(0), uplink_free)); + for (var integer i := 0; i < 20; i := i + 1) { + f_l1_exp_lapdm(tr_LAPDm_Bter_UI(uplink_free)); + log("Received UPLINK FREE."); + } + + /* Send one UPLINK BUSY message and expect it to be received. */ + log("Send UPLINK BUSY."); + RSL.send(ts_RSL_UNITDATA_REQ(g_chan_nr, ts_RslLinkID_DCCH(0), uplink_busy)); + f_l1_exp_lapdm(tr_LAPDm_UI(0, cr_MT_CMD, uplink_busy)); + log("Received UPLINK BUSY."); + + /* Deactivate and cleanup. */ + f_vgcs_cleanup(); +} +testcase TC_vgcs_uplink_free_and_busy() runs on test_CT +{ + var template RSL_IE_ChannelMode ch_mode; + var ConnHdlrPars pars; + var ConnHdlr vc_conn; + + f_init(); + + ch_mode := ts_RSL_ChanMode(RSL_CHRT_TCH_F_GROUP, RSL_CMOD_SP_GSM1); + pars := valueof(t_Pars(t_RslChanNr_Bm(1), ch_mode)); + vc_conn := f_start_handler(refers(f_TC_vgcs_uplink_free_and_busy), pars); + vc_conn.done; + + Misc_Helpers.f_shutdown(__BFILE__, __LINE__); +} + control { execute( TC_vbs_notification() ); + execute( TC_vgcs_uplink_free_and_busy() ); } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33817 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: I2f70adb4a6f71eb8972feccf9dda0f77e7a942b9 Gerrit-Change-Number: 33817 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-MessageType: newchange
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: BTS_Test_ASCI: Add Listener detection test
by jolly 19 Jul '23

19 Jul '23
jolly has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33820 ) Change subject: BTS_Test_ASCI: Add Listener detection test ...................................................................... BTS_Test_ASCI: Add Listener detection test The MS sends UPLINK ACCESS. The BTS send RSL Listener DET message. Another MS send UPLINK ACCESS. The BTS does not send another RSL Listener DET message. Change-Id: I544f492a32751d17f998a2143081c3763ba1dd29 --- M bts/BTS_Tests_ASCI.ttcn 1 file changed, 92 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/20/33820/1 diff --git a/bts/BTS_Tests_ASCI.ttcn b/bts/BTS_Tests_ASCI.ttcn index 06e6563..2022bdd 100644 --- a/bts/BTS_Tests_ASCI.ttcn +++ b/bts/BTS_Tests_ASCI.ttcn @@ -329,11 +329,90 @@ Misc_Helpers.f_shutdown(__BFILE__, __LINE__); } +private function f_TC_vgcs_listener_det(charstring id) runs on ConnHdlr +{ + var octetstring uplink_access := '25'O; + var RSL_Message rm; + var GsmFrameNumber fn; + + f_l1_tune(L1CTL); + RSL.clear; + + /* Activate channel on the BTS side. */ + log("Activating VGCS channel."); + f_rsl_chan_act(g_pars.chan_mode); + + /* Enable dedicated mode. */ + f_l1ctl_est_dchan(L1CTL, g_pars); + + /* Send UPLINK ACCESS on VGCS channel. */ + log("Send UPLINK ACCESS."); + fn := f_L1CTL_RACH(L1CTL, oct2int(uplink_access), chan_nr := g_pars.chan_nr); + + /* Wait for listener detection. */ + timer T := 2.0; + T.start; + alt { + [] RSL.receive(tr_RSL_LISTENER_DET(g_pars.chan_nr, ?)) -> value rm { + log("RSL Talker Listener has been detected: ", rm); + T.stop; + } + [] RSL.receive(tr_RSL_CHAN_RQD(?, ?, ?, ?)) -> value rm { + setverdict(fail, log2str("RSL_CHAN_RQD was not expected: ", rm)); + T.stop; + } + [] RSL.receive { repeat; } + [] T.timeout { + setverdict(fail, "Timeout waiting for RSL Listener Detect."); + } + } + + /* Send UPLINK ACCESS on VGCS channel. */ + log("Send second UPLINK ACCESS."); + fn := f_L1CTL_RACH(L1CTL, oct2int(uplink_access), chan_nr := g_pars.chan_nr); + + /* Wait for listener detection. */ + T.start; + alt { + [] RSL.receive(tr_RSL_LISTENER_DET(g_pars.chan_nr, ?)) { + setverdict(fail, "RSL Listener Detect has been detected, but not expected!"); + T.stop; + } + [] RSL.receive(tr_RSL_CHAN_RQD(?, ?, ?, ?)) -> value rm { + setverdict(fail, log2str("RSL_CHAN_RQD was not expected: ", rm)); + T.stop; + } + [] RSL.receive { repeat; } + [] T.timeout { + log("Timeout waiting for RSL Listener Detect, as expected."); + } + } + + /* Deactivate and cleanup. */ + f_vgcs_cleanup(); +} +testcase TC_vgcs_listener_det() runs on test_CT +{ + var template RSL_IE_ChannelMode ch_mode; + var ConnHdlrPars pars; + var ConnHdlr vc_conn; + + f_init(); + + ch_mode := ts_RSL_ChanMode(RSL_CHRT_TCH_F_GROUP, RSL_CMOD_SP_GSM1); + pars := valueof(t_Pars(t_RslChanNr_Bm(1), ch_mode)); + vc_conn := f_start_handler(refers(f_TC_vgcs_listener_det), pars); + vc_conn.done; + + Misc_Helpers.f_shutdown(__BFILE__, __LINE__); +} + control { execute( TC_vbs_notification() ); execute( TC_vgcs_uplink_free_and_busy() ); execute( TC_vgcs_talker_fail() ); execute( TC_vgcs_talker_est_rel() ); + execute( TC_vgcs_listener_det() ); } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33820 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: I544f492a32751d17f998a2143081c3763ba1dd29 Gerrit-Change-Number: 33820 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-MessageType: newchange
1 0
0 0
[L] Change in docker-playground[master]: hnbgw: adjust cfg for cnpool tests
by neels 18 Jul '23

18 Jul '23
Attention is currently required from: pespin. Hello Jenkins Builder, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/c/docker-playground/+/33668 to look at the new patch set (#5). Change subject: hnbgw: adjust cfg for cnpool tests ...................................................................... hnbgw: adjust cfg for cnpool tests Config changes matching cnpool tests added in osmo-ttcn3-hacks, see 'Related'. Keep a copy of the old config files named "-legacy", to not break the 'latest' tests, because osmo-hnbgw 'latest' does not yet support the new config options. Depends: osmo-ttcn3-hacks I027a059faed3f140f8801f84338956cd004043b5 Change-Id: I94aa0b2adfc48b98cb4b1efe595c2432fc603d6c --- M ttcn3-hnbgw-test/jenkins.sh A ttcn3-hnbgw-test/osmo-hnbgw-legacy.cfg M ttcn3-hnbgw-test/osmo-hnbgw.cfg A ttcn3-hnbgw-test/osmo-stp-legacy.cfg M ttcn3-hnbgw-test/osmo-stp.cfg A ttcn3-hnbgw-test/with-pfcp/osmo-hnbgw-legacy.cfg M ttcn3-hnbgw-test/with-pfcp/osmo-hnbgw.cfg 7 files changed, 400 insertions(+), 15 deletions(-) git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/68/33668/5 -- To view, visit https://gerrit.osmocom.org/c/docker-playground/+/33668 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: docker-playground Gerrit-Branch: master Gerrit-Change-Id: I94aa0b2adfc48b98cb4b1efe595c2432fc603d6c Gerrit-Change-Number: 33668 Gerrit-PatchSet: 5 Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: pespin <pespin(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-MessageType: newpatchset
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • ...
  • 306
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.