InVehicleNetworkShowcase

Package: inet.showcases.tsn.combiningfeatures.invehicle

InVehicleNetworkShowcase

network

(no description)

PcapRecorder IIntegratedVisualizer IL3NetworkConfigurator INetworkConfigurator IGateScheduleConfigurator INetworkConfigurator INetworkConfigurator IEthernetNetworkNode IEthernetNetworkNode IEthernetNetworkNode IEthernetNetworkNode IEthernetNetworkNode IEthernetNetworkNode IEthernetNetworkNode IEthernetNetworkNode IEthernetNetworkNode IEthernetNetworkNode IEthernetNetworkNode IEthernetNetworkNode IEthernetNetworkNode IEthernetNetworkNode IEthernetNetworkNode IEthernetNetworkNode IEthernetNetworkNode IEthernetNetworkNode IEthernetNetworkNode IEthernetNetworkNode IEthernetNetworkNode

Usage diagram

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Extends

Name Type Description
TsnNetworkBase network

This module serves as a network base module for Time-Sensitive Networking (TSN).

Parameters

Name Type Default value Description
recordPcap bool false
numPcapRecorders int recordPcap ? 1 : 0
hasGlobalArp bool true
brokenComponent string "none"

Properties

Name Value Description
isNetwork
class NetworkBase
display bgi=background/car;bgb=1280,720

Unassigned submodule parameters

Name Type Default value Description
pcapRecorder.verbose bool true

whether to log packets on the module output

pcapRecorder.pcapFile string ""

the PCAP file to be written

pcapRecorder.fileFormat string "pcapng"
pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

space-separated list of protocol names as defined in the Protocol class

pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

pcapRecorder.helpers string ""

usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper"

pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

pcapRecorder.displayStringTextFormat string "rec: %n pks"
frontSwitch.numEthInterfaces int
frontLeftSwitch.numEthInterfaces int
frontRightSwitch.numEthInterfaces int
rearSwitch.numEthInterfaces int
rearLeftSwitch.numEthInterfaces int
rearRightSwitch.numEthInterfaces int
obu.numEthInterfaces int
rearDisplay.numEthInterfaces int
hud.numEthInterfaces int
steering.numEthInterfaces int
engineActuator.numEthInterfaces int
lidar.numEthInterfaces int
rearLeftCamera.numEthInterfaces int
frontLeftCamera.numEthInterfaces int
rearRightCamera.numEthInterfaces int
frontRightCamera.numEthInterfaces int
rearLeftWheel.numEthInterfaces int
frontLeftWheel.numEthInterfaces int
rearRightWheel.numEthInterfaces int
frontRightWheel.numEthInterfaces int
masterClock.numEthInterfaces int

Source code

network InVehicleNetworkShowcase extends TsnNetworkBase
{
    parameters:
        string brokenComponent @enum("none","link","wheel","camera") = default("none");
        @display("bgi=background/car;bgb=1280,720");
    types:
        channel Eth1G extends inet.node.ethernet.Eth1G
        {
            @display("ls=,3");
        }
    submodules:
        frontSwitch: <> like IEthernetNetworkNode {
            @display("p=750,350");
        }
        frontLeftSwitch: <> like IEthernetNetworkNode {
            @display("p=900,275");
        }
        frontRightSwitch: <> like IEthernetNetworkNode {
            @display("p=900,417");
        }
        rearSwitch: <> like IEthernetNetworkNode {
            @display("p=475,350");
        }
        rearLeftSwitch: <> like IEthernetNetworkNode {
            @display("p=375,300");
        }
        rearRightSwitch: <> like IEthernetNetworkNode {
            @display("p=375,400");
        }
        obu: <> like IEthernetNetworkNode {
            @display("p=525,275");
        }
        rearDisplay: <> like IEthernetNetworkNode {
            @display("p=525,435");
        }
        hud: <> like IEthernetNetworkNode {
            @display("p=700,275");
        }
        steering: <> like IEthernetNetworkNode {
            @display("p=775,275");
        }
        engineActuator: <> like IEthernetNetworkNode {
            @display("p=750,425");
        }
        lidar: <> like IEthernetNetworkNode {
            @display("p=1000,350");
        }
        rearLeftCamera: <> like IEthernetNetworkNode {
            @display("p=275,250");
        }
        frontLeftCamera: <> like IEthernetNetworkNode {
            @display("p=1000,250");
        }
        rearRightCamera: <> like IEthernetNetworkNode {
            @display("p=275,475");
        }
        frontRightCamera: <> like IEthernetNetworkNode {
            @display("p=1000,475");
        }
        rearLeftWheel: <> like IEthernetNetworkNode {
            @display("p=400,200");
        }
        frontLeftWheel: <> like IEthernetNetworkNode {
            @display("p=850,200");
        }
        rearRightWheel: <> like IEthernetNetworkNode {
            @display("p=400,525");
        }
        frontRightWheel: <> like IEthernetNetworkNode {
            @display("p=850,525");
        }
        masterClock: <> like IEthernetNetworkNode if typename != "" {
            @display("p=625,400;i=device/card");
        }
    connections:
        frontSwitch.ethg++ <--> Eth1G <--> hud.ethg++;
        frontSwitch.ethg++ <--> Eth1G { @display("m=m,40,40,40,40"); } <--> rearSwitch.ethg++;
        frontSwitch.ethg++ <--> Eth1G { @display("m=m,60,60,60,60"); } <--> rearSwitch.ethg++;
        frontSwitch.ethg++ <--> Eth1G <--> frontLeftSwitch.ethg++;
        frontSwitch.ethg++ <--> Eth1G <--> frontRightSwitch.ethg++;
        frontSwitch.ethg++ <--> Eth100M <--> lidar.ethg++;
        frontSwitch.ethg++ <--> Eth100M <--> steering.ethg++;
        frontSwitch.ethg++ <--> Eth100M <--> engineActuator.ethg++;
        rearSwitch.ethg++ <--> Eth1G <--> rearLeftSwitch.ethg++;
        rearSwitch.ethg++ <--> Eth1G <--> rearRightSwitch.ethg++;
        rearSwitch.ethg++ <--> Eth1G <--> obu.ethg++;
        rearSwitch.ethg++ <--> Eth100M <--> rearDisplay.ethg++;
        frontLeftSwitch.ethg++ <--> Eth1G <--> frontRightSwitch.ethg++;
        frontLeftSwitch.ethg++ <--> Eth100M <--> frontLeftWheel.ethg++;
        frontLeftSwitch.ethg++ <--> Eth100M <--> frontLeftCamera.ethg++;
        frontRightSwitch.ethg++ <--> Eth100M <--> frontRightWheel.ethg++;
        frontRightSwitch.ethg++ <--> Eth100M <--> frontRightCamera.ethg++;
        rearLeftSwitch.ethg++ <--> Eth1G <--> rearRightSwitch.ethg++;
        rearLeftSwitch.ethg++ <--> Eth100M <--> rearLeftCamera.ethg++;
        rearLeftSwitch.ethg++ <--> Eth100M <--> rearLeftWheel.ethg++;
        rearRightSwitch.ethg++ <--> Eth100M <--> rearRightCamera.ethg++;
        rearRightSwitch.ethg++ <--> Eth100M <--> rearRightWheel.ethg++;
        masterClock.ethg++ <--> Eth100M <--> frontSwitch.ethg++ if exists(masterClock);
}
File: showcases/tsn/combiningfeatures/invehicle/InVehicleNetworkShowcase.ned