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>5000000</motedelay_us>
|
2008-10-02 21:18:59 +00:00
|
|
|
<radiomedium>
|
|
|
|
se.sics.cooja.radiomediums.UDGM
|
|
|
|
<transmitting_range>50.0</transmitting_range>
|
|
|
|
<interference_range>100.0</interference_range>
|
2008-11-11 15:17:44 +00:00
|
|
|
<success_ratio_tx>0.95</success_ratio_tx>
|
2008-10-02 21:18:59 +00:00
|
|
|
<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-abc.c</source>
|
2010-02-03 21:16:13 +00:00
|
|
|
<commands>make clean TARGET=sky
|
|
|
|
make example-abc.sky TARGET=sky</commands>
|
2009-03-11 13:25:40 +00:00
|
|
|
<firmware>../../../examples/rime/example-abc.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>33.53152221759984</x>
|
|
|
|
<y>15.078801911773077</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>54.67966631314053</x>
|
|
|
|
<y>31.0253850381183</y>
|
|
|
|
<z>0.0</z>
|
|
|
|
</interface_config>
|
|
|
|
<interface_config>
|
|
|
|
se.sics.cooja.mspmote.interfaces.MspMoteID
|
|
|
|
<id>2</id>
|
|
|
|
</interface_config>
|
|
|
|
</mote>
|
|
|
|
</simulation>
|
|
|
|
<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>
|
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>312</width>
|
|
|
|
<z>2</z>
|
|
|
|
<height>123</height>
|
|
|
|
<location_x>0</location_x>
|
|
|
|
<location_y>198</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>311</width>
|
2009-03-11 13:25:40 +00:00
|
|
|
<z>0</z>
|
2009-06-24 14:42:50 +00:00
|
|
|
<height>377</height>
|
|
|
|
<location_x>1</location_x>
|
|
|
|
<location_y>320</location_y>
|
|
|
|
<minimized>false</minimized>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
se.sics.cooja.plugins.ScriptRunner
|
|
|
|
<plugin_config>
|
|
|
|
<script>TIMEOUT(100000, log.log("Node 1: " + nr_packets[1] + ".\nNode 2: " + nr_packets[2] + ".\n"));
|
|
|
|
|
|
|
|
nr_packets = new Array();
|
|
|
|
nr_packets[1] = 0;
|
|
|
|
nr_packets[2] = 0;
|
|
|
|
|
|
|
|
while (true) {
|
|
|
|
/* Only handle receive messages */
|
|
|
|
YIELD_THEN_WAIT_UNTIL(msg.contains('received'));
|
|
|
|
|
|
|
|
/* Count received packets */
|
|
|
|
nr_packets[id]++;
|
|
|
|
//log.log("Node " + id + " received " + nr_packets[id] + " messages\n");
|
|
|
|
|
2009-10-19 20:47:28 +00:00
|
|
|
if (nr_packets[1] >= 4 && nr_packets[2] >= 4) {
|
2009-06-24 14:42:50 +00:00
|
|
|
log.log("Node 1: " + nr_packets[1] + ".\nNode 2: " + nr_packets[2] + ".\n");
|
|
|
|
log.testOK(); /* Report test success */
|
|
|
|
}
|
|
|
|
|
|
|
|
}</script>
|
|
|
|
<active>true</active>
|
|
|
|
</plugin_config>
|
|
|
|
<width>601</width>
|
|
|
|
<z>1</z>
|
|
|
|
<height>697</height>
|
|
|
|
<location_x>312</location_x>
|
|
|
|
<location_y>0</location_y>
|
2008-10-02 21:18:59 +00:00
|
|
|
<minimized>false</minimized>
|
|
|
|
</plugin>
|
|
|
|
</simconf>
|
|
|
|
|