2008-10-02 21:18:59 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<simconf>
|
2009-03-11 13:25:40 +00:00
|
|
|
<project>../apps/mrm</project>
|
|
|
|
<project>../apps/mspsim</project>
|
2009-06-24 14:42:50 +00:00
|
|
|
<project>../apps/avrora</project>
|
2009-03-11 13:25:40 +00:00
|
|
|
<project>../apps/native_gateway</project>
|
2008-10-02 21:18:59 +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>
|
2008-10-02 21:18:59 +00:00
|
|
|
<radiomedium>
|
|
|
|
se.sics.cooja.radiomediums.UDGM
|
|
|
|
<transmitting_range>41.0</transmitting_range>
|
|
|
|
<interference_range>55.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/rime/example-trickle.c</source>
|
2010-02-03 21:16:13 +00:00
|
|
|
<commands>make clean TARGET=sky
|
|
|
|
make example-trickle.sky TARGET=sky</commands>
|
2009-03-11 13:25:40 +00:00
|
|
|
<firmware>../../../examples/rime/example-trickle.sky</firmware>
|
|
|
|
<moteinterface>se.sics.cooja.interfaces.Position</moteinterface>
|
2009-06-24 14:42:50 +00:00
|
|
|
<moteinterface>se.sics.cooja.interfaces.IPAddress</moteinterface>
|
2009-03-11 13:25:40 +00: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>
|
2008-10-02 21:18:59 +00:00
|
|
|
</motetype>
|
|
|
|
<mote>
|
|
|
|
se.sics.cooja.mspmote.SkyMote
|
|
|
|
<motetype_identifier>sky1</motetype_identifier>
|
2009-06-24 14:42:50 +00:00
|
|
|
<breakpoints />
|
2008-10-02 21:18:59 +00:00
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.interfaces.Position
|
|
|
|
<x>21.25615651441164</x>
|
|
|
|
<y>15.906616513243888</y>
|
|
|
|
<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 14:42:50 +00:00
|
|
|
<breakpoints />
|
2008-10-02 21:18:59 +00:00
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.interfaces.Position
|
|
|
|
<x>29.258648178869528</x>
|
|
|
|
<y>64.81243553163958</y>
|
|
|
|
<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 14:42:50 +00:00
|
|
|
<breakpoints />
|
2008-10-02 21:18:59 +00:00
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.interfaces.Position
|
|
|
|
<x>53.58390840870132</x>
|
|
|
|
<y>99.01827951434828</y>
|
|
|
|
<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 14:42:50 +00:00
|
|
|
<breakpoints />
|
2008-10-02 21:18:59 +00:00
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.interfaces.Position
|
|
|
|
<x>4.089137066756255</x>
|
|
|
|
<y>57.26244252237209</y>
|
|
|
|
<z>0.0</z>
|
|
|
|
</interface_config>
|
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.mspmote.interfaces.MspMoteID
|
|
|
|
<id>4</id>
|
|
|
|
</interface_config>
|
|
|
|
</mote>
|
|
|
|
<mote>
|
|
|
|
se.sics.cooja.mspmote.SkyMote
|
|
|
|
<motetype_identifier>sky1</motetype_identifier>
|
2009-06-24 14:42:50 +00:00
|
|
|
<breakpoints />
|
2008-10-02 21:18:59 +00:00
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.interfaces.Position
|
|
|
|
<x>84.2311285004563</x>
|
|
|
|
<y>14.6212837520458</y>
|
|
|
|
<z>0.0</z>
|
|
|
|
</interface_config>
|
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.mspmote.interfaces.MspMoteID
|
|
|
|
<id>5</id>
|
|
|
|
</interface_config>
|
|
|
|
</mote>
|
|
|
|
<mote>
|
|
|
|
se.sics.cooja.mspmote.SkyMote
|
|
|
|
<motetype_identifier>sky1</motetype_identifier>
|
2009-06-24 14:42:50 +00:00
|
|
|
<breakpoints />
|
2008-10-02 21:18:59 +00:00
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.interfaces.Position
|
|
|
|
<x>40.97868508483131</x>
|
|
|
|
<y>69.00112748842623</y>
|
|
|
|
<z>0.0</z>
|
|
|
|
</interface_config>
|
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.mspmote.interfaces.MspMoteID
|
|
|
|
<id>6</id>
|
|
|
|
</interface_config>
|
|
|
|
</mote>
|
|
|
|
<mote>
|
|
|
|
se.sics.cooja.mspmote.SkyMote
|
|
|
|
<motetype_identifier>sky1</motetype_identifier>
|
2009-06-24 14:42:50 +00:00
|
|
|
<breakpoints />
|
2008-10-02 21:18:59 +00:00
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.interfaces.Position
|
|
|
|
<x>34.348646576361716</x>
|
|
|
|
<y>33.331938472933615</y>
|
|
|
|
<z>0.0</z>
|
|
|
|
</interface_config>
|
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.mspmote.interfaces.MspMoteID
|
|
|
|
<id>7</id>
|
|
|
|
</interface_config>
|
|
|
|
</mote>
|
|
|
|
<mote>
|
|
|
|
se.sics.cooja.mspmote.SkyMote
|
|
|
|
<motetype_identifier>sky1</motetype_identifier>
|
2009-06-24 14:42:50 +00:00
|
|
|
<breakpoints />
|
2008-10-02 21:18:59 +00:00
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.interfaces.Position
|
|
|
|
<x>76.46661251540715</x>
|
|
|
|
<y>62.393168145801916</y>
|
|
|
|
<z>0.0</z>
|
|
|
|
</interface_config>
|
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.mspmote.interfaces.MspMoteID
|
|
|
|
<id>8</id>
|
|
|
|
</interface_config>
|
|
|
|
</mote>
|
|
|
|
<mote>
|
|
|
|
se.sics.cooja.mspmote.SkyMote
|
|
|
|
<motetype_identifier>sky1</motetype_identifier>
|
2009-06-24 14:42:50 +00:00
|
|
|
<breakpoints />
|
2008-10-02 21:18:59 +00:00
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.interfaces.Position
|
|
|
|
<x>87.91615665417679</x>
|
|
|
|
<y>41.2939192052263</y>
|
|
|
|
<z>0.0</z>
|
|
|
|
</interface_config>
|
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.mspmote.interfaces.MspMoteID
|
|
|
|
<id>9</id>
|
|
|
|
</interface_config>
|
|
|
|
</mote>
|
|
|
|
<mote>
|
|
|
|
se.sics.cooja.mspmote.SkyMote
|
|
|
|
<motetype_identifier>sky1</motetype_identifier>
|
2009-06-24 14:42:50 +00:00
|
|
|
<breakpoints />
|
2008-10-02 21:18:59 +00:00
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.interfaces.Position
|
|
|
|
<x>25.396991214895582</x>
|
|
|
|
<y>87.22076662391413</y>
|
|
|
|
<z>0.0</z>
|
|
|
|
</interface_config>
|
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.mspmote.interfaces.MspMoteID
|
|
|
|
<id>10</id>
|
|
|
|
</interface_config>
|
|
|
|
</mote>
|
|
|
|
</simulation>
|
|
|
|
<plugin>
|
2009-06-24 14:42:50 +00:00
|
|
|
se.sics.cooja.plugins.Visualizer
|
|
|
|
<plugin_config>
|
|
|
|
<skin>Mote IDs</skin>
|
|
|
|
<skin>Radio environment (UDGM)</skin>
|
|
|
|
</plugin_config>
|
|
|
|
<width>310</width>
|
2008-10-02 21:18:59 +00:00
|
|
|
<z>2</z>
|
2009-06-24 14:42:50 +00:00
|
|
|
<height>169</height>
|
|
|
|
<location_x>2</location_x>
|
|
|
|
<location_y>199</location_y>
|
2008-10-02 21:18:59 +00:00
|
|
|
<minimized>false</minimized>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
se.sics.cooja.plugins.SimControl
|
|
|
|
<width>313</width>
|
2009-06-24 14:42:50 +00:00
|
|
|
<z>3</z>
|
2008-10-02 21:18:59 +00:00
|
|
|
<height>199</height>
|
2009-06-24 14:42:50 +00:00
|
|
|
<location_x>1</location_x>
|
|
|
|
<location_y>0</location_y>
|
2008-10-02 21:18:59 +00:00
|
|
|
<minimized>false</minimized>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
se.sics.cooja.plugins.LogListener
|
|
|
|
<plugin_config>
|
|
|
|
<filter />
|
|
|
|
</plugin_config>
|
2009-06-24 14:42:50 +00:00
|
|
|
<width>310</width>
|
2008-10-02 21:18:59 +00:00
|
|
|
<z>1</z>
|
2009-06-24 14:42:50 +00:00
|
|
|
<height>331</height>
|
|
|
|
<location_x>3</location_x>
|
|
|
|
<location_y>368</location_y>
|
|
|
|
<minimized>false</minimized>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
se.sics.cooja.plugins.ScriptRunner
|
|
|
|
<plugin_config>
|
|
|
|
<script>TIMEOUT(120000, log.log(nr_packets[1] + ", " + nr_packets[2] + ", " + nr_packets[3] + ", " + nr_packets[4] + ", " + nr_packets[5] + ", " + nr_packets[6] + ", " + nr_packets[7] + ", " + nr_packets[8] + ", " + nr_packets[9] + ", " + nr_packets[10] + "\n"));
|
|
|
|
|
|
|
|
nr_packets = new Array();
|
|
|
|
for (i=1; i <= 10; i++) {
|
|
|
|
nr_packets[i] = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
WAIT_UNTIL(id == 1 && msg.contains('Starting'));
|
2010-02-03 20:57:50 +00:00
|
|
|
GENERATE_MSG(1000, "continue");
|
|
|
|
YIELD_THEN_WAIT_UNTIL(msg.equals("continue"));
|
2009-06-24 14:42:50 +00:00
|
|
|
log.log("Node 1 started. Clicking node button.\n");
|
|
|
|
mote.getInterfaces().getButton().clickButton()
|
|
|
|
|
|
|
|
while (true) {
|
|
|
|
/* Only handle receive messages */
|
|
|
|
YIELD_THEN_WAIT_UNTIL(msg.contains('received'));
|
|
|
|
|
|
|
|
/* Remember receiving node */
|
|
|
|
log.log(id + " received a message\n");
|
|
|
|
nr_packets[id]++;
|
|
|
|
|
|
|
|
/* Did all nodes (2-10) receive a message? */
|
|
|
|
for (i = 2; i <= 10; i++) {
|
|
|
|
if (nr_packets[i] < 1) break;
|
|
|
|
if (i == 10) log.testOK(); /* Report test success */
|
|
|
|
}
|
|
|
|
}</script>
|
|
|
|
<active>true</active>
|
|
|
|
</plugin_config>
|
|
|
|
<width>600</width>
|
|
|
|
<z>0</z>
|
|
|
|
<height>700</height>
|
|
|
|
<location_x>314</location_x>
|
|
|
|
<location_y>0</location_y>
|
2008-10-02 21:18:59 +00:00
|
|
|
<minimized>false</minimized>
|
|
|
|
</plugin>
|
|
|
|
</simconf>
|
|
|
|
|