Interference_APSKDimensionalRadio_Collision_WS.test 3.3 KB

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