Commit 3d7b5bd6 authored by Yann Garcia's avatar Yann Garcia
Browse files

Finalyse AtsSAEM

parent d8bda146
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -100,9 +100,20 @@ $(TOP_DIR)/./build/asn1/ISO_TS_17419/CITSdataDictionary1.asn:
	mkdir -p "$(dir $@)"
	curl -o "$@" 'https://standards.iso.org/iso/17419/ed-1/en/17419.1.asn'

$(TOP_DIR)/./build/asn1/ISO_TS_17419/CITSdataDictionary2.asn:
$(TOP_DIR)/./build/asn1/ISO_TS_17419/CITSapplMgmtApplReg2.asn:
	mkdir -p "$(dir $@)"
	curl -o "$@" 'https://standards.iso.org/iso/17419/ed-1/en/17419.2.asn'
	patch -i $(TOP_DIR)/./ttcn/AtsSAEM/lib/asn1/CITSapplMgmtApplReg2.asn.patch $(TOP_DIR)/./build/asn1/ISO_TS_17419/CITSapplMgmtApplReg2.asn

$(TOP_DIR)/./build/asn1/ISO_TS_16460/ITSsa1.asn:
	mkdir -p "$(dir $@)"
	curl -o "$@" 'https://standards.iso.org/iso/16460/ed-1/en/ISO_16460_ITSsa1.asn'
	patch -i $(TOP_DIR)/./ttcn/AtsSAEM/lib/asn1/ITSsa1.asn.patch $(TOP_DIR)/./build/asn1/ISO_TS_16460/ITSsa1.asn

$(TOP_DIR)/./build/asn1/ISO_TS_16460/ITSee1.asn:
	mkdir -p "$(dir $@)"
	curl -o "$@" 'https://standards.iso.org/iso/16460/ed-1/en/ISO_16460_ITSee1.asn'
	patch -i $(TOP_DIR)/./ttcn/AtsSAEM/lib/asn1/ITSee1.asn.patch $(TOP_DIR)/./build/asn1/ISO_TS_16460/ITSee1.asn

#$(TOP_DIR)/./build/asn1/ISO_TS_19321/IVI.asn:
#	mkdir -p "$(dir $@)"
Compare 440d05da to bb8dbabf
Original line number Diff line number Diff line
Subproject commit 440d05dacb1151e77529ebba02c78fd6bb469e2b
Subproject commit bb8dbabf7eb22813383aaaa92292b736bf767510
+139 −0
Original line number Diff line number Diff line
/**
 *    @author   ETSI / TTF T053
 *   @desc     Module containing types and values for SA Protocol
 *    @copyright   ETSI Copyright Notification
 *                 No part may be reproduced except as authorized by written permission.
 *                 The copyright and the foregoing restriction extend to reproduction in all media.
 *                 All rights reserved.
 *
 */
module LibItsSaem_TypesAndValues {

  // LibCommon
  import from LibCommon_BasicTypesAndValues all;
  import from LibCommon_DataStrings all;

  // LibIts
  import from ETSI_ITS_CDD language "ASN.1:1997" all;
  import from SAEM_PDU_Descriptions language "ASN.1:1997" all;

