The run.sh script requires an argument that indicates how many times the script will do a scan (the final signal strength is the average of all the measurements) i.e.

sh /root/prepare.sh Wait until reboot of the nodes

sh /root/run.sh 5 Once executed you can finish the experiment

Remeber to name the experiment WibedTopology

After you run the experiment, and when the results are available, you can click the Topology tab on the server to see the a visualization of the network topology. You will have to click the Redraw button to get the results that are based on your experiment. You only need to do this once.

Some info about the script

To avoid collisions the script waits 2*i seconds where i is its position in the list of the nodes that participate in the experiment. Below this method is compared to waiting a random amount of time.

Algorithm comparison

Since first algorithm uses random sleep time, starting from 10 nodes and above there is a big chance of collision when some nodes will be scanning the radio at the same time.

We now provide results obtained from both algorithms and try to compare them.

Run on 3 nodes with 3 scans per node.

Random Sleep Time

Node ID

wibed-3b492c

wibed-3e9dc4

wibed-3e9e8a

wibed-3b492c

0

48, 48, 48

39, 37, 39

wibed-3e9dc4

45, 46, 47

0

41, 41, 41

wibed-3e9e8a

37, 38, 40

41, 43, 41

0

List order sleep time

Node ID

wibed-3b492c

wibed-3e9dc4

wibed-3e9e8a

wibed-3b492c

0

49, 48, 48

38, 39, 39

wibed-3e9dc4

47, 47, 47

0

42, 42, 43

wibed-3e9e8a

39, 39, 38

41, 41, 40

0

Dummy algorithm seems to achieve less variation in measurements (3 dBm in random algorithm and only 1 in dummy). Results of all three scans stay more or less stable.

I've tried to play around with the later. Data for the graph for now has to be put in the code of HTML page manually. We need to find out the way to take the data from file and dynamically process it to build a graph.