UeRnisTestApp

Package: simu5g.apps.mec.RnisTestApp

simple module UeRnisTestApp

This application is to be instantiated on the UE side. It requires that a DeviceApp is also instantiated on the UE. This module requests the DeviceApp to instantiate a MecRnisTestApp in the MEC system. The application is used to test and showcase the functionalities of the RniService API. Once the peer MEC application is up and running, this module sends a message to the MEC application, requesting it to start querying the RNIS API periodically. When the response from the MecRnisTestApp is received, the result of the query to the RNIS API is printed to the QtEnv log

simu5g.apps.mec.RnisTestApp.UeRnisTestAppUeRnisTestAppsimple

Inheritance diagram

Parameters

Name

Type

Default value

Description

localPort

int

4000

Connection parameters

deviceAppPort

int

4000

Port of the DeviceApp

deviceAppAddress

string

IP address of the DeviceApp

queryingPeriod

double

1s

RNIS querying period

tos

int

-1

If not -1, set the Type of Service (IPv4) / Traffic Class (IPv6) field of sent packets to this value

period

double

1s

Auto-scheduling parameters

startTime

double

0s

stopTime

double

120s

mecAppName

string

“MecRnisTestApp”

logger

bool

false

Properties

Name

Value

Description

display

i=block/source

Gates

Name

Direction

Size

Description

socketOut

output

socketIn

input

Source code

//
// This application is to be instantiated on the UE side. It requires that a ~DeviceApp is
// also instantiated on the UE. This module requests the ~DeviceApp to instantiate a
// ~MecRnisTestApp in the MEC system. The application is used to test and showcase the
// functionalities of the ~RniService API.
// Once the peer MEC application is up and running, this module sends a message to the MEC
// application, requesting it to start querying the RNIS API periodically. When the
// response from the  ~MecRnisTestApp is received, the result of the query to the RNIS API
// is printed to the QtEnv log
//
simple UeRnisTestApp like IApp
{
    parameters:
        @display("i=block/source");

        // Connection parameters
        int localPort = default(4000);
        int deviceAppPort = default(4000); // Port of the DeviceApp
        string deviceAppAddress;           // IP address of the DeviceApp

        double queryingPeriod @unit("s") = default(1s);   // RNIS querying period

        int tos = default(-1); // If not -1, set the Type of Service (IPv4) / Traffic Class (IPv6) field of sent packets to this value

        // Auto-scheduling parameters
        double period @unit("s") = default(1s);
        double startTime @unit("s") = default(0s);
        double stopTime @unit("s") = default(120s);

        string mecAppName = default("MecRnisTestApp");

        bool logger = default(false);

    gates:
        output socketOut;
        input socketIn;
}

File: src/simu5g/apps/mec/RnisTestApp/UeRnisTestApp.ned