v1.5.1 (end of TTF 011)

v1.5.1 (end of TTF 011)

Merge request reports

Loading
+46
Changes for lib/LibItsGeoNetworking_EncdecDeclarations.ttcn: 46 added lines, 0 removed lines.
Original line number Diff line number Diff line
module LibItsGeoNetworking_EncdecDeclarations {
    
    import from LibItsGeoNetworking_TypesAndValues all;
    
    external function fx_enc_GeoNetworkingReq (GeoNetworkingReq p) return bitstring
        with {extension "prototype(convert) encode(LibIts_Interface)"}
        
    external function fx_dec_GeoNetworkingReq (inout bitstring b, out GeoNetworkingReq p) return integer
        with {extension "prototype(sliding) decode(LibIts_Interface)"}
        
    external function fx_enc_GeoNetworkingInd (GeoNetworkingInd p) return bitstring
        with {extension "prototype(convert) encode(LibIts_Interface)"}
        
    external function fx_dec_GeoNetworkingInd (inout bitstring b, out GeoNetworkingInd p) return integer
        with {extension "prototype(sliding) decode(LibIts_Interface)"}
        
    external function fx_enc_GeoNetworkingPdu (GeoNetworkingPdu p) return bitstring
        with {extension "prototype(convert) encode(LibItsGeoNetworking)"}
        
    external function fx_dec_GeoNetworkingPdu (inout bitstring b, out GeoNetworkingPdu p) return integer
        with {extension "prototype(sliding) decode(LibItsGeoNetworking)"}
        
    external function fx_enc_GnNonSecuredPacket (GnNonSecuredPacket p) return bitstring
        with {extension "prototype(convert) encode(LibItsGeoNetworking)"}
        
    external function fx_dec_GnNonSecuredPacket (inout bitstring b, out GnNonSecuredPacket p) return integer
        with {extension "prototype(sliding) decode(LibItsGeoNetworking)"}
    
    /*
    external function fx_enc_GeoSecuredMessage (GeoNetworkingPacket.securedMsg p) return bitstring
        with {extension "prototype(convert) encode(LibItsSecurity)"}
    
    external function fx_dec_GeoSecuredMessage (inout bitstring b, out GeoNetworkingPacket.securedMsg p) return integer
        with {extension "prototype(sliding) decode(LibItsSecurity)"}
    */
    
    external function fx_enc_UtGnInitialize (UtGnInitialize p) return bitstring
        with {extension "prototype(convert) encode(UpperTester)"}
    
    external function fx_enc_UtGnChangePosition (UtGnChangePosition p) return bitstring
        with {extension "prototype(convert) encode(UpperTester)"}
    
