Commit 1fa34c11 authored by garciay's avatar garciay
Browse files

Validate AtsRSUSimulator for CAM & DENM

parent e27923da
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -225,9 +225,10 @@ system.utPort.params := "UT_GN/UDP(dst_ip=192.168.56.1,dst_port=12346,src_ip=192
#TestCodec_SecuredMessages.tc_ssp_cam_1
#TestCodec_SecuredMessages.tc_ssp_cam_2
#TestCodec_SecuredMessages.tc_ssp_denm
TestCodec_SecuredMessages.tc_secured_message_unsecured
#TestCodec_SecuredMessages.tc_secured_message_signed
#TestCodec_SecuredMessages.tc_secured_message_unsecured
#TestCodec_SecuredMessages.tc_secured_message_signed_1
# Chain of certificates
TestCodec_ChainOfCertificates.tc_full_check_certificate_1

[MAIN_CONTROLLER]
# The options herein control the behavior of MC.
+11 −6
Original line number Diff line number Diff line
@@ -3,6 +3,11 @@ module ItsAutoInterop_Pics {
    // LibCommon
    import from LibCommon_BasicTypesAndValues all;
    
    // LibIts
    import from IEEE1609dot2BaseTypes language "ASN.1:1997" all;
    import from IEEE1609dot2 language "ASN.1:1997" all;
    import from EtsiTs103097Module language "ASN.1:1997" all;
    
    // LibItsBtp
    import from LibItsBtp_TypesAndValues all;
    
@@ -52,7 +57,7 @@ module ItsAutoInterop_Pics {
    modulepar ThreeDLocation PICS_POS0             := {
        latitude                                        := 435522970,
        longitude                                       := 103000170,
        elevation                                       := '0000'O
        elevation                                       := 0
    }
    
    /**
@@ -62,7 +67,7 @@ module ItsAutoInterop_Pics {
    modulepar ThreeDLocation PICS_POS1 := {
        latitude                                        := 435522970,
        longitude                                       := 103000170,
        elevation                                       := '0000'O
        elevation                                       := 0
    }
    
    /**
@@ -72,7 +77,7 @@ module ItsAutoInterop_Pics {
    modulepar ThreeDLocation PICS_POS2 := {
        latitude                                        := 435522970,
        longitude                                       := 103000170,
        elevation                                       := '0000'O
        elevation                                       := 0
    }
    
    /**
@@ -82,7 +87,7 @@ module ItsAutoInterop_Pics {
    modulepar ThreeDLocation PICS_POS3 := {
        latitude                                        := 435522970,
        longitude                                       := 103000170,
        elevation                                       := '0000'O
        elevation                                       := 0
    }
    
    /**
@@ -92,7 +97,7 @@ module ItsAutoInterop_Pics {
    modulepar ThreeDLocation PICS_POS4 := {
        latitude                                        := 435522970,
        longitude                                       := 103000170,
        elevation                                       := '0000'O
        elevation                                       := 0
    }
    
    /**
@@ -102,7 +107,7 @@ module ItsAutoInterop_Pics {
    modulepar ThreeDLocation PICS_TARGET_GEOAREA := {
        latitude                                        := 435522970,
        longitude                                       := 103000170,
        elevation                                       := '0000'O
        elevation                                       := 0
    }
    
} // End of module ItsAutoInterop_Pics 
+4 −0
Original line number Diff line number Diff line
@@ -7,6 +7,10 @@ module ItsAutoInterop_Templates {
    import from ITS_Container language "ASN.1:1997" all;
    import from CAM_PDU_Descriptions language "ASN.1:1997" all;
    import from DENM_PDU_Descriptions language "ASN.1:1997" all;
    import from IEEE1609dot2BaseTypes language "ASN.1:1997" all;
    import from IEEE1609dot2 language "ASN.1:1997" all;
    import from EtsiTs103097Module language "ASN.1:1997" all;
    
    
    // LibItsCommon
    import from LibCommon_DataStrings all;
+38 −34
Original line number Diff line number Diff line
@@ -9,6 +9,10 @@ module ItsAutoInterop_TestCases {
    
    // LibIts
    import from ITS_Container language "ASN.1:1997" all;
    import from IEEE1609dot2BaseTypes language "ASN.1:1997" all;
    import from IEEE1609dot2 language "ASN.1:1997" all;
    import from EtsiTs103097Module language "ASN.1:1997" all;
    
    
    // LibItsCommon
    import from LibItsCommon_TestSystem all;
@@ -133,10 +137,10 @@ module ItsAutoInterop_TestCases {
    testcase TC_AUTO_IOT_DENM_MFW_BV_01() runs on ItsMtc system ItsAutoInteropGeoNetworkingSystem {
        
        // Local variables
        var ItsAutoInteropGeonetworking v_eut1;
        var ItsAutoInteropGeonetworking v_eut2;
        var ItsAutoInteropGeonetworking v_eut3;
        var ItsAutoInteropGeonetworking v_eut4;
        var ItsAutoInteropGeonetworking v_eut1 := null;
        var ItsAutoInteropGeonetworking v_eut2 := null;
        var ItsAutoInteropGeonetworking v_eut3 := null;
        var ItsAutoInteropGeonetworking v_eut4 := null;
        
        // Test control
        /*if (not PICS_GN_LS_FWD) {
@@ -532,10 +536,10 @@ module ItsAutoInterop_TestCases {
    testcase TC_AUTO_IOT_DENM_MFW_BV_02() runs on ItsMtc system ItsAutoInteropGeoNetworkingSystem {
        
        // Local variables
        var ItsAutoInteropGeonetworking v_eut1;
        var ItsAutoInteropGeonetworking v_eut2;
        var ItsAutoInteropGeonetworking v_eut3;
        var ItsAutoInteropGeonetworking v_eut4;
        var ItsAutoInteropGeonetworking v_eut1 := null;
        var ItsAutoInteropGeonetworking v_eut2 := null;
        var ItsAutoInteropGeonetworking v_eut3 := null;
        var ItsAutoInteropGeonetworking v_eut4 := null;
        
        // Test control
        /*if (not PICS_GN_LS_FWD) {
@@ -967,10 +971,10 @@ module ItsAutoInterop_TestCases {
    testcase TC_AUTO_IOT_DENM_MFW_BV_03() runs on ItsMtc system ItsAutoInteropGeoNetworkingSystem {
        
        // Local variables
        var ItsAutoInteropGeonetworking v_eut1;
        var ItsAutoInteropGeonetworking v_eut2;
        var ItsAutoInteropGeonetworking v_eut3;
        var ItsAutoInteropGeonetworking v_eut4;
        var ItsAutoInteropGeonetworking v_eut1 := null;
        var ItsAutoInteropGeonetworking v_eut2 := null;
        var ItsAutoInteropGeonetworking v_eut3 := null;
        var ItsAutoInteropGeonetworking v_eut4 := null;
        
        // Test control
        /*if (not PICS_GN_LS_FWD) {
@@ -1371,8 +1375,8 @@ module ItsAutoInterop_TestCases {
    testcase TC_AUTO_IOT_DENM_RWW_BV_01() runs on ItsMtc system ItsAutoInteropGeoNetworkingSystem {
        
        // Local variables
        var ItsAutoInteropGeonetworking v_eut1;
        var ItsAutoInteropGeonetworking v_eut2;
        var ItsAutoInteropGeonetworking v_eut1 := null;
        var ItsAutoInteropGeonetworking v_eut2 := null;
        
        // Test control
        /*if (not PICS_GN_LS_FWD) {
@@ -1443,7 +1447,7 @@ module ItsAutoInterop_TestCases {
                                            -
                                        ),
                                        mw_situation(
                                            CauseCodeType_roadworks_, 
                                            LibItsCommon_ASN1_NamedNumbers.CauseCodeType_roadworks_, 
                                            ?
                ))))))) -> value v_gnInd { // Receive a DEN message
                    tc_ac.stop;
@@ -1513,7 +1517,7 @@ module ItsAutoInterop_TestCases {
                                          -
                                      ),
                                      mw_situation(
                                          CauseCodeType_roadworks_, 
                                          LibItsCommon_ASN1_NamedNumbers.CauseCodeType_roadworks_, 
                                          ?
                ))))))) -> value v_eutGeoNw { // Receive a DEN message
                    tc_ac.stop;
@@ -1672,8 +1676,8 @@ module ItsAutoInterop_TestCases {
    testcase TC_AUTO_IOT_DENM_RHS_BV_01() runs on ItsMtc system ItsAutoInteropGeoNetworkingSystem {
        
        // Local variables
        var ItsAutoInteropGeonetworking v_eut1;
        var ItsAutoInteropGeonetworking v_eut2;
        var ItsAutoInteropGeonetworking v_eut1 := null;
        var ItsAutoInteropGeonetworking v_eut2 := null;
        
        // Test control
        /*if (not PICS_GN_LS_FWD) {
@@ -1900,8 +1904,8 @@ module ItsAutoInterop_TestCases {
    testcase TC_AUTO_IOT_DENM_SVW_BV_01() runs on ItsMtc system ItsAutoInteropGeoNetworkingSystem {
        
        // Local variables
        var ItsAutoInteropGeonetworking v_eut1;
        var ItsAutoInteropGeonetworking v_eut2;
        var ItsAutoInteropGeonetworking v_eut1 := null;
        var ItsAutoInteropGeonetworking v_eut2 := null;
        
        // Test control
        /*if (not PICS_GN_LS_FWD) {
@@ -2199,10 +2203,10 @@ module ItsAutoInterop_TestCases {
    testcase TC_AUTO_IOT_DENM_GMC_BV_01() runs on ItsMtc system ItsAutoInteropGeoNetworkingSystem {
        
        // Local variables
        var ItsAutoInteropGeonetworking v_eut1;
        var ItsAutoInteropGeonetworking v_eut2;
        var ItsAutoInteropGeonetworking v_eut3;
        var ItsAutoInteropGeonetworking v_eut4;
        var ItsAutoInteropGeonetworking v_eut1 := null;
        var ItsAutoInteropGeonetworking v_eut2 := null;
        var ItsAutoInteropGeonetworking v_eut3 := null;
        var ItsAutoInteropGeonetworking v_eut4 := null;
        
        // Test control
        /*if (not PICS_GN_LS_FWD) {
@@ -2506,9 +2510,9 @@ module ItsAutoInterop_TestCases {
    testcase TC_AUTO_IOT_CAM_NBD_BV_01() runs on ItsMtc system ItsAutoInteropGeoNetworkingSystem {
        
        // Local variables
        var ItsAutoInteropGeonetworking v_eut1;
        var ItsAutoInteropGeonetworking v_eut2;
        var ItsAutoInteropGeonetworking v_eut3;
        var ItsAutoInteropGeonetworking v_eut1 := null;
        var ItsAutoInteropGeonetworking v_eut2 := null;
        var ItsAutoInteropGeonetworking v_eut3 := null;
        
        // Test control
        /*if (not PICS_GN_LS_FWD) {
@@ -2669,8 +2673,8 @@ module ItsAutoInterop_TestCases {
    testcase TC_AUTO_IOT_CAM_CRW_BV_01() runs on ItsMtc system ItsAutoInteropGeoNetworkingSystem {
        
        // Local variables
        var ItsAutoInteropGeonetworking v_eut1;
        var ItsAutoInteropGeonetworking v_eut2;
        var ItsAutoInteropGeonetworking v_eut1 := null;
        var ItsAutoInteropGeonetworking v_eut2 := null;
        
        // Test control
        /*if (not PICS_GN_LS_FWD) {
@@ -2892,8 +2896,8 @@ module ItsAutoInterop_TestCases {
    testcase TC_AUTO_IOT_CAM_CRW_BV_02() runs on ItsMtc system ItsAutoInteropGeoNetworkingSystem {
        
        // Local variables
        var ItsAutoInteropGeonetworking v_eut1;
        var ItsAutoInteropGeonetworking v_eut2;
        var ItsAutoInteropGeonetworking v_eut1 := null;
        var ItsAutoInteropGeonetworking v_eut2 := null;
        
        // Test control
        /*if (not PICS_GN_LS_FWD) {
@@ -3046,8 +3050,8 @@ module ItsAutoInterop_TestCases {
    testcase TC_AUTO_IOT_GN_DAD_BV_01() runs on ItsMtc system ItsAutoInteropGeoNetworkingSystem {
        
        // Local variables
        var ItsAutoInteropGeonetworking v_eut1;
        var ItsAutoInteropGeonetworking v_eut2;
        var ItsAutoInteropGeonetworking v_eut1 := null;
        var ItsAutoInteropGeonetworking v_eut2 := null;
        
        // Test control
        /*if (not PICS_GN_LS_FWD) {
+17 −0
Original line number Diff line number Diff line
@@ -30,9 +30,11 @@ module ItsRSUsSimulator_Functions {
    import from LibItsBtp_Templates all;
    
    // LibItsCam
    import from LibItsCam_TypesAndValues all;
    import from LibItsCam_Templates all;
    
    // LibItsDenm
    import from LibItsDenm_TypesAndValues all;
    import from LibItsDenm_Templates all;
    
    // LibItsMapemSpatemm
@@ -115,6 +117,8 @@ module ItsRSUsSimulator_Functions {
            //Initialze the Config module
            //cfPort.send(CfInitialize:{});
            
            //activate(a_process_ut_command());
            
            // Initialisations
            f_setup_rsu(vc_rsu_id);
             
@@ -134,6 +138,7 @@ module ItsRSUsSimulator_Functions {
            // Disconnect
            f_disconnect4SelfOrClientSync();
            
            deactivate;
        } // End of function f_cf01Down
        
        /**
@@ -853,4 +858,16 @@ module ItsRSUsSimulator_Functions {
        var template (present) octetstring v_out := v_t1 & v_t2 & v_t3;
        return v_out
    }
    
    /*altstep a_process_ut_command() runs on ItsRSUsSimulator {
        [PICS_GENERATE_CAM == true] utPort.receive(UtCamInitialize:?) {
            utPort.send(UtCamResults: { utCamInitializeResult := true });
        }
        [PICS_GENERATE_DENM == true] utPort.receive(UtDenmInitialize:?) {
            utPort.send(UtDenmResults: { utDenmInitializeResult := true });
        }
        [] utPort.receive {
            // Ignore it
        }
    }*/
} // End of module ItsRSUsSimulator_Functions
Loading