  group certificates {

    const charstring PX_CERT_IUT_SAEM_02 := "CERT_IUT_SAEM_BO_02_AT";
    const charstring PX_CERT_IUT_SAEM_03 := "CERT_IUT_SAEM_BO_03_AT";
    const charstring PX_CERT_IUT_SAEM_04 := "CERT_IUT_SAEM_BO_04_AT";
    const charstring PX_CERT_IUT_SAEM_05 := "CERT_IUT_SAEM_BO_05_AT";
    const charstring PX_CERT_IUT_SAEM_06 := "CERT_IUT_SAEM_BO_06_AT";
    const charstring PX_CERT_IUT_SAEM_07 := "CERT_IUT_SAEM_BO_07_AT";
    const charstring PX_CERT_IUT_SAEM_08 := "CERT_IUT_SAEM_BO_08_AT";
    const charstring PX_CERT_IUT_SAEM_09 := "CERT_IUT_SAEM_BO_09_AT";
    const charstring PX_CERT_IUT_SAEM_10 := "CERT_IUT_SAEM_BO_10_AT";
    const charstring PX_CERT_IUT_SAEM_11 := "CERT_IUT_SAEM_BO_11_AT";
    const charstring PX_CERT_IUT_SAEM_12 := "CERT_IUT_SAEM_BO_12_AT";
    const charstring PX_CERT_IUT_SAEM_13 := "CERT_IUT_SAEM_BO_13_AT";
    const charstring PX_CERT_IUT_SAEM_14 := "CERT_IUT_SAEM_BO_14_AT";
    const charstring PX_CERT_IUT_SAEM_15 := "CERT_IUT_SAEM_BO_15_AT";
    const charstring PX_CERT_IUT_SAEM_16 := "CERT_IUT_SAEM_BO_16_AT";

  }

  group utPrimitives {

    /**
     * @desc Upper Tester message to initialize IUT 
     * @member hashedId8 In case of secured mode set, hashedId8 indicate which certificate the IUT shall use
     */
    type record UtSaemInitialize {
      Oct8 hashedId8 
    } with {
      variant "FIELDORDER(msb)"
    }

    /**
     * @desc Upper Tester results message of the AVM IUT
     * @member utSaemInitialize                -
     * @member utSaemTriggerResult             -
     * @member utSaemChangePositionResult      -
     */
    type union UtSaemResults {
      boolean utSaemInitializeResult,
      boolean utSaemTriggerResult
    } with {
      variant ""
     } // End of type UtSaemResults
	
    /**
     * @desc 
     */
    type union UtSaemTrigger {
      octetstring dummy
    } with {
      variant ""
    }
        
    /**
     * @desc Upper Tester message to check event/status on AVM IUT 
     */
    type record UtSaemEventInd {
      SAEM saemMsg
    } with {
      variant "";
      encode (saemMsg) "LibItsSaem_asn1";
    }
        
    /**
     * @desc List of Upper Tester messages to check event/status on AVM IUT 
     */
    type record of UtSaemEventInd UtSaemEventIndList;
        
  } with {
    encode "UpperTester"
    variant ""
  } // end utPrimitives

  group facilityPrimitives {
          
    group fa1Primitives {
        
        /**
          * @desc FA1 `SAEM Indication Primitive 
          */
        type record SaemInd {
            SAEM   msgIn,
            UInt64 recvTime,
            UInt8  gnNextHeader optional,
            UInt8  gnHeaderType optional,
            UInt8  gnHeaderSubtype optional,
            UInt32 gnLifetime optional,
            UInt8  gnTrafficClass optional,
            UInt16 btpDestinationPort optional,
            UInt16 btpInfo optional,
            Bit256 ssp optional,
            UInt32 its_aid optional
        }
        with {
              encode (msgIn) "PER"
        }

        /**
          * @desc FA1 SAEM Request Primitive 
          */
        type record SaemReq {
            SAEM msgOut
        }
        with {
              encode (msgOut) "PER"
        }

    } // end fa1Primitives
          
  } // End of group facilityPrimitives
  with {
      variant ""
      encode "LibIts_Interface"
  } // end interfacePrimitives    
    
}
with {
  encode "LibItsSaem"
  }
Compare f4052e19 to 845d4e27
Original line number Diff line number Diff line
Subproject commit f4052e19208e92bfd0d1d95439539c0cea338842
Subproject commit 845d4e27237eb94ea51aed9e04f24dcec1b58ec7
Compare 237ea963 to 267342b5
Original line number Diff line number Diff line
Subproject commit 237ea9630be24c6540a4f619e35fc7371b2b0c45
Subproject commit 267342b551cc482530bb9741597f191d4c4818aa