    external function fx_enc_UtGnTrigger (UtGnTrigger p) return bitstring
        with {extension "prototype(convert) encode(UpperTester)"}
    
} // End of module LibItsGeoNetworking_EncdecDeclarations
+389
Changes for lib/LibItsGeoNetworking_Pics.ttcn: 389 added lines, 0 removed lines.
Original line number Diff line number Diff line
/**
 *  @author     ETSI / STF405 / STF449 / STF484 / STF517
 *  @version    $URL$
 *              $Id$
 *  @desc       GeoNetworking PICS
 *  @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 LibItsGeoNetworking_Pics {
    
    // LibCommon
    import from LibCommon_BasicTypesAndValues all;
    import from LibCommon_DataStrings all;
        
    // LibIts
    import from LibItsGeoNetworking_TypesAndValues all;
    import from LibItsExternal_TypesAndValues {type MacAddress};
    
    group geoNwPics {
        
        /**
         * @desc GeoNetworking address of the GeoAdhoc router
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar GN_Address PICS_GN_LOCAL_GN_ADDR := {
            typeOfAddress := e_manual,
            stationType := e_passengerCar,
            reserved := c_uInt10Zero,
            mid := c_6ZeroBytes
        };
        
        /**
         * @desc Is address manually configured
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar GnAddressConfigurationMethod PICS_GN_LOCAL_ADDR_CONF_METHOD := e_anonymous;
        
        /**
         * @desc Is the IUT mobile?
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_IS_MOBILE := true;
        
        /**
         * @desc Minimum update frequency of local position vector (LPV) in ms
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar integer PICS_GN_MINIMUM_UPDATE_FREQUENCY_LPV := 1000;
            
        /**
         * @desc Maximum size of GN-SDU [bytes]
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar integer PICS_GN_MAX_SDU_SIZE := 1398;
        
        /**
         * @desc GN_MAX: Maximum size of GeoNetworking header [bytes]
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar integer PICS_GN_MAX_GN_HEADER_SIZE := 88;
        
        /**
         * @desc Lifetime of location table entry [s]
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar integer PICS_GN_LIFETIME_LOC_TE := 20;
        
        /**
         * @desc GN Security support enabled or disabled
         * @see  ETSI TS 102 871-1 Table 1
         * @remark This PIC is different than PICS_IS_IUT_SECURED. 
         *         When set to true, this PIC indicates that the GeoNetworking is running with security ATS
         *         UtInitialse shall indicate which certificate the IUT shall use
         */
        modulepar boolean PICS_GN_SECURITY := false;
        
        /**
         * @desc Maximum number of retransmissions of LS_REQUEST packets
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar integer PICS_GN_LOCATION_SERVICE_MAX_RETRANS := 10;
        
        /**
         * @desc Duration of Location service retransmit timer [ms]
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar integer PICS_GN_LOCATION_SERVICE_RETRANSMIT_TIMER := 1000;
        
        /**
         * @desc Size of Location service packet buffer [Byte]
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar integer PICS_GN_LOCATION_SERVICE_PACKET_BUFFER_SIZE := 1024;
        
        /**
         * @desc Duration of Beacon service retransmit timer [ms]
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar integer PICS_GN_BEACON_SERVICE_RETRANSMIT_TIMER := 3000;
        
        /**
         * @desc Maximum beacon jitter [ms]
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar integer PICS_GN_BEACON_SERVICE_MAX_JITTER := 750;
        
        /**
         * @desc Default hop limit indicating the maximum number of hops a packet travels
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar UInt8 PICS_GN_DEFAULT_HOP_LIMIT := 10;
        
        /**
         * @desc Upper limit of the maximum lifetime [s]
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar integer PICS_GN_MAX_PACKET_LIFETIME := 600;
        
        /**
         * @desc Lower limit of the packet repetition interval [km^2]
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar float PICS_GN_MAX_GEO_AREA_SIZE:= 10.0;
        
        /**
         * @desc Lower limit of the packet repetition interval [ms]
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar integer PICS_GN_MIN_PACKET_REPETITION_INTERVAL := 100;
        
        /**
         * @desc Default NON-AREA forwarding algorithm
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar NonAreaForwardingAlgorithm PICS_GN_NON_AREA_FORWARDING_ALGORITHM := e_greedy;
        
        /**
         * @desc Default AREA forwarding algorithm
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar AreaForwardingAlgorithm PICS_GN_AREA_FORWARDING_ALGORITHM := e_cbf;
        
        /**
         * @desc Minimum duration a packet shall be buffered in the CBF packet buffer [ms]
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar integer PICS_GN_CBF_MIN_TIME := 1;
        
        /**
         * @desc Maximum duration a packet shall be buffered in the CBF packet buffer [ms]
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar integer PICS_GN_CBF_MAX_TIME := 100;

        /**
         * @desc Default theoretical maximum communication range [m]
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar integer PICS_GN_DEFAULT_MAX_COMMUNICATION_RANGE := 1000;
        
        /**
         * @desc Size of UC forwarding packet buffer [Kbytes]
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar integer PICS_GN_UC_FORWARDING_PACKET_BUFFER_SIZE := 256;
        
        /**
         * @desc Size of BC forwarding packet buffer [Kbytes]
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar integer PICS_GN_BC_FORWARDING_PACKET_BUFFER_SIZE := 1024;
        
        /**
         * @desc Support for Basic header
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_BASIC_HEADER := true;

        /**
         * @desc Support for Common header
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_COMMON_HEADER := true;

        /**
         * @desc Support for Beacon source operations
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_BEACON_SRC := true;

        /**
         * @desc Support for Beacon destination operations
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_BEACON_DST := true;

        /**
         * @desc Support for GUC operations
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_GUC := true;

        /**
         * @desc Support for GUC source operations
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_GUC_SRC := true;

        /**
         * @desc Support for GUC destination operations
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_GUC_DST := true;

        /**
         * @desc Support for GUC forwarding
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_GUC_FWD := true;

        /**
         * @desc Support for GBC operations
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_GBC := true;

        /**
         * @desc Support for GBC source operations
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_GBC_SRC := true;

        /**
         * @desc Support for GBC destination operations
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_GBC_DST := true;

        /**
         * @desc Support for GBC forwarding
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_GBC_FWD := true;

        /**
         * @desc Support for GAC operations
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_GAC := true;

        /**
         * @desc Support for GAC source operations
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_GAC_SRC := true;

        /**
         * @desc Support for GAC destination operations
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_GAC_DST := true;

        /**
         * @desc Support for GAC forwarding
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_GAC_FWD := true;

        /**
         * @desc Support for SHB operations
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_SHB := true;

        /**
         * @desc Support for SHB source operations
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_SHB_SRC := true;

        /**
         * @desc Support for SHB destination operations
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_SHB_DST := true;

        /**
         * @desc Support for TSB operations
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_TSB := true;

        /**
         * @desc Support for TSB source operations
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_TSB_SRC := true;

        /**
         * @desc Support for TSB destination operations
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_TSB_DST := true;

        /**
         * @desc Support for TSB forwarding
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_TSB_FWD := true;

        /**
         * @desc Support for LS Request source operations
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_LS_REQ_SRC := true;

        /**
         * @desc Support for LS Request retransmission
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_LS_REQ_RETRANSMISSION := true;

        /**
         * @desc Support for LS Request destination operations
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_LS_REQ_DST := true;

        /**
         * @desc Support for LS Reply destination operations
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_LS_REP_DST := true;

        /**
         * @desc Support for LS forwarding
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_LS_FWD := true;

        /**
         * @desc Support for automatic address
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_ADDR_AUTO := true;

        /**
         * @desc Support for Managed address
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_ADDR_MANAGED := true;

        /**
         * @desc Support for Anonymous address
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_ADDR_ANONYMOUS := true;

        /**
         * @desc Support for DAD
         * @see  ETSI TS 102 871-1 Table 1
         */
        modulepar boolean PICS_GN_DAD := true;

         /**
         * @desc MAX_COUNTER used in Advanced GBC forwarding
         * @see  FIXME: not defined as protocol constant in base spec
         */
        modulepar integer PICS_GN_ADVANCED_BC_FORWARDING_MAX_COUNTER := 3;
        
        /**
         * @desc IUT's Mac address
         */
        modulepar MacAddress PICS_IUT_MAC_ADDRESS := 'FFFFFFFFFFFF'O;
        
    } // end geoNwPics
    
    /**
     * @desc Is the IUT running in secured mode?
     * @remark This PIC is different than PICS_GN_SECURITY. 
     *         When set to true, this PIC indicates that the GeoNetworking is running without security against a secured device
     *         UtInitialse does not indicate any certificate
     */
    modulepar boolean PICS_IS_IUT_SECURED := false;
    
} // End of module LibItsGeoNetworking_Pics
+207
Changes for lib/LibItsGeoNetworking_Pixits.ttcn: 207 added lines, 0 removed lines.
Original line number Diff line number Diff line
/**
 *  @author     ETSI / STF405 / STF449 / STF484 / STF517
 *  @version    $Url: https://oldforge.etsi.org/svn/LibIts/tags/20170222_STF527_Final/ttcn/GeoNetworking/LibItsGeoNetworking_Pixits.ttcn $
 *              $Id: LibItsGeoNetworking_Pixits.ttcn,v 1.4 2018/05/31 15:57:10 dte Exp $
 *  @desc       GeoNetworking PICS
 *  @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 LibItsGeoNetworking_Pixits {
    
    // LibCommon
//    import from LibCommon_DataStrings all;
    import from LibCommon_BasicTypesAndValues all;
    
    // LibIts
    import from LibItsGeoNetworking_TypesAndValues all;
    
    group geoNetworkingPixits {
        
        group gnAddresses {
            
            /**
             * @desc GeoNetworking address of the GeoAdhoc router node A
             * @see  ETSI TS 102 871-3 Table B.7
             */
            modulepar GN_Address PX_TS_NODE_A_LOCAL_GN_ADDR := {
                typeOfAddress := e_manual,
                stationType := e_passengerCar,
                reserved := c_uInt10Zero,
                mid := int2oct(10,6)
            };
            
            /**
             * @desc GeoNetworking address of the GeoAdhoc router node B
             * @see  ETSI TS 102 871-3 Table B.7
             */
            modulepar GN_Address PX_TS_NODE_B_LOCAL_GN_ADDR := {
                typeOfAddress := e_manual,
                stationType := e_passengerCar,
                reserved := c_uInt10Zero,
                mid := int2oct(11,6)
            };
            
            /**
             * @desc GeoNetworking address of the GeoAdhoc router node C
             * @see  ETSI TS 102 871-3 Table B.7
             */
            modulepar GN_Address PX_TS_NODE_C_LOCAL_GN_ADDR := {
                typeOfAddress := e_manual,
                stationType := e_passengerCar,
                reserved := c_uInt10Zero,
                mid := int2oct(12,6)
            };
            
            /**
             * @desc GeoNetworking address of the GeoAdhoc router node D
             * @see  ETSI TS 102 871-3 Table B.7
             */
            modulepar GN_Address PX_TS_NODE_D_LOCAL_GN_ADDR := {
                typeOfAddress := e_manual,
                stationType := e_passengerCar,
                reserved := c_uInt10Zero,
                mid := int2oct(13,6)
            };
            
            /**
             * @desc GeoNetworking address of the GeoAdhoc router node E
             * @see  ETSI TS 102 871-3 Table B.7
             */
            modulepar GN_Address PX_TS_NODE_E_LOCAL_GN_ADDR := {
                typeOfAddress := e_manual,
                stationType := e_passengerCar,
                reserved := c_uInt10Zero,
                mid := int2oct(14,6)
            };
            
            /**
             * @desc GeoNetworking address of the GeoAdhoc router node F
             * @see  ETSI TS 102 871-3 Table B.7
             */
            modulepar GN_Address PX_TS_NODE_F_LOCAL_GN_ADDR := {
                typeOfAddress := e_manual,
                stationType := e_passengerCar,
                reserved := c_uInt10Zero,
                mid := int2oct(15,6)
            };

        } // end gnAddresses
        
        group congestionControl {
            
            /**
             * @desc    Nr of neighbour limit to enter the "medium" congestion status value
             * @see  ETSI TS 102 871-3 Table B.7
             */
            modulepar integer PX_MIN_NR_NEIGHBOUR := 50;
            
            /**
             * @desc    Nr of neighbour limit to enter the "maximum" congestion status value
             * @see  ETSI TS 102 871-3 Table B.7
             */
            modulepar integer PX_MAX_NR_NEIGHBOUR := 50;
            
            /**
             * @desc Maximum number of application retransmissions
             * @see  ETSI TS 102 871-3 Table B.7
             */
            modulepar integer PX_GN_APPLICATION_MAX_RETRANS := 10;
            
        } // end congestionControl
        
        group timers {
            
            /**
             * @desc  Delta for timers to reflect processing time
             * @see  ETSI TS 102 871-3 Table B.7
             */
            modulepar float PX_T_DELTA := 0.1;
            
            /**
             * @desc Duration of Beacon service retransmit timer [ms] for NetBeaconInterval = medium (cong. ctrl)
             * @see  ETSI TS 102 871-3 Table B.7
             */
            modulepar integer PX_GN_BEACON_SERVICE_TIMER_MEDIUM := 5000;
            
            /**
             * @desc Duration of Beacon service retransmit timer [ms] for NetBeaconInterval = maximum (cong. ctrl)
             * @see  ETSI TS 102 871-3 Table B.7
             */
            modulepar integer PX_GN_BEACON_SERVICE_TIMER_MAXIMUM := 8000;
            
            /**
             * @desc Duration of Location service retransmit timer [ms] for NetRepInterval = medium (cong. ctrl)
             * @see  ETSI TS 102 871-3 Table B.7
             */
            modulepar integer PX_GN_LOCATION_SERVICE_TIMER_MEDIUM := 2000;
            
            /**
             * @desc Duration of Location service retransmit timer [ms] for NetRepInterval = maximum (cong. ctrl)
             * @see  ETSI TS 102 871-3 Table B.7
             */
            modulepar integer PX_GN_LOCATION_SERVICE_TIMER_MAXIMUM := 3000;
            
            /**
             * @desc Duration of Application retransmit timer [ms]
             * @see  ETSI TS 102 871-3 Table B.7
             */
            modulepar integer PX_GN_APPLICATION_RETRANSMIT_TIMER := 1000;
            
            /**
             * @desc Duration of Application retransmit timer [ms] - medium
             * @see  ETSI TS 102 871-3 Table B.7
             */
            modulepar integer PX_GN_APPLICATION_RETRANSMIT_TIMER_MEDIUM := 2000;
            
            /**
             * @desc Duration of Application retransmit timer [ms] - maximum
             * @see  ETSI TS 102 871-3 Table B.7
             */
            modulepar integer PX_GN_APPLICATION_RETRANSMIT_TIMER_MAXIMUM := 3000;
            
            /**
             * @desc The allowed delta for position checking.
             * @see  ETSI TS 102 871-3 Table B.7
             */
            modulepar integer PX_POS_DELTA := 1;
        }
        
        group upperLayer {
        
            /**
             * @desc The IUT's upper layer
             * @see  ETSI TS 102 871-3 Table B.7
             */
            modulepar NextHeader PX_GN_UPPER_LAYER := e_any;    

            /**
             * @desc   Is BTP header present in IUT's UT indication. Only applicable if PX_GN_UPPER_LAYER == e_btpA or e_btpB.
             * @remark It may happen that IUT do not report BTP header in UT indications (due to GN/BTP merge)
             * @see    ETSI TS 102 871-3 Table B.7
             */
            modulepar boolean PX_BTP_IN_UT_IND := true;    

        }
        
        group parametrisation {
            
            /**
             * @desc Number of messages to be sent
             * @see  ETSI TS 102 871-3 Table B.7
             */
            modulepar integer PX_MESSAGE_COUNT := 5;
            
            /**
             * @desc Time necessary for IUT to detect neighbours
             * @see  ETSI TS 102 871-3 Table B.7
             */
            modulepar float PX_NEIGHBOUR_DISCOVERY_DELAY := 1.0
            
        }
        
    } // end geoNetworkingPixits
    
} // end LibItsGeoNetworking_Pixits
+2319

File added.

Preview size limit exceeded, changes collapsed.

+1224

File added.

Preview size limit exceeded, changes collapsed.

Loading
Loading