Interference_APSKScalarRadio_Reception_SW.test 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. %description:
  2. This is a test for APSKScalarRadio interference handling.
  3. The first signal is stronger than the reception threshold.
  4. The second signal is weaker than the reception threshold.
  5. The second signal is too weak to cause bit errors.
  6. The first signal is expected to be received correctly.
  7. %file: test.ned
  8. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  9. import inet.node.inet.WirelessHost;
  10. import inet.physicallayer.apskradio.packetlevel.APSKScalarRadioMedium;
  11. network Test
  12. {
  13. submodules:
  14. radioMedium: APSKScalarRadioMedium;
  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 = "APSKScalarRadio"
  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 = 100mW
  62. *.hostSender2.wlan[*].radio.transmitter.power = 10mW
  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. %#--------------------------------------------------------------------------------------------------------------
  71. %contains: results/General-0.elog
  72. Changing radio reception state from IDLE to RECEIVING.
  73. %#--------------------------------------------------------------------------------------------------------------
  74. %contains: results/General-0.elog
  75. Changing radio reception state from RECEIVING to BUSY.
  76. %#--------------------------------------------------------------------------------------------------------------
  77. %contains: results/General-0.elog
  78. Passing up contained packet `ping0' to higher layer
  79. %#--------------------------------------------------------------------------------------------------------------
  80. %contains: results/General-0.elog
  81. Sending datagram (inet::IPv4Datagram)ping0-reply with destination = 10.0.0.1
  82. %#--------------------------------------------------------------------------------------------------------------
  83. %not-contains: stdout
  84. undisposed object:
  85. %not-contains: stdout
  86. -- check module destructor
  87. %#--------------------------------------------------------------------------------------------------------------