123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- %description:
- This is a test for ideal radio receiving reception state.
- The received signal is strong enough to receive.
- %file: test.ned
- import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
- import inet.node.inet.WirelessHost;
- import inet.physicallayer.idealradio.IdealRadioMedium;
- network Test
- {
- submodules:
- radioMedium: IdealRadioMedium;
- configurator: IPv4NetworkConfigurator;
- host1: WirelessHost;
- host2: WirelessHost;
- }
- %inifile: omnetpp.ini
- [General]
- network = Test
- sim-time-limit = 80us
- record-eventlog = true
- ned-path = .;../../../../src
- #omnetpp 5.0 - 5.1 compatibility:
- eventlog-file = "${resultdir}/${configname}-${runnumber}.elog"
- output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca"
- output-vector-file = "${resultdir}/${configname}-${runnumber}.vec"
- snapshot-file = "${resultdir}/${configname}-${runnumber}.sna"
- **.arpType = "GlobalARP"
- **.mobility.constraintAreaMinZ = 0m
- **.mobility.constraintAreaMinX = 0m
- **.mobility.constraintAreaMinY = 0m
- **.mobility.constraintAreaMaxX = 1000m
- **.mobility.constraintAreaMaxY = 1000m
- **.mobility.constraintAreaMaxZ = 0m
- **.mobility.initFromDisplayString = false
- **.mobility.initialY = 500m
- **.mobility.initialZ = 0m
- *.host*.mobilityType = "StationaryMobility"
- *.host1.mobility.initialX = 100m
- *.host2.mobility.initialX = 200m
- # nic
- *.host*.wlan[*].typename = "IdealWirelessNic"
- *.host*.wlan[*].bitrate = 2Mbps
- *.host*.wlan[*].mac.headerLength = 10B
- *.host*.wlan[*].mac.fullDuplex = false
- *.host*.wlan[*].radioType = "IdealRadio"
- *.host*.wlan[*].radio.transmitter.bitrate = 2Mbps
- *.host*.wlan[*].radio.transmitter.preambleDuration = 0s
- *.host*.wlan[*].radio.transmitter.headerBitLength = 100b
- *.host*.wlan[*].radio.transmitter.communicationRange = 200m
- *.host*.wlan[*].radio.transmitter.interferenceRange = 400m
- *.host*.wlan[*].radio.transmitter.detectionRange = 600m
- *.host*.wlan[*].radio.receiver.ignoreInterference = true
- # ping app
- *.host1.numPingApps = 1
- *.host1.pingApp[0].count = 1
- *.host1.pingApp[0].printPing = true
- *.host1.pingApp[0].destAddr = "host2"
- *.host1.pingApp[0].startTime = 0s
- %contains: results/General-0.elog
- Changing radio reception state from IDLE to RECEIVING.
- %#--------------------------------------------------------------------------------------------------------------
- %not-contains: stdout
- undisposed object:
- %not-contains: stdout
- -- check module destructor
- %#--------------------------------------------------------------------------------------------------------------
|