Interference_APSKDimensionalRadio_Collision_WW.test 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. %description:
  2. This is a test for APSKDimensionalRadio interference handling.
  3. The first signal is weaker than the reception threshold.
  4. The second signal is weaker than the reception threshold.
  5. No signals are expected to be received.
  6. %file: test.ned
  7. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  8. import inet.node.inet.WirelessHost;
  9. import inet.physicallayer.apskradio.packetlevel.APSKDimensionalRadioMedium;
  10. network Test
  11. {
  12. submodules:
  13. radioMedium: APSKDimensionalRadioMedium;
  14. configurator: IPv4NetworkConfigurator;
  15. hostSender1: WirelessHost;
  16. hostSender2: WirelessHost;
  17. hostReceiver: WirelessHost;
  18. }
  19. %inifile: omnetpp.ini
  20. [General]
  21. network = Test
  22. sim-time-limit = 500us
  23. record-eventlog = true
  24. ned-path = .;../../../../src
  25. #omnetpp 5.0 - 5.1 compatibility:
  26. eventlog-file = "${resultdir}/${configname}-${runnumber}.elog"
  27. output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca"
  28. output-vector-file = "${resultdir}/${configname}-${runnumber}.vec"
  29. snapshot-file = "${resultdir}/${configname}-${runnumber}.sna"
  30. **.arpType = "GlobalARP"
  31. **.mobility.constraintAreaMinZ = 0m
  32. **.mobility.constraintAreaMinX = 0m
  33. **.mobility.constraintAreaMinY = 0m
  34. **.mobility.constraintAreaMaxX = 1000m
  35. **.mobility.constraintAreaMaxY = 1000m
  36. **.mobility.constraintAreaMaxZ = 0m
  37. **.mobility.initFromDisplayString = false
  38. **.mobility.initialY = 500m
  39. **.mobility.initialZ = 0m
  40. *.host*.mobilityType = "StationaryMobility"
  41. *.hostSender1.mobility.initialX = 200m
  42. *.hostSender2.mobility.initialX = 800m
  43. *.hostReceiver.mobility.initialX = 400m
  44. # radio medium
  45. *.radioMedium.backgroundNoise.power = -110dBm
  46. # nic
  47. *.host*.wlan[*].typename = "IdealWirelessNic"
  48. *.host*.wlan[*].bitrate = 2Mbps
  49. *.host*.wlan[*].mac.headerLength = 10B
  50. *.host*.wlan[*].mac.fullDuplex = false
  51. *.host*.wlan[*].radioType = "APSKDimensionalRadio"
  52. *.host*.wlan[*].radio.transmitter.bitrate = 2Mbps
  53. *.host*.wlan[*].radio.transmitter.preambleDuration = 0s
  54. *.host*.wlan[*].radio.transmitter.headerBitLength = 100b
  55. *.host*.wlan[*].radio.carrierFrequency = 2.4GHz
  56. *.host*.wlan[*].radio.bandwidth = 2MHz
  57. *.host*.wlan[*].radio.receiver.energyDetection = -90dBm
  58. *.host*.wlan[*].radio.receiver.sensitivity = -80dBm
  59. *.host*.wlan[*].radio.receiver.snirThreshold = 10dB
  60. *.hostSender1.wlan[*].radio.transmitter.power = 1mW
  61. *.hostSender2.wlan[*].radio.transmitter.power = 1mW
  62. *.hostReceiver.wlan[*].radio.transmitter.power = 0W
  63. # ping app
  64. *.hostSender*.numPingApps = 1
  65. *.hostSender*.pingApp[0].count = 1
  66. *.hostSender*.pingApp[0].printPing = true
  67. *.hostSender*.pingApp[0].destAddr = "hostReceiver"
  68. *.hostSender*.pingApp[0].startTime = 0s
  69. %not-contains: results/General-0.elog
  70. Changing radio reception state from IDLE to RECEIVING.
  71. %not-contains: results/General-0.elog
  72. Received (inet::IdealMacFrame)ping0 contains bit errors or collision, dropping it
  73. %not-contains: results/General-0.elog
  74. Passing up contained packet `ping0' to higher layer
  75. %#--------------------------------------------------------------------------------------------------------------
  76. %not-contains: stdout
  77. undisposed object:
  78. %not-contains: stdout
  79. -- check module destructor
  80. %#--------------------------------------------------------------------------------------------------------------