User guide

8 / 18
UZL-Testbed User Guide
Foundations of Adaptive Networked Societies of Tiny Artefacts
Table 2: Real and Shawn MAC addresses shows the Shawn ID for each node which is returned by
os().proc().owner().id(). Normally, the application should neither know nor use them. iSense hides
them completely.
MAC (Hex) Shawn ID
06 0D 0
06 0e 1
06 14 2
06 17 3
06 35 4
06 40 5
08 78 6
08 7f 7
78 54 8
78 56 9
78 57 10
78 5c 11
78 68 12
78 6a 13
94 73 14
94 7d 15
94 7e 16
94 7f 17
94 83 18
94 9e 19
94 a0 20
94 a4 21
Table 2: Real and Shawn MAC addresses
The JShawn-file /configuration.jshawn contains all commands to execute one simulation run with the
UZL-testbed parameters. A simulation includes generating the world, establishing a connection to
iShell if required, enabling logging tasks and running the simulation.
//------------------------------------------------
// Simulation parameters
//------------------------------------------------
// Determines if the simulation shall wait to be connected to iShell
boolean connect_to_ishell = true;
// Number of executed iterations
int iterations = 5000;
// The random seed. Use something greater or equal zero to enable the seed
int seed = 1;
The link qualities between nodes are defined in the environment. To enable these you must
set the variable “env_config” in your xml-file which contains the environment when you
create the Shawn world (with the prepare_world-command) and
use the Shawn linkprobability” communication model. Here, each (unidirectional)
communication link is defined by setting its probability for a successful packet transmission.
A link probability of 0.5 means that every second packet is lost.