2009-04-20 13:12:52 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<simconf>
|
2010-01-22 17:09:07 +00:00
|
|
|
<project>[CONTIKI_DIR]/tools/cooja/apps/mrm</project>
|
|
|
|
<project>[CONTIKI_DIR]/tools/cooja/apps/mspsim</project>
|
|
|
|
<project>[CONTIKI_DIR]/tools/cooja/apps/avrora</project>
|
2009-04-20 13:12:52 +00:00
|
|
|
<simulation>
|
|
|
|
<title>My simulation</title>
|
|
|
|
<delaytime>0</delaytime>
|
2009-06-24 14:42:50 +00:00
|
|
|
<randomseed>generated</randomseed>
|
|
|
|
<motedelay_us>1000000</motedelay_us>
|
2009-04-20 13:12:52 +00:00
|
|
|
<radiomedium>
|
2013-11-19 11:17:37 +00:00
|
|
|
org.contikios.cooja.radiomediums.UDGM
|
2009-04-20 13:12:52 +00:00
|
|
|
<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>
|
2010-01-22 17:09:07 +00:00
|
|
|
<events>
|
|
|
|
<logoutput>40000</logoutput>
|
|
|
|
</events>
|
2009-04-20 13:12:52 +00:00
|
|
|
<motetype>
|
2013-11-19 11:17:37 +00:00
|
|
|
org.contikios.cooja.mspmote.SkyMoteType
|
2009-04-20 13:12:52 +00:00
|
|
|
<identifier>sky1</identifier>
|
|
|
|
<description>Sky Mote Type #sky1</description>
|
2013-11-26 21:47:11 +00:00
|
|
|
<source>[CONTIKI_DIR]/examples/sky-shell/sky-shell.c</source>
|
2010-02-03 21:16:13 +00:00
|
|
|
<commands>make clean TARGET=sky
|
2013-11-26 21:47:11 +00:00
|
|
|
make sky-shell.sky TARGET=sky</commands>
|
|
|
|
<firmware>[CONTIKI_DIR]/examples/sky-shell/sky-shell.sky</firmware>
|
2013-11-19 11:17:37 +00:00
|
|
|
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
|
|
|
|
<moteinterface>org.contikios.cooja.interfaces.IPAddress</moteinterface>
|
|
|
|
<moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface>
|
|
|
|
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspClock</moteinterface>
|
|
|
|
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspMoteID</moteinterface>
|
|
|
|
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface>
|
|
|
|
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface>
|
2014-07-23 13:42:59 +00:00
|
|
|
<moteinterface>org.contikios.cooja.mspmote.interfaces.Msp802154Radio</moteinterface>
|
2013-11-19 11:17:37 +00:00
|
|
|
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspSerial</moteinterface>
|
|
|
|
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface>
|
|
|
|
<moteinterface>org.contikios.cooja.interfaces.RimeAddress</moteinterface>
|
|
|
|
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyCoffeeFilesystem</moteinterface>
|
|
|
|
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspDebugOutput</moteinterface>
|
2009-04-20 13:12:52 +00:00
|
|
|
</motetype>
|
|
|
|
<mote>
|
2013-11-19 11:17:37 +00:00
|
|
|
org.contikios.cooja.mspmote.SkyMote
|
2009-06-24 14:42:50 +00:00
|
|
|
<breakpoints />
|
2009-04-20 13:12:52 +00:00
|
|
|
<interface_config>
|
2013-11-19 11:17:37 +00:00
|
|
|
org.contikios.cooja.interfaces.Position
|
2009-04-20 13:12:52 +00:00
|
|
|
<x>85.95630230780736</x>
|
|
|
|
<y>-3.1198604890271326</y>
|
|
|
|
<z>0.0</z>
|
|
|
|
</interface_config>
|
|
|
|
<interface_config>
|
2013-11-19 11:17:37 +00:00
|
|
|
org.contikios.cooja.mspmote.interfaces.MspMoteID
|
2009-04-20 13:12:52 +00:00
|
|
|
<id>1</id>
|
|
|
|
</interface_config>
|
2010-01-22 17:09:07 +00:00
|
|
|
<motetype_identifier>sky1</motetype_identifier>
|
2009-04-20 13:12:52 +00:00
|
|
|
</mote>
|
|
|
|
<mote>
|
2013-11-19 11:17:37 +00:00
|
|
|
org.contikios.cooja.mspmote.SkyMote
|
2009-06-24 14:42:50 +00:00
|
|
|
<breakpoints />
|
2009-04-20 13:12:52 +00:00
|
|
|
<interface_config>
|
2013-11-19 11:17:37 +00:00
|
|
|
org.contikios.cooja.interfaces.Position
|
2009-04-20 13:12:52 +00:00
|
|
|
<x>49.907666469432186</x>
|
|
|
|
<y>13.102030707681678</y>
|
|
|
|
<z>0.0</z>
|
|
|
|
</interface_config>
|
|
|
|
<interface_config>
|
2013-11-19 11:17:37 +00:00
|
|
|
org.contikios.cooja.mspmote.interfaces.MspMoteID
|
2009-04-20 13:12:52 +00:00
|
|
|
<id>2</id>
|
|
|
|
</interface_config>
|
2010-01-22 17:09:07 +00:00
|
|
|
<motetype_identifier>sky1</motetype_identifier>
|
2009-04-20 13:12:52 +00:00
|
|
|
</mote>
|
|
|
|
<mote>
|
2013-11-19 11:17:37 +00:00
|
|
|
org.contikios.cooja.mspmote.SkyMote
|
2009-06-24 14:42:50 +00:00
|
|
|
<breakpoints />
|
2009-04-20 13:12:52 +00:00
|
|
|
<interface_config>
|
2013-11-19 11:17:37 +00:00
|
|
|
org.contikios.cooja.interfaces.Position
|
2009-04-20 13:12:52 +00:00
|
|
|
<x>63.205651488651284</x>
|
|
|
|
<y>29.26179327208891</y>
|
|
|
|
<z>0.0</z>
|
|
|
|
</interface_config>
|
|
|
|
<interface_config>
|
2013-11-19 11:17:37 +00:00
|
|
|
org.contikios.cooja.mspmote.interfaces.MspMoteID
|
2009-04-20 13:12:52 +00:00
|
|
|
<id>3</id>
|
|
|
|
</interface_config>
|
2010-01-22 17:09:07 +00:00
|
|
|
<motetype_identifier>sky1</motetype_identifier>
|
2009-04-20 13:12:52 +00:00
|
|
|
</mote>
|
|
|
|
<mote>
|
2013-11-19 11:17:37 +00:00
|
|
|
org.contikios.cooja.mspmote.SkyMote
|
2009-06-24 14:42:50 +00:00
|
|
|
<breakpoints />
|
2009-04-20 13:12:52 +00:00
|
|
|
<interface_config>
|
2013-11-19 11:17:37 +00:00
|
|
|
org.contikios.cooja.interfaces.Position
|
2009-04-20 13:12:52 +00:00
|
|
|
<x>30.60420340759257</x>
|
|
|
|
<y>44.54754287360952</y>
|
|
|
|
<z>0.0</z>
|
|
|
|
</interface_config>
|
|
|
|
<interface_config>
|
2013-11-19 11:17:37 +00:00
|
|
|
org.contikios.cooja.mspmote.interfaces.MspMoteID
|
2009-04-20 13:12:52 +00:00
|
|
|
<id>4</id>
|
|
|
|
</interface_config>
|
2010-01-22 17:09:07 +00:00
|
|
|
<motetype_identifier>sky1</motetype_identifier>
|
2009-04-20 13:12:52 +00:00
|
|
|
</mote>
|
|
|
|
</simulation>
|
|
|
|
<plugin>
|
2013-11-19 11:17:37 +00:00
|
|
|
org.contikios.cooja.plugins.SimControl
|
2009-04-20 13:12:52 +00:00
|
|
|
<width>248</width>
|
2010-01-22 17:09:07 +00:00
|
|
|
<z>2</z>
|
2009-04-20 13:12:52 +00:00
|
|
|
<height>200</height>
|
2010-01-22 17:09:07 +00:00
|
|
|
<location_x>1</location_x>
|
|
|
|
<location_y>1</location_y>
|
2009-04-20 13:12:52 +00:00
|
|
|
<minimized>false</minimized>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
2013-11-19 11:17:37 +00:00
|
|
|
org.contikios.cooja.plugins.Visualizer
|
2009-04-20 13:12:52 +00:00
|
|
|
<plugin_config>
|
2013-11-19 11:17:37 +00:00
|
|
|
<skin>org.contikios.cooja.plugins.skins.IDVisualizerSkin</skin>
|
|
|
|
<skin>org.contikios.cooja.plugins.skins.LogVisualizerSkin</skin>
|
|
|
|
<skin>org.contikios.cooja.plugins.skins.UDGMVisualizerSkin</skin>
|
|
|
|
<skin>org.contikios.cooja.plugins.skins.TrafficVisualizerSkin</skin>
|
2010-01-22 17:09:07 +00:00
|
|
|
<viewport>2.126765951505188 0.0 0.0 2.126765951505188 -7.584821059232853 59.46165934250099</viewport>
|
2009-04-20 13:12:52 +00:00
|
|
|
</plugin_config>
|
2009-06-24 14:42:50 +00:00
|
|
|
<width>246</width>
|
2010-01-22 17:09:07 +00:00
|
|
|
<z>6</z>
|
2009-06-24 14:42:50 +00:00
|
|
|
<height>243</height>
|
|
|
|
<location_x>1</location_x>
|
|
|
|
<location_y>202</location_y>
|
2009-04-20 13:12:52 +00:00
|
|
|
<minimized>false</minimized>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
2013-11-19 11:17:37 +00:00
|
|
|
org.contikios.cooja.plugins.LogListener
|
2009-04-20 13:12:52 +00:00
|
|
|
<plugin_config>
|
2010-01-22 17:09:07 +00:00
|
|
|
<filter>Sending</filter>
|
2009-04-20 13:12:52 +00:00
|
|
|
</plugin_config>
|
2010-01-22 17:09:07 +00:00
|
|
|
<width>1022</width>
|
2009-04-20 13:12:52 +00:00
|
|
|
<z>1</z>
|
|
|
|
<height>209</height>
|
|
|
|
<location_x>0</location_x>
|
|
|
|
<location_y>446</location_y>
|
|
|
|
<minimized>false</minimized>
|
|
|
|
</plugin>
|
2009-06-24 14:42:50 +00:00
|
|
|
<plugin>
|
2013-11-19 11:17:37 +00:00
|
|
|
org.contikios.cooja.plugins.ScriptRunner
|
2009-06-24 14:42:50 +00:00
|
|
|
<plugin_config>
|
|
|
|
<script>TIMEOUT(150000);
|
|
|
|
|
|
|
|
/* Wait for nodes to boot */
|
|
|
|
mote1 = null;
|
|
|
|
while (mote1 == null) {
|
|
|
|
if (id == 1) {
|
|
|
|
mote1 = mote;
|
|
|
|
}
|
|
|
|
YIELD();
|
|
|
|
}
|
2010-01-22 17:09:07 +00:00
|
|
|
GENERATE_MSG(20000, "continue");
|
2009-06-24 14:42:50 +00:00
|
|
|
YIELD_THEN_WAIT_UNTIL(msg.equals("continue"));
|
|
|
|
|
|
|
|
/* Send command: mote 1 -> mote 2*/
|
2010-01-22 17:09:07 +00:00
|
|
|
command = "sendcmd 2.0 echo hello";
|
|
|
|
log.log("mote1> " + command + "\n");
|
2009-06-24 14:42:50 +00:00
|
|
|
write(mote1, command);
|
|
|
|
YIELD_THEN_WAIT_UNTIL(id == 2 && msg.contains("hello"));
|
|
|
|
log.log("mote2: " + msg + "\n");
|
|
|
|
GENERATE_MSG(1000, "continue");
|
|
|
|
YIELD_THEN_WAIT_UNTIL(msg.equals("continue"));
|
|
|
|
|
|
|
|
/* Send command: mote 1 -> mote 2*/
|
2010-01-22 17:09:07 +00:00
|
|
|
command = "sendcmd 2.0 {echo hello again}";
|
|
|
|
log.log("mote1> " + command + "\n");
|
2009-06-24 14:42:50 +00:00
|
|
|
write(mote1, command);
|
|
|
|
YIELD_THEN_WAIT_UNTIL(id == 2 && msg.contains("hello again"));
|
|
|
|
log.log("mote2: " + msg + "\n");
|
|
|
|
GENERATE_MSG(1000, "continue");
|
|
|
|
YIELD_THEN_WAIT_UNTIL(msg.equals("continue"));
|
|
|
|
|
|
|
|
/* Send command: mote 1 -> mote 2 -> mote 3 -> mote 4 */
|
2010-01-22 17:09:07 +00:00
|
|
|
command = "sendcmd 2.0 {sendcmd 3.0 {sendcmd 4.0 echo multihop}}";
|
|
|
|
log.log("mote1> " + command + "\n");
|
2009-06-24 14:42:50 +00:00
|
|
|
write(mote1, command);
|
|
|
|
YIELD_THEN_WAIT_UNTIL(id == 4 && msg.contains("multihop"));
|
|
|
|
log.log("mote4: " + msg + "\n");
|
|
|
|
GENERATE_MSG(1000, "continue");
|
|
|
|
YIELD_THEN_WAIT_UNTIL(msg.equals("continue"));
|
|
|
|
|
|
|
|
log.log("Test finished at time: " + mote.getSimulation().getSimulationTime() + "\n");
|
|
|
|
log.testOK(); /* Report test success and quit */</script>
|
|
|
|
<active>true</active>
|
|
|
|
</plugin_config>
|
|
|
|
<width>775</width>
|
2010-01-22 17:09:07 +00:00
|
|
|
<z>3</z>
|
|
|
|
<height>445</height>
|
2009-06-24 14:42:50 +00:00
|
|
|
<location_x>246</location_x>
|
|
|
|
<location_y>0</location_y>
|
|
|
|
<minimized>false</minimized>
|
|
|
|
</plugin>
|
2010-01-22 17:09:07 +00:00
|
|
|
<plugin>
|
2013-11-19 11:17:37 +00:00
|
|
|
org.contikios.cooja.plugins.TimeLine
|
2010-01-22 17:09:07 +00:00
|
|
|
<plugin_config>
|
|
|
|
<mote>0</mote>
|
|
|
|
<mote>1</mote>
|
|
|
|
<mote>2</mote>
|
|
|
|
<mote>3</mote>
|
|
|
|
<showRadioRXTX />
|
|
|
|
<showRadioHW />
|
|
|
|
<showLEDs />
|
|
|
|
<split>109</split>
|
|
|
|
<zoom>12</zoom>
|
|
|
|
</plugin_config>
|
|
|
|
<width>1021</width>
|
|
|
|
<z>0</z>
|
|
|
|
<height>150</height>
|
|
|
|
<location_x>1</location_x>
|
|
|
|
<location_y>655</location_y>
|
|
|
|
<minimized>false</minimized>
|
|
|
|
</plugin>
|
2009-04-20 13:12:52 +00:00
|
|
|
</simconf>
|
|
|
|
|