I am new to OMNET++ and I have the following problem:
- I am trying to create a network with 3 nodes that communicate wirelessly.
- My project contains these files -> Network.ned , CustNetworkNode.ned , Maclayer.ned/.cc/.h and omnetpp.ini
- The code of the CustomNetwork.ned file :
package customproject;
import inet.queueing.queue.DropTailQueue;
import inet.applications.common.SinkApp;
import inet.applications.common.SourceApp;
import inet.physicallayer.wireless.common.contract.packetlevel.IRadio;
import inet.mobility.contract.IMobility;
module CustNetworkNode
{
parameters:
radio.antenna.mobilityModule = default("^.^.^.mobility");
gates:
input radioIn @directIn;
submodules:
radio: <default("UnitDiskRadio")> like IRadio {
@display("p=199.42,621.92");
}
mac: Maclayer {
@display("p=199.42,441.09");
}
queue: DropTailQueue {
@display("p=200,300");
}
traffic_gen: SourceApp {
@display("p=199.42,104.78");
}
consumer: SinkApp {
@display("p=332.93,104.78");
}
mobility: <default("StationaryMobility")> like IMobility {
@display("p=58.5,117");
}
connections allowunconnected:
radioIn --> { @display("m=s"); } --> radio.radioIn;
radio.upperLayerOut --> mac.lowerLayerIn;
radio.upperLayerIn <-- mac.lowerLayerOut;
queue.out --> mac.upperLayerIn;
queue.in <-- traffic_gen.socketOut;
mac.upperLayerOut --> consumer.socketIn;
}
-
When I run the omnetpp.ini file I’am getting this
#Error -
Then I go back to the comment the CustomNetwork.ned file and comment the line:
//radio.antenna.mobilityModule = default("^.^.^.mobility");
-
After running the omnetpp.ini file again I’m getting this Unassigned Parameter
-
I don’t sign any parameter and I get the following #Error
I have read a relevant topic with someone that faced the same issues but I cannot find any solid answer that solves these problems.
Omnet++ simple wireless node
Any recommendations?
I executed the steps 4-7
user25072783 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.