Loading ttcn/CALM/ATSP/LibItsAtsp_Functions.ttcn3 +69 −7 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ module LibItsAtsp_Functions { type UserPriority, LLserviceAddr, INdata, IN_SAPaddress, CIstatus, Link_ID, MedType CIstatus, Link_ID, MedType, Errors }; import from CALMmsap language "ASN.1:1997" { Loading Loading @@ -44,7 +44,7 @@ module LibItsAtsp_Functions { }; import from LibItsMgt_TypesAndValues { const c_dniCiid; type IParamNoList, IParamList, IErrorsList type IParamNoList, IParamList }; import from LibItsMgt_Functions { function f_getNextCommandRef Loading @@ -62,6 +62,66 @@ module LibItsAtsp_Functions { cfPort.clear; // Because TestConfigIICP should trigger management port deletion message } // End of function f_initialState /** * @desc Checks whether the IUT is in the initial CI state "active". */ function f_initialCIstateActive() runs on ItsCalm return CIstatus { var CIstatus v_CIstatus; // CI status has to be "active" v_CIstatus := f_cnGetCiStatusParameterValueCI( f_get_CI_LinkID()); if( v_CIstatus != c_ciStatusActive) // wrong status { // Request operator to switch on the SUT or to activate the IUT action("Switch on SUT or activate IUT"); v_CIstatus := f_cnGetCiStatusParameterValueCI( f_get_CI_LinkID()); } // check again CI status after activation of IUT if( (v_CIstatus != c_ciStatusActive)) { log("*** f_initialCIstateActive: ERROR: Invalid initial CI status returned ***", v_CIstatus); f_selfOrClientSyncAndVerdict("error", e_timeout); // Might be just a time-out error stop; } else { log("*** f_initialCIstateActive: Allowed initial CI status returned ***", v_CIstatus); } return v_CIstatus } // End of function f_initialCIstateActive /** * @desc Checks whether the IUT is in an operational initial CI state * i.e. not in "not-existent", "existent", "unknown". */ function f_initialCIstatesOperational() runs on ItsCalm return CIstatus { var CIstatus v_CIstatus; // CI status has to be in any CI state except "not_existent", "existent", "unknown". v_CIstatus := f_cnGetCiStatusParameterValueCI( f_get_CI_LinkID()); if( (v_CIstatus == c_ciStatusUnknown) or (v_CIstatus == c_ciStatusNot_existent) or (v_CIstatus == c_ciStatusExistent) ) // wrong status { // Request operator to switch on the SUT or to activate the IUT action("Switch on SUT or activate IUT"); v_CIstatus := f_cnGetCiStatusParameterValueCI( f_get_CI_LinkID()); } // check again CI status after activation of IUT if( (v_CIstatus == c_ciStatusUnknown) or (v_CIstatus == c_ciStatusNot_existent) or (v_CIstatus == c_ciStatusExistent) ) { log("*** f_initialCIstatesOperational: ERROR: Invalid initial CI status returned ***", v_CIstatus); f_selfOrClientSyncAndVerdict("error", e_timeout); // Might be just a time-out error stop; } else { log("*** f_initialCIstatesOperational: Allowed initial CI status returned ***", v_CIstatus); } return v_CIstatus } // End of function f_initialCIstatesOperational } // End of group preambles group postambles { Loading Loading @@ -453,25 +513,25 @@ module LibItsAtsp_Functions { in template Link_ID p_linkID, // PIXIT Element in IParamList p_paramValueList, in boolean p_discard // set to TRUE ) runs on ItsCalm return IErrorsList { ) runs on ItsCalm return Errors { //local variable(s) var template CfEvent v_setCIparams; var template CfEventInd v_cfSetSuccess; var IErrorsList v_cfSetErrorList; var Errors v_cfSetErrorList; var CfEventInd v_result; var CommandRef c_commandRef := f_getNextCommandRef(); var CommandRef v_commandRef := f_getNextCommandRef(); v_setCIparams := m_cfAtspSetReqEvent( m_miSetRequest( p_linkID, c_commandRef, v_commandRef, p_paramValueList ) ); cfPort.send(v_setCIparams); v_cfSetSuccess := mw_cfAtspEventIndSetConf( mw_miSetConfirm(p_linkID, c_commandRef, ?)); mw_miSetConfirm(p_linkID, v_commandRef, ?)); log("*** f_cnSetIParameterValueCI: INFO: Expected MI-Get.confirm: ", v_cfSetSuccess, " ***"); tc_wait.start; alt { Loading Loading @@ -577,6 +637,8 @@ module LibItsAtsp_Functions { var CfEventInd v_result; var CommandRef v_commandRef := f_getNextCommandRef(); v_ciStatus := c_ciStatusUnknown; // initialization with unknown status v_getCIparam := m_cfAtspGetReqEvent( m_miGetRequest( p_linkID, Loading ttcn/CALM/ATSP/LibItsAtsp_Pics.ttcn3 +41 −40 Original line number Diff line number Diff line Loading @@ -11,214 +11,215 @@ module LibItsAtsp_Pics { /** * @desc PICS mnemonics for ISO 21218 "ITS - CALM - Access Technology Support" * @see ETSI TS 102 760-1 v_stf455_v04 * @see ETSI TS 102 760-1 v_stf455_v06 */ modulepar boolean PICS_ACT := false; /** * @desc Is IUT supporting BC-VCI transmitter? * @see ETSI TS 102 760-1 v_stf455_v04 C.11/4 * @see ETSI TS 102 760-1 v_stf455_v06 C.11/4 */ modulepar boolean PICS_BCVCI := false; /** * @desc Is IUT of CI access class CIAC-1 (no user authentiaction required, usage of CI is free of charge)? * @see ETSI TS 102 760-1 v_stf455_v04 C.6/1 * @see ETSI TS 102 760-1 v_stf455_v06 C.6/1 */ modulepar boolean PICS_CIAC1 := false; /** * @desc Is IUT of CI access class CIAC-2 (access credentials required, usage of CI is subject of a service charge? * @see ETSI TS 102 760-1 v_stf455_v04 C.6/2 * @see ETSI TS 102 760-1 v_stf455_v06 C.6/2 */ modulepar boolean PICS_CIAC2 := false; /** * @desc Is IUT of CI access class CIAC-3 (access credentials required, usage of CI is free of charge)? * @see ETSI TS 102 760-1 v_stf455_v04 C.6/3 * @see ETSI TS 102 760-1 v_stf455_v06 C.6/3 */ modulepar boolean PICS_CIAC3 := false; /** * @desc Is IUT of CI class CIC-il1 (non-deterministic ITS station-internal network interface)? * @see ETSI TS 102 760-1 v_stf455_v04 C.5/6 * @see ETSI TS 102 760-1 v_stf455_v06 C.5/6 */ modulepar boolean PICS_CIC_il1 := false; /** * @desc Is IUT of CI class CIC-il2 (deterministic ITS station-internal network interface)? * @see ETSI TS 102 760-1 v_stf455_v04 C.5/7 * @see ETSI TS 102 760-1 v_stf455_v06 C.5/7 */ modulepar boolean PICS_CIC_il2 := false; /** * @desc Is IUT of CI class CIC-l1 (multiple simultaneous peer stations transceiver)? * @see ETSI TS 102 760-1 v_stf455_v04 C.5/1 * @see ETSI TS 102 760-1 v_stf455_v06 C.5/1 */ modulepar boolean PICS_CIC_l1 := false; /** * @desc Is IUT of CI class CIC-l2 (single peer station transceiver)? * @see ETSI TS 102 760-1 v_stf455_v04 C.5/2 * @see ETSI TS 102 760-1 v_stf455_v06 C.5/2 */ modulepar boolean PICS_CIC_l2 := false; /** * @desc Is IUT of CI class CIC-l3 (groupcast transmitter only)? * @see ETSI TS 102 760-1 v_stf455_v04 C.5/3 * @see ETSI TS 102 760-1 v_stf455_v06 C.5/3 */ modulepar boolean PICS_CIC_l3 := false; /** * @desc Is IUT of CI class CIC-l4 (broadcast receiver only)? * @see ETSI TS 102 760-1 v_stf455_v04 C.5/4 * @see ETSI TS 102 760-1 v_stf455_v06 C.5/4 */ modulepar boolean PICS_CIC_l4 := false; /** * @desc Is IUT of CI class CIC-l5 (CEN / Japanese DSRC)? * @see ETSI TS 102 760-1 v_stf455_v04 C.5/5 * @see ETSI TS 102 760-1 v_stf455_v06 C.5/5 */ modulepar boolean PICS_CIC_l5 := false; /** * @desc Is IUT supporting the connection procedure? * @see ETSI TS 102 760-1 v_stf455_v04 C.11/7 * @see ETSI TS 102 760-1 v_stf455_v06 C.11/7 */ modulepar boolean PICS_CONN := false; /** * @desc Is IUT supporting the Cross-CI prioritization - interferer procedure? * @see ETSI TS 102 760-1 v_stf455_v04 C.11/10 * @see ETSI TS 102 760-1 v_stf455_v06 C.11/10 */ modulepar boolean PICS_CRCIP_I := false; /** * @desc Is IUT supporting the Cross-CI prioritization - victim procedure? * @see ETSI TS 102 760-1 v_stf455_v04 C.11/9 * @see ETSI TS 102 760-1 v_stf455_v06 C.11/9 */ modulepar boolean PICS_CRCIP_V := false; /** * @desc Is IUT supporting deletion of VCIs? * @see ETSI TS 102 760-1 v_stf455_v04 C.11/18 */ modulepar boolean PICS_DELET := false; /** * @desc Is IUT supporting the disconnection procedure? * @see ETSI TS 102 760-1 v_stf455_v04 C.11/8 * @see ETSI TS 102 760-1 v_stf455_v06 C.11/8 */ modulepar boolean PICS_DISCONN := false; /** * @desc Is IUT supporting dynamic registration using the standardized registration procedure? * @see ETSI TS 102 760-1 v_stf455_v04 C.1/1 * @see ETSI TS 102 760-1 v_stf455_v06 C.1/1 */ modulepar boolean PICS_DYNREG := false; /** * @desc Is IUT supporting the inactivation procedure? * @see ETSI TS 102 760-1 v_stf455_v04 C.11/3 * @see ETSI TS 102 760-1 v_stf455_v06 C.11/3 */ modulepar boolean PICS_INACT := false; /** * @desc Is IUT supporting the IN-UNITDATA-STATUS service? * @see ETSI TS 102 760-1 v_stf455_v04 C.12/2 * @see ETSI TS 102 760-1 v_stf455_v06 C.12/2 */ modulepar boolean PICS_INUDS := false; /** * @desc Is IUT supporting notification-only I-Parameters? * @see ETSI TS 102 760-1 v_stf455_v04 C.24 any selected notify-only I-Parameter * @see ETSI TS 102 760-1 v_stf455_v06 C.24 any selected notify-only I-Parameter */ modulepar boolean PICS_IPNO := false; /** * @desc Is IUT supporting read-only I-Parameters? * @see ETSI TS 102 760-1 v_stf455_v04 C.21 and C.22 any selected read-only I-Parameter * @see ETSI TS 102 760-1 v_stf455_v06 C.21 and C.22 any selected read-only I-Parameter */ modulepar boolean PICS_IPRO := false; /** * @desc Is IUT supporting read/write I-Parameters? * @see ETSI TS 102 760-1 v_stf455_v04 C.19 and C.20 any selected read/write I-Parameter * @see ETSI TS 102 760-1 v_stf455_v06 C.19 and C.20 any selected read/write I-Parameter */ modulepar boolean PICS_IPRW := false; /** * @desc Is IUT supporting write-only I-Parameters? * @see ETSI TS 102 760-1 v_stf455_v04 C.23 any selected write-only I-Parameter * @see ETSI TS 102 760-1 v_stf455_v06 C.23 any selected write-only I-Parameter */ modulepar boolean PICS_IPWO := false; /** * @desc Is IUT useing 48 bit MAC addresses? * @see ETSI TS 102 760-1 v_stf455_v04 C.4/1 * @see ETSI TS 102 760-1 v_stf455_v06 C.4/1 */ modulepar boolean PICS_MAC48 := false; /** * @desc Is IUT supporting MC-VCI transmitter? * @see ETSI TS 102 760-1 v_stf455_v04 C.8/2 * @see ETSI TS 102 760-1 v_stf455_v06 C.8/2 */ modulepar boolean PICS_MCVCI := false; /** * @desc Is IUT supporting rejection of DL-UNITDATA.reqeusts with user priority smaller than given in parameter "MinimumUserPriority"? * @see ETSI TS 102 760-1 v_stf455_v04 C.11/20 * @see ETSI TS 102 760-1 v_stf455_v06 C.11/20 */ modulepar boolean PICS_REJECT := false; /** * @desc Is IUT supporting the resuming procedure? * @see ETSI TS 102 760-1 v_stf455_v04 C.11/6 * @see ETSI TS 102 760-1 v_stf455_v06 C.11/6 */ modulepar boolean PICS_RES := false; /** * @desc Is IUT supporting the Regulatory Information Management procedure? * @see ETSI TS 102 760-1 v_stf455_v04 C.11/12 * @see ETSI TS 102 760-1 v_stf455_v06 C.11/12 */ modulepar boolean PICS_RIM := false; /** * @desc Is IUT supporting SNAP? * @see ETSI TS 102 760-1 v_stf455_v04 C.13/1 * @see ETSI TS 102 760-1 v_stf455_v06 C.13/1 */ modulepar boolean PICS_SNAP := false; /** * @desc Is IUT supporting the suspension procedure? * @see ETSI TS 102 760-1 v_stf455_v04 C.11/5 * @see ETSI TS 102 760-1 v_stf455_v06 C.11/5 */ modulepar boolean PICS_SUSP := false; /** * @desc Is IUT supporting UC-VCI (transmitter and receiver)? * @see ETSI TS 102 760-1 v_stf455_v04 C.8/3 * @see ETSI TS 102 760-1 v_stf455_v06 C.8/3 */ modulepar boolean PICS_UCVCI := false; /** * @desc Is IUT supporting the UnitDataCmd command? * @see ETSI TS 102 760-1 v_stf455_v04 C.15/12 * @see ETSI TS 102 760-1 v_stf455_v06 C.15/12 */ modulepar boolean PICS_UDC := false; /** * @desc Is IUT supporting the WakeUp command? * @see ETSI TS 102 760-1 v_stf455_v04 C.15/4 * @see ETSI TS 102 760-1 v_stf455_v06 C.15/4 */ modulepar boolean PICS_WAKEUP := false; /** * @desc Is IUT supporting the IN-UNITDATA-STATUS service primitive? * @see ETSI TS 102 760-1 v_stf455_v06 C.12/2 */ modulepar boolean PICS_IN_UNITDATA_STATUS := false; /** * @desc Is IUT supporting the Monitor command? * @see ETSI TS 102 760-1 v_stf455_v06 C.15/11 */ modulepar boolean PICS_MONITOR := false; } // End of group atspPics } // End of module LibItsAtsp_Pics ttcn/CALM/ATSP/LibItsAtsp_Pixits.ttcn3 +40 −15 Original line number Diff line number Diff line Loading @@ -7,8 +7,8 @@ module LibItsAtsp_Pixits { import from CALMllsap language "ASN.1:1997" { type EUI64, MedID, VCIserialNumber, IN_SAPaddress type all // EUI64, MedID, VCIserialNumber, IN_SAPaddress, I_ParamNo, I_Param, MedID }; import from CALMmanagement language "ASN.1:1997" { Loading @@ -16,12 +16,44 @@ module LibItsAtsp_Pixits { ITS_scuId }; import from LibItsAtsp_TypesAndValues all; group Iparameter { /** * @desc Expected ITS-SCU-ID of the IUT CI * @see ISO 21218 - Clause 6.2 Link Identifier * I-Parameter No c_ciIParamNoITS_scuId */ modulepar ITS_scuId PX_ITS_SCU_ID := 0; /** * @desc Expected MedType of the IUT CI * @see ISO 21218 - Clause 6.3 Link Identifier * I-Parameter No c_ciIParamNoMedID */ modulepar MedID PX_CI_MED_TYPE := 5; /** * @desc Unknown I-Parameter No * @see ISO 21218 - Clause 6.3 Link Identifier */ modulepar I_ParamNo PX_CI_UNKNOWN_PARAM_NO := 255; /** * @desc Not supported I-Parameter * @see ISO 21218 - Clause 6.3 Link Identifier */ modulepar I_Param PX_CI_NO_SUPPORT_PARAM := {paramNo := c_ciIParamNoMinPrioCrossCI, parameter := {UserPriority := 0} }; /** * @desc Supported Read-Only or Notify-Only I-Parameter * @see ISO 21218 - Clause 6.3 Link Identifier */ modulepar I_ParamNo PX_CI_SUPPORT_NO_WRITE_ACCESS_PARAM_NO := c_ciIParamNoCiStatus; modulepar I_Param PX_CI_SUPPORT_NO_WRITE_ACCESS_PARAM := {paramNo := PX_CI_SUPPORT_NO_WRITE_ACCESS_PARAM_NO, parameter := {CIstatus := 0} }; } // End of group Iparameter /** * @desc Expected IN-SAP address * @see ISO 21218 - Clause 8.2 Addressing Loading @@ -30,13 +62,6 @@ module LibItsAtsp_Pixits { */ modulepar IN_SAPaddress PX_IN_SAP_ADDRESS := 186; /** * @desc Expected MedType of the IUT CI * @see ISO 21218 - Clause 6.3 Link Identifier * ISO 21215 (802.11): 5 */ modulepar MedID PX_CI_MED_TYPE := 5; /** * @desc Expected VCIserialNumber of the IUT CI * @see ISO 21218 - Clause 6.3 Link Identifier Loading ttcn/CALM/ATSP/LibItsAtsp_Templates.ttcn3 +78 −15 Original line number Diff line number Diff line Loading @@ -14,20 +14,21 @@ module LibItsAtsp_Templates { UserPriority, LLserviceAddr, INdata, IN_SAPaddress, EUI64, Link_ID, AccessParameters, NullType NullType, Errors }; import from CALMmsap language "ASN.1:1997" { type CIstateChng, WakeUp, RIcmd, RI, RegCmd, RegReq, Events21218, E21218_3, E21218_5, E21218_3, E21218_4, E21218_5, E21218_7, StationID, CommandRef, ErrStatus, MI_Command_request, MI_Command_confirm, MI_Request_request, MI_Request_confirm, MI_Get_request, MI_Get_confirm, MI_Set_request, MI_Set_confirm, SimIUTcmd SimIUTcmd , CONcmd, VciCmd }; import from CALMmanagement language "ASN.1:1997" { Loading @@ -44,7 +45,7 @@ module LibItsAtsp_Templates { import from LibItsCalm_Interface all; import from LibItsAtsp_TypesAndValues all; import from LibItsMgt_TypesAndValues { type IParamNoList, IParamList, IErrorsList type IParamNoList, IParamList }; group inSapPrimitives { Loading Loading @@ -471,7 +472,7 @@ module LibItsAtsp_Templates { ) := { linkID := p_linkID, commandRef := p_commandRef, ref := 1, ref := c_miCmdReqRegCmd, command_param := {RegCmd := p_regCmd} } // End of template m_miRegistrationCommandRequest Loading @@ -489,7 +490,7 @@ module LibItsAtsp_Templates { ) := { linkID := p_linkID, commandRef := p_commandRef, ref := 2, ref := c_miCmdReqCIstateChng, command_param := {CIstateChng := p_stateChng} } // End of template m_miStateChangeCommandRequest Loading @@ -506,7 +507,7 @@ module LibItsAtsp_Templates { ) := { linkID := p_linkID, commandRef := p_commandRef, ref := 3, ref := c_miCmdReqWakeUp, command_param := {WakeUp := p_wakeUp} } // End of template m_miWakeUpCommandRequest Loading @@ -523,7 +524,7 @@ module LibItsAtsp_Templates { ) := { linkID := p_linkID, commandRef := p_commandRef, ref := 7, ref := c_miCmdReqRIcmd, command_param := {RIcmd := p_riCmd} } // End of template m_miRICmdCommandRequest Loading @@ -540,6 +541,41 @@ module LibItsAtsp_Templates { ri := p_ri } // End of template m_miRICmd /** * @desc Send template for MI-COMMAND.request containing CONcmd command service primitive * @param p_linkID Link-ID of VCI / CI. * @param p_commandRef Unique cyclic reference number of command. * @param p_conCmd Registration command primitive */ template (value) MI_Command_request m_miCONcmdCommandRequest( in template (value) Link_ID p_linkID, in template (value) CommandRef p_commandRef, in template (value) CONcmd p_conCMD ) := { linkID := p_linkID, commandRef := p_commandRef, ref := c_miCmdReqCONcmd, command_param := {CONcmd := p_conCMD} } // End of template m_miCONcmdCommandRequest /** * @desc Send template for MI-COMMAND.request containing VCIcmd command service primitive * @param p_linkID Link-ID of VCI / CI. * @param p_commandRef Unique cyclic reference number of command. * @param p_vciCmd VCIcmd value */ template (value) MI_Command_request m_miVCIcmdCommandRequest( in template (value) Link_ID p_linkID, in template (value) CommandRef p_commandRef, in template (value) VciCmd p_vciCmd ) := { linkID := p_linkID, commandRef := p_commandRef, ref := c_miCmdReqCIstateChng, command_param := {VciCmd := p_vciCmd} } // End of template m_miVCIcmdCommandRequest } // end of group miCommandRequest group miCommandConfirm { Loading Loading @@ -725,26 +761,53 @@ module LibItsAtsp_Templates { * @param p_parameter VCI created event data */ template Events21218 mw_miEvent21218_3( in template E21218_3 p_parameter in template Link_ID p_parameter ) := { eventNo := 3, event := { E21218_3 := p_parameter Link_ID := p_parameter } } // End of template mw_miEvent21218_3 /** * @desc Generic receive template for VCI Created notifications in MI-REQUEST.request service primitive * @desc Generic receive template for VCI notifications in MI-REQUEST.request service primitive * @param p_parameter VCI deleted event data */ template Events21218 mw_miEvent21218_4( in template Link_ID p_parameter ) := { eventNo := 4, event := { Link_ID := p_parameter } } // End of template mw_miEvent21218_4 /** * @desc Generic receive template for VCI notifications in MI-REQUEST.request service primitive * @param p_parameter VCI reset event data */ template Events21218 mw_miEvent21218_7( in template Link_ID p_parameter ) := { eventNo := 7, event := { Link_ID := p_parameter } } // End of template mw_miEvent21218_7 /** * @desc Generic receive template for VCI Created / Deleleted / Reset notifications in MI-REQUEST.request service primitive * @param p_remoteCIID RemoteCIID of the VCI event data * @param p_localCIID LocalCIID of the VCI event data */ template E21218_3 mw_miVCICreated( template Link_ID mw_miVCICreDelRes( in template EUI64 p_remoteCIID, in template EUI64 p_localCIID ) := { remoteCIID := p_remoteCIID, localCIID := p_localCIID } // End of template mw_miVCICreated } // End of template mw_miVCICreDelRes /** * @desc Generic receive template for notifications of CIstatus in MI-REQUEST.request service primitive Loading Loading @@ -926,7 +989,7 @@ module LibItsAtsp_Templates { template MI_Set_confirm mw_miSetConfirm( in template Link_ID p_linkID, in template CommandRef p_commandRef, in template IErrorsList p_iErrors in template Errors p_iErrors ) := { linkID := p_linkID, commandRef := p_commandRef, Loading @@ -944,7 +1007,7 @@ module LibItsAtsp_Templates { template (value) MI_Set_confirm m_miSetConfirm( in template (value) Link_ID p_linkId, in template (value) CommandRef p_commandRef, in template (value) IErrorsList p_errors in template (value) Errors p_errors ) := { linkID := p_linkId, commandRef := p_commandRef, Loading ttcn/CALM/ATSP/LibItsAtsp_TypesAndValues.ttcn3 +26 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,8 @@ module LibItsAtsp_TypesAndValues { MI_Request_request, MI_Request_confirm, MI_Get_request, MI_Get_confirm, MI_Set_request, MI_Set_confirm, ErrStatus, WakeUp ErrStatus, WakeUp, CONcmd }; import from CALMllsap language "ASN.1:1997" { Loading @@ -26,7 +27,30 @@ module LibItsAtsp_TypesAndValues { I_ParamNo, INtxStatus, CIstatus }; import from LibCommon_BasicTypesAndValues { type UInt8 }; group cfContants { const UInt8 c_miCmdReqSimIUTcmd := 0; const UInt8 c_miCmdReqRegCmd := 1; const UInt8 c_miCmdReqCIstateChng := 2; const UInt8 c_miCmdReqWakeUp := 3; const UInt8 c_miCmdReqRTScmd := 4; const UInt8 c_miCmdReqRTSackCmd := 5; const UInt8 c_miCmdReqCONcmd := 6; const UInt8 c_miCmdReqRIcmd := 7; const UInt8 c_miCmdReqManuCmd := 8; const UInt8 c_miCmdReqVciCmd := 9; const UInt8 c_miCmdReqMonitor := 10; const UInt8 c_miCmdReqUnitData := 11; const UInt8 c_miCmdReqEchoTest := 255; const CONcmd c_ciConDeleteAC := 0; const CONcmd c_ciConConnect := 1; const CONcmd c_ciConDisconnect :=255; const CIstateChng c_ciStateChngDeregister := 0; const CIstateChng c_ciStateChngActivate := 4; const CIstateChng c_ciStateChngResume := 8; Loading Loading @@ -116,6 +140,7 @@ module LibItsAtsp_TypesAndValues { const INtxStatus c_ciINtxStatus_QueueFull := 1; const INtxStatus c_ciINtxStatus_Timeout := 2; const INtxStatus c_ciINtxStatus_unspecFailure := 255; } group cnPrimitives { Loading Loading
ttcn/CALM/ATSP/LibItsAtsp_Functions.ttcn3 +69 −7 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ module LibItsAtsp_Functions { type UserPriority, LLserviceAddr, INdata, IN_SAPaddress, CIstatus, Link_ID, MedType CIstatus, Link_ID, MedType, Errors }; import from CALMmsap language "ASN.1:1997" { Loading Loading @@ -44,7 +44,7 @@ module LibItsAtsp_Functions { }; import from LibItsMgt_TypesAndValues { const c_dniCiid; type IParamNoList, IParamList, IErrorsList type IParamNoList, IParamList }; import from LibItsMgt_Functions { function f_getNextCommandRef Loading @@ -62,6 +62,66 @@ module LibItsAtsp_Functions { cfPort.clear; // Because TestConfigIICP should trigger management port deletion message } // End of function f_initialState /** * @desc Checks whether the IUT is in the initial CI state "active". */ function f_initialCIstateActive() runs on ItsCalm return CIstatus { var CIstatus v_CIstatus; // CI status has to be "active" v_CIstatus := f_cnGetCiStatusParameterValueCI( f_get_CI_LinkID()); if( v_CIstatus != c_ciStatusActive) // wrong status { // Request operator to switch on the SUT or to activate the IUT action("Switch on SUT or activate IUT"); v_CIstatus := f_cnGetCiStatusParameterValueCI( f_get_CI_LinkID()); } // check again CI status after activation of IUT if( (v_CIstatus != c_ciStatusActive)) { log("*** f_initialCIstateActive: ERROR: Invalid initial CI status returned ***", v_CIstatus); f_selfOrClientSyncAndVerdict("error", e_timeout); // Might be just a time-out error stop; } else { log("*** f_initialCIstateActive: Allowed initial CI status returned ***", v_CIstatus); } return v_CIstatus } // End of function f_initialCIstateActive /** * @desc Checks whether the IUT is in an operational initial CI state * i.e. not in "not-existent", "existent", "unknown". */ function f_initialCIstatesOperational() runs on ItsCalm return CIstatus { var CIstatus v_CIstatus; // CI status has to be in any CI state except "not_existent", "existent", "unknown". v_CIstatus := f_cnGetCiStatusParameterValueCI( f_get_CI_LinkID()); if( (v_CIstatus == c_ciStatusUnknown) or (v_CIstatus == c_ciStatusNot_existent) or (v_CIstatus == c_ciStatusExistent) ) // wrong status { // Request operator to switch on the SUT or to activate the IUT action("Switch on SUT or activate IUT"); v_CIstatus := f_cnGetCiStatusParameterValueCI( f_get_CI_LinkID()); } // check again CI status after activation of IUT if( (v_CIstatus == c_ciStatusUnknown) or (v_CIstatus == c_ciStatusNot_existent) or (v_CIstatus == c_ciStatusExistent) ) { log("*** f_initialCIstatesOperational: ERROR: Invalid initial CI status returned ***", v_CIstatus); f_selfOrClientSyncAndVerdict("error", e_timeout); // Might be just a time-out error stop; } else { log("*** f_initialCIstatesOperational: Allowed initial CI status returned ***", v_CIstatus); } return v_CIstatus } // End of function f_initialCIstatesOperational } // End of group preambles group postambles { Loading Loading @@ -453,25 +513,25 @@ module LibItsAtsp_Functions { in template Link_ID p_linkID, // PIXIT Element in IParamList p_paramValueList, in boolean p_discard // set to TRUE ) runs on ItsCalm return IErrorsList { ) runs on ItsCalm return Errors { //local variable(s) var template CfEvent v_setCIparams; var template CfEventInd v_cfSetSuccess; var IErrorsList v_cfSetErrorList; var Errors v_cfSetErrorList; var CfEventInd v_result; var CommandRef c_commandRef := f_getNextCommandRef(); var CommandRef v_commandRef := f_getNextCommandRef(); v_setCIparams := m_cfAtspSetReqEvent( m_miSetRequest( p_linkID, c_commandRef, v_commandRef, p_paramValueList ) ); cfPort.send(v_setCIparams); v_cfSetSuccess := mw_cfAtspEventIndSetConf( mw_miSetConfirm(p_linkID, c_commandRef, ?)); mw_miSetConfirm(p_linkID, v_commandRef, ?)); log("*** f_cnSetIParameterValueCI: INFO: Expected MI-Get.confirm: ", v_cfSetSuccess, " ***"); tc_wait.start; alt { Loading Loading @@ -577,6 +637,8 @@ module LibItsAtsp_Functions { var CfEventInd v_result; var CommandRef v_commandRef := f_getNextCommandRef(); v_ciStatus := c_ciStatusUnknown; // initialization with unknown status v_getCIparam := m_cfAtspGetReqEvent( m_miGetRequest( p_linkID, Loading
ttcn/CALM/ATSP/LibItsAtsp_Pics.ttcn3 +41 −40 Original line number Diff line number Diff line Loading @@ -11,214 +11,215 @@ module LibItsAtsp_Pics { /** * @desc PICS mnemonics for ISO 21218 "ITS - CALM - Access Technology Support" * @see ETSI TS 102 760-1 v_stf455_v04 * @see ETSI TS 102 760-1 v_stf455_v06 */ modulepar boolean PICS_ACT := false; /** * @desc Is IUT supporting BC-VCI transmitter? * @see ETSI TS 102 760-1 v_stf455_v04 C.11/4 * @see ETSI TS 102 760-1 v_stf455_v06 C.11/4 */ modulepar boolean PICS_BCVCI := false; /** * @desc Is IUT of CI access class CIAC-1 (no user authentiaction required, usage of CI is free of charge)? * @see ETSI TS 102 760-1 v_stf455_v04 C.6/1 * @see ETSI TS 102 760-1 v_stf455_v06 C.6/1 */ modulepar boolean PICS_CIAC1 := false; /** * @desc Is IUT of CI access class CIAC-2 (access credentials required, usage of CI is subject of a service charge? * @see ETSI TS 102 760-1 v_stf455_v04 C.6/2 * @see ETSI TS 102 760-1 v_stf455_v06 C.6/2 */ modulepar boolean PICS_CIAC2 := false; /** * @desc Is IUT of CI access class CIAC-3 (access credentials required, usage of CI is free of charge)? * @see ETSI TS 102 760-1 v_stf455_v04 C.6/3 * @see ETSI TS 102 760-1 v_stf455_v06 C.6/3 */ modulepar boolean PICS_CIAC3 := false; /** * @desc Is IUT of CI class CIC-il1 (non-deterministic ITS station-internal network interface)? * @see ETSI TS 102 760-1 v_stf455_v04 C.5/6 * @see ETSI TS 102 760-1 v_stf455_v06 C.5/6 */ modulepar boolean PICS_CIC_il1 := false; /** * @desc Is IUT of CI class CIC-il2 (deterministic ITS station-internal network interface)? * @see ETSI TS 102 760-1 v_stf455_v04 C.5/7 * @see ETSI TS 102 760-1 v_stf455_v06 C.5/7 */ modulepar boolean PICS_CIC_il2 := false; /** * @desc Is IUT of CI class CIC-l1 (multiple simultaneous peer stations transceiver)? * @see ETSI TS 102 760-1 v_stf455_v04 C.5/1 * @see ETSI TS 102 760-1 v_stf455_v06 C.5/1 */ modulepar boolean PICS_CIC_l1 := false; /** * @desc Is IUT of CI class CIC-l2 (single peer station transceiver)? * @see ETSI TS 102 760-1 v_stf455_v04 C.5/2 * @see ETSI TS 102 760-1 v_stf455_v06 C.5/2 */ modulepar boolean PICS_CIC_l2 := false; /** * @desc Is IUT of CI class CIC-l3 (groupcast transmitter only)? * @see ETSI TS 102 760-1 v_stf455_v04 C.5/3 * @see ETSI TS 102 760-1 v_stf455_v06 C.5/3 */ modulepar boolean PICS_CIC_l3 := false; /** * @desc Is IUT of CI class CIC-l4 (broadcast receiver only)? * @see ETSI TS 102 760-1 v_stf455_v04 C.5/4 * @see ETSI TS 102 760-1 v_stf455_v06 C.5/4 */ modulepar boolean PICS_CIC_l4 := false; /** * @desc Is IUT of CI class CIC-l5 (CEN / Japanese DSRC)? * @see ETSI TS 102 760-1 v_stf455_v04 C.5/5 * @see ETSI TS 102 760-1 v_stf455_v06 C.5/5 */ modulepar boolean PICS_CIC_l5 := false; /** * @desc Is IUT supporting the connection procedure? * @see ETSI TS 102 760-1 v_stf455_v04 C.11/7 * @see ETSI TS 102 760-1 v_stf455_v06 C.11/7 */ modulepar boolean PICS_CONN := false; /** * @desc Is IUT supporting the Cross-CI prioritization - interferer procedure? * @see ETSI TS 102 760-1 v_stf455_v04 C.11/10 * @see ETSI TS 102 760-1 v_stf455_v06 C.11/10 */ modulepar boolean PICS_CRCIP_I := false; /** * @desc Is IUT supporting the Cross-CI prioritization - victim procedure? * @see ETSI TS 102 760-1 v_stf455_v04 C.11/9 * @see ETSI TS 102 760-1 v_stf455_v06 C.11/9 */ modulepar boolean PICS_CRCIP_V := false; /** * @desc Is IUT supporting deletion of VCIs? * @see ETSI TS 102 760-1 v_stf455_v04 C.11/18 */ modulepar boolean PICS_DELET := false; /** * @desc Is IUT supporting the disconnection procedure? * @see ETSI TS 102 760-1 v_stf455_v04 C.11/8 * @see ETSI TS 102 760-1 v_stf455_v06 C.11/8 */ modulepar boolean PICS_DISCONN := false; /** * @desc Is IUT supporting dynamic registration using the standardized registration procedure? * @see ETSI TS 102 760-1 v_stf455_v04 C.1/1 * @see ETSI TS 102 760-1 v_stf455_v06 C.1/1 */ modulepar boolean PICS_DYNREG := false; /** * @desc Is IUT supporting the inactivation procedure? * @see ETSI TS 102 760-1 v_stf455_v04 C.11/3 * @see ETSI TS 102 760-1 v_stf455_v06 C.11/3 */ modulepar boolean PICS_INACT := false; /** * @desc Is IUT supporting the IN-UNITDATA-STATUS service? * @see ETSI TS 102 760-1 v_stf455_v04 C.12/2 * @see ETSI TS 102 760-1 v_stf455_v06 C.12/2 */ modulepar boolean PICS_INUDS := false; /** * @desc Is IUT supporting notification-only I-Parameters? * @see ETSI TS 102 760-1 v_stf455_v04 C.24 any selected notify-only I-Parameter * @see ETSI TS 102 760-1 v_stf455_v06 C.24 any selected notify-only I-Parameter */ modulepar boolean PICS_IPNO := false; /** * @desc Is IUT supporting read-only I-Parameters? * @see ETSI TS 102 760-1 v_stf455_v04 C.21 and C.22 any selected read-only I-Parameter * @see ETSI TS 102 760-1 v_stf455_v06 C.21 and C.22 any selected read-only I-Parameter */ modulepar boolean PICS_IPRO := false; /** * @desc Is IUT supporting read/write I-Parameters? * @see ETSI TS 102 760-1 v_stf455_v04 C.19 and C.20 any selected read/write I-Parameter * @see ETSI TS 102 760-1 v_stf455_v06 C.19 and C.20 any selected read/write I-Parameter */ modulepar boolean PICS_IPRW := false; /** * @desc Is IUT supporting write-only I-Parameters? * @see ETSI TS 102 760-1 v_stf455_v04 C.23 any selected write-only I-Parameter * @see ETSI TS 102 760-1 v_stf455_v06 C.23 any selected write-only I-Parameter */ modulepar boolean PICS_IPWO := false; /** * @desc Is IUT useing 48 bit MAC addresses? * @see ETSI TS 102 760-1 v_stf455_v04 C.4/1 * @see ETSI TS 102 760-1 v_stf455_v06 C.4/1 */ modulepar boolean PICS_MAC48 := false; /** * @desc Is IUT supporting MC-VCI transmitter? * @see ETSI TS 102 760-1 v_stf455_v04 C.8/2 * @see ETSI TS 102 760-1 v_stf455_v06 C.8/2 */ modulepar boolean PICS_MCVCI := false; /** * @desc Is IUT supporting rejection of DL-UNITDATA.reqeusts with user priority smaller than given in parameter "MinimumUserPriority"? * @see ETSI TS 102 760-1 v_stf455_v04 C.11/20 * @see ETSI TS 102 760-1 v_stf455_v06 C.11/20 */ modulepar boolean PICS_REJECT := false; /** * @desc Is IUT supporting the resuming procedure? * @see ETSI TS 102 760-1 v_stf455_v04 C.11/6 * @see ETSI TS 102 760-1 v_stf455_v06 C.11/6 */ modulepar boolean PICS_RES := false; /** * @desc Is IUT supporting the Regulatory Information Management procedure? * @see ETSI TS 102 760-1 v_stf455_v04 C.11/12 * @see ETSI TS 102 760-1 v_stf455_v06 C.11/12 */ modulepar boolean PICS_RIM := false; /** * @desc Is IUT supporting SNAP? * @see ETSI TS 102 760-1 v_stf455_v04 C.13/1 * @see ETSI TS 102 760-1 v_stf455_v06 C.13/1 */ modulepar boolean PICS_SNAP := false; /** * @desc Is IUT supporting the suspension procedure? * @see ETSI TS 102 760-1 v_stf455_v04 C.11/5 * @see ETSI TS 102 760-1 v_stf455_v06 C.11/5 */ modulepar boolean PICS_SUSP := false; /** * @desc Is IUT supporting UC-VCI (transmitter and receiver)? * @see ETSI TS 102 760-1 v_stf455_v04 C.8/3 * @see ETSI TS 102 760-1 v_stf455_v06 C.8/3 */ modulepar boolean PICS_UCVCI := false; /** * @desc Is IUT supporting the UnitDataCmd command? * @see ETSI TS 102 760-1 v_stf455_v04 C.15/12 * @see ETSI TS 102 760-1 v_stf455_v06 C.15/12 */ modulepar boolean PICS_UDC := false; /** * @desc Is IUT supporting the WakeUp command? * @see ETSI TS 102 760-1 v_stf455_v04 C.15/4 * @see ETSI TS 102 760-1 v_stf455_v06 C.15/4 */ modulepar boolean PICS_WAKEUP := false; /** * @desc Is IUT supporting the IN-UNITDATA-STATUS service primitive? * @see ETSI TS 102 760-1 v_stf455_v06 C.12/2 */ modulepar boolean PICS_IN_UNITDATA_STATUS := false; /** * @desc Is IUT supporting the Monitor command? * @see ETSI TS 102 760-1 v_stf455_v06 C.15/11 */ modulepar boolean PICS_MONITOR := false; } // End of group atspPics } // End of module LibItsAtsp_Pics
ttcn/CALM/ATSP/LibItsAtsp_Pixits.ttcn3 +40 −15 Original line number Diff line number Diff line Loading @@ -7,8 +7,8 @@ module LibItsAtsp_Pixits { import from CALMllsap language "ASN.1:1997" { type EUI64, MedID, VCIserialNumber, IN_SAPaddress type all // EUI64, MedID, VCIserialNumber, IN_SAPaddress, I_ParamNo, I_Param, MedID }; import from CALMmanagement language "ASN.1:1997" { Loading @@ -16,12 +16,44 @@ module LibItsAtsp_Pixits { ITS_scuId }; import from LibItsAtsp_TypesAndValues all; group Iparameter { /** * @desc Expected ITS-SCU-ID of the IUT CI * @see ISO 21218 - Clause 6.2 Link Identifier * I-Parameter No c_ciIParamNoITS_scuId */ modulepar ITS_scuId PX_ITS_SCU_ID := 0; /** * @desc Expected MedType of the IUT CI * @see ISO 21218 - Clause 6.3 Link Identifier * I-Parameter No c_ciIParamNoMedID */ modulepar MedID PX_CI_MED_TYPE := 5; /** * @desc Unknown I-Parameter No * @see ISO 21218 - Clause 6.3 Link Identifier */ modulepar I_ParamNo PX_CI_UNKNOWN_PARAM_NO := 255; /** * @desc Not supported I-Parameter * @see ISO 21218 - Clause 6.3 Link Identifier */ modulepar I_Param PX_CI_NO_SUPPORT_PARAM := {paramNo := c_ciIParamNoMinPrioCrossCI, parameter := {UserPriority := 0} }; /** * @desc Supported Read-Only or Notify-Only I-Parameter * @see ISO 21218 - Clause 6.3 Link Identifier */ modulepar I_ParamNo PX_CI_SUPPORT_NO_WRITE_ACCESS_PARAM_NO := c_ciIParamNoCiStatus; modulepar I_Param PX_CI_SUPPORT_NO_WRITE_ACCESS_PARAM := {paramNo := PX_CI_SUPPORT_NO_WRITE_ACCESS_PARAM_NO, parameter := {CIstatus := 0} }; } // End of group Iparameter /** * @desc Expected IN-SAP address * @see ISO 21218 - Clause 8.2 Addressing Loading @@ -30,13 +62,6 @@ module LibItsAtsp_Pixits { */ modulepar IN_SAPaddress PX_IN_SAP_ADDRESS := 186; /** * @desc Expected MedType of the IUT CI * @see ISO 21218 - Clause 6.3 Link Identifier * ISO 21215 (802.11): 5 */ modulepar MedID PX_CI_MED_TYPE := 5; /** * @desc Expected VCIserialNumber of the IUT CI * @see ISO 21218 - Clause 6.3 Link Identifier Loading
ttcn/CALM/ATSP/LibItsAtsp_Templates.ttcn3 +78 −15 Original line number Diff line number Diff line Loading @@ -14,20 +14,21 @@ module LibItsAtsp_Templates { UserPriority, LLserviceAddr, INdata, IN_SAPaddress, EUI64, Link_ID, AccessParameters, NullType NullType, Errors }; import from CALMmsap language "ASN.1:1997" { type CIstateChng, WakeUp, RIcmd, RI, RegCmd, RegReq, Events21218, E21218_3, E21218_5, E21218_3, E21218_4, E21218_5, E21218_7, StationID, CommandRef, ErrStatus, MI_Command_request, MI_Command_confirm, MI_Request_request, MI_Request_confirm, MI_Get_request, MI_Get_confirm, MI_Set_request, MI_Set_confirm, SimIUTcmd SimIUTcmd , CONcmd, VciCmd }; import from CALMmanagement language "ASN.1:1997" { Loading @@ -44,7 +45,7 @@ module LibItsAtsp_Templates { import from LibItsCalm_Interface all; import from LibItsAtsp_TypesAndValues all; import from LibItsMgt_TypesAndValues { type IParamNoList, IParamList, IErrorsList type IParamNoList, IParamList }; group inSapPrimitives { Loading Loading @@ -471,7 +472,7 @@ module LibItsAtsp_Templates { ) := { linkID := p_linkID, commandRef := p_commandRef, ref := 1, ref := c_miCmdReqRegCmd, command_param := {RegCmd := p_regCmd} } // End of template m_miRegistrationCommandRequest Loading @@ -489,7 +490,7 @@ module LibItsAtsp_Templates { ) := { linkID := p_linkID, commandRef := p_commandRef, ref := 2, ref := c_miCmdReqCIstateChng, command_param := {CIstateChng := p_stateChng} } // End of template m_miStateChangeCommandRequest Loading @@ -506,7 +507,7 @@ module LibItsAtsp_Templates { ) := { linkID := p_linkID, commandRef := p_commandRef, ref := 3, ref := c_miCmdReqWakeUp, command_param := {WakeUp := p_wakeUp} } // End of template m_miWakeUpCommandRequest Loading @@ -523,7 +524,7 @@ module LibItsAtsp_Templates { ) := { linkID := p_linkID, commandRef := p_commandRef, ref := 7, ref := c_miCmdReqRIcmd, command_param := {RIcmd := p_riCmd} } // End of template m_miRICmdCommandRequest Loading @@ -540,6 +541,41 @@ module LibItsAtsp_Templates { ri := p_ri } // End of template m_miRICmd /** * @desc Send template for MI-COMMAND.request containing CONcmd command service primitive * @param p_linkID Link-ID of VCI / CI. * @param p_commandRef Unique cyclic reference number of command. * @param p_conCmd Registration command primitive */ template (value) MI_Command_request m_miCONcmdCommandRequest( in template (value) Link_ID p_linkID, in template (value) CommandRef p_commandRef, in template (value) CONcmd p_conCMD ) := { linkID := p_linkID, commandRef := p_commandRef, ref := c_miCmdReqCONcmd, command_param := {CONcmd := p_conCMD} } // End of template m_miCONcmdCommandRequest /** * @desc Send template for MI-COMMAND.request containing VCIcmd command service primitive * @param p_linkID Link-ID of VCI / CI. * @param p_commandRef Unique cyclic reference number of command. * @param p_vciCmd VCIcmd value */ template (value) MI_Command_request m_miVCIcmdCommandRequest( in template (value) Link_ID p_linkID, in template (value) CommandRef p_commandRef, in template (value) VciCmd p_vciCmd ) := { linkID := p_linkID, commandRef := p_commandRef, ref := c_miCmdReqCIstateChng, command_param := {VciCmd := p_vciCmd} } // End of template m_miVCIcmdCommandRequest } // end of group miCommandRequest group miCommandConfirm { Loading Loading @@ -725,26 +761,53 @@ module LibItsAtsp_Templates { * @param p_parameter VCI created event data */ template Events21218 mw_miEvent21218_3( in template E21218_3 p_parameter in template Link_ID p_parameter ) := { eventNo := 3, event := { E21218_3 := p_parameter Link_ID := p_parameter } } // End of template mw_miEvent21218_3 /** * @desc Generic receive template for VCI Created notifications in MI-REQUEST.request service primitive * @desc Generic receive template for VCI notifications in MI-REQUEST.request service primitive * @param p_parameter VCI deleted event data */ template Events21218 mw_miEvent21218_4( in template Link_ID p_parameter ) := { eventNo := 4, event := { Link_ID := p_parameter } } // End of template mw_miEvent21218_4 /** * @desc Generic receive template for VCI notifications in MI-REQUEST.request service primitive * @param p_parameter VCI reset event data */ template Events21218 mw_miEvent21218_7( in template Link_ID p_parameter ) := { eventNo := 7, event := { Link_ID := p_parameter } } // End of template mw_miEvent21218_7 /** * @desc Generic receive template for VCI Created / Deleleted / Reset notifications in MI-REQUEST.request service primitive * @param p_remoteCIID RemoteCIID of the VCI event data * @param p_localCIID LocalCIID of the VCI event data */ template E21218_3 mw_miVCICreated( template Link_ID mw_miVCICreDelRes( in template EUI64 p_remoteCIID, in template EUI64 p_localCIID ) := { remoteCIID := p_remoteCIID, localCIID := p_localCIID } // End of template mw_miVCICreated } // End of template mw_miVCICreDelRes /** * @desc Generic receive template for notifications of CIstatus in MI-REQUEST.request service primitive Loading Loading @@ -926,7 +989,7 @@ module LibItsAtsp_Templates { template MI_Set_confirm mw_miSetConfirm( in template Link_ID p_linkID, in template CommandRef p_commandRef, in template IErrorsList p_iErrors in template Errors p_iErrors ) := { linkID := p_linkID, commandRef := p_commandRef, Loading @@ -944,7 +1007,7 @@ module LibItsAtsp_Templates { template (value) MI_Set_confirm m_miSetConfirm( in template (value) Link_ID p_linkId, in template (value) CommandRef p_commandRef, in template (value) IErrorsList p_errors in template (value) Errors p_errors ) := { linkID := p_linkId, commandRef := p_commandRef, Loading
ttcn/CALM/ATSP/LibItsAtsp_TypesAndValues.ttcn3 +26 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,8 @@ module LibItsAtsp_TypesAndValues { MI_Request_request, MI_Request_confirm, MI_Get_request, MI_Get_confirm, MI_Set_request, MI_Set_confirm, ErrStatus, WakeUp ErrStatus, WakeUp, CONcmd }; import from CALMllsap language "ASN.1:1997" { Loading @@ -26,7 +27,30 @@ module LibItsAtsp_TypesAndValues { I_ParamNo, INtxStatus, CIstatus }; import from LibCommon_BasicTypesAndValues { type UInt8 }; group cfContants { const UInt8 c_miCmdReqSimIUTcmd := 0; const UInt8 c_miCmdReqRegCmd := 1; const UInt8 c_miCmdReqCIstateChng := 2; const UInt8 c_miCmdReqWakeUp := 3; const UInt8 c_miCmdReqRTScmd := 4; const UInt8 c_miCmdReqRTSackCmd := 5; const UInt8 c_miCmdReqCONcmd := 6; const UInt8 c_miCmdReqRIcmd := 7; const UInt8 c_miCmdReqManuCmd := 8; const UInt8 c_miCmdReqVciCmd := 9; const UInt8 c_miCmdReqMonitor := 10; const UInt8 c_miCmdReqUnitData := 11; const UInt8 c_miCmdReqEchoTest := 255; const CONcmd c_ciConDeleteAC := 0; const CONcmd c_ciConConnect := 1; const CONcmd c_ciConDisconnect :=255; const CIstateChng c_ciStateChngDeregister := 0; const CIstateChng c_ciStateChngActivate := 4; const CIstateChng c_ciStateChngResume := 8; Loading Loading @@ -116,6 +140,7 @@ module LibItsAtsp_TypesAndValues { const INtxStatus c_ciINtxStatus_QueueFull := 1; const INtxStatus c_ciINtxStatus_Timeout := 2; const INtxStatus c_ciINtxStatus_unspecFailure := 255; } group cnPrimitives { Loading