Ieee80211_4.test 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. %description:
  2. Carrier sense test for Ieee80211 out of range concurrent and delayed mutual transmission.
  3. %file: test.ned
  4. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  5. import inet.node.inet.AdhocHost;
  6. import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;
  7. network Test
  8. {
  9. submodules:
  10. radioMedium: Ieee80211ScalarRadioMedium;
  11. configurator: IPv4NetworkConfigurator;
  12. host1: AdhocHost;
  13. host2: AdhocHost;
  14. }
  15. %inifile: omnetpp.ini
  16. [General]
  17. network = Test
  18. sim-time-limit = 100us
  19. record-eventlog = true
  20. ned-path = .;../../../../src
  21. cmdenv-express-mode = false
  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. **.host*.mobilityType = "StationaryMobility"
  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. # mac
  36. **.contention.initialChannelBusy = false
  37. # radio
  38. **.radio.receiver.energyDetection = -100dBm
  39. # ping app
  40. *.host*.numPingApps = 1
  41. *.host*.pingApp[0].count = 1
  42. *.host*.pingApp[0].printPing = true
  43. *.host1.pingApp[0].destAddr = "host2"
  44. *.host2.pingApp[0].destAddr = "host1"
  45. **.mobility.initFromDisplayString = false
  46. **.mobility.initialY = 500m
  47. **.mobility.initialZ = 0m
  48. **.host1.mobility.initialX = 100m
  49. **.host2.mobility.initialX = 900m
  50. *.host1.pingApp[0].startTime = 0s
  51. *.host2.pingApp[0].startTime = 3us
  52. %#--------------------------------------------------------------------------------------------------------------
  53. %contains: results/General-0.elog
  54. not attempting
  55. %#--------------------------------------------------------------------------------------------------------------
  56. %contains-regex: stdout
  57. Changing radio reception state from IDLE to BUSY\.
  58. %#--------------------------------------------------------------------------------------------------------------
  59. %not-contains: stdout
  60. undisposed object:
  61. %not-contains: stdout
  62. -- check module destructor
  63. %#--------------------------------------------------------------------------------------------------------------