Changes between Version 3 and Version 4 of GEC16Agenda/WiMAX-Tutorial/Coop/05


Ignore:
Timestamp:
07/22/13 21:16:02 (7 years ago)
Author:
Fraida Fund
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GEC16Agenda/WiMAX-Tutorial/Coop/05

    v3 v4  
    1515
    1616defProperty('hrnPrefix', "omf.witest.node", "Prefix to use for the HRN of resources")
    17 defProperty('sender', "[13,5,8]", "List of IDs for the resources to use as senders")
    18 defProperty('groupSize', 1, "Number of resources to put in each group of senders")
     17defProperty('nodeList', "13,4,6", "List of IDs for the resources to use as senders")
    1918defProperty('duration',50, "Duration of experiment")
    20 defProperty('attUrl', "http://wimaxrf:5052/wimaxrf/bs/set?dl_profile1", "URL prefix for setting MCS")
    21 defProperty('queue-length',50, "Length to buffer for")
     19defProperty('mcsUrl', "http://wimaxrf:5052/wimaxrf/bs/set?dl_profile1", "URL prefix for setting MCS")
     20defProperty('queue',50, "Length to buffer for")
     21
     22property.nodeList.value.split(",").each do |i|
     23  defGroup("Receiver#{i}", "#{property.hrnPrefix}#{i}") do |node|
    2224
    2325groupList = []
     
    6365
    6466onEvent(:ALL_UP_AND_INSTALLED) do |event|
    65   system("/usr/bin/wget -qO- #{property.attUrl}=13")
     67  # Setting a QPSK modulation so clients will connect, even with a poor signal
     68  system("/usr/bin/wget -qO- #{property.mcsUrl}=13")
    6669  wait 15
    67   system("/usr/bin/wget -qO- #{property.attUrl}=21")
     70  # Setting a 64QAM modulation so that we can test the application where some clients
     71  # have a great deal of packet loss
     72  system("/usr/bin/wget -qO- #{property.mcsUrl}=21")
    6873  system("/home/#{ENV['USER']}/getbsconf -i wimaxrf --oml-server tcp:localhost:3003 --oml-id console --oml-exp-id #{Experiment.ID}")
    6974  allGroups.startApplications
    7075  wait property.duration
    7176  wait 10
    72   system("/usr/bin/wget -qO- #{property.attUrl}=13")
     77  # Restore QPSK modulation
     78  system("/usr/bin/wget -qO- #{property.mcsUrl}=13")
    7379  allGroups.stopApplications
    7480  Experiment.done