No such interface wlan error in veins module

35 views
Skip to first unread message

Sanjeeth

unread,
Sep 10, 2016, 9:48:13 AM9/10/16
to OMNeT++ Users
Hello All,

Below in my scenario.ned file for which I have configured wlan interface. Declarations for wlan parameters are in the .ini file but I still get the below error. 

"Error in module (HostAutoConfigurator) RSUExampleScenario.ac_wlan (id=2) during network initialization: No such interface 'wlan'."

I have manually configured the parameters for phy and mac layer. Prior to this, I was still getting the same error. Kindly let me know if there are any changes in the source code for this wlan interface to be recognized or not throw an exception. It will be of great help.

package org.car2x.veins.nodes;

import org.car2x.veins.base.connectionManager.ConnectionManager;
import org.car2x.veins.base.modules.BaseWorldUtility;
import org.car2x.veins.modules.mobility.traci.TraCIScenarioManagerLaunchd;
import org.car2x.veins.modules.obstacle.ObstacleControl;
import org.car2x.veins.modules.world.annotations.AnnotationManager;
import inet.networklayer.autorouting.ipv4.HostAutoConfigurator;
import inet.networklayer.ipv4.RoutingTable;
import inet.networklayer.common.InterfaceTable;
import inet.linklayer.ieee80211.Ieee80211Nic;

network Scenario
{
    parameters:
        @node();
        string interfaces = default("wlan");
        string nicType = default("Nic80211p");
        bool usePropagationDelay = true;
        double playgroundSizeX @unit(m); // x size of the area the nodes are in (in meters)
        double playgroundSizeY @unit(m); // y size of the area the nodes are in (in meters)
        double playgroundSizeZ @unit(m); // z size of the area the nodes are in (in meters)
        @display("bgb=$playgroundSizeX,$playgroundSizeY");
        //networkLayer.configurator.networkConfiguratorModule = "";
    gates:
        input radioIn @directIn;
    submodules:
        ac_wlan: HostAutoConfigurator {
            @display("p=249,394");
        }
        routingTable: RoutingTable {
            parameters:
                IPForward = true;
                routerId = "";
                routingFile = "";
                @display("p=60,326");
        }
        interfaceTable: InterfaceTable {
            parameters:
                @display("p=140,326");
        }
        wlan: <nicType> like org.car2x.veins.modules.nic.INic80211p {
            parameters:
                @display("p=304,461");
        }
        obstacles: ObstacleControl {
            @display("p=240,50");
        }
        annotations: AnnotationManager {
            @display("p=260,50");
        }
        connectionManager: ConnectionManager {
            parameters:
                @display("p=150,0;i=abstract/multicast");
        }
        world: BaseWorldUtility {
            parameters:
                playgroundSizeX = playgroundSizeX;
                playgroundSizeY = playgroundSizeY;
                playgroundSizeZ = playgroundSizeZ;
                @display("p=30,0;i=misc/globe");
        }
        manager: TraCIScenarioManagerLaunchd {
            parameters:
                @display("p=512,128");
        }
        
    connections allowunconnected:
        
        //wlan.upperLayerOut --> networkLayer.ifIn[0];
        //wlan.upperLayerIn <-- networkLayer.ifOut[0];

        radioIn --> wlan.radioIn;
}

Regards,
Sanjeeth

Reply all
Reply to author
Forward
0 new messages