ReceptionState_APSKScalarRadio_Busy.test 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. %description:
  2. This is a test for APSKScalarRadio busy reception state.
  3. The received signal is strong enough to sense but too weak to receive.
  4. Transmission and reception parameters must match with DetailedRadio.
  5. %file: test.ned
  6. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  7. import inet.node.inet.WirelessHost;
  8. import inet.physicallayer.apskradio.packetlevel.APSKScalarRadioMedium;
  9. network Test
  10. {
  11. submodules:
  12. radioMedium: APSKScalarRadioMedium;
  13. configurator: IPv4NetworkConfigurator;
  14. host1: WirelessHost;
  15. host2: WirelessHost;
  16. }
  17. %inifile: omnetpp.ini
  18. [General]
  19. network = Test
  20. sim-time-limit = 80us
  21. record-eventlog = true
  22. ned-path = .;../../../../src
  23. #omnetpp 5.0 - 5.1 compatibility:
  24. eventlog-file = "${resultdir}/${configname}-${runnumber}.elog"
  25. output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca"
  26. output-vector-file = "${resultdir}/${configname}-${runnumber}.vec"
  27. snapshot-file = "${resultdir}/${configname}-${runnumber}.sna"
  28. **.arpType = "GlobalARP"
  29. **.mobility.constraintAreaMinZ = 0m
  30. **.mobility.constraintAreaMinX = 0m
  31. **.mobility.constraintAreaMinY = 0m
  32. **.mobility.constraintAreaMaxX = 1000m
  33. **.mobility.constraintAreaMaxY = 1000m
  34. **.mobility.constraintAreaMaxZ = 0m
  35. **.mobility.initFromDisplayString = false
  36. **.mobility.initialY = 500m
  37. **.mobility.initialZ = 0m
  38. *.host*.mobilityType = "StationaryMobility"
  39. *.host1.mobility.initialX = 200m
  40. *.host2.mobility.initialX = 800m
  41. # radio medium
  42. *.radioMedium.backgroundNoise.power = -110dBm
  43. # nic
  44. *.host*.wlan[*].typename = "IdealWirelessNic"
  45. *.host*.wlan[*].bitrate = 2Mbps
  46. *.host*.wlan[*].mac.headerLength = 10B
  47. *.host*.wlan[*].mac.fullDuplex = false
  48. *.host*.wlan[*].radioType = "APSKScalarRadio"
  49. *.host*.wlan[*].radio.transmitter.bitrate = 2Mbps
  50. *.host*.wlan[*].radio.transmitter.preambleDuration = 0s
  51. *.host*.wlan[*].radio.transmitter.headerBitLength = 100b
  52. *.host*.wlan[*].radio.transmitter.power = 10mW
  53. *.host*.wlan[*].radio.carrierFrequency = 2.4GHz
  54. *.host*.wlan[*].radio.bandwidth = 2MHz
  55. *.host*.wlan[*].radio.receiver.energyDetection = -90dBm
  56. *.host*.wlan[*].radio.receiver.sensitivity = -80dBm
  57. *.host*.wlan[*].radio.receiver.snirThreshold = 10dB
  58. # ping app
  59. *.host1.numPingApps = 1
  60. *.host1.pingApp[0].count = 1
  61. *.host1.pingApp[0].printPing = true
  62. *.host1.pingApp[0].destAddr = "host2"
  63. *.host1.pingApp[0].startTime = 0s
  64. %contains: results/General-0.elog
  65. Changing radio reception state from IDLE to BUSY.
  66. %#--------------------------------------------------------------------------------------------------------------
  67. %not-contains: stdout
  68. undisposed object:
  69. %not-contains: stdout
  70. -- check module destructor
  71. %#--------------------------------------------------------------------------------------------------------------