Commit 7688f4d1 authored by Yann Garcia's avatar Yann Garcia
Browse files

Add data call in f_NGAP_gnb_UE_Register

parent 50caec0e
Loading
Loading
Loading
Loading
+16 −11
Changes for ttcn/AtsNGAP/NGAP_Steps.ttcn: 16 added lines, 11 removed lines.
Original line number Diff line number Diff line
@@ -592,15 +592,17 @@ module NGAP_Steps { // TODO FSCOM f_xxx_UE_SecurityMode to be mmoved into NAG_NG
            if (PICS_USE_UERANSIMU) {
                fx_ut_start_ue(PX_UE_BINARY_FILE, PX_UE_CONFIG_FILE);
            } else if (PICS_USE_AT_COMMANDS) {
                // Trigger the real UE (modem) into registering on the network by having it place an IMS
                // call: the modem attaches/registers as a side effect of the call setup, which is what
                // f_await_registration_request below is waiting for. The call result itself is not
                // checked (NO_CNF_REQUIRED, the default of f_UT_RequestIMSCall), only the resulting NAS
                // signalling is -- but the modem restart and the PLMN selection ahead of it are both
                // waited on AND their result is checked (f_UT_RestartModem/f_UT_ManualPLMN_Select
                // themselves only wait, they never inspect Result -- see NGAP_UtProbe.ttcn
                // investigation), so a genuine AT+CFUN/AT+COPS failure stops here instead of silently
                // placing the call regardless.
                // Have the real UE (modem) register on the network and then place a data call. The
                // upper tester first waits for the modem to be attached (up to
                // PX_UT_DATA_CALL_ATTACH_TIMEOUT), which needs the registration handled from
                // f_await_registration_request below onwards, and only then dials. The request is
                // therefore sent with NO_CNF_REQUIRED: waiting for its confirmation here would
                // block the registration it depends on. The call result itself is not checked, only
                // the resulting NAS signalling is -- but the modem restart and the PLMN selection
                // ahead of it are both waited on AND their result is checked
                // (f_UT_RestartModem/f_UT_ManualPLMN_Select themselves only wait, they never inspect
                // Result -- see NGAP_UtProbe.ttcn investigation), so a genuine AT+CFUN/AT+COPS
                // failure stops here instead of silently placing the call regardless.
                var UT_COMMON_CNF v_utCnf;

                log("f_NGAP_gnb_UE_Register: Restarting the modem");
@@ -619,8 +621,11 @@ module NGAP_Steps { // TODO FSCOM f_xxx_UE_SecurityMode to be mmoved into NAG_NG
                    return;
                }

                log("f_NGAP_gnb_UE_Register: Requesting an IMS call to ", PX_UT_IMS_CALLEE_URI, " to trigger UE registration");
                f_UT_RequestIMSCall(utPtcMtcPort, PX_UT_IMS_CALLEE_URI);
                log("f_NGAP_gnb_UE_Register: Requesting a data call: APN=", PX_UT_DATA_CALL_APN, ", attach timeout=", PX_UT_DATA_CALL_ATTACH_TIMEOUT);
                fl_UT_ApplyCommand(utPtcMtcPort, cas_UT_Req(ACTIVATE_BEARER, NO_CNF_REQUIRED, {
                                                                                               cs_Ut_Parameter_Common("APN", PX_UT_DATA_CALL_APN),
                                                                                               cs_Ut_Parameter_Common("ATTACH_TIMEOUT", float2str(PX_UT_DATA_CALL_ATTACH_TIMEOUT))
                                                                                               }));
            }

            log("f_NGAP_gnb_UE_Register: f_send_NGSetupRequest_await_NGSetupResponse done");
+7 −1
Changes for ttcn/LibNGAP/lib/LibNGAP_Pixits.ttcn: 7 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -730,7 +730,13 @@ module LibNGAP_Pixits {
    /** @desc URI/number dialed by the real UE (AT commands) to trigger registration+IMS call when PICS_USE_AT_COMMANDS is true; see f_NGAP_gnb_UE_Register */
    modulepar charstring PX_UT_IMS_CALLEE_URI := "tel:0123456789";

    /** @desc PLMN the real UE (AT commands) is manually camped on before the IMS call is placed; see f_NGAP_gnb_UE_Register.
    /** @desc APN/DNN of the data call the real UE (AT commands) places when PICS_USE_AT_COMMANDS is true; see f_NGAP_gnb_UE_Register */
    modulepar charstring PX_UT_DATA_CALL_APN := "internet";

    /** @desc Time, in seconds, the upper tester waits for the real UE to be attached before it dials the data call; it must cover the registration procedure */
    modulepar float      PX_UT_DATA_CALL_ATTACH_TIMEOUT := 60.0;

    /** @desc PLMN the real UE (AT commands) is manually camped on before the data call is placed; see f_NGAP_gnb_UE_Register.
     *        Independent from PX_NAS_MCC/PX_NAS_MNC (those are for the simulated NAS/AKA side, not the AT+COPS command). */
    modulepar NAS_Mcc     PX_UT_PLMN_MCC := '999'H;
    modulepar hexstring   PX_UT_PLMN_MNC := '40'H;