Interference_APSKDimensionalRadio_Collision_SW.test 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. %description:
  2. This is a test for APSKDimensionalRadio 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 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 = 10mW
  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. %contains: results/General-0.elog
  71. Changing radio reception state from IDLE to RECEIVING.
  72. %contains: results/General-0.elog
  73. Received (inet::IdealMacFrame)ping0 contains bit errors or collision, dropping it
  74. %not-contains: results/General-0.elog
  75. Passing up contained packet `ping0' to higher layer
  76. %#--------------------------------------------------------------------------------------------------------------
  77. %not-contains: stdout
  78. undisposed object:
  79. %not-contains: stdout
  80. -- check module destructor
  81. %#--------------------------------------------------------------------------------------------------------------