ReceptionState_IdealRadio_Receiving.test 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. %description:
  2. This is a test for ideal radio receiving reception state.
  3. The received signal is strong enough to receive.
  4. %file: test.ned
  5. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  6. import inet.node.inet.WirelessHost;
  7. import inet.physicallayer.idealradio.IdealRadioMedium;
  8. network Test
  9. {
  10. submodules:
  11. radioMedium: IdealRadioMedium;
  12. configurator: IPv4NetworkConfigurator;
  13. host1: WirelessHost;
  14. host2: WirelessHost;
  15. }
  16. %inifile: omnetpp.ini
  17. [General]
  18. network = Test
  19. sim-time-limit = 80us
  20. record-eventlog = true
  21. ned-path = .;../../../../src
  22. #omnetpp 5.0 - 5.1 compatibility:
  23. eventlog-file = "${resultdir}/${configname}-${runnumber}.elog"
  24. output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca"
  25. output-vector-file = "${resultdir}/${configname}-${runnumber}.vec"
  26. snapshot-file = "${resultdir}/${configname}-${runnumber}.sna"
  27. **.arpType = "GlobalARP"
  28. **.mobility.constraintAreaMinZ = 0m
  29. **.mobility.constraintAreaMinX = 0m
  30. **.mobility.constraintAreaMinY = 0m
  31. **.mobility.constraintAreaMaxX = 1000m
  32. **.mobility.constraintAreaMaxY = 1000m
  33. **.mobility.constraintAreaMaxZ = 0m
  34. **.mobility.initFromDisplayString = false
  35. **.mobility.initialY = 500m
  36. **.mobility.initialZ = 0m
  37. *.host*.mobilityType = "StationaryMobility"
  38. *.host1.mobility.initialX = 100m
  39. *.host2.mobility.initialX = 200m
  40. # nic
  41. *.host*.wlan[*].typename = "IdealWirelessNic"
  42. *.host*.wlan[*].bitrate = 2Mbps
  43. *.host*.wlan[*].mac.headerLength = 10B
  44. *.host*.wlan[*].mac.fullDuplex = false
  45. *.host*.wlan[*].radioType = "IdealRadio"
  46. *.host*.wlan[*].radio.transmitter.bitrate = 2Mbps
  47. *.host*.wlan[*].radio.transmitter.preambleDuration = 0s
  48. *.host*.wlan[*].radio.transmitter.headerBitLength = 100b
  49. *.host*.wlan[*].radio.transmitter.communicationRange = 200m
  50. *.host*.wlan[*].radio.transmitter.interferenceRange = 400m
  51. *.host*.wlan[*].radio.transmitter.detectionRange = 600m
  52. *.host*.wlan[*].radio.receiver.ignoreInterference = true
  53. # ping app
  54. *.host1.numPingApps = 1
  55. *.host1.pingApp[0].count = 1
  56. *.host1.pingApp[0].printPing = true
  57. *.host1.pingApp[0].destAddr = "host2"
  58. *.host1.pingApp[0].startTime = 0s
  59. %contains: results/General-0.elog
  60. Changing radio reception state from IDLE to RECEIVING.
  61. %#--------------------------------------------------------------------------------------------------------------
  62. %not-contains: stdout
  63. undisposed object:
  64. %not-contains: stdout
  65. -- check module destructor
  66. %#--------------------------------------------------------------------------------------------------------------