2009-01-15 14:20:18 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<simconf>
|
2009-03-11 14:25:40 +01:00
|
|
|
<project>../apps/mrm</project>
|
|
|
|
<project>../apps/mspsim</project>
|
2009-06-24 16:42:50 +02:00
|
|
|
<project>../apps/avrora</project>
|
2009-03-11 14:25:40 +01:00
|
|
|
<project>../apps/native_gateway</project>
|
2009-01-15 14:20:18 +01:00
|
|
|
<simulation>
|
|
|
|
<title>My simulation</title>
|
|
|
|
<delaytime>0</delaytime>
|
2009-06-24 16:42:50 +02:00
|
|
|
<randomseed>generated</randomseed>
|
|
|
|
<motedelay_us>1000000</motedelay_us>
|
2009-01-15 14:20:18 +01:00
|
|
|
<radiomedium>
|
|
|
|
se.sics.cooja.radiomediums.UDGM
|
|
|
|
<transmitting_range>50.0</transmitting_range>
|
|
|
|
<interference_range>100.0</interference_range>
|
|
|
|
<success_ratio_tx>1.0</success_ratio_tx>
|
|
|
|
<success_ratio_rx>1.0</success_ratio_rx>
|
|
|
|
</radiomedium>
|
|
|
|
<motetype>
|
|
|
|
se.sics.cooja.mspmote.SkyMoteType
|
|
|
|
<identifier>sky1</identifier>
|
|
|
|
<description>Sky Mote Type #1</description>
|
|
|
|
<source>../../../examples/sky-shell-webserver/sky-shell-webserver.c</source>
|
2010-02-03 22:16:13 +01:00
|
|
|
<commands>make clean TARGET=sky
|
|
|
|
make sky-shell-webserver.sky TARGET=sky</commands>
|
2009-03-11 14:25:40 +01:00
|
|
|
<firmware>../../../examples/sky-shell-webserver/sky-shell-webserver.sky</firmware>
|
|
|
|
<moteinterface>se.sics.cooja.interfaces.Position</moteinterface>
|
2009-06-24 16:42:50 +02:00
|
|
|
<moteinterface>se.sics.cooja.interfaces.IPAddress</moteinterface>
|
2009-03-11 14:25:40 +01:00
|
|
|
<moteinterface>se.sics.cooja.interfaces.Mote2MoteRelations</moteinterface>
|
|
|
|
<moteinterface>se.sics.cooja.mspmote.interfaces.MspClock</moteinterface>
|
|
|
|
<moteinterface>se.sics.cooja.mspmote.interfaces.MspMoteID</moteinterface>
|
|
|
|
<moteinterface>se.sics.cooja.mspmote.interfaces.SkyButton</moteinterface>
|
|
|
|
<moteinterface>se.sics.cooja.mspmote.interfaces.SkyFlash</moteinterface>
|
|
|
|
<moteinterface>se.sics.cooja.mspmote.interfaces.SkyByteRadio</moteinterface>
|
|
|
|
<moteinterface>se.sics.cooja.mspmote.interfaces.SkySerial</moteinterface>
|
|
|
|
<moteinterface>se.sics.cooja.mspmote.interfaces.SkyLED</moteinterface>
|
2009-01-15 14:20:18 +01:00
|
|
|
</motetype>
|
|
|
|
<mote>
|
|
|
|
se.sics.cooja.mspmote.SkyMote
|
|
|
|
<motetype_identifier>sky1</motetype_identifier>
|
2009-06-24 16:42:50 +02:00
|
|
|
<breakpoints />
|
2009-01-15 14:20:18 +01:00
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.interfaces.Position
|
2009-02-16 13:40:28 +01:00
|
|
|
<x>16.08449565170202</x>
|
|
|
|
<y>26.59851562245121</y>
|
2009-01-15 14:20:18 +01:00
|
|
|
<z>0.0</z>
|
|
|
|
</interface_config>
|
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.mspmote.interfaces.MspMoteID
|
|
|
|
<id>1</id>
|
|
|
|
</interface_config>
|
|
|
|
</mote>
|
|
|
|
<mote>
|
|
|
|
se.sics.cooja.mspmote.SkyMote
|
|
|
|
<motetype_identifier>sky1</motetype_identifier>
|
2009-06-24 16:42:50 +02:00
|
|
|
<breakpoints />
|
2009-01-15 14:20:18 +01:00
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.interfaces.Position
|
2009-06-24 16:42:50 +02:00
|
|
|
<x>42.81612608990057</x>
|
|
|
|
<y>41.95359330906976</y>
|
2009-01-15 14:20:18 +01:00
|
|
|
<z>0.0</z>
|
|
|
|
</interface_config>
|
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.mspmote.interfaces.MspMoteID
|
|
|
|
<id>2</id>
|
|
|
|
</interface_config>
|
|
|
|
</mote>
|
|
|
|
<mote>
|
|
|
|
se.sics.cooja.mspmote.SkyMote
|
|
|
|
<motetype_identifier>sky1</motetype_identifier>
|
2009-06-24 16:42:50 +02:00
|
|
|
<breakpoints />
|
2009-01-15 14:20:18 +01:00
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.interfaces.Position
|
2009-02-16 13:40:28 +01:00
|
|
|
<x>70.00470747576063</x>
|
|
|
|
<y>60.92771287468932</y>
|
2009-01-15 14:20:18 +01:00
|
|
|
<z>0.0</z>
|
|
|
|
</interface_config>
|
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.mspmote.interfaces.MspMoteID
|
|
|
|
<id>3</id>
|
|
|
|
</interface_config>
|
|
|
|
</mote>
|
|
|
|
<mote>
|
|
|
|
se.sics.cooja.mspmote.SkyMote
|
|
|
|
<motetype_identifier>sky1</motetype_identifier>
|
2009-06-24 16:42:50 +02:00
|
|
|
<breakpoints />
|
2009-01-15 14:20:18 +01:00
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.interfaces.Position
|
|
|
|
<x>99.0932428018975</x>
|
|
|
|
<y>84.52903598560302</y>
|
|
|
|
<z>0.0</z>
|
|
|
|
</interface_config>
|
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.mspmote.interfaces.MspMoteID
|
|
|
|
<id>4</id>
|
|
|
|
</interface_config>
|
|
|
|
</mote>
|
|
|
|
</simulation>
|
|
|
|
<plugin>
|
|
|
|
se.sics.cooja.plugins.SimControl
|
|
|
|
<width>248</width>
|
2009-06-24 16:42:50 +02:00
|
|
|
<z>3</z>
|
2009-01-15 14:20:18 +01:00
|
|
|
<height>200</height>
|
|
|
|
<location_x>0</location_x>
|
|
|
|
<location_y>0</location_y>
|
|
|
|
<minimized>false</minimized>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
2009-06-24 16:42:50 +02:00
|
|
|
se.sics.cooja.plugins.Visualizer
|
|
|
|
<plugin_config>
|
|
|
|
<skin>Mote IDs</skin>
|
|
|
|
<skin>Addresses: IP or Rime</skin>
|
|
|
|
<skin>Radio environment (UDGM)</skin>
|
|
|
|
</plugin_config>
|
|
|
|
<width>305</width>
|
|
|
|
<z>2</z>
|
|
|
|
<height>201</height>
|
|
|
|
<location_x>248</location_x>
|
|
|
|
<location_y>0</location_y>
|
2009-01-15 14:20:18 +01:00
|
|
|
<minimized>false</minimized>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
se.sics.cooja.plugins.MoteInterfaceViewer
|
2009-02-16 13:40:28 +01:00
|
|
|
<mote_arg>3</mote_arg>
|
2009-01-15 14:20:18 +01:00
|
|
|
<plugin_config>
|
|
|
|
<interface>Serial port</interface>
|
2009-06-24 16:42:50 +02:00
|
|
|
<scrollpos>0,0</scrollpos>
|
2009-01-15 14:20:18 +01:00
|
|
|
</plugin_config>
|
2009-06-24 16:42:50 +02:00
|
|
|
<width>551</width>
|
|
|
|
<z>4</z>
|
|
|
|
<height>258</height>
|
|
|
|
<location_x>2</location_x>
|
|
|
|
<location_y>471</location_y>
|
2009-01-15 14:20:18 +01:00
|
|
|
<minimized>false</minimized>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
se.sics.cooja.plugins.MoteInterfaceViewer
|
2009-02-16 13:40:28 +01:00
|
|
|
<mote_arg>0</mote_arg>
|
2009-01-15 14:20:18 +01:00
|
|
|
<plugin_config>
|
|
|
|
<interface>Serial port</interface>
|
2009-06-24 16:42:50 +02:00
|
|
|
<scrollpos>0,0</scrollpos>
|
2009-01-15 14:20:18 +01:00
|
|
|
</plugin_config>
|
2009-06-24 16:42:50 +02:00
|
|
|
<width>553</width>
|
2009-03-11 14:25:40 +01:00
|
|
|
<z>1</z>
|
2009-06-24 16:42:50 +02:00
|
|
|
<height>272</height>
|
|
|
|
<location_x>1</location_x>
|
|
|
|
<location_y>200</location_y>
|
|
|
|
<minimized>false</minimized>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
se.sics.cooja.plugins.ScriptRunner
|
|
|
|
<plugin_config>
|
|
|
|
<script>TIMEOUT(90000, log.log("last message: " + msg + "\n"));
|
|
|
|
|
|
|
|
mote1 = null;
|
|
|
|
mote4 = null;
|
|
|
|
nr_boot = 0;
|
|
|
|
|
|
|
|
/* Wait until all nodes have booted */
|
|
|
|
while (true) {
|
|
|
|
if (msg.contains('Starting')) {
|
|
|
|
nr_boot++;
|
|
|
|
if (id == 1) mote1 = mote;
|
|
|
|
if (id == 4) mote4 = mote;
|
|
|
|
}
|
|
|
|
if (nr_boot == 4) break;
|
|
|
|
YIELD();
|
|
|
|
}
|
|
|
|
log.log("All motes booted\n");
|
|
|
|
|
|
|
|
/* Wait one second */
|
|
|
|
GENERATE_MSG(1000, "continue");
|
|
|
|
WAIT_UNTIL(msg.equals("continue"));
|
|
|
|
|
|
|
|
/* Create file on node 1 */
|
|
|
|
log.log("Node 1 creating data... ");
|
|
|
|
write(mote1, "echo FROM1 FROM1 | write node1file.txt\n");
|
|
|
|
log.log("done!\n");
|
|
|
|
|
|
|
|
/* Wait one second */
|
|
|
|
GENERATE_MSG(1000, "continue2");
|
|
|
|
WAIT_UNTIL(msg.equals("continue2"));
|
|
|
|
|
|
|
|
/* Download node1file.txt to node 4 */
|
|
|
|
log.log("Node 4 downloading from node 1... ");
|
|
|
|
write(mote4, "wget 172.16.1.0/node1file.txt | write node4file.txt\n");
|
|
|
|
WAIT_UNTIL(id == 4 && msg.contains("FROM1"));
|
|
|
|
log.log("done!\n");
|
|
|
|
|
|
|
|
/* Wait one second */
|
|
|
|
GENERATE_MSG(1000, "continue3");
|
|
|
|
WAIT_UNTIL(msg.equals("continue3"));
|
|
|
|
|
|
|
|
/* Extend data */
|
|
|
|
log.log("Node 4 appending data... ");
|
|
|
|
write(mote4, "echo FROM4 FROM4 | append node4file.txt\n");
|
|
|
|
log.log("done!\n");
|
|
|
|
|
|
|
|
/* Wait one second */
|
|
|
|
GENERATE_MSG(1000, "continue4");
|
|
|
|
WAIT_UNTIL(msg.equals("continue4"));
|
|
|
|
|
|
|
|
/* Download node4file.txt at node 1 */
|
|
|
|
log.log("Node 1 downloading from node 4..");
|
|
|
|
write(mote1, "wget 172.16.4.0/node4file.txt\n");
|
|
|
|
WAIT_UNTIL(id == 1 && msg.contains("FROM1"));
|
|
|
|
WAIT_UNTIL(id == 1 && msg.contains("FROM4"));
|
|
|
|
log.log("done!\n");
|
|
|
|
|
|
|
|
log.testOK();</script>
|
|
|
|
<active>true</active>
|
|
|
|
</plugin_config>
|
|
|
|
<width>610</width>
|
|
|
|
<z>0</z>
|
|
|
|
<height>730</height>
|
|
|
|
<location_x>552</location_x>
|
|
|
|
<location_y>0</location_y>
|
2009-01-15 14:20:18 +01:00
|
|
|
<minimized>false</minimized>
|
|
|
|
</plugin>
|
|
|
|
</simconf>
|
|
|
|
|