osd-contiki/tools/cooja/contiki_tests/crosslevel.csc

520 lines
17 KiB
Text
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<simconf>
<project>[CONTIKI_DIR]/tools/cooja/apps/mrm</project>
<project>[CONTIKI_DIR]/tools/cooja/apps/mspsim</project>
<project>[CONTIKI_DIR]/tools/cooja/apps/avrora</project>
<simulation>
<title>My simulation</title>
<delaytime>0</delaytime>
<randomseed>generated</randomseed>
<motedelay_us>5000000</motedelay_us>
<radiomedium>
se.sics.cooja.radiomediums.UDGM
<transmitting_range>50.0</transmitting_range>
<interference_range>50.0</interference_range>
<success_ratio_tx>0.5</success_ratio_tx>
<success_ratio_rx>1.0</success_ratio_rx>
</radiomedium>
<events>
<logoutput>40000</logoutput>
</events>
<motetype>
se.sics.cooja.mspmote.SkyMoteType
<identifier>sky1</identifier>
<description>Sky Mote Type #1</description>
<source>[CONTIKI_DIR]/examples/rime/example-abc.c</source>
<commands>make clean TARGET=sky
make example-abc.sky TARGET=sky DEFINES=MAC_DRIVER=nullmac_driver</commands>
<firmware>[CONTIKI_DIR]/examples/rime/example-abc.sky</firmware>
<moteinterface>se.sics.cooja.interfaces.Position</moteinterface>
<moteinterface>se.sics.cooja.interfaces.IPAddress</moteinterface>
<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.MspSerial</moteinterface>
<moteinterface>se.sics.cooja.mspmote.interfaces.SkyLED</moteinterface>
<moteinterface>se.sics.cooja.interfaces.RimeAddress</moteinterface>
<moteinterface>se.sics.cooja.mspmote.interfaces.SkyCoffeeFilesystem</moteinterface>
<moteinterface>se.sics.cooja.mspmote.interfaces.MspDebugOutput</moteinterface>
</motetype>
<motetype>
se.sics.cooja.mspmote.ESBMoteType
<identifier>esb1</identifier>
<description>ESB Mote Type #1</description>
<source>[CONTIKI_DIR]/examples/rime/example-abc.c</source>
<commands>make clean TARGET=esb
make example-abc.esb TARGET=esb DEFINES=MAC_DRIVER=nullmac_driver</commands>
<firmware>[CONTIKI_DIR]/examples/rime/example-abc.esb</firmware>
<moteinterface>se.sics.cooja.interfaces.Position</moteinterface>
<moteinterface>se.sics.cooja.interfaces.IPAddress</moteinterface>
<moteinterface>se.sics.cooja.mspmote.interfaces.MspSerial</moteinterface>
<moteinterface>se.sics.cooja.mspmote.interfaces.MspClock</moteinterface>
<moteinterface>se.sics.cooja.mspmote.interfaces.ESBLED</moteinterface>
<moteinterface>se.sics.cooja.mspmote.interfaces.ESBButton</moteinterface>
<moteinterface>se.sics.cooja.mspmote.interfaces.MspMoteID</moteinterface>
<moteinterface>se.sics.cooja.mspmote.interfaces.TR1001Radio</moteinterface>
<moteinterface>se.sics.cooja.interfaces.Mote2MoteRelations</moteinterface>
<moteinterface>se.sics.cooja.interfaces.RimeAddress</moteinterface>
</motetype>
<motetype>
se.sics.cooja.contikimote.ContikiMoteType
<identifier>mtype135</identifier>
<description>Contiki Mote Type #1</description>
<contikiapp>[CONTIKI_DIR]/examples/rime/example-abc.c</contikiapp>
<commands>make example-abc.cooja TARGET=cooja</commands>
<moteinterface>se.sics.cooja.interfaces.Position</moteinterface>
<moteinterface>se.sics.cooja.interfaces.Battery</moteinterface>
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiVib</moteinterface>
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiMoteID</moteinterface>
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiRS232</moteinterface>
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiBeeper</moteinterface>
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiIPAddress</moteinterface>
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiRadio</moteinterface>
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiButton</moteinterface>
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiPIR</moteinterface>
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiClock</moteinterface>
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiLED</moteinterface>
<moteinterface>se.sics.cooja.contikimote.interfaces.ContikiCFS</moteinterface>
<moteinterface>se.sics.cooja.interfaces.Mote2MoteRelations</moteinterface>
<moteinterface>se.sics.cooja.interfaces.RimeAddress</moteinterface>
<symbols>false</symbols>
<commstack>Rime</commstack>
</motetype>
<motetype>
se.sics.cooja.motes.ImportAppMoteType
<identifier>apptype1</identifier>
<description>Application Mote Type #apptype1</description>
2010-02-03 17:25:31 +01:00
<motepath>[CONTIKI_DIR]/tools/cooja/examples/appmote_rimeabc</motepath>
<moteclass>RimeABC</moteclass>
</motetype>
<mote>
se.sics.cooja.contikimote.ContikiMote
<interface_config>
se.sics.cooja.interfaces.Position
<x>199.49101781472754</x>
<y>-95.62813700240686</y>
<z>0.0</z>
</interface_config>
<interface_config>
se.sics.cooja.contikimote.interfaces.ContikiMoteID
<id>6</id>
</interface_config>
<motetype_identifier>mtype135</motetype_identifier>
</mote>
<mote>
se.sics.cooja.contikimote.ContikiMote
<interface_config>
se.sics.cooja.interfaces.Position
<x>98.81565434011203</x>
<y>11.842061334190785</y>
<z>0.0</z>
</interface_config>
<interface_config>
se.sics.cooja.contikimote.interfaces.ContikiMoteID
<id>12</id>
</interface_config>
<motetype_identifier>mtype135</motetype_identifier>
</mote>
<mote>
se.sics.cooja.mspmote.SkyMote
<breakpoints />
<interface_config>
se.sics.cooja.interfaces.Position
<x>-6.590009891330797</x>
<y>-126.908292993505</y>
<z>0.0</z>
</interface_config>
<interface_config>
se.sics.cooja.mspmote.interfaces.MspMoteID
<id>1</id>
</interface_config>
<motetype_identifier>sky1</motetype_identifier>
</mote>
<mote>
se.sics.cooja.mspmote.SkyMote
<breakpoints />
<interface_config>
se.sics.cooja.interfaces.Position
<x>-2.909991539436897</x>
<y>-95.62813700240686</y>
<z>0.0</z>
</interface_config>
<interface_config>
se.sics.cooja.mspmote.interfaces.MspMoteID
<id>2</id>
</interface_config>
<motetype_identifier>sky1</motetype_identifier>
</mote>
<mote>
se.sics.cooja.mspmote.ESBMote
<breakpoints />
<interface_config>
se.sics.cooja.interfaces.Position
<x>96.4505039616984</x>
<y>-95.62813700240686</y>
<z>0.0</z>
</interface_config>
<interface_config>
se.sics.cooja.mspmote.interfaces.MspMoteID
<id>4</id>
</interface_config>
<motetype_identifier>esb1</motetype_identifier>
</mote>
<mote>
se.sics.cooja.mspmote.ESBMote
<breakpoints />
<interface_config>
se.sics.cooja.interfaces.Position
<x>-1.2018609210334443</x>
<y>15.546413751270247</y>
<z>0.0</z>
</interface_config>
<interface_config>
se.sics.cooja.mspmote.interfaces.MspMoteID
<id>10</id>
</interface_config>
<motetype_identifier>esb1</motetype_identifier>
</mote>
<mote>
se.sics.cooja.contikimote.ContikiMote
<interface_config>
se.sics.cooja.interfaces.Position
<x>-3.557828103468252</x>
<y>112.32835838975996</y>
<z>0.0</z>
</interface_config>
<interface_config>
se.sics.cooja.contikimote.interfaces.ContikiMoteID
<id>16</id>
</interface_config>
<motetype_identifier>mtype135</motetype_identifier>
</mote>
<mote>
se.sics.cooja.mspmote.SkyMote
<breakpoints />
<interface_config>
se.sics.cooja.interfaces.Position
<x>197.65100863878064</x>
<y>-130.5883113453989</y>
<z>0.0</z>
</interface_config>
<interface_config>
se.sics.cooja.mspmote.interfaces.MspMoteID
<id>5</id>
</interface_config>
<motetype_identifier>sky1</motetype_identifier>
</mote>
<mote>
se.sics.cooja.mspmote.ESBMote
<breakpoints />
<interface_config>
se.sics.cooja.interfaces.Position
<x>-3.0540371295731754</x>
<y>-15.940581793905181</y>
<z>0.0</z>
</interface_config>
<interface_config>
se.sics.cooja.mspmote.interfaces.MspMoteID
<id>9</id>
</interface_config>
<motetype_identifier>esb1</motetype_identifier>
</mote>
<mote>
se.sics.cooja.mspmote.SkyMote
<breakpoints />
<interface_config>
se.sics.cooja.interfaces.Position
<x>92.7704856098045</x>
<y>-128.74830216945196</y>
<z>0.0</z>
</interface_config>
<interface_config>
se.sics.cooja.mspmote.interfaces.MspMoteID
<id>3</id>
</interface_config>
<motetype_identifier>sky1</motetype_identifier>
</mote>
<mote>
se.sics.cooja.mspmote.ESBMote
<breakpoints />
<interface_config>
se.sics.cooja.interfaces.Position
<x>98.81565434011203</x>
<y>-17.792758002444913</y>
<z>0.0</z>
</interface_config>
<interface_config>
se.sics.cooja.mspmote.interfaces.MspMoteID
<id>11</id>
</interface_config>
<motetype_identifier>esb1</motetype_identifier>
</mote>
<mote>
RimeABC
<interface_config>
se.sics.cooja.motes.AbstractApplicationMoteType$SimpleMoteID
<id>14</id>
</interface_config>
<interface_config>
se.sics.cooja.interfaces.Position
<x>199.74274129227032</x>
<y>4.324930898273846</y>
<z>0.0</z>
</interface_config>
<motetype_identifier>apptype1</motetype_identifier>
</mote>
<mote>
RimeABC
<interface_config>
se.sics.cooja.motes.AbstractApplicationMoteType$SimpleMoteID
<id>8</id>
</interface_config>
<interface_config>
se.sics.cooja.interfaces.Position
<x>291.4419800282441</x>
<y>-99.28851117819308</y>
<z>0.0</z>
</interface_config>
<motetype_identifier>apptype1</motetype_identifier>
</mote>
<mote>
RimeABC
<interface_config>
se.sics.cooja.motes.AbstractApplicationMoteType$SimpleMoteID
<id>19</id>
</interface_config>
<interface_config>
se.sics.cooja.interfaces.Position
<x>-5.495536655521387</x>
<y>179.73520343003455</y>
<z>0.0</z>
</interface_config>
<motetype_identifier>apptype1</motetype_identifier>
</mote>
<mote>
RimeABC
<interface_config>
se.sics.cooja.motes.AbstractApplicationMoteType$SimpleMoteID
<id>20</id>
</interface_config>
<interface_config>
se.sics.cooja.interfaces.Position
<x>-3.8119538152129264</x>
<y>201.62178035404452</y>
<z>0.0</z>
</interface_config>
<motetype_identifier>apptype1</motetype_identifier>
</mote>
<mote>
RimeABC
<interface_config>
se.sics.cooja.motes.AbstractApplicationMoteType$SimpleMoteID
<id>18</id>
</interface_config>
<interface_config>
se.sics.cooja.interfaces.Position
<x>100.5701822839116</x>
<y>109.02472413707922</y>
<z>0.0</z>
</interface_config>
<motetype_identifier>apptype1</motetype_identifier>
</mote>
<mote>
se.sics.cooja.mspmote.SkyMote
<breakpoints />
<interface_config>
se.sics.cooja.interfaces.Position
<x>289.58980381970434</x>
<y>-130.77550672336852</y>
<z>0.0</z>
</interface_config>
<interface_config>
se.sics.cooja.mspmote.interfaces.MspMoteID
<id>7</id>
</interface_config>
<motetype_identifier>sky1</motetype_identifier>
</mote>
<mote>
se.sics.cooja.mspmote.ESBMote
<breakpoints />
<interface_config>
se.sics.cooja.interfaces.Position
<x>196.5661698954619</x>
<y>-22.675925974597682</y>
<z>0.0</z>
</interface_config>
<interface_config>
se.sics.cooja.mspmote.interfaces.MspMoteID
<id>13</id>
</interface_config>
<motetype_identifier>esb1</motetype_identifier>
</mote>
<mote>
se.sics.cooja.contikimote.ContikiMote
<interface_config>
se.sics.cooja.interfaces.Position
<x>100.5701822839116</x>
<y>85.45456437276077</y>
<z>0.0</z>
</interface_config>
<interface_config>
se.sics.cooja.contikimote.interfaces.ContikiMoteID
<id>17</id>
</interface_config>
<motetype_identifier>mtype135</motetype_identifier>
</mote>
<mote>
se.sics.cooja.contikimote.ContikiMote
<interface_config>
se.sics.cooja.interfaces.Position
<x>-5.14611380187246</x>
<y>83.73921581848423</y>
<z>0.0</z>
</interface_config>
<interface_config>
se.sics.cooja.contikimote.interfaces.ContikiMoteID
<id>15</id>
</interface_config>
<motetype_identifier>mtype135</motetype_identifier>
</mote>
</simulation>
<plugin>
se.sics.cooja.plugins.SimControl
<width>265</width>
<z>3</z>
<height>200</height>
<location_x>0</location_x>
<location_y>1</location_y>
<minimized>false</minimized>
</plugin>
<plugin>
se.sics.cooja.plugins.LogListener
<plugin_config>
<filter />
</plugin_config>
<width>953</width>
<z>0</z>
<height>130</height>
<location_x>0</location_x>
<location_y>524</location_y>
<minimized>false</minimized>
</plugin>
<plugin>
se.sics.cooja.plugins.RadioLogger
<width>695</width>
<z>5</z>
<height>152</height>
<location_x>260</location_x>
<location_y>369</location_y>
<minimized>false</minimized>
</plugin>
<plugin>
se.sics.cooja.plugins.ScriptRunner
<plugin_config>
<script>TIMEOUT(120000);
NR_NODES = 20;
var nr_packets = new Array();
for (i=1; i &lt;= NR_NODES; i++) {
nr_packets[i] = 0;
}
while (true) {
/* Listen for receive notifications */
if (msg.contains("abc message received 'Hello'")) {
/* Log receiving node */
nr_packets[id] ++;
log.log("Node " + id + " received message: " + nr_packets[id] + "\n");
log.log("TEST STATUS: ");
log.log(" S-S " + nr_packets[1] + "-" + nr_packets[2]);
log.log(" S-E " + nr_packets[3] + "-" + nr_packets[4]);
log.log(" S-C " + nr_packets[5] + "-" + nr_packets[6]);
log.log(" S-A " + nr_packets[7] + "-" + nr_packets[8]);
log.log(" E-E " + nr_packets[9] + "-" + nr_packets[10]);
log.log(" E-C " + nr_packets[11] + "-" + nr_packets[12]);
log.log(" E-A " + nr_packets[13] + "-" + nr_packets[14]);
log.log(" C-C " + nr_packets[15] + "-" + nr_packets[16]);
log.log(" C-A " + nr_packets[17] + "-" + nr_packets[18]);
log.log(" A-A " + nr_packets[19] + "-" + nr_packets[20]);
log.log("\n");
}
/* Did all NR_NODES receive at least three messages? */
for (i = 1; i &lt;= NR_NODES; i++) {
if (nr_packets[i] &lt; 3) break;
}
if (i == NR_NODES+1) {
log.testOK();
}
YIELD();
}</script>
<active>true</active>
</plugin_config>
<width>692</width>
<z>2</z>
<height>367</height>
<location_x>264</location_x>
<location_y>0</location_y>
<minimized>false</minimized>
</plugin>
<plugin>
se.sics.cooja.plugins.TimeLine
<plugin_config>
<mote>0</mote>
<mote>1</mote>
<mote>2</mote>
<mote>3</mote>
<mote>4</mote>
<mote>5</mote>
<mote>6</mote>
<mote>7</mote>
<mote>8</mote>
<mote>9</mote>
<mote>10</mote>
<mote>11</mote>
<mote>12</mote>
<mote>13</mote>
<mote>14</mote>
<mote>15</mote>
<mote>16</mote>
<mote>17</mote>
<mote>18</mote>
<mote>19</mote>
<showRadioRXTX />
<showRadioHW />
<split>109</split>
<zoom>12</zoom>
</plugin_config>
<width>956</width>
<z>6</z>
<height>310</height>
<location_x>-1</location_x>
<location_y>655</location_y>
<minimized>false</minimized>
</plugin>
<plugin>
se.sics.cooja.plugins.Visualizer
<plugin_config>
<skin>se.sics.cooja.plugins.skins.IDVisualizerSkin</skin>
<skin>se.sics.cooja.plugins.skins.MoteTypeVisualizerSkin</skin>
<skin>se.sics.cooja.plugins.skins.UDGMVisualizerSkin</skin>
<skin>se.sics.cooja.plugins.skins.TrafficVisualizerSkin</skin>
<viewport>0.5766712294536613 0.0 0.0 0.5766712294536613 36.4700887534336 117.76935499005339</viewport>
</plugin_config>
<width>264</width>
<z>1</z>
<height>321</height>
<location_x>0</location_x>
<location_y>201</location_y>
<minimized>false</minimized>
</plugin>
</simconf>