Interference_APSKScalarRadio_Collision_SS_2.test 3.3 KB

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