Changes between Version 3 and Version 4 of GEC16Agenda/WiMAX-Tutorial/Coop/05
- Timestamp:
- 07/22/13 21:16:02 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GEC16Agenda/WiMAX-Tutorial/Coop/05
v3 v4 15 15 16 16 defProperty('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") 17 defProperty('nodeList', "13,4,6", "List of IDs for the resources to use as senders") 19 18 defProperty('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") 19 defProperty('mcsUrl', "http://wimaxrf:5052/wimaxrf/bs/set?dl_profile1", "URL prefix for setting MCS") 20 defProperty('queue',50, "Length to buffer for") 21 22 property.nodeList.value.split(",").each do |i| 23 defGroup("Receiver#{i}", "#{property.hrnPrefix}#{i}") do |node| 22 24 23 25 groupList = [] … … 63 65 64 66 onEvent(: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") 66 69 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") 68 73 system("/home/#{ENV['USER']}/getbsconf -i wimaxrf --oml-server tcp:localhost:3003 --oml-id console --oml-exp-id #{Experiment.ID}") 69 74 allGroups.startApplications 70 75 wait property.duration 71 76 wait 10 72 system("/usr/bin/wget -qO- #{property.attUrl}=13") 77 # Restore QPSK modulation 78 system("/usr/bin/wget -qO- #{property.mcsUrl}=13") 73 79 allGroups.stopApplications 74 80 Experiment.done