network WirelessA
{
parameters:
string hostType = default("Vehicle");
string mediumType = default("IdealRadioMedium");
@display("bgb=650,500;bgg=100,1,grey95");
@figure[title](type=label; pos=0,-1; anchor=sw; color=darkblue);
@figure[rcvdPkText](type=indicatorText; pos=120,20; anchor=w; font=,20; textFormat="packets received: %g"; initialValue=0);
@statistic[rcvdPk](source=hostB_rcvdPk; record=figure(count); targetFigure=rcvdPkText);
@signal[hostB_rcvdPk];
@delegatesignal[rcvdPk](source=hostB.udpApp[0].rcvdPk; target=hostB_rcvdPk);
submodules:
visualizer: IntegratedCanvasVisualizer {
@display("p=580,125");
}
configurator: FlatNetworkConfigurator6 {
@display("p=580,200");
}
radioMedium: <mediumType> like IRadioMedium {
@display("p=580,275");
}
figureHelper: DelegateSignalConfigurator {
@display("p=580,350");
}
hostA: Vehicle {
parameters:
@display("p=50,325");
}
hostB: Vehicle {
parameters:
@display("p=450,325");
}
}
and this is my .ini file:
[General]
description = Two hosts communicating wirelessly
network = WirelessA
sim-time-limit = 25s
**.neighbourDiscovery.minIntervalBetweenRAs = 0.03s #MinRtrAdvInterval (RFC 3775),applicable when MIPv6Support is true
**.neighbourDiscovery.maxIntervalBetweenRAs = 0.07s #3 ;MaxRtrAdvInterval (RFC 3775),applicable when MIPv6Support is true
*.hostA.numUdpApps = 1
*.hostA.udpApp[0].typename = "UDPBasicApp"
*.hostA.udpApp[0].destAddresses = "hostB"
*.hostA.udpApp[0].destPort = 5000
*.hostA.udpApp[0].messageLength = 1000B
*.hostA.udpApp[0].sendInterval = exponential(12ms)
*.hostA.udpApp[0].packetName = "UDPData"
*.hostB.numUdpApps = 1
*.hostB.udpApp[0].typename = "UDPSink"
*.hostB.udpApp[0].localPort = 5000
*.host*.wlan[0].typename = "IdealWirelessNic"
*.host*.wlan[0].mac.useAck = false
*.host*.wlan[0].mac.fullDuplex = false
*.host*.wlan[0].radio.transmitter.communicationRange = 500m
*.host*.wlan[0].radio.receiver.ignoreInterference = true
*.host*.**.bitrate = 1Mbps
*.host*.forwarding = true
Thanks for your reply and sorry for my english.
Jonathan
--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.
Can I use omnet++ simulator for a 3 dimensional wireless scenario. If yes, kindly suggest how to do the same (I have some knowledge related to 2D scenario).
I don't understand. You need the lower protocols.
And respect the supported protocols, network protocols? mac protocols?
IdealRadio
with APSKScalarRadio
. APSKScalarRadio
models a radio with an APSK (amplitude and phase-shift keying) modulation scheme. By default it uses BPSK, but QPSK, QAM-16, QAM-64, QAM-256 and several other modulations can also be configured.