Loaded the simulation files in Cooja and saved them again to avoid them having any non-backward-compatible constructs in them.

This commit is contained in:
Adam Dunkels 2013-11-20 22:36:22 +01:00
parent 2e257eff9b
commit b5f4588e56
24 changed files with 4074 additions and 3856 deletions

View file

@ -1,17 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<simconf> <simconf>
<project EXPORT="discard">[CONTIKI_DIR]/tools/cooja/apps/mrm</project> <project EXPORT="discard">[APPS_DIR]/mrm</project>
<project EXPORT="discard">[CONTIKI_DIR]/tools/cooja/apps/mspsim</project> <project EXPORT="discard">[APPS_DIR]/mspsim</project>
<project EXPORT="discard">[CONTIKI_DIR]/tools/cooja/apps/avrora</project> <project EXPORT="discard">[APPS_DIR]/avrora</project>
<project EXPORT="discard">[CONTIKI_DIR]/tools/cooja/apps/native_gateway</project> <project EXPORT="discard">[APPS_DIR]/serial_socket</project>
<project EXPORT="discard">[CONTIKI_DIR]/tools/cooja/apps/serial_socket</project> <project EXPORT="discard">[APPS_DIR]/collect-view</project>
<project EXPORT="discard">/home/user/contikiprojects/sics.se/mobility</project> <project EXPORT="discard">[APPS_DIR]/powertracker</project>
<project EXPORT="discard">[CONTIKI_DIR]/tools/cooja/apps/collect-view</project>
<project EXPORT="discard">/home/user/contikiprojects/sics.se/powertracker</project>
<project EXPORT="discard">/home/user/nes/papers/smartip-paper/code/cooja_qr</project>
<simulation> <simulation>
<title>Rime collect test</title> <title>Rime collect test</title>
<delaytime>0</delaytime>
<randomseed>1</randomseed> <randomseed>1</randomseed>
<motedelay_us>10000000</motedelay_us> <motedelay_us>10000000</motedelay_us>
<radiomedium> <radiomedium>
@ -26,9 +22,9 @@
</events> </events>
<motetype> <motetype>
org.contikios.cooja.contikimote.ContikiMoteType org.contikios.cooja.contikimote.ContikiMoteType
<identifier>mtype949</identifier> <identifier>mtype929</identifier>
<description>Contiki Mote Type #1</description> <description>Contiki Mote Type #1</description>
<contikiapp>[CONTIKI_DIR]/examples/rime/example-collect.c</contikiapp> <source>[CONTIKI_DIR]/examples/rime/example-collect.c</source>
<commands>make example-collect.cooja TARGET=cooja</commands> <commands>make example-collect.cooja TARGET=cooja</commands>
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
<moteinterface>org.contikios.cooja.interfaces.Battery</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Battery</moteinterface>
@ -59,7 +55,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>1</id> <id>1</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -72,7 +72,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>2</id> <id>2</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -85,7 +89,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>3</id> <id>3</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -98,7 +106,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>4</id> <id>4</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -111,7 +123,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>5</id> <id>5</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -124,7 +140,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>6</id> <id>6</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -137,7 +157,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>7</id> <id>7</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -150,7 +174,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>8</id> <id>8</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -163,7 +191,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>9</id> <id>9</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -176,7 +208,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>10</id> <id>10</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -189,7 +225,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>11</id> <id>11</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -202,7 +242,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>12</id> <id>12</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -215,7 +259,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>13</id> <id>13</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -228,7 +276,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>14</id> <id>14</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -241,7 +293,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>15</id> <id>15</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -254,7 +310,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>16</id> <id>16</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -267,7 +327,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>17</id> <id>17</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -280,7 +344,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>18</id> <id>18</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -293,7 +361,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>19</id> <id>19</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -306,7 +378,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>20</id> <id>20</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -319,7 +395,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>21</id> <id>21</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -332,7 +412,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>22</id> <id>22</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -345,7 +429,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>23</id> <id>23</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -358,7 +446,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>24</id> <id>24</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -371,7 +463,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>25</id> <id>25</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -384,7 +480,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>26</id> <id>26</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -397,7 +497,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>27</id> <id>27</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -410,7 +514,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>28</id> <id>28</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -423,7 +531,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>29</id> <id>29</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -436,7 +548,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>30</id> <id>30</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -449,7 +565,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>31</id> <id>31</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -462,7 +582,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>32</id> <id>32</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -475,7 +599,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>33</id> <id>33</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -488,7 +616,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>34</id> <id>34</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -501,7 +633,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>35</id> <id>35</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -514,7 +650,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>36</id> <id>36</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -527,7 +667,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>37</id> <id>37</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -540,7 +684,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>38</id> <id>38</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -553,7 +701,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>39</id> <id>39</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -566,7 +718,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>40</id> <id>40</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -579,7 +735,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>41</id> <id>41</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -592,7 +752,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>42</id> <id>42</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -605,7 +769,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>43</id> <id>43</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -618,7 +786,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>44</id> <id>44</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -631,7 +803,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>45</id> <id>45</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -644,7 +820,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>46</id> <id>46</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -657,7 +837,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>47</id> <id>47</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -670,7 +854,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>48</id> <id>48</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -683,7 +871,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>49</id> <id>49</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -696,7 +888,11 @@
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<id>50</id> <id>50</id>
</interface_config> </interface_config>
<motetype_identifier>mtype949</motetype_identifier> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate>
</interface_config>
<motetype_identifier>mtype929</motetype_identifier>
</mote> </mote>
</simulation> </simulation>
<plugin> <plugin>
@ -724,6 +920,8 @@
org.contikios.cooja.plugins.LogListener org.contikios.cooja.plugins.LogListener
<plugin_config> <plugin_config>
<filter>ID:1</filter> <filter>ID:1</filter>
<formatted_time />
<coloring />
</plugin_config> </plugin_config>
<width>933</width> <width>933</width>
<z>2</z> <z>2</z>

View file

@ -1,184 +1,181 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<simconf> <simconf>
<project>../apps/mrm</project> <project EXPORT="discard">[APPS_DIR]/mrm</project>
<project>../apps/mspsim</project> <project EXPORT="discard">[APPS_DIR]/mspsim</project>
<project>../apps/avrora</project> <project EXPORT="discard">[APPS_DIR]/avrora</project>
<project>../apps/native_gateway</project> <project EXPORT="discard">[APPS_DIR]/serial_socket</project>
<simulation> <project EXPORT="discard">[APPS_DIR]/collect-view</project>
<title>My simulation</title> <project EXPORT="discard">[APPS_DIR]/powertracker</project>
<delaytime>0</delaytime> <simulation>
<randomseed>generated</randomseed> <title>My simulation</title>
<motedelay_us>1000000</motedelay_us> <randomseed>generated</randomseed>
<radiomedium> <motedelay_us>1000000</motedelay_us>
org.contikios.cooja.radiomediums.UDGM <radiomedium>
<transmitting_range>25.0</transmitting_range> org.contikios.cooja.radiomediums.UDGM
<interference_range>40.0</interference_range> <transmitting_range>25.0</transmitting_range>
<success_ratio_tx>0.99</success_ratio_tx> <interference_range>40.0</interference_range>
<success_ratio_rx>1.0</success_ratio_rx> <success_ratio_tx>0.99</success_ratio_tx>
</radiomedium> <success_ratio_rx>1.0</success_ratio_rx>
<motetype> </radiomedium>
org.contikios.cooja.contikimote.ContikiMoteType <events>
<identifier>mtype296</identifier> <logoutput>40000</logoutput>
<description>Contiki Mote #1</description> </events>
<contikiapp>[CONTIKI_DIR]/examples/rime/example-rucb.c</contikiapp> <motetype>
<commands>make example-rucb.cooja TARGET=cooja</commands> org.contikios.cooja.contikimote.ContikiMoteType
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> <identifier>mtype965</identifier>
<moteinterface>org.contikios.cooja.interfaces.Battery</moteinterface> <description>Contiki Mote #1</description>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiVib</moteinterface> <source>[CONTIKI_DIR]/examples/rime/example-rucb.c</source>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiMoteID</moteinterface> <commands>make example-rucb.cooja TARGET=cooja</commands>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiRS232</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiBeeper</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Battery</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiIPAddress</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiVib</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiRadio</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiMoteID</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiButton</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiRS232</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiPIR</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiBeeper</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiClock</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiIPAddress</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiLED</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiRadio</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiCFS</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiButton</moteinterface>
<moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiPIR</moteinterface>
<symbols>false</symbols> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiClock</moteinterface>
<commstack>Rime</commstack> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiLED</moteinterface>
</motetype> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiCFS</moteinterface>
<mote> <moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface>
org.contikios.cooja.contikimote.ContikiMote <symbols>false</symbols>
<motetype_identifier>mtype296</motetype_identifier> </motetype>
<interface_config> <mote>
org.contikios.cooja.interfaces.Position <interface_config>
<x>0.0</x> org.contikios.cooja.interfaces.Position
<y>50.00000000000001</y> <x>0.0</x>
<z>0.0</z> <y>50.00000000000001</y>
</interface_config> <z>0.0</z>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Battery <interface_config>
<infinite>false</infinite> org.contikios.cooja.contikimote.interfaces.ContikiMoteID
</interface_config> <id>51</id>
<interface_config> </interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiMoteID <interface_config>
<id>51</id> org.contikios.cooja.contikimote.interfaces.ContikiRadio
</interface_config> <bitrate>250.0</bitrate>
</mote> </interface_config>
<mote> <motetype_identifier>mtype965</motetype_identifier>
org.contikios.cooja.contikimote.ContikiMote </mote>
<motetype_identifier>mtype296</motetype_identifier> <mote>
<interface_config> <interface_config>
org.contikios.cooja.interfaces.Position org.contikios.cooja.interfaces.Position
<x>14.102564102564104</x> <x>14.102564102564104</x>
<y>45.28301886792453</y> <y>45.28301886792453</y>
<z>0.0</z> <z>0.0</z>
</interface_config> </interface_config>
<interface_config> <interface_config>
org.contikios.cooja.interfaces.Battery org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<infinite>false</infinite> <id>52</id>
</interface_config> </interface_config>
<interface_config> <interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiMoteID org.contikios.cooja.contikimote.interfaces.ContikiRadio
<id>52</id> <bitrate>250.0</bitrate>
</interface_config> </interface_config>
</mote> <motetype_identifier>mtype965</motetype_identifier>
<mote> </mote>
org.contikios.cooja.contikimote.ContikiMote <mote>
<motetype_identifier>mtype296</motetype_identifier> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.interfaces.Position <x>-32.16814655285737</x>
<x>-32.16814655285737</x> <y>42.92182758760039</y>
<y>42.92182758760039</y> <z>0.0</z>
<z>0.0</z> </interface_config>
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.contikimote.interfaces.ContikiMoteID
org.contikios.cooja.interfaces.Battery <id>53</id>
<infinite>false</infinite> </interface_config>
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.contikimote.interfaces.ContikiRadio
org.contikios.cooja.contikimote.interfaces.ContikiMoteID <bitrate>250.0</bitrate>
<id>53</id> </interface_config>
</interface_config> <motetype_identifier>mtype965</motetype_identifier>
</mote> </mote>
<mote> <mote>
org.contikios.cooja.contikimote.ContikiMote <interface_config>
<motetype_identifier>mtype296</motetype_identifier> org.contikios.cooja.interfaces.Position
<interface_config> <x>-1.5917258339289355</x>
org.contikios.cooja.interfaces.Position <y>37.3750708005199</y>
<x>-1.5917258339289355</x> <z>0.0</z>
<y>37.3750708005199</y> </interface_config>
<z>0.0</z> <interface_config>
</interface_config> org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<interface_config> <id>54</id>
org.contikios.cooja.interfaces.Battery </interface_config>
<infinite>false</infinite> <interface_config>
</interface_config> org.contikios.cooja.contikimote.interfaces.ContikiRadio
<interface_config> <bitrate>250.0</bitrate>
org.contikios.cooja.contikimote.interfaces.ContikiMoteID </interface_config>
<id>54</id> <motetype_identifier>mtype965</motetype_identifier>
</interface_config> </mote>
</mote> <mote>
<mote> <interface_config>
org.contikios.cooja.contikimote.ContikiMote org.contikios.cooja.interfaces.Position
<motetype_identifier>mtype296</motetype_identifier> <x>26.334899854939632</x>
<interface_config> <y>53.05390331866741</y>
org.contikios.cooja.interfaces.Position <z>0.0</z>
<x>26.334899854939632</x> </interface_config>
<y>53.05390331866741</y> <interface_config>
<z>0.0</z> org.contikios.cooja.contikimote.interfaces.ContikiMoteID
</interface_config> <id>55</id>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Battery <interface_config>
<infinite>false</infinite> org.contikios.cooja.contikimote.interfaces.ContikiRadio
</interface_config> <bitrate>250.0</bitrate>
<interface_config> </interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiMoteID <motetype_identifier>mtype965</motetype_identifier>
<id>55</id> </mote>
</interface_config> </simulation>
</mote> <plugin>
</simulation> org.contikios.cooja.plugins.SimControl
<plugin> <width>265</width>
org.contikios.cooja.plugins.SimControl <z>3</z>
<width>265</width> <height>200</height>
<z>3</z> <location_x>0</location_x>
<height>200</height> <location_y>0</location_y>
<location_x>0</location_x> </plugin>
<location_y>0</location_y> <plugin>
<minimized>false</minimized> org.contikios.cooja.plugins.LogListener
</plugin> <plugin_config>
<plugin> <filter />
org.contikios.cooja.plugins.LogListener <formatted_time />
<plugin_config> <coloring />
<filter /> </plugin_config>
</plugin_config> <width>798</width>
<width>798</width> <z>2</z>
<z>2</z> <height>289</height>
<height>289</height> <location_x>0</location_x>
<location_x>0</location_x> <location_y>354</location_y>
<location_y>354</location_y> </plugin>
<minimized>false</minimized> <plugin>
</plugin> org.contikios.cooja.plugins.Visualizer
<plugin> <plugin_config>
org.contikios.cooja.plugins.Visualizer <skin>org.contikios.cooja.plugins.skins.IDVisualizerSkin</skin>
<plugin_config> <skin>org.contikios.cooja.plugins.skins.UDGMVisualizerSkin</skin>
<skin>Mote IDs</skin> <viewport>3.931419201604973 0.0 0.0 3.931419201604973 137.46646903794633 -127.75710261680608</viewport>
<skin>Radio environment (UDGM)</skin> </plugin_config>
</plugin_config> <width>265</width>
<width>265</width> <z>0</z>
<z>0</z> <height>155</height>
<height>155</height> <location_x>0</location_x>
<location_x>0</location_x> <location_y>200</location_y>
<location_y>200</location_y> </plugin>
<minimized>false</minimized> <plugin>
</plugin> org.contikios.cooja.plugins.ScriptRunner
<plugin> <plugin_config>
org.contikios.cooja.plugins.ScriptRunner <script>TIMEOUT(120000);
<plugin_config>
<script>TIMEOUT(120000); WAIT_UNTIL(msg.startsWith('Completion time'));
log.testOK();</script>
WAIT_UNTIL(msg.startsWith('Completion time')); <active>true</active>
log.testOK();</script> </plugin_config>
<active>true</active> <width>534</width>
</plugin_config> <z>1</z>
<width>534</width> <height>354</height>
<z>1</z> <location_x>264</location_x>
<height>354</height> <location_y>0</location_y>
<location_x>264</location_x> </plugin>
<location_y>0</location_y> </simconf>
<minimized>false</minimized>
</plugin>
</simconf>

View file

@ -1,136 +1,137 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<simconf> <simconf>
<project>../apps/mrm</project> <project EXPORT="discard">[APPS_DIR]/mrm</project>
<project>../apps/mspsim</project> <project EXPORT="discard">[APPS_DIR]/mspsim</project>
<project>../apps/avrora</project> <project EXPORT="discard">[APPS_DIR]/avrora</project>
<project>../apps/native_gateway</project> <project EXPORT="discard">[APPS_DIR]/serial_socket</project>
<simulation> <project EXPORT="discard">[APPS_DIR]/collect-view</project>
<title>My simulation</title> <project EXPORT="discard">[APPS_DIR]/powertracker</project>
<delaytime>0</delaytime> <simulation>
<randomseed>generated</randomseed> <title>My simulation</title>
<motedelay_us>5000000</motedelay_us> <randomseed>generated</randomseed>
<radiomedium> <motedelay_us>5000000</motedelay_us>
org.contikios.cooja.radiomediums.UDGM <radiomedium>
<transmitting_range>50.0</transmitting_range> org.contikios.cooja.radiomediums.UDGM
<interference_range>100.0</interference_range> <transmitting_range>50.0</transmitting_range>
<success_ratio_tx>0.95</success_ratio_tx> <interference_range>100.0</interference_range>
<success_ratio_rx>1.0</success_ratio_rx> <success_ratio_tx>0.95</success_ratio_tx>
</radiomedium> <success_ratio_rx>1.0</success_ratio_rx>
<motetype> </radiomedium>
org.contikios.cooja.mspmote.SkyMoteType <events>
<identifier>sky1</identifier> <logoutput>40000</logoutput>
<description>Sky Mote Type #1</description> </events>
<source>[CONTIKI_DIR]/examples/rime/example-abc.c</source> <motetype>
<commands>make clean TARGET=sky org.contikios.cooja.mspmote.SkyMoteType
make example-abc.sky TARGET=sky</commands> <identifier>sky1</identifier>
<firmware>[CONTIKI_DIR]/examples/rime/example-abc.sky</firmware> <description>Sky Mote Type #1</description>
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> <source EXPORT="discard">[CONTIKI_DIR]/examples/rime/example-abc.c</source>
<moteinterface>org.contikios.cooja.interfaces.IPAddress</moteinterface> <commands EXPORT="discard">make clean TARGET=sky
<moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface> make example-abc.sky TARGET=sky</commands>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspClock</moteinterface> <firmware EXPORT="copy">[CONTIKI_DIR]/examples/rime/example-abc.sky</firmware>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspMoteID</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface> <moteinterface>org.contikios.cooja.interfaces.IPAddress</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyByteRadio</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspClock</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkySerial</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspMoteID</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface>
</motetype> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface>
<mote> <moteinterface>org.contikios.cooja.mspmote.interfaces.Msp802154Radio</moteinterface>
org.contikios.cooja.mspmote.SkyMote <moteinterface>org.contikios.cooja.mspmote.interfaces.MspSerial</moteinterface>
<motetype_identifier>sky1</motetype_identifier> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface>
<breakpoints /> </motetype>
<interface_config> <mote>
org.contikios.cooja.interfaces.Position <breakpoints />
<x>33.53152221759984</x> <interface_config>
<y>15.078801911773077</y> org.contikios.cooja.interfaces.Position
<z>0.0</z> <x>33.53152221759984</x>
</interface_config> <y>15.078801911773077</y>
<interface_config> <z>0.0</z>
org.contikios.cooja.mspmote.interfaces.MspMoteID </interface_config>
<id>1</id> <interface_config>
</interface_config> org.contikios.cooja.mspmote.interfaces.MspMoteID
</mote> <id>1</id>
<mote> </interface_config>
org.contikios.cooja.mspmote.SkyMote <motetype_identifier>sky1</motetype_identifier>
<motetype_identifier>sky1</motetype_identifier> </mote>
<breakpoints /> <mote>
<interface_config> <breakpoints />
org.contikios.cooja.interfaces.Position <interface_config>
<x>54.67966631314053</x> org.contikios.cooja.interfaces.Position
<y>31.0253850381183</y> <x>54.67966631314053</x>
<z>0.0</z> <y>31.0253850381183</y>
</interface_config> <z>0.0</z>
<interface_config> </interface_config>
org.contikios.cooja.mspmote.interfaces.MspMoteID <interface_config>
<id>2</id> org.contikios.cooja.mspmote.interfaces.MspMoteID
</interface_config> <id>2</id>
</mote> </interface_config>
</simulation> <motetype_identifier>sky1</motetype_identifier>
<plugin> </mote>
org.contikios.cooja.plugins.SimControl </simulation>
<width>313</width> <plugin>
<z>3</z> org.contikios.cooja.plugins.SimControl
<height>199</height> <width>313</width>
<location_x>-1</location_x> <z>3</z>
<location_y>0</location_y> <height>199</height>
<minimized>false</minimized> <location_x>0</location_x>
</plugin> <location_y>0</location_y>
<plugin> </plugin>
org.contikios.cooja.plugins.Visualizer <plugin>
<plugin_config> org.contikios.cooja.plugins.Visualizer
<skin>Mote IDs</skin> <plugin_config>
<skin>Radio environment (UDGM)</skin> <skin>org.contikios.cooja.plugins.skins.IDVisualizerSkin</skin>
</plugin_config> <skin>org.contikios.cooja.plugins.skins.UDGMVisualizerSkin</skin>
<width>312</width> <viewport>3.93358704057683 0.0 0.0 3.93358704057683 -23.493194019199933 -56.677416151212064</viewport>
<z>2</z> </plugin_config>
<height>123</height> <width>312</width>
<location_x>0</location_x> <z>2</z>
<location_y>198</location_y> <height>123</height>
<minimized>false</minimized> <location_x>0</location_x>
</plugin> <location_y>198</location_y>
<plugin> </plugin>
org.contikios.cooja.plugins.LogListener <plugin>
<plugin_config> org.contikios.cooja.plugins.LogListener
<filter /> <plugin_config>
</plugin_config> <filter />
<width>311</width> <formatted_time />
<z>0</z> <coloring />
<height>377</height> </plugin_config>
<location_x>1</location_x> <width>311</width>
<location_y>320</location_y> <z>0</z>
<minimized>false</minimized> <height>377</height>
</plugin> <location_x>1</location_x>
<plugin> <location_y>320</location_y>
org.contikios.cooja.plugins.ScriptRunner </plugin>
<plugin_config> <plugin>
<script>TIMEOUT(100000, log.log("Node 1: " + nr_packets[1] + ".\nNode 2: " + nr_packets[2] + ".\n")); org.contikios.cooja.plugins.ScriptRunner
<plugin_config>
nr_packets = new Array(); <script>TIMEOUT(100000, log.log("Node 1: " + nr_packets[1] + ".\nNode 2: " + nr_packets[2] + ".\n"));
nr_packets[1] = 0;
nr_packets[2] = 0; nr_packets = new Array();
nr_packets[1] = 0;
while (true) { nr_packets[2] = 0;
/* Only handle receive messages */
YIELD_THEN_WAIT_UNTIL(msg.contains('received')); while (true) {
/* Only handle receive messages */
/* Count received packets */ YIELD_THEN_WAIT_UNTIL(msg.contains('received'));
nr_packets[id]++;
//log.log("Node " + id + " received " + nr_packets[id] + " messages\n"); /* Count received packets */
nr_packets[id]++;
if (nr_packets[1] &gt;= 4 &amp;&amp; nr_packets[2] &gt;= 4) { //log.log("Node " + id + " received " + nr_packets[id] + " messages\n");
log.log("Node 1: " + nr_packets[1] + ".\nNode 2: " + nr_packets[2] + ".\n");
log.testOK(); /* Report test success */ if (nr_packets[1] &gt;= 4 &amp;&amp; nr_packets[2] &gt;= 4) {
} log.log("Node 1: " + nr_packets[1] + ".\nNode 2: " + nr_packets[2] + ".\n");
log.testOK(); /* Report test success */
}</script> }
<active>true</active>
</plugin_config> }</script>
<width>601</width> <active>true</active>
<z>1</z> </plugin_config>
<height>697</height> <width>601</width>
<location_x>312</location_x> <z>1</z>
<location_y>0</location_y> <height>697</height>
<minimized>false</minimized> <location_x>312</location_x>
</plugin> <location_y>0</location_y>
</simconf> </plugin>
</simconf>

View file

@ -1,157 +1,155 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<simconf> <simconf>
<project>../apps/mrm</project> <project EXPORT="discard">[APPS_DIR]/mrm</project>
<project>../apps/mspsim</project> <project EXPORT="discard">[APPS_DIR]/mspsim</project>
<project>../apps/avrora</project> <project EXPORT="discard">[APPS_DIR]/avrora</project>
<project>../apps/native_gateway</project> <project EXPORT="discard">[APPS_DIR]/serial_socket</project>
<simulation> <project EXPORT="discard">[APPS_DIR]/collect-view</project>
<title>Deluge</title> <project EXPORT="discard">[APPS_DIR]/powertracker</project>
<delaytime>0</delaytime> <simulation>
<randomseed>generated</randomseed> <title>Deluge</title>
<motedelay_us>1000000</motedelay_us> <randomseed>generated</randomseed>
<radiomedium> <motedelay_us>1000000</motedelay_us>
org.contikios.cooja.radiomediums.UDGM <radiomedium>
<transmitting_range>50.0</transmitting_range> org.contikios.cooja.radiomediums.UDGM
<interference_range>100.0</interference_range> <transmitting_range>50.0</transmitting_range>
<success_ratio_tx>1.0</success_ratio_tx> <interference_range>100.0</interference_range>
<success_ratio_rx>1.0</success_ratio_rx> <success_ratio_tx>1.0</success_ratio_tx>
</radiomedium> <success_ratio_rx>1.0</success_ratio_rx>
<motetype> </radiomedium>
org.contikios.cooja.mspmote.SkyMoteType <events>
<identifier>sky1</identifier> <logoutput>40000</logoutput>
<description>Sky Mote Type #1</description> </events>
<source>[CONTIKI_DIR]/examples/sky/test-deluge.c</source> <motetype>
<commands>make clean TARGET=sky org.contikios.cooja.mspmote.SkyMoteType
make APPS=deluge test-deluge.sky TARGET=sky</commands> <identifier>sky1</identifier>
<firmware>[CONTIKI_DIR]/examples/sky/test-deluge.sky</firmware> <description>Sky Mote Type #1</description>
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> <source EXPORT="discard">[CONTIKI_DIR]/examples/sky/test-deluge.c</source>
<moteinterface>org.contikios.cooja.interfaces.IPAddress</moteinterface> <commands EXPORT="discard">make clean TARGET=sky
<moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface> make APPS=deluge test-deluge.sky TARGET=sky</commands>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspClock</moteinterface> <firmware EXPORT="copy">[CONTIKI_DIR]/examples/sky/test-deluge.sky</firmware>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspMoteID</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface> <moteinterface>org.contikios.cooja.interfaces.IPAddress</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyByteRadio</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspClock</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkySerial</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspMoteID</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface>
</motetype> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface>
<mote> <moteinterface>org.contikios.cooja.mspmote.interfaces.Msp802154Radio</moteinterface>
org.contikios.cooja.mspmote.SkyMote <moteinterface>org.contikios.cooja.mspmote.interfaces.MspSerial</moteinterface>
<motetype_identifier>sky1</motetype_identifier> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface>
<breakpoints /> </motetype>
<interface_config> <mote>
org.contikios.cooja.interfaces.Position <breakpoints />
<x>22.464792491653174</x> <interface_config>
<y>11.3235347656354</y> org.contikios.cooja.interfaces.Position
<z>0.0</z> <x>22.464792491653174</x>
</interface_config> <y>11.3235347656354</y>
<interface_config> <z>0.0</z>
org.contikios.cooja.mspmote.interfaces.MspMoteID </interface_config>
<id>1</id> <interface_config>
</interface_config> org.contikios.cooja.mspmote.interfaces.MspMoteID
</mote> <id>1</id>
<mote> </interface_config>
org.contikios.cooja.mspmote.SkyMote <motetype_identifier>sky1</motetype_identifier>
<motetype_identifier>sky1</motetype_identifier> </mote>
<breakpoints /> <mote>
<interface_config> <breakpoints />
org.contikios.cooja.interfaces.Position <interface_config>
<x>16.167564578306468</x> org.contikios.cooja.interfaces.Position
<y>29.89745599030348</y> <x>16.167564578306468</x>
<z>0.0</z> <y>29.89745599030348</y>
</interface_config> <z>0.0</z>
<interface_config> </interface_config>
org.contikios.cooja.mspmote.interfaces.MspMoteID <interface_config>
<id>3</id> org.contikios.cooja.mspmote.interfaces.MspMoteID
</interface_config> <id>3</id>
</mote> </interface_config>
<mote> <motetype_identifier>sky1</motetype_identifier>
org.contikios.cooja.mspmote.SkyMote </mote>
<motetype_identifier>sky1</motetype_identifier> <mote>
<breakpoints /> <breakpoints />
<interface_config> <interface_config>
org.contikios.cooja.interfaces.Position org.contikios.cooja.interfaces.Position
<x>63.42409596590043</x> <x>63.42409596590043</x>
<y>12.470791515046386</y> <y>12.470791515046386</y>
<z>0.0</z> <z>0.0</z>
</interface_config> </interface_config>
<interface_config> <interface_config>
org.contikios.cooja.mspmote.interfaces.MspMoteID org.contikios.cooja.mspmote.interfaces.MspMoteID
<id>5</id> <id>5</id>
</interface_config> </interface_config>
</mote> <motetype_identifier>sky1</motetype_identifier>
</simulation> </mote>
<plugin> </simulation>
org.contikios.cooja.plugins.SimControl <plugin>
<width>282</width> org.contikios.cooja.plugins.SimControl
<z>4</z> <width>282</width>
<height>212</height> <z>4</z>
<location_x>0</location_x> <height>212</height>
<location_y>0</location_y> <location_x>0</location_x>
<minimized>false</minimized> <location_y>0</location_y>
</plugin> </plugin>
<plugin> <plugin>
org.contikios.cooja.plugins.Visualizer org.contikios.cooja.plugins.Visualizer
<plugin_config> <plugin_config>
<skin>Mote IDs</skin> <skin>org.contikios.cooja.plugins.skins.IDVisualizerSkin</skin>
<skin>Radio environment (UDGM)</skin> <skin>org.contikios.cooja.plugins.skins.UDGMVisualizerSkin</skin>
</plugin_config> <viewport>4.405003166995177 0.0 0.0 4.405003166995177 -40.3007583818182 -45.78929741329485</viewport>
<width>283</width> </plugin_config>
<z>2</z> <width>283</width>
<height>144</height> <z>2</z>
<location_x>-1</location_x> <height>144</height>
<location_y>212</location_y> <location_x>-1</location_x>
<minimized>false</minimized> <location_y>212</location_y>
</plugin> </plugin>
<plugin> <plugin>
org.contikios.cooja.plugins.ScriptRunner org.contikios.cooja.plugins.ScriptRunner
<plugin_config> <plugin_config>
<script>TIMEOUT(100000, log.log("last msg: " + msg + "\n")); /* print last msg at timeout */ <script>TIMEOUT(100000, log.log("last msg: " + msg + "\n")); /* print last msg at timeout */
WAIT_UNTIL(id == 3 &amp;&amp; msg.contains("version 1")); WAIT_UNTIL(id == 3 &amp;&amp; msg.contains("version 1"));
log.log("Node 3 got version 1\n"); log.log("Node 3 got version 1\n");
WAIT_UNTIL(id == 5 &amp;&amp; msg.contains("version 1")); WAIT_UNTIL(id == 5 &amp;&amp; msg.contains("version 1"));
log.log("Node 5 got version 1\n"); log.log("Node 5 got version 1\n");
log.testOK(); /* Report test success and quit */</script> log.testOK(); /* Report test success and quit */</script>
<active>true</active> <active>true</active>
</plugin_config> </plugin_config>
<width>600</width> <width>600</width>
<z>1</z> <z>1</z>
<height>357</height> <height>357</height>
<location_x>281</location_x> <location_x>281</location_x>
<location_y>1</location_y> <location_y>1</location_y>
<minimized>false</minimized> </plugin>
</plugin> <plugin>
<plugin> org.contikios.cooja.plugins.TimeLine
org.contikios.cooja.plugins.TimeLine <plugin_config>
<plugin_config> <mote>0</mote>
<mote>0</mote> <mote>1</mote>
<mote>1</mote> <mote>2</mote>
<mote>2</mote> <showRadioRXTX />
<showRadioRXTX /> <zoomfactor>500.0</zoomfactor>
<split>109</split> </plugin_config>
<zoom>9</zoom> <width>882</width>
</plugin_config> <z>3</z>
<width>882</width> <height>149</height>
<z>3</z> <location_x>-1</location_x>
<height>149</height> <location_y>357</location_y>
<location_x>-1</location_x> </plugin>
<location_y>357</location_y> <plugin>
<minimized>false</minimized> org.contikios.cooja.plugins.LogListener
</plugin> <plugin_config>
<plugin> <filter />
org.contikios.cooja.plugins.LogListener <formatted_time />
<plugin_config> <coloring />
<filter /> </plugin_config>
</plugin_config> <width>882</width>
<width>882</width> <z>0</z>
<z>0</z> <height>195</height>
<height>195</height> <location_x>-1</location_x>
<location_x>-1</location_x> <location_y>504</location_y>
<location_y>504</location_y> </plugin>
<minimized>false</minimized> </simconf>
</plugin>
</simconf>

View file

@ -1,208 +1,212 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<simconf> <simconf>
<project>../apps/mrm</project> <project EXPORT="discard">[APPS_DIR]/mrm</project>
<project>../apps/mspsim</project> <project EXPORT="discard">[APPS_DIR]/mspsim</project>
<project>../apps/avrora</project> <project EXPORT="discard">[APPS_DIR]/avrora</project>
<project>../apps/native_gateway</project> <project EXPORT="discard">[APPS_DIR]/serial_socket</project>
<simulation> <project EXPORT="discard">[APPS_DIR]/collect-view</project>
<title>My simulation</title> <project EXPORT="discard">[APPS_DIR]/powertracker</project>
<delaytime>0</delaytime> <simulation>
<randomseed>1</randomseed> <title>My simulation</title>
<motedelay_us>10000000</motedelay_us> <randomseed>1</randomseed>
<radiomedium> <motedelay_us>10000000</motedelay_us>
org.contikios.cooja.radiomediums.UDGM <radiomedium>
<transmitting_range>50.0</transmitting_range> org.contikios.cooja.radiomediums.UDGM
<interference_range>0.0</interference_range> <transmitting_range>50.0</transmitting_range>
<success_ratio_tx>0.9</success_ratio_tx> <interference_range>0.0</interference_range>
<success_ratio_rx>1.0</success_ratio_rx> <success_ratio_tx>0.9</success_ratio_tx>
</radiomedium> <success_ratio_rx>1.0</success_ratio_rx>
<motetype> </radiomedium>
org.contikios.cooja.mspmote.SkyMoteType <events>
<identifier>sky1</identifier> <logoutput>40000</logoutput>
<description>Sky Mote Type #1</description> </events>
<source>[CONTIKI_DIR]/examples/rime/example-runicast.c</source> <motetype>
<commands>make clean TARGET=sky org.contikios.cooja.mspmote.SkyMoteType
make example-runicast.sky TARGET=sky</commands> <identifier>sky1</identifier>
<firmware>[CONTIKI_DIR]/examples/rime/example-runicast.sky</firmware> <description>Sky Mote Type #1</description>
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> <source EXPORT="discard">[CONTIKI_DIR]/examples/rime/example-runicast.c</source>
<moteinterface>org.contikios.cooja.interfaces.IPAddress</moteinterface> <commands EXPORT="discard">make clean TARGET=sky
<moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface> make example-runicast.sky TARGET=sky</commands>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspClock</moteinterface> <firmware EXPORT="copy">[CONTIKI_DIR]/examples/rime/example-runicast.sky</firmware>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspMoteID</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface> <moteinterface>org.contikios.cooja.interfaces.IPAddress</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyByteRadio</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspClock</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkySerial</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspMoteID</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface>
</motetype> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface>
<mote> <moteinterface>org.contikios.cooja.mspmote.interfaces.Msp802154Radio</moteinterface>
org.contikios.cooja.mspmote.SkyMote <moteinterface>org.contikios.cooja.mspmote.interfaces.MspSerial</moteinterface>
<motetype_identifier>sky1</motetype_identifier> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface>
<breakpoints /> </motetype>
<interface_config> <mote>
org.contikios.cooja.interfaces.Position <breakpoints />
<x>3.0783332685337617</x> <interface_config>
<y>38.39795740836801</y> org.contikios.cooja.interfaces.Position
<z>0.0</z> <x>3.0783332685337617</x>
</interface_config> <y>38.39795740836801</y>
<interface_config> <z>0.0</z>
org.contikios.cooja.mspmote.interfaces.MspMoteID </interface_config>
<id>1</id> <interface_config>
</interface_config> org.contikios.cooja.mspmote.interfaces.MspMoteID
</mote> <id>1</id>
<mote> </interface_config>
org.contikios.cooja.mspmote.SkyMote <motetype_identifier>sky1</motetype_identifier>
<motetype_identifier>sky1</motetype_identifier> </mote>
<breakpoints /> <mote>
<interface_config> <breakpoints />
org.contikios.cooja.interfaces.Position <interface_config>
<x>1.1986251808192212</x> org.contikios.cooja.interfaces.Position
<y>53.65838347315817</y> <x>1.1986251808192212</x>
<z>0.0</z> <y>53.65838347315817</y>
</interface_config> <z>0.0</z>
<interface_config> </interface_config>
org.contikios.cooja.mspmote.interfaces.MspMoteID <interface_config>
<id>2</id> org.contikios.cooja.mspmote.interfaces.MspMoteID
</interface_config> <id>2</id>
</mote> </interface_config>
<mote> <motetype_identifier>sky1</motetype_identifier>
org.contikios.cooja.mspmote.SkyMote </mote>
<motetype_identifier>sky1</motetype_identifier> <mote>
<breakpoints /> <breakpoints />
<interface_config> <interface_config>
org.contikios.cooja.interfaces.Position org.contikios.cooja.interfaces.Position
<x>34.432838059195255</x> <x>34.432838059195255</x>
<y>38.26541658684913</y> <y>38.26541658684913</y>
<z>0.0</z> <z>0.0</z>
</interface_config> </interface_config>
<interface_config> <interface_config>
org.contikios.cooja.mspmote.interfaces.MspMoteID org.contikios.cooja.mspmote.interfaces.MspMoteID
<id>3</id> <id>3</id>
</interface_config> </interface_config>
</mote> <motetype_identifier>sky1</motetype_identifier>
<mote> </mote>
org.contikios.cooja.mspmote.SkyMote <mote>
<motetype_identifier>sky1</motetype_identifier> <breakpoints />
<breakpoints /> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.interfaces.Position <x>150.85510197745134</x>
<x>150.85510197745134</x> <y>141.37553211643905</y>
<y>141.37553211643905</y> <z>0.0</z>
<z>0.0</z> </interface_config>
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.mspmote.interfaces.MspMoteID
org.contikios.cooja.mspmote.interfaces.MspMoteID <id>4</id>
<id>4</id> </interface_config>
</interface_config> <motetype_identifier>sky1</motetype_identifier>
</mote> </mote>
</simulation> </simulation>
<plugin> <plugin>
org.contikios.cooja.plugins.SimControl org.contikios.cooja.plugins.SimControl
<width>265</width> <width>265</width>
<z>4</z> <z>4</z>
<height>200</height> <height>200</height>
<location_x>0</location_x> <location_x>0</location_x>
<location_y>0</location_y> <location_y>0</location_y>
<minimized>false</minimized> </plugin>
</plugin> <plugin>
<plugin> org.contikios.cooja.plugins.LogListener
org.contikios.cooja.plugins.LogListener <plugin_config>
<plugin_config> <filter>received</filter>
<filter>received</filter> <formatted_time />
</plugin_config> <coloring />
<width>539</width> </plugin_config>
<z>0</z> <width>539</width>
<height>319</height> <z>0</z>
<location_x>0</location_x> <height>319</height>
<location_y>325</location_y> <location_x>0</location_x>
<minimized>false</minimized> <location_y>325</location_y>
</plugin> </plugin>
<plugin> <plugin>
org.contikios.cooja.plugins.Visualizer org.contikios.cooja.plugins.Visualizer
<plugin_config> <plugin_config>
<skin>Mote IDs</skin> <skin>org.contikios.cooja.plugins.skins.IDVisualizerSkin</skin>
<skin>Radio environment (UDGM)</skin> <skin>org.contikios.cooja.plugins.skins.UDGMVisualizerSkin</skin>
</plugin_config> <viewport>0.6259856679816412 0.0 0.0 0.6259856679816412 77.4082730178659 -21.226329635441804</viewport>
<width>263</width> </plugin_config>
<z>2</z> <width>263</width>
<height>125</height> <z>2</z>
<location_x>1</location_x> <height>125</height>
<location_y>200</location_y> <location_x>1</location_x>
<minimized>false</minimized> <location_y>200</location_y>
</plugin> </plugin>
<plugin> <plugin>
org.contikios.cooja.plugins.RadioLogger org.contikios.cooja.plugins.RadioLogger
<width>276</width> <plugin_config>
<z>1</z> <split>150</split>
<height>324</height> <formatted_time />
<location_x>264</location_x> <showdups>false</showdups>
<location_y>1</location_y> <hidenodests>false</hidenodests>
<minimized>false</minimized> </plugin_config>
</plugin> <width>276</width>
<plugin> <z>1</z>
org.contikios.cooja.plugins.ScriptRunner <height>324</height>
<plugin_config> <location_x>264</location_x>
<script>TIMEOUT(240000); <location_y>1</location_y>
</plugin>
nr_recv = 0; <plugin>
nr_timedout = 0; org.contikios.cooja.plugins.ScriptRunner
nr_sent = 0; <plugin_config>
<script>TIMEOUT(240000);
while (nr_sent &lt; 10) {
nr_recv = 0;
/* Count received packets */ nr_timedout = 0;
if (msg.contains('received') &amp;&amp; !msg.contains('DUPLICATE')) { nr_sent = 0;
nr_recv++;
log.log("RECV=" + nr_recv + ", sent=" + nr_sent + ", timedout=" + nr_timedout + "\n"); while (nr_sent &lt; 10) {
}
/* Count received packets */
/* Count timed out packets */ if (msg.contains('received') &amp;&amp; !msg.contains('DUPLICATE')) {
else if (msg.contains('timed out')) { nr_recv++;
nr_timedout++; log.log("RECV=" + nr_recv + ", sent=" + nr_sent + ", timedout=" + nr_timedout + "\n");
log.log("recv=" + nr_recv + ", sent=" + nr_sent + ", TIMEDOUT=" + nr_timedout + "\n"); }
}
/* Count timed out packets */
/* Count sent packets */ else if (msg.contains('timed out')) {
else if (msg.contains('sent to')) { nr_timedout++;
nr_sent++; log.log("recv=" + nr_recv + ", sent=" + nr_sent + ", TIMEDOUT=" + nr_timedout + "\n");
log.log("recv=" + nr_recv + ", SENT=" + nr_sent + ", timedout=" + nr_timedout + "\n"); }
}
/* Count sent packets */
YIELD(); else if (msg.contains('sent to')) {
} nr_sent++;
log.log("recv=" + nr_recv + ", SENT=" + nr_sent + ", timedout=" + nr_timedout + "\n");
/* Make sure received counter matches sent counter */ }
if (nr_recv &lt; nr_sent-3) {
log.log("Error: Received &lt;&lt; Sent!\n"); YIELD();
log.log("recv=" + nr_recv + ", sent=" + nr_sent + ", timedout=" + nr_timedout + "\n"); }
log.testFailed();
} /* Make sure received counter matches sent counter */
if (nr_recv &lt; nr_sent-3) {
else if (nr_recv &gt; nr_sent+3) { log.log("Error: Received &lt;&lt; Sent!\n");
log.log("Error: Received &gt;&gt; Sent!\n"); log.log("recv=" + nr_recv + ", sent=" + nr_sent + ", timedout=" + nr_timedout + "\n");
log.log("recv=" + nr_recv + ", sent=" + nr_sent + ", timedout=" + nr_timedout + "\n"); log.testFailed();
log.testFailed(); }
}
else if (nr_recv &gt; nr_sent+3) {
/* Make sure some packets timed out (all from node 4) */ log.log("Error: Received &gt;&gt; Sent!\n");
else if (nr_timedout &lt; 2) { log.log("recv=" + nr_recv + ", sent=" + nr_sent + ", timedout=" + nr_timedout + "\n");
log.log("Error: Too few packets timed out!\n"); log.testFailed();
log.log("recv=" + nr_recv + ", sent=" + nr_sent + ", timedout=" + nr_timedout + "\n"); }
log.testFailed();
} /* Make sure some packets timed out (all from node 4) */
else if (nr_timedout &lt; 2) {
else { log.log("Error: Too few packets timed out!\n");
log.log("recv=" + nr_recv + ", sent=" + nr_sent + ", timedout=" + nr_timedout + "\n"); log.log("recv=" + nr_recv + ", sent=" + nr_sent + ", timedout=" + nr_timedout + "\n");
log.testOK(); log.testFailed();
}</script> }
<active>true</active>
</plugin_config> else {
<width>503</width> log.log("recv=" + nr_recv + ", sent=" + nr_sent + ", timedout=" + nr_timedout + "\n");
<z>3</z> log.testOK();
<height>643</height> }</script>
<location_x>539</location_x> <active>true</active>
<location_y>1</location_y> </plugin_config>
<minimized>false</minimized> <width>503</width>
</plugin> <z>3</z>
</simconf> <height>643</height>
<location_x>539</location_x>
<location_y>1</location_y>
</plugin>
</simconf>

View file

@ -1,263 +1,256 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<simconf> <simconf>
<project>../apps/mrm</project> <project EXPORT="discard">[APPS_DIR]/mrm</project>
<project>../apps/mspsim</project> <project EXPORT="discard">[APPS_DIR]/mspsim</project>
<project>../apps/avrora</project> <project EXPORT="discard">[APPS_DIR]/avrora</project>
<project>../apps/native_gateway</project> <project EXPORT="discard">[APPS_DIR]/serial_socket</project>
<simulation> <project EXPORT="discard">[APPS_DIR]/collect-view</project>
<title>My simulation</title> <project EXPORT="discard">[APPS_DIR]/powertracker</project>
<delaytime>0</delaytime> <simulation>
<randomseed>generated</randomseed> <title>My simulation</title>
<motedelay_us>1000000</motedelay_us> <randomseed>generated</randomseed>
<radiomedium> <motedelay_us>1000000</motedelay_us>
org.contikios.cooja.radiomediums.UDGM <radiomedium>
<transmitting_range>41.0</transmitting_range> org.contikios.cooja.radiomediums.UDGM
<interference_range>55.0</interference_range> <transmitting_range>41.0</transmitting_range>
<success_ratio_tx>1.0</success_ratio_tx> <interference_range>55.0</interference_range>
<success_ratio_rx>1.0</success_ratio_rx> <success_ratio_tx>1.0</success_ratio_tx>
</radiomedium> <success_ratio_rx>1.0</success_ratio_rx>
<motetype> </radiomedium>
org.contikios.cooja.mspmote.SkyMoteType <events>
<identifier>sky1</identifier> <logoutput>40000</logoutput>
<description>Sky Mote Type #1</description> </events>
<source>[CONTIKI_DIR]/examples/rime/example-trickle.c</source> <motetype>
<commands>make clean TARGET=sky org.contikios.cooja.mspmote.SkyMoteType
make example-trickle.sky TARGET=sky</commands> <identifier>sky1</identifier>
<firmware>[CONTIKI_DIR]/examples/rime/example-trickle.sky</firmware> <description>Sky Mote Type #1</description>
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> <source EXPORT="discard">[CONTIKI_DIR]/examples/rime/example-trickle.c</source>
<moteinterface>org.contikios.cooja.interfaces.IPAddress</moteinterface> <commands EXPORT="discard">make clean TARGET=sky
<moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface> make example-trickle.sky TARGET=sky</commands>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspClock</moteinterface> <firmware EXPORT="copy">[CONTIKI_DIR]/examples/rime/example-trickle.sky</firmware>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspMoteID</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface> <moteinterface>org.contikios.cooja.interfaces.IPAddress</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyByteRadio</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspClock</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkySerial</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspMoteID</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface>
</motetype> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface>
<mote> <moteinterface>org.contikios.cooja.mspmote.interfaces.Msp802154Radio</moteinterface>
org.contikios.cooja.mspmote.SkyMote <moteinterface>org.contikios.cooja.mspmote.interfaces.MspSerial</moteinterface>
<motetype_identifier>sky1</motetype_identifier> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface>
<breakpoints /> </motetype>
<interface_config> <mote>
org.contikios.cooja.interfaces.Position <breakpoints />
<x>21.25615651441164</x> <interface_config>
<y>15.906616513243888</y> org.contikios.cooja.interfaces.Position
<z>0.0</z> <x>21.25615651441164</x>
</interface_config> <y>15.906616513243888</y>
<interface_config> <z>0.0</z>
org.contikios.cooja.mspmote.interfaces.MspMoteID </interface_config>
<id>1</id> <interface_config>
</interface_config> org.contikios.cooja.mspmote.interfaces.MspMoteID
</mote> <id>1</id>
<mote> </interface_config>
org.contikios.cooja.mspmote.SkyMote <motetype_identifier>sky1</motetype_identifier>
<motetype_identifier>sky1</motetype_identifier> </mote>
<breakpoints /> <mote>
<interface_config> <breakpoints />
org.contikios.cooja.interfaces.Position <interface_config>
<x>29.258648178869528</x> org.contikios.cooja.interfaces.Position
<y>64.81243553163958</y> <x>29.258648178869528</x>
<z>0.0</z> <y>64.81243553163958</y>
</interface_config> <z>0.0</z>
<interface_config> </interface_config>
org.contikios.cooja.mspmote.interfaces.MspMoteID <interface_config>
<id>2</id> org.contikios.cooja.mspmote.interfaces.MspMoteID
</interface_config> <id>2</id>
</mote> </interface_config>
<mote> <motetype_identifier>sky1</motetype_identifier>
org.contikios.cooja.mspmote.SkyMote </mote>
<motetype_identifier>sky1</motetype_identifier> <mote>
<breakpoints /> <breakpoints />
<interface_config> <interface_config>
org.contikios.cooja.interfaces.Position org.contikios.cooja.interfaces.Position
<x>53.58390840870132</x> <x>53.58390840870132</x>
<y>99.01827951434828</y> <y>99.01827951434828</y>
<z>0.0</z> <z>0.0</z>
</interface_config> </interface_config>
<interface_config> <interface_config>
org.contikios.cooja.mspmote.interfaces.MspMoteID org.contikios.cooja.mspmote.interfaces.MspMoteID
<id>3</id> <id>3</id>
</interface_config> </interface_config>
</mote> <motetype_identifier>sky1</motetype_identifier>
<mote> </mote>
org.contikios.cooja.mspmote.SkyMote <mote>
<motetype_identifier>sky1</motetype_identifier> <breakpoints />
<breakpoints /> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.interfaces.Position <x>4.089137066756255</x>
<x>4.089137066756255</x> <y>57.26244252237209</y>
<y>57.26244252237209</y> <z>0.0</z>
<z>0.0</z> </interface_config>
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.mspmote.interfaces.MspMoteID
org.contikios.cooja.mspmote.interfaces.MspMoteID <id>4</id>
<id>4</id> </interface_config>
</interface_config> <motetype_identifier>sky1</motetype_identifier>
</mote> </mote>
<mote> <mote>
org.contikios.cooja.mspmote.SkyMote <breakpoints />
<motetype_identifier>sky1</motetype_identifier> <interface_config>
<breakpoints /> org.contikios.cooja.interfaces.Position
<interface_config> <x>84.2311285004563</x>
org.contikios.cooja.interfaces.Position <y>14.6212837520458</y>
<x>84.2311285004563</x> <z>0.0</z>
<y>14.6212837520458</y> </interface_config>
<z>0.0</z> <interface_config>
</interface_config> org.contikios.cooja.mspmote.interfaces.MspMoteID
<interface_config> <id>5</id>
org.contikios.cooja.mspmote.interfaces.MspMoteID </interface_config>
<id>5</id> <motetype_identifier>sky1</motetype_identifier>
</interface_config> </mote>
</mote> <mote>
<mote> <breakpoints />
org.contikios.cooja.mspmote.SkyMote <interface_config>
<motetype_identifier>sky1</motetype_identifier> org.contikios.cooja.interfaces.Position
<breakpoints /> <x>40.97868508483131</x>
<interface_config> <y>69.00112748842623</y>
org.contikios.cooja.interfaces.Position <z>0.0</z>
<x>40.97868508483131</x> </interface_config>
<y>69.00112748842623</y> <interface_config>
<z>0.0</z> org.contikios.cooja.mspmote.interfaces.MspMoteID
</interface_config> <id>6</id>
<interface_config> </interface_config>
org.contikios.cooja.mspmote.interfaces.MspMoteID <motetype_identifier>sky1</motetype_identifier>
<id>6</id> </mote>
</interface_config> <mote>
</mote> <breakpoints />
<mote> <interface_config>
org.contikios.cooja.mspmote.SkyMote org.contikios.cooja.interfaces.Position
<motetype_identifier>sky1</motetype_identifier> <x>34.348646576361716</x>
<breakpoints /> <y>33.331938472933615</y>
<interface_config> <z>0.0</z>
org.contikios.cooja.interfaces.Position </interface_config>
<x>34.348646576361716</x> <interface_config>
<y>33.331938472933615</y> org.contikios.cooja.mspmote.interfaces.MspMoteID
<z>0.0</z> <id>7</id>
</interface_config> </interface_config>
<interface_config> <motetype_identifier>sky1</motetype_identifier>
org.contikios.cooja.mspmote.interfaces.MspMoteID </mote>
<id>7</id> <mote>
</interface_config> <breakpoints />
</mote> <interface_config>
<mote> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.SkyMote <x>76.46661251540715</x>
<motetype_identifier>sky1</motetype_identifier> <y>62.393168145801916</y>
<breakpoints /> <z>0.0</z>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Position <interface_config>
<x>76.46661251540715</x> org.contikios.cooja.mspmote.interfaces.MspMoteID
<y>62.393168145801916</y> <id>8</id>
<z>0.0</z> </interface_config>
</interface_config> <motetype_identifier>sky1</motetype_identifier>
<interface_config> </mote>
org.contikios.cooja.mspmote.interfaces.MspMoteID <mote>
<id>8</id> <breakpoints />
</interface_config> <interface_config>
</mote> org.contikios.cooja.interfaces.Position
<mote> <x>87.91615665417679</x>
org.contikios.cooja.mspmote.SkyMote <y>41.2939192052263</y>
<motetype_identifier>sky1</motetype_identifier> <z>0.0</z>
<breakpoints /> </interface_config>
<interface_config> <interface_config>
org.contikios.cooja.interfaces.Position org.contikios.cooja.mspmote.interfaces.MspMoteID
<x>87.91615665417679</x> <id>9</id>
<y>41.2939192052263</y> </interface_config>
<z>0.0</z> <motetype_identifier>sky1</motetype_identifier>
</interface_config> </mote>
<interface_config> <mote>
org.contikios.cooja.mspmote.interfaces.MspMoteID <breakpoints />
<id>9</id> <interface_config>
</interface_config> org.contikios.cooja.interfaces.Position
</mote> <x>25.396991214895582</x>
<mote> <y>87.22076662391413</y>
org.contikios.cooja.mspmote.SkyMote <z>0.0</z>
<motetype_identifier>sky1</motetype_identifier> </interface_config>
<breakpoints /> <interface_config>
<interface_config> org.contikios.cooja.mspmote.interfaces.MspMoteID
org.contikios.cooja.interfaces.Position <id>10</id>
<x>25.396991214895582</x> </interface_config>
<y>87.22076662391413</y> <motetype_identifier>sky1</motetype_identifier>
<z>0.0</z> </mote>
</interface_config> </simulation>
<interface_config> <plugin>
org.contikios.cooja.mspmote.interfaces.MspMoteID org.contikios.cooja.plugins.Visualizer
<id>10</id> <plugin_config>
</interface_config> <skin>org.contikios.cooja.plugins.skins.IDVisualizerSkin</skin>
</mote> <skin>org.contikios.cooja.plugins.skins.UDGMVisualizerSkin</skin>
</simulation> <viewport>1.2387343127698363 0.0 0.0 1.2387343127698363 92.01494285570652 -13.3846131531305</viewport>
<plugin> </plugin_config>
org.contikios.cooja.plugins.Visualizer <width>310</width>
<plugin_config> <z>2</z>
<skin>Mote IDs</skin> <height>169</height>
<skin>Radio environment (UDGM)</skin> <location_x>2</location_x>
</plugin_config> <location_y>199</location_y>
<width>310</width> </plugin>
<z>2</z> <plugin>
<height>169</height> org.contikios.cooja.plugins.SimControl
<location_x>2</location_x> <width>313</width>
<location_y>199</location_y> <z>3</z>
<minimized>false</minimized> <height>199</height>
</plugin> <location_x>1</location_x>
<plugin> <location_y>0</location_y>
org.contikios.cooja.plugins.SimControl </plugin>
<width>313</width> <plugin>
<z>3</z> org.contikios.cooja.plugins.LogListener
<height>199</height> <plugin_config>
<location_x>1</location_x> <filter />
<location_y>0</location_y> <formatted_time />
<minimized>false</minimized> <coloring />
</plugin> </plugin_config>
<plugin> <width>310</width>
org.contikios.cooja.plugins.LogListener <z>1</z>
<plugin_config> <height>331</height>
<filter /> <location_x>3</location_x>
</plugin_config> <location_y>368</location_y>
<width>310</width> </plugin>
<z>1</z> <plugin>
<height>331</height> org.contikios.cooja.plugins.ScriptRunner
<location_x>3</location_x> <plugin_config>
<location_y>368</location_y> <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"));
<minimized>false</minimized>
</plugin> nr_packets = new Array();
<plugin> for (i=1; i &lt;= 10; i++) {
org.contikios.cooja.plugins.ScriptRunner nr_packets[i] = 0;
<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"));
WAIT_UNTIL(id == 1 &amp;&amp; msg.contains('Starting'));
nr_packets = new Array(); GENERATE_MSG(1000, "continue");
for (i=1; i &lt;= 10; i++) { YIELD_THEN_WAIT_UNTIL(msg.equals("continue"));
nr_packets[i] = 0; log.log("Node 1 started. Clicking node button.\n");
} mote.getInterfaces().getButton().clickButton()
WAIT_UNTIL(id == 1 &amp;&amp; msg.contains('Starting')); while (true) {
GENERATE_MSG(1000, "continue"); /* Only handle receive messages */
YIELD_THEN_WAIT_UNTIL(msg.equals("continue")); YIELD_THEN_WAIT_UNTIL(msg.contains('received'));
log.log("Node 1 started. Clicking node button.\n");
mote.getInterfaces().getButton().clickButton() /* Remember receiving node */
log.log(id + " received a message\n");
while (true) { nr_packets[id]++;
/* Only handle receive messages */
YIELD_THEN_WAIT_UNTIL(msg.contains('received')); /* Did all nodes (2-10) receive a message? */
for (i = 2; i &lt;= 10; i++) {
/* Remember receiving node */ if (nr_packets[i] &lt; 1) break;
log.log(id + " received a message\n"); if (i == 10) log.testOK(); /* Report test success */
nr_packets[id]++; }
}</script>
/* Did all nodes (2-10) receive a message? */ <active>true</active>
for (i = 2; i &lt;= 10; i++) { </plugin_config>
if (nr_packets[i] &lt; 1) break; <width>600</width>
if (i == 10) log.testOK(); /* Report test success */ <z>0</z>
} <height>700</height>
}</script> <location_x>314</location_x>
<active>true</active> <location_y>0</location_y>
</plugin_config> </plugin>
<width>600</width> </simconf>
<z>0</z>
<height>700</height>
<location_x>314</location_x>
<location_y>0</location_y>
<minimized>false</minimized>
</plugin>
</simconf>

View file

@ -1,252 +1,245 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<simconf> <simconf>
<project>../apps/mrm</project> <project EXPORT="discard">[APPS_DIR]/mrm</project>
<project>../apps/mspsim</project> <project EXPORT="discard">[APPS_DIR]/mspsim</project>
<project>../apps/avrora</project> <project EXPORT="discard">[APPS_DIR]/avrora</project>
<project>../apps/native_gateway</project> <project EXPORT="discard">[APPS_DIR]/serial_socket</project>
<simulation> <project EXPORT="discard">[APPS_DIR]/collect-view</project>
<title>My simulation</title> <project EXPORT="discard">[APPS_DIR]/powertracker</project>
<delaytime>0</delaytime> <simulation>
<randomseed>generated</randomseed> <title>My simulation</title>
<motedelay_us>10000000</motedelay_us> <randomseed>generated</randomseed>
<radiomedium> <motedelay_us>10000000</motedelay_us>
org.contikios.cooja.radiomediums.UDGM <radiomedium>
<transmitting_range>30.0</transmitting_range> org.contikios.cooja.radiomediums.UDGM
<interference_range>40.0</interference_range> <transmitting_range>30.0</transmitting_range>
<success_ratio_tx>0.9</success_ratio_tx> <interference_range>40.0</interference_range>
<success_ratio_rx>0.9</success_ratio_rx> <success_ratio_tx>0.9</success_ratio_tx>
</radiomedium> <success_ratio_rx>0.9</success_ratio_rx>
<motetype> </radiomedium>
org.contikios.cooja.mspmote.SkyMoteType <events>
<identifier>sky1</identifier> <logoutput>40000</logoutput>
<description>Sky Mote Type #1</description> </events>
<source>[CONTIKI_DIR]/examples/sky/sky-collect.c</source> <motetype>
<commands>make clean TARGET=sky org.contikios.cooja.mspmote.SkyMoteType
make sky-collect.sky TARGET=sky</commands> <identifier>sky1</identifier>
<firmware>[CONTIKI_DIR]/examples/sky/sky-collect.sky</firmware> <description>Sky Mote Type #1</description>
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> <source EXPORT="discard">[CONTIKI_DIR]/examples/sky/sky-collect.c</source>
<moteinterface>org.contikios.cooja.interfaces.IPAddress</moteinterface> <commands EXPORT="discard">make clean TARGET=sky
<moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface> make sky-collect.sky TARGET=sky</commands>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspClock</moteinterface> <firmware EXPORT="copy">[CONTIKI_DIR]/examples/sky/sky-collect.sky</firmware>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspMoteID</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface> <moteinterface>org.contikios.cooja.interfaces.IPAddress</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyByteRadio</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspClock</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkySerial</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspMoteID</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface>
</motetype> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface>
<mote> <moteinterface>org.contikios.cooja.mspmote.interfaces.Msp802154Radio</moteinterface>
org.contikios.cooja.mspmote.SkyMote <moteinterface>org.contikios.cooja.mspmote.interfaces.MspSerial</moteinterface>
<motetype_identifier>sky1</motetype_identifier> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface>
<breakpoints /> </motetype>
<interface_config> <mote>
org.contikios.cooja.interfaces.Position <breakpoints />
<x>9.333811152651393</x> <interface_config>
<y>89.28114548870677</y> org.contikios.cooja.interfaces.Position
<z>0.0</z> <x>9.333811152651393</x>
</interface_config> <y>89.28114548870677</y>
<interface_config> <z>0.0</z>
org.contikios.cooja.mspmote.interfaces.MspMoteID </interface_config>
<id>1</id> <interface_config>
</interface_config> org.contikios.cooja.mspmote.interfaces.MspMoteID
</mote> <id>1</id>
<mote> </interface_config>
org.contikios.cooja.mspmote.SkyMote <motetype_identifier>sky1</motetype_identifier>
<motetype_identifier>sky1</motetype_identifier> </mote>
<breakpoints /> <mote>
<interface_config> <breakpoints />
org.contikios.cooja.interfaces.Position <interface_config>
<x>33.040227185226826</x> org.contikios.cooja.interfaces.Position
<y>54.184283361563054</y> <x>33.040227185226826</x>
<z>0.0</z> <y>54.184283361563054</y>
</interface_config> <z>0.0</z>
<interface_config> </interface_config>
org.contikios.cooja.mspmote.interfaces.MspMoteID <interface_config>
<id>2</id> org.contikios.cooja.mspmote.interfaces.MspMoteID
</interface_config> <id>2</id>
</mote> </interface_config>
<mote> <motetype_identifier>sky1</motetype_identifier>
org.contikios.cooja.mspmote.SkyMote </mote>
<motetype_identifier>sky1</motetype_identifier> <mote>
<breakpoints /> <breakpoints />
<interface_config> <interface_config>
org.contikios.cooja.interfaces.Position org.contikios.cooja.interfaces.Position
<x>-2.2559922410521516</x> <x>-2.2559922410521516</x>
<y>50.71648775308175</y> <y>50.71648775308175</y>
<z>0.0</z> <z>0.0</z>
</interface_config> </interface_config>
<interface_config> <interface_config>
org.contikios.cooja.mspmote.interfaces.MspMoteID org.contikios.cooja.mspmote.interfaces.MspMoteID
<id>3</id> <id>3</id>
</interface_config> </interface_config>
</mote> <motetype_identifier>sky1</motetype_identifier>
<mote> </mote>
org.contikios.cooja.mspmote.SkyMote <mote>
<motetype_identifier>sky1</motetype_identifier> <breakpoints />
<breakpoints /> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.interfaces.Position <x>12.959353575718179</x>
<x>12.959353575718179</x> <y>43.874396471224806</y>
<y>43.874396471224806</y> <z>0.0</z>
<z>0.0</z> </interface_config>
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.mspmote.interfaces.MspMoteID
org.contikios.cooja.mspmote.interfaces.MspMoteID <id>4</id>
<id>4</id> </interface_config>
</interface_config> <motetype_identifier>sky1</motetype_identifier>
</mote> </mote>
<mote> <mote>
org.contikios.cooja.mspmote.SkyMote <breakpoints />
<motetype_identifier>sky1</motetype_identifier> <interface_config>
<breakpoints /> org.contikios.cooja.interfaces.Position
<interface_config> <x>15.917348901177405</x>
org.contikios.cooja.interfaces.Position <y>66.93526904376517</y>
<x>15.917348901177405</x> <z>0.0</z>
<y>66.93526904376517</y> </interface_config>
<z>0.0</z> <interface_config>
</interface_config> org.contikios.cooja.mspmote.interfaces.MspMoteID
<interface_config> <id>5</id>
org.contikios.cooja.mspmote.interfaces.MspMoteID </interface_config>
<id>5</id> <motetype_identifier>sky1</motetype_identifier>
</interface_config> </mote>
</mote> <mote>
<mote> <breakpoints />
org.contikios.cooja.mspmote.SkyMote <interface_config>
<motetype_identifier>sky1</motetype_identifier> org.contikios.cooja.interfaces.Position
<breakpoints /> <x>26.735174243053933</x>
<interface_config> <y>35.939375910459084</y>
org.contikios.cooja.interfaces.Position <z>0.0</z>
<x>26.735174243053933</x> </interface_config>
<y>35.939375910459084</y> <interface_config>
<z>0.0</z> org.contikios.cooja.mspmote.interfaces.MspMoteID
</interface_config> <id>6</id>
<interface_config> </interface_config>
org.contikios.cooja.mspmote.interfaces.MspMoteID <motetype_identifier>sky1</motetype_identifier>
<id>6</id> </mote>
</interface_config> <mote>
</mote> <breakpoints />
<mote> <interface_config>
org.contikios.cooja.mspmote.SkyMote org.contikios.cooja.interfaces.Position
<motetype_identifier>sky1</motetype_identifier> <x>41.5254792748469</x>
<breakpoints /> <y>28.370611308140152</y>
<interface_config> <z>0.0</z>
org.contikios.cooja.interfaces.Position </interface_config>
<x>41.5254792748469</x> <interface_config>
<y>28.370611308140152</y> org.contikios.cooja.mspmote.interfaces.MspMoteID
<z>0.0</z> <id>7</id>
</interface_config> </interface_config>
<interface_config> <motetype_identifier>sky1</motetype_identifier>
org.contikios.cooja.mspmote.interfaces.MspMoteID </mote>
<id>7</id> </simulation>
</interface_config> <plugin>
</mote> org.contikios.cooja.plugins.SimControl
</simulation> <width>265</width>
<plugin> <z>3</z>
org.contikios.cooja.plugins.SimControl <height>200</height>
<width>265</width> <location_x>0</location_x>
<z>3</z> <location_y>0</location_y>
<height>200</height> </plugin>
<location_x>0</location_x> <plugin>
<location_y>0</location_y> org.contikios.cooja.plugins.Visualizer
<minimized>false</minimized> <plugin_config>
</plugin> <skin>org.contikios.cooja.plugins.skins.IDVisualizerSkin</skin>
<plugin> <skin>org.contikios.cooja.plugins.skins.UDGMVisualizerSkin</skin>
org.contikios.cooja.plugins.Visualizer <viewport>1.9551775516837413 0.0 0.0 1.9551775516837413 87.61059024269439 -50.01503690267507</viewport>
<plugin_config> </plugin_config>
<skin>Mote IDs</skin> <width>264</width>
<skin>Radio environment (UDGM)</skin> <z>1</z>
</plugin_config> <height>185</height>
<width>264</width> <location_x>0</location_x>
<z>1</z> <location_y>200</location_y>
<height>185</height> </plugin>
<location_x>0</location_x> <plugin>
<location_y>200</location_y> org.contikios.cooja.plugins.ScriptRunner
<minimized>false</minimized> <plugin_config>
</plugin> <script>TIMEOUT(300000, log.log("received/node: " + count[1] + " " + count[2] + " " + count[3] + " " + count[4] + " " + count[5] + " " + count[6] + " " + count[7] + "\n"));
<plugin>
org.contikios.cooja.plugins.ScriptRunner /* Conf. */
<plugin_config> booted = new Array();
<script>TIMEOUT(300000, log.log("received/node: " + count[1] + " " + count[2] + " " + count[3] + " " + count[4] + " " + count[5] + " " + count[6] + " " + count[7] + "\n")); count = new Array();
nrNodes = 7;
/* Conf. */ nodes_starting = true;
booted = new Array(); for (i = 1; i &lt;= nrNodes; i++) {
count = new Array(); booted[i] = false;
nrNodes = 7; count[i] = 0;
nodes_starting = true; }
for (i = 1; i &lt;= nrNodes; i++) {
booted[i] = false; /* Wait until all nodes have started */
count[i] = 0; while (nodes_starting) {
} YIELD_THEN_WAIT_UNTIL(msg.startsWith('Starting'));
/* Wait until all nodes have started */ log.log("Node " + id + " booted\n");
while (nodes_starting) { booted[id] = true;
YIELD_THEN_WAIT_UNTIL(msg.startsWith('Starting'));
for (i = 1; i &lt;= nrNodes; i++) {
log.log("Node " + id + " booted\n"); if (!booted[i]) break;
booted[id] = true; if (i == nrNodes) nodes_starting = false;
}
for (i = 1; i &lt;= nrNodes; i++) { }
if (!booted[i]) break;
if (i == nrNodes) nodes_starting = false; /* Create sink */
} log.log("All nodes booted, creating sink at node " + id + "\n");
} mote.getInterfaces().getButton().clickButton()
/* Create sink */ while (true) {
log.log("All nodes booted, creating sink at node " + id + "\n"); YIELD();
mote.getInterfaces().getButton().clickButton()
/* Count sensor data packets */
while (true) { source = msg.split(" ")[0];
YIELD(); count[source]++;
log.log("Got data from node " + source + ": tot=" + count[source] + "\n");
/* Count sensor data packets */
source = msg.split(" ")[0]; /* Fail if any node has transmitted more than 20 packets */
count[source]++; for (i = 1; i &lt;= nrNodes; i++) {
log.log("Got data from node " + source + ": tot=" + count[source] + "\n"); if (count[i] &gt; 20) {
log.log("received/node: " + count[1] + " " + count[2] + " " + count[3] + " " + count[4] + " " + count[5] + " " + count[6] + " " + count[7] + "\n");
/* Fail if any node has transmitted more than 20 packets */ log.testFailed(); /* We are done! */
for (i = 1; i &lt;= nrNodes; i++) { }
if (count[i] &gt; 20) { }
log.log("received/node: " + count[1] + " " + count[2] + " " + count[3] + " " + count[4] + " " + count[5] + " " + count[6] + " " + count[7] + "\n");
log.testFailed(); /* We are done! */ /* Wait until we have received data from all nodes */
} for (i = 1; i &lt;= nrNodes; i++) {
} if (count[i] &lt; 5) break;
if (i == nrNodes) log.testOK();
/* Wait until we have received data from all nodes */ }
for (i = 1; i &lt;= nrNodes; i++) {
if (count[i] &lt; 5) break; }</script>
if (i == nrNodes) log.testOK(); <active>true</active>
} </plugin_config>
<width>600</width>
}</script> <z>2</z>
<active>true</active> <height>385</height>
</plugin_config> <location_x>266</location_x>
<width>600</width> <location_y>0</location_y>
<z>2</z> </plugin>
<height>385</height> <plugin>
<location_x>266</location_x> org.contikios.cooja.plugins.TimeLine
<location_y>0</location_y> <plugin_config>
<minimized>false</minimized> <mote>0</mote>
</plugin> <mote>1</mote>
<plugin> <mote>2</mote>
org.contikios.cooja.plugins.TimeLine <mote>3</mote>
<plugin_config> <mote>4</mote>
<mote>0</mote> <mote>5</mote>
<mote>1</mote> <mote>6</mote>
<mote>2</mote> <showRadioRXTX />
<mote>3</mote> <zoomfactor>500.0</zoomfactor>
<mote>4</mote> </plugin_config>
<mote>5</mote> <width>866</width>
<mote>6</mote> <z>0</z>
<showRadioRXTX /> <height>152</height>
<split>109</split> <location_x>0</location_x>
<zoom>9</zoom> <location_y>384</location_y>
</plugin_config> </plugin>
<width>866</width> </simconf>
<z>0</z>
<height>152</height>
<location_x>0</location_x>
<location_y>384</location_y>
<minimized>false</minimized>
</plugin>
</simconf>

View file

@ -1,441 +1,447 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<simconf> <simconf>
<simulation> <project EXPORT="discard">[APPS_DIR]/mrm</project>
<title>My simulation</title> <project EXPORT="discard">[APPS_DIR]/mspsim</project>
<delaytime>0</delaytime> <project EXPORT="discard">[APPS_DIR]/avrora</project>
<randomseed>generated</randomseed> <project EXPORT="discard">[APPS_DIR]/serial_socket</project>
<motedelay_us>1000000</motedelay_us> <project EXPORT="discard">[APPS_DIR]/collect-view</project>
<radiomedium> <project EXPORT="discard">[APPS_DIR]/powertracker</project>
org.contikios.cooja.radiomediums.UDGM <simulation>
<transmitting_range>50.0</transmitting_range> <title>My simulation</title>
<interference_range>50.0</interference_range> <randomseed>generated</randomseed>
<success_ratio_tx>1.0</success_ratio_tx> <motedelay_us>1000000</motedelay_us>
<success_ratio_rx>1.0</success_ratio_rx> <radiomedium>
</radiomedium> org.contikios.cooja.radiomediums.UDGM
<events> <transmitting_range>50.0</transmitting_range>
<logoutput>400000</logoutput> <interference_range>50.0</interference_range>
</events> <success_ratio_tx>1.0</success_ratio_tx>
<motetype> <success_ratio_rx>1.0</success_ratio_rx>
org.contikios.cooja.mspmote.SkyMoteType </radiomedium>
<identifier>sky1</identifier> <events>
<description>Sky Mote Type #1</description> <logoutput>400000</logoutput>
<source EXPORT="discard">[CONTIKI_DIR]/examples/rime/example-collect.c</source> </events>
<commands EXPORT="discard">make clean TARGET=sky <motetype>
make example-collect.sky TARGET=sky</commands> org.contikios.cooja.mspmote.SkyMoteType
<firmware EXPORT="copy">[CONTIKI_DIR]/examples/rime/example-collect.sky</firmware> <identifier>sky1</identifier>
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> <description>Sky Mote Type #1</description>
<moteinterface>org.contikios.cooja.interfaces.IPAddress</moteinterface> <source EXPORT="discard">[CONTIKI_DIR]/examples/rime/example-collect.c</source>
<moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface> <commands EXPORT="discard">make clean TARGET=sky
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspClock</moteinterface> make example-collect.sky TARGET=sky</commands>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspMoteID</moteinterface> <firmware EXPORT="copy">[CONTIKI_DIR]/examples/rime/example-collect.sky</firmware>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface> <moteinterface>org.contikios.cooja.interfaces.IPAddress</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyByteRadio</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspSerial</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspClock</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspMoteID</moteinterface>
<moteinterface>org.contikios.cooja.interfaces.RimeAddress</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface>
<moteinterface>org.contikios.cooja.interfaces.MoteAttributes</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyCoffeeFilesystem</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.Msp802154Radio</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspDebugOutput</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspSerial</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyTemperature</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface>
</motetype> <moteinterface>org.contikios.cooja.interfaces.RimeAddress</moteinterface>
<mote> <moteinterface>org.contikios.cooja.interfaces.MoteAttributes</moteinterface>
<breakpoints /> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyCoffeeFilesystem</moteinterface>
<interface_config> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspDebugOutput</moteinterface>
org.contikios.cooja.interfaces.Position <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyTemperature</moteinterface>
<x>87.29845932913939</x> </motetype>
<y>60.286214311723164</y> <mote>
<z>0.0</z> <breakpoints />
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.interfaces.MspMoteID <x>87.29845932913939</x>
<id>1</id> <y>60.286214311723164</y>
</interface_config> <z>0.0</z>
<motetype_identifier>sky1</motetype_identifier> </interface_config>
</mote> <interface_config>
<mote> org.contikios.cooja.mspmote.interfaces.MspMoteID
<breakpoints /> <id>1</id>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Position <motetype_identifier>sky1</motetype_identifier>
<x>94.30809966340686</x> </mote>
<y>22.50388779326399</y> <mote>
<z>0.0</z> <breakpoints />
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.interfaces.MspMoteID <x>94.30809966340686</x>
<id>2</id> <y>22.50388779326399</y>
</interface_config> <z>0.0</z>
<motetype_identifier>sky1</motetype_identifier> </interface_config>
</mote> <interface_config>
<mote> org.contikios.cooja.mspmote.interfaces.MspMoteID
<breakpoints /> <id>2</id>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Position <motetype_identifier>sky1</motetype_identifier>
<x>82.40423567500785</x> </mote>
<y>39.56979106929553</y> <mote>
<z>0.0</z> <breakpoints />
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.interfaces.MspMoteID <x>82.40423567500785</x>
<id>3</id> <y>39.56979106929553</y>
</interface_config> <z>0.0</z>
<motetype_identifier>sky1</motetype_identifier> </interface_config>
</mote> <interface_config>
<mote> org.contikios.cooja.mspmote.interfaces.MspMoteID
<breakpoints /> <id>3</id>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Position <motetype_identifier>sky1</motetype_identifier>
<x>26.185019854469438</x> </mote>
<y>4.800834369523899</y> <mote>
<z>0.0</z> <breakpoints />
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.interfaces.MspMoteID <x>26.185019854469438</x>
<id>4</id> <y>4.800834369523899</y>
</interface_config> <z>0.0</z>
<motetype_identifier>sky1</motetype_identifier> </interface_config>
</mote> <interface_config>
<mote> org.contikios.cooja.mspmote.interfaces.MspMoteID
<breakpoints /> <id>4</id>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Position <motetype_identifier>sky1</motetype_identifier>
<x>1.9530156130507015</x> </mote>
<y>78.3175061800706</y> <mote>
<z>0.0</z> <breakpoints />
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.interfaces.MspMoteID <x>1.9530156130507015</x>
<id>5</id> <y>78.3175061800706</y>
</interface_config> <z>0.0</z>
<motetype_identifier>sky1</motetype_identifier> </interface_config>
</mote> <interface_config>
<mote> org.contikios.cooja.mspmote.interfaces.MspMoteID
<breakpoints /> <id>5</id>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Position <motetype_identifier>sky1</motetype_identifier>
<x>48.35216700543414</x> </mote>
<y>80.36988713780997</y> <mote>
<z>0.0</z> <breakpoints />
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.interfaces.MspMoteID <x>48.35216700543414</x>
<id>6</id> <y>80.36988713780997</y>
</interface_config> <z>0.0</z>
<motetype_identifier>sky1</motetype_identifier> </interface_config>
</mote> <interface_config>
<mote> org.contikios.cooja.mspmote.interfaces.MspMoteID
<breakpoints /> <id>6</id>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Position <motetype_identifier>sky1</motetype_identifier>
<x>24.825985087266833</x> </mote>
<y>74.27809432062487</y> <mote>
<z>0.0</z> <breakpoints />
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.interfaces.MspMoteID <x>24.825985087266833</x>
<id>7</id> <y>74.27809432062487</y>
</interface_config> <z>0.0</z>
<motetype_identifier>sky1</motetype_identifier> </interface_config>
</mote> <interface_config>
<mote> org.contikios.cooja.mspmote.interfaces.MspMoteID
<breakpoints /> <id>7</id>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Position <motetype_identifier>sky1</motetype_identifier>
<x>8.356165164293616</x> </mote>
<y>94.33967355724187</y> <mote>
<z>0.0</z> <breakpoints />
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.interfaces.MspMoteID <x>8.356165164293616</x>
<id>8</id> <y>94.33967355724187</y>
</interface_config> <z>0.0</z>
<motetype_identifier>sky1</motetype_identifier> </interface_config>
</mote> <interface_config>
<mote> org.contikios.cooja.mspmote.interfaces.MspMoteID
<breakpoints /> <id>8</id>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Position <motetype_identifier>sky1</motetype_identifier>
<x>45.11740613004886</x> </mote>
<y>31.7059041432301</y> <mote>
<z>0.0</z> <breakpoints />
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.interfaces.MspMoteID <x>45.11740613004886</x>
<id>9</id> <y>31.7059041432301</y>
</interface_config> <z>0.0</z>
<motetype_identifier>sky1</motetype_identifier> </interface_config>
</mote> <interface_config>
<mote> org.contikios.cooja.mspmote.interfaces.MspMoteID
<breakpoints /> <id>9</id>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Position <motetype_identifier>sky1</motetype_identifier>
<x>68.9908548386292</x> </mote>
<y>55.01991960639596</y> <mote>
<z>0.0</z> <breakpoints />
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.interfaces.MspMoteID <x>68.9908548386292</x>
<id>10</id> <y>55.01991960639596</y>
</interface_config> <z>0.0</z>
<motetype_identifier>sky1</motetype_identifier> </interface_config>
</mote> <interface_config>
<mote> org.contikios.cooja.mspmote.interfaces.MspMoteID
<breakpoints /> <id>10</id>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Position <motetype_identifier>sky1</motetype_identifier>
<x>13.181122543889046</x> </mote>
<y>55.9636533130127</y> <mote>
<z>0.0</z> <breakpoints />
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.interfaces.MspMoteID <x>13.181122543889046</x>
<id>11</id> <y>55.9636533130127</y>
</interface_config> <z>0.0</z>
<motetype_identifier>sky1</motetype_identifier> </interface_config>
</mote> <interface_config>
<mote> org.contikios.cooja.mspmote.interfaces.MspMoteID
<breakpoints /> <id>11</id>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Position <motetype_identifier>sky1</motetype_identifier>
<x>2.1749985906538427</x> </mote>
<y>78.39666095789707</y> <mote>
<z>0.0</z> <breakpoints />
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.interfaces.MspMoteID <x>2.1749985906538427</x>
<id>12</id> <y>78.39666095789707</y>
</interface_config> <z>0.0</z>
<motetype_identifier>sky1</motetype_identifier> </interface_config>
</mote> <interface_config>
<mote> org.contikios.cooja.mspmote.interfaces.MspMoteID
<breakpoints /> <id>12</id>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Position <motetype_identifier>sky1</motetype_identifier>
<x>37.79795217518357</x> </mote>
<y>7.164284163506062</y> <mote>
<z>0.0</z> <breakpoints />
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.interfaces.MspMoteID <x>37.79795217518357</x>
<id>13</id> <y>7.164284163506062</y>
</interface_config> <z>0.0</z>
<motetype_identifier>sky1</motetype_identifier> </interface_config>
</mote> <interface_config>
<mote> org.contikios.cooja.mspmote.interfaces.MspMoteID
<breakpoints /> <id>13</id>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Position <motetype_identifier>sky1</motetype_identifier>
<x>64.4595177394984</x> </mote>
<y>72.115414337433</y> <mote>
<z>0.0</z> <breakpoints />
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.interfaces.MspMoteID <x>64.4595177394984</x>
<id>14</id> <y>72.115414337433</y>
</interface_config> <z>0.0</z>
<motetype_identifier>sky1</motetype_identifier> </interface_config>
</mote> <interface_config>
<mote> org.contikios.cooja.mspmote.interfaces.MspMoteID
<breakpoints /> <id>14</id>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Position <motetype_identifier>sky1</motetype_identifier>
<x>81.85663737096085</x> </mote>
<y>89.31412706434035</y> <mote>
<z>0.0</z> <breakpoints />
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.interfaces.MspMoteID <x>81.85663737096085</x>
<id>15</id> <y>89.31412706434035</y>
</interface_config> <z>0.0</z>
<motetype_identifier>sky1</motetype_identifier> </interface_config>
</mote> <interface_config>
<mote> org.contikios.cooja.mspmote.interfaces.MspMoteID
<breakpoints /> <id>15</id>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Position <motetype_identifier>sky1</motetype_identifier>
<x>44.74952276297882</x> </mote>
<y>18.78566116347574</y> <mote>
<z>0.0</z> <breakpoints />
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.interfaces.MspMoteID <x>44.74952276297882</x>
<id>16</id> <y>18.78566116347574</y>
</interface_config> <z>0.0</z>
<motetype_identifier>sky1</motetype_identifier> </interface_config>
</mote> <interface_config>
<mote> org.contikios.cooja.mspmote.interfaces.MspMoteID
<breakpoints /> <id>16</id>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Position <motetype_identifier>sky1</motetype_identifier>
<x>96.11333426285873</x> </mote>
<y>90.64560410751824</y> <mote>
<z>0.0</z> <breakpoints />
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.interfaces.MspMoteID <x>96.11333426285873</x>
<id>17</id> <y>90.64560410751824</y>
</interface_config> <z>0.0</z>
<motetype_identifier>sky1</motetype_identifier> </interface_config>
</mote> <interface_config>
<mote> org.contikios.cooja.mspmote.interfaces.MspMoteID
<breakpoints /> <id>17</id>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Position <motetype_identifier>sky1</motetype_identifier>
<x>21.651464136783527</x> </mote>
<y>7.1381043251259495</y> <mote>
<z>0.0</z> <breakpoints />
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.interfaces.MspMoteID <x>21.651464136783527</x>
<id>18</id> <y>7.1381043251259495</y>
</interface_config> <z>0.0</z>
<motetype_identifier>sky1</motetype_identifier> </interface_config>
</mote> <interface_config>
<mote> org.contikios.cooja.mspmote.interfaces.MspMoteID
<breakpoints /> <id>18</id>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Position <motetype_identifier>sky1</motetype_identifier>
<x>83.6006916200628</x> </mote>
<y>26.97170140682981</y> <mote>
<z>0.0</z> <breakpoints />
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.interfaces.MspMoteID <x>83.6006916200628</x>
<id>19</id> <y>26.97170140682981</y>
</interface_config> <z>0.0</z>
<motetype_identifier>sky1</motetype_identifier> </interface_config>
</mote> <interface_config>
<mote> org.contikios.cooja.mspmote.interfaces.MspMoteID
<breakpoints /> <id>19</id>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Position <motetype_identifier>sky1</motetype_identifier>
<x>1.3446070721664705</x> </mote>
<y>7.340373220385176</y> <mote>
<z>0.0</z> <breakpoints />
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.interfaces.MspMoteID <x>1.3446070721664705</x>
<id>20</id> <y>7.340373220385176</y>
</interface_config> <z>0.0</z>
<motetype_identifier>sky1</motetype_identifier> </interface_config>
</mote> <interface_config>
</simulation> org.contikios.cooja.mspmote.interfaces.MspMoteID
<plugin> <id>20</id>
org.contikios.cooja.plugins.SimControl </interface_config>
<width>247</width> <motetype_identifier>sky1</motetype_identifier>
<z>3</z> </mote>
<height>227</height> </simulation>
<location_x>0</location_x> <plugin>
<location_y>0</location_y> org.contikios.cooja.plugins.SimControl
</plugin> <width>247</width>
<plugin> <z>0</z>
org.contikios.cooja.plugins.Visualizer <height>227</height>
<plugin_config> <location_x>0</location_x>
<skin>org.contikios.cooja.plugins.skins.IDVisualizerSkin</skin> <location_y>0</location_y>
<skin>org.contikios.cooja.plugins.skins.UDGMVisualizerSkin</skin> </plugin>
<viewport>1.685403700540615 0.0 0.0 1.685403700540615 23.872012513439184 -0.545889466623605</viewport> <plugin>
</plugin_config> org.contikios.cooja.plugins.Visualizer
<width>224</width> <plugin_config>
<z>2</z> <skin>org.contikios.cooja.plugins.skins.IDVisualizerSkin</skin>
<height>225</height> <skin>org.contikios.cooja.plugins.skins.UDGMVisualizerSkin</skin>
<location_x>247</location_x> <viewport>1.685403700540615 0.0 0.0 1.685403700540615 23.872012513439184 -0.545889466623605</viewport>
<location_y>1</location_y> </plugin_config>
</plugin> <width>224</width>
<plugin> <z>3</z>
org.contikios.cooja.plugins.LogListener <height>225</height>
<plugin_config> <location_x>247</location_x>
<filter /> <location_y>1</location_y>
<formatted_time /> </plugin>
</plugin_config> <plugin>
<width>469</width> org.contikios.cooja.plugins.LogListener
<z>0</z> <plugin_config>
<height>473</height> <filter />
<location_x>0</location_x> <formatted_time />
<location_y>226</location_y> <coloring />
</plugin> </plugin_config>
<plugin> <width>469</width>
org.contikios.cooja.plugins.ScriptRunner <z>1</z>
<plugin_config> <height>473</height>
<script>TIMEOUT(600000); <location_x>0</location_x>
<location_y>226</location_y>
num_nodes = mote.getSimulation().getMotesCount(); </plugin>
<plugin>
function print_stats() { org.contikios.cooja.plugins.ScriptRunner
log.log("Received:\n"); <plugin_config>
for(i = 1; i &lt;= num_nodes; i++) { <script>TIMEOUT(600000);
log.log("Node " + i + " ");
if(i == sink) { num_nodes = mote.getSimulation().getMotesCount();
log.log("sink\n");
} else { function print_stats() {
log.log("received: " + received[i] + " hops: " + hops[i] + "\n"); log.log("Received:\n");
} for(i = 1; i &lt;= num_nodes; i++) {
} log.log("Node " + i + " ");
} if(i == sink) {
log.log("sink\n");
/* Init */ } else {
sink = 0; log.log("received: " + received[i] + " hops: " + hops[i] + "\n");
hops = new Array(); }
dups = new Array(); }
received = new Array(); }
doubleFormat = new java.text.DecimalFormat("0.00"); /* Init */
integerFormat = new java.text.DecimalFormat("00"); sink = 0;
for(i = 1; i &lt;= num_nodes; i++) { hops = new Array();
received[i] = "__________"; dups = new Array();
hops[i] = received[i]; received = new Array();
}
doubleFormat = new java.text.DecimalFormat("0.00");
log.log("Simulation has " + num_nodes + " nodes\n"); integerFormat = new java.text.DecimalFormat("00");
for(i = 1; i &lt;= num_nodes; i++) {
while(true) { received[i] = "__________";
YIELD(); hops[i] = received[i];
log.log(time + " " + id + " "+ msg + "\n"); }
/* Count sensor data packets */
if(msg.startsWith("Sink got message")) { log.log("Simulation has " + num_nodes + " nodes\n");
node_text = msg.split(" ")[4];
seqno_text = msg.split(" ")[6]; while(true) {
hops_text = msg.split(" ")[8]; YIELD();
if(node_text) { log.log(time + " " + id + " "+ msg + "\n");
source = parseInt(node_text); /* Count sensor data packets */
seqno = parseInt(seqno_text); if(msg.startsWith("Sink got message")) {
hop = parseInt(hops_text); node_text = msg.split(" ")[4];
dups = received[source].substr(seqno, 1); seqno_text = msg.split(" ")[6];
if(dups == "_") { hops_text = msg.split(" ")[8];
dups = 1; if(node_text) {
} else if(dups &lt; 9) { source = parseInt(node_text);
dups++; seqno = parseInt(seqno_text);
} hop = parseInt(hops_text);
received[source] = received[source].substr(0, seqno) + dups + dups = received[source].substr(seqno, 1);
received[source].substr(seqno + 1, 10 - seqno); if(dups == "_") {
dups = 1;
if(hop &gt; 9) { } else if(dups &lt; 9) {
hop = "+"; dups++;
} }
hops[source] = hops[source].substr(0, seqno) + hop + received[source] = received[source].substr(0, seqno) + dups +
hops[source].substr(seqno + 1, 10 - seqno); received[source].substr(seqno + 1, 10 - seqno);
print_stats();
} if(hop &gt; 9) {
} hop = "+";
/* Signal OK if all nodes have reported 10 messages. */ }
num_reported = 0; hops[source] = hops[source].substr(0, seqno) + hop +
for(i = 1; i &lt;= num_nodes; i++) { hops[source].substr(seqno + 1, 10 - seqno);
if(!isNaN(received[i])) { print_stats();
num_reported++; }
} }
} /* Signal OK if all nodes have reported 10 messages. */
num_reported = 0;
if(num_reported == num_nodes) { for(i = 1; i &lt;= num_nodes; i++) {
print_stats(); if(!isNaN(received[i])) {
log.testOK(); num_reported++;
} }
}</script> }
<active>true</active>
</plugin_config> if(num_reported == num_nodes) {
<width>600</width> print_stats();
<z>1</z> log.testOK();
<height>700</height> }
<location_x>469</location_x> }</script>
<location_y>0</location_y> <active>true</active>
</plugin> </plugin_config>
</simconf> <width>600</width>
<z>2</z>
<height>700</height>
<location_x>469</location_x>
<location_y>0</location_y>
</plugin>
</simconf>

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,14 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<simconf> <simconf>
<project EXPORT="discard">[CONTIKI_DIR]/tools/cooja/apps/mrm</project> <project EXPORT="discard">[APPS_DIR]/mrm</project>
<project EXPORT="discard">[CONTIKI_DIR]/tools/cooja/apps/mspsim</project> <project EXPORT="discard">[APPS_DIR]/mspsim</project>
<project EXPORT="discard">[CONTIKI_DIR]/tools/cooja/apps/avrora</project> <project EXPORT="discard">[APPS_DIR]/avrora</project>
<project EXPORT="discard">[CONTIKI_DIR]/tools/cooja/apps/native_gateway</project> <project EXPORT="discard">[APPS_DIR]/serial_socket</project>
<project EXPORT="discard">[CONTIKI_DIR]/tools/cooja/apps/serial_socket</project> <project EXPORT="discard">[APPS_DIR]/collect-view</project>
<project EXPORT="discard">/home/user/contikiprojects/sics.se/mobility</project> <project EXPORT="discard">[APPS_DIR]/powertracker</project>
<simulation> <simulation>
<title>My simulation</title> <title>My simulation</title>
<delaytime>0</delaytime>
<randomseed>123456</randomseed> <randomseed>123456</randomseed>
<motedelay_us>1000000</motedelay_us> <motedelay_us>1000000</motedelay_us>
<radiomedium> <radiomedium>
@ -38,7 +37,7 @@
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyCoffeeFilesystem</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyCoffeeFilesystem</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyByteRadio</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.Msp802154Radio</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspSerial</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspSerial</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspDebugOutput</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspDebugOutput</moteinterface>
@ -328,7 +327,7 @@
<plugin> <plugin>
org.contikios.cooja.plugins.SimControl org.contikios.cooja.plugins.SimControl
<width>318</width> <width>318</width>
<z>0</z> <z>1</z>
<height>172</height> <height>172</height>
<location_x>0</location_x> <location_x>0</location_x>
<location_y>0</location_y> <location_y>0</location_y>
@ -351,6 +350,8 @@
org.contikios.cooja.plugins.LogListener org.contikios.cooja.plugins.LogListener
<plugin_config> <plugin_config>
<filter>timedout</filter> <filter>timedout</filter>
<formatted_time />
<coloring />
</plugin_config> </plugin_config>
<width>1440</width> <width>1440</width>
<z>3</z> <z>3</z>
@ -530,7 +531,7 @@ while(true) {
<active>true</active> <active>true</active>
</plugin_config> </plugin_config>
<width>600</width> <width>600</width>
<z>1</z> <z>0</z>
<height>775</height> <height>775</height>
<location_x>304</location_x> <location_x>304</location_x>
<location_y>5</location_y> <location_y>5</location_y>

View file

@ -1,174 +1,183 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<simconf> <simconf>
<project>[CONTIKI_DIR]/tools/cooja/apps/mrm</project> <project EXPORT="discard">[APPS_DIR]/mrm</project>
<project>[CONTIKI_DIR]/tools/cooja/apps/mspsim</project> <project EXPORT="discard">[APPS_DIR]/mspsim</project>
<project>[CONTIKI_DIR]/tools/cooja/apps/avrora</project> <project EXPORT="discard">[APPS_DIR]/avrora</project>
<project>[CONTIKI_DIR]/tools/cooja/apps/native_gateway</project> <project EXPORT="discard">[APPS_DIR]/serial_socket</project>
<simulation> <project EXPORT="discard">[APPS_DIR]/collect-view</project>
<title>My simulation</title> <project EXPORT="discard">[APPS_DIR]/powertracker</project>
<delaytime>0</delaytime> <simulation>
<randomseed>generated</randomseed> <title>My simulation</title>
<motedelay_us>1000000</motedelay_us> <randomseed>generated</randomseed>
<radiomedium> <motedelay_us>1000000</motedelay_us>
org.contikios.cooja.radiomediums.UDGM <radiomedium>
<transmitting_range>50.0</transmitting_range> org.contikios.cooja.radiomediums.UDGM
<interference_range>100.0</interference_range> <transmitting_range>50.0</transmitting_range>
<success_ratio_tx>1.0</success_ratio_tx> <interference_range>100.0</interference_range>
<success_ratio_rx>1.0</success_ratio_rx> <success_ratio_tx>1.0</success_ratio_tx>
</radiomedium> <success_ratio_rx>1.0</success_ratio_rx>
<events> </radiomedium>
<logoutput>40000</logoutput> <events>
</events> <logoutput>40000</logoutput>
<motetype> </events>
org.contikios.cooja.contikimote.ContikiMoteType <motetype>
<identifier>mtype783</identifier> org.contikios.cooja.contikimote.ContikiMoteType
<description>Receiver</description> <identifier>mtype350</identifier>
<contikiapp>[CONTIKI_DIR]/examples/udp-ipv6/udp-server.c</contikiapp> <description>Receiver</description>
<commands>make TARGET=cooja clean <source>[CONTIKI_DIR]/examples/udp-ipv6/udp-server.c</source>
make udp-server.cooja TARGET=cooja</commands> <commands>make TARGET=cooja clean
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> make udp-server.cooja TARGET=cooja</commands>
<moteinterface>org.contikios.cooja.interfaces.Battery</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiVib</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Battery</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiMoteID</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiVib</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiRS232</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiMoteID</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiBeeper</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiRS232</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiIPAddress</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiBeeper</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiRadio</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiIPAddress</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiButton</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiRadio</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiPIR</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiButton</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiClock</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiPIR</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiLED</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiClock</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiCFS</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiLED</moteinterface>
<moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiCFS</moteinterface>
<moteinterface>org.contikios.cooja.interfaces.RimeAddress</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface>
<moteinterface>org.contikios.cooja.interfaces.MoteAttributes</moteinterface> <moteinterface>org.contikios.cooja.interfaces.RimeAddress</moteinterface>
<symbols>false</symbols> <moteinterface>org.contikios.cooja.interfaces.MoteAttributes</moteinterface>
</motetype> <symbols>false</symbols>
<motetype> </motetype>
org.contikios.cooja.contikimote.ContikiMoteType <motetype>
<identifier>mtype512</identifier> org.contikios.cooja.contikimote.ContikiMoteType
<description>Sender</description> <identifier>mtype981</identifier>
<contikiapp>[CONTIKI_DIR]/examples/udp-ipv6/udp-client.c</contikiapp> <description>Sender</description>
<commands>make udp-client.cooja TARGET=cooja</commands> <source>[CONTIKI_DIR]/examples/udp-ipv6/udp-client.c</source>
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> <commands>make udp-client.cooja TARGET=cooja</commands>
<moteinterface>org.contikios.cooja.interfaces.Battery</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiVib</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Battery</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiMoteID</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiVib</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiRS232</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiMoteID</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiBeeper</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiRS232</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiIPAddress</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiBeeper</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiRadio</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiIPAddress</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiButton</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiRadio</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiPIR</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiButton</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiClock</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiPIR</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiLED</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiClock</moteinterface>
<moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiCFS</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiLED</moteinterface>
<moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface> <moteinterface>org.contikios.cooja.contikimote.interfaces.ContikiCFS</moteinterface>
<moteinterface>org.contikios.cooja.interfaces.RimeAddress</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface>
<moteinterface>org.contikios.cooja.interfaces.MoteAttributes</moteinterface> <moteinterface>org.contikios.cooja.interfaces.RimeAddress</moteinterface>
<symbols>false</symbols> <moteinterface>org.contikios.cooja.interfaces.MoteAttributes</moteinterface>
</motetype> <symbols>false</symbols>
<mote> </motetype>
<interface_config> <mote>
org.contikios.cooja.interfaces.Position <interface_config>
<x>98.76075470611741</x> org.contikios.cooja.interfaces.Position
<y>30.469519951198897</y> <x>98.76075470611741</x>
<z>0.0</z> <y>30.469519951198897</y>
</interface_config> <z>0.0</z>
<interface_config> </interface_config>
org.contikios.cooja.contikimote.interfaces.ContikiMoteID <interface_config>
<id>1</id> org.contikios.cooja.contikimote.interfaces.ContikiMoteID
</interface_config> <id>1</id>
<motetype_identifier>mtype783</motetype_identifier> </interface_config>
</mote> <interface_config>
<mote> org.contikios.cooja.contikimote.interfaces.ContikiRadio
<interface_config> <bitrate>250.0</bitrate>
org.contikios.cooja.interfaces.Position </interface_config>
<x>58.59043340181549</x> <motetype_identifier>mtype350</motetype_identifier>
<y>22.264557758786697</y> </mote>
<z>0.0</z> <mote>
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.contikimote.interfaces.ContikiMoteID <x>58.59043340181549</x>
<id>2</id> <y>22.264557758786697</y>
</interface_config> <z>0.0</z>
<motetype_identifier>mtype512</motetype_identifier> </interface_config>
</mote> <interface_config>
</simulation> org.contikios.cooja.contikimote.interfaces.ContikiMoteID
<plugin> <id>2</id>
org.contikios.cooja.plugins.SimControl </interface_config>
<width>248</width> <interface_config>
<z>2</z> org.contikios.cooja.contikimote.interfaces.ContikiRadio
<height>200</height> <bitrate>250.0</bitrate>
<location_x>0</location_x> </interface_config>
<location_y>0</location_y> <motetype_identifier>mtype981</motetype_identifier>
<minimized>false</minimized> </mote>
</plugin> </simulation>
<plugin> <plugin>
org.contikios.cooja.plugins.LogListener org.contikios.cooja.plugins.SimControl
<plugin_config> <width>248</width>
<filter>ID:1</filter> <z>2</z>
</plugin_config> <height>200</height>
<width>851</width> <location_x>0</location_x>
<z>1</z> <location_y>0</location_y>
<height>187</height> </plugin>
<location_x>1</location_x> <plugin>
<location_y>521</location_y> org.contikios.cooja.plugins.LogListener
<minimized>false</minimized> <plugin_config>
</plugin> <filter>ID:1</filter>
<plugin> <formatted_time />
org.contikios.cooja.plugins.Visualizer <coloring />
<plugin_config> </plugin_config>
<skin>org.contikios.cooja.plugins.skins.UDGMVisualizerSkin</skin> <width>851</width>
<skin>org.contikios.cooja.plugins.skins.IDVisualizerSkin</skin> <z>1</z>
<skin>org.contikios.cooja.plugins.skins.TrafficVisualizerSkin</skin> <height>187</height>
<viewport>2.565713585691764 0.0 0.0 2.565713585691764 -91.30090099174814 -28.413835696190525</viewport> <location_x>1</location_x>
</plugin_config> <location_y>521</location_y>
<width>246</width> </plugin>
<z>3</z> <plugin>
<height>121</height> org.contikios.cooja.plugins.Visualizer
<location_x>1</location_x> <plugin_config>
<location_y>201</location_y> <skin>org.contikios.cooja.plugins.skins.UDGMVisualizerSkin</skin>
<minimized>false</minimized> <skin>org.contikios.cooja.plugins.skins.IDVisualizerSkin</skin>
</plugin> <skin>org.contikios.cooja.plugins.skins.TrafficVisualizerSkin</skin>
<plugin> <viewport>2.565713585691764 0.0 0.0 2.565713585691764 -91.30090099174814 -28.413835696190525</viewport>
org.contikios.cooja.plugins.RadioLogger </plugin_config>
<plugin_config> <width>246</width>
<split>150</split> <z>3</z>
</plugin_config> <height>121</height>
<width>246</width> <location_x>1</location_x>
<z>4</z> <location_y>201</location_y>
<height>198</height> </plugin>
<location_x>0</location_x> <plugin>
<location_y>323</location_y> org.contikios.cooja.plugins.RadioLogger
<minimized>false</minimized> <plugin_config>
</plugin> <split>133</split>
<plugin> <formatted_time />
org.contikios.cooja.plugins.ScriptRunner <showdups>false</showdups>
<plugin_config> <hidenodests>false</hidenodests>
<script>TIMEOUT(100000, log.log("last msg: " + msg + "\n")); /* print last msg at timeout */ </plugin_config>
count = 0; <width>246</width>
while (count++ &lt; 5) { <z>4</z>
/* Message from sender process to receiver process */ <height>198</height>
YIELD_THEN_WAIT_UNTIL(msg.contains("Client sending")); <location_x>0</location_x>
YIELD_THEN_WAIT_UNTIL(msg.contains("Server received")); <location_y>323</location_y>
log.log(count + ": Sender -&gt; Receiver OK\n"); </plugin>
<plugin>
/* Message from receiver process to sender process */ org.contikios.cooja.plugins.ScriptRunner
YIELD_THEN_WAIT_UNTIL(msg.contains("Responding with")); <plugin_config>
YIELD_THEN_WAIT_UNTIL(msg.contains("Response from")); <script>TIMEOUT(100000, log.log("last msg: " + msg + "\n")); /* print last msg at timeout */
log.log(count + ": Receiver -&gt; Sender OK\n"); count = 0;
} while (count++ &lt; 5) {
/* Message from sender process to receiver process */
log.testOK(); /* Report test success and quit */</script> YIELD_THEN_WAIT_UNTIL(msg.contains("Client sending"));
<active>true</active> YIELD_THEN_WAIT_UNTIL(msg.contains("Server received"));
</plugin_config> log.log(count + ": Sender -&gt; Receiver OK\n");
<width>600</width>
<z>0</z> /* Message from receiver process to sender process */
<height>520</height> YIELD_THEN_WAIT_UNTIL(msg.contains("Responding with"));
<location_x>250</location_x> YIELD_THEN_WAIT_UNTIL(msg.contains("Response from"));
<location_y>-1</location_y> log.log(count + ": Receiver -&gt; Sender OK\n");
<minimized>false</minimized> }
</plugin>
</simconf> log.testOK(); /* Report test success and quit */</script>
<active>true</active>
</plugin_config>
<width>600</width>
<z>0</z>
<height>520</height>
<location_x>250</location_x>
<location_y>-1</location_y>
</plugin>
</simconf>

View file

@ -1,171 +1,179 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<simconf> <simconf>
<simulation> <project EXPORT="discard">[APPS_DIR]/mrm</project>
<title>My simulation</title> <project EXPORT="discard">[APPS_DIR]/mspsim</project>
<delaytime>0</delaytime> <project EXPORT="discard">[APPS_DIR]/avrora</project>
<randomseed>generated</randomseed> <project EXPORT="discard">[APPS_DIR]/serial_socket</project>
<motedelay_us>1000000</motedelay_us> <project EXPORT="discard">[APPS_DIR]/collect-view</project>
<radiomedium> <project EXPORT="discard">[APPS_DIR]/powertracker</project>
org.contikios.cooja.radiomediums.UDGM <simulation>
<transmitting_range>50.0</transmitting_range> <title>My simulation</title>
<interference_range>100.0</interference_range> <randomseed>generated</randomseed>
<success_ratio_tx>1.0</success_ratio_tx> <motedelay_us>1000000</motedelay_us>
<success_ratio_rx>1.0</success_ratio_rx> <radiomedium>
</radiomedium> org.contikios.cooja.radiomediums.UDGM
<events> <transmitting_range>50.0</transmitting_range>
<logoutput>40000</logoutput> <interference_range>100.0</interference_range>
</events> <success_ratio_tx>1.0</success_ratio_tx>
<motetype> <success_ratio_rx>1.0</success_ratio_rx>
org.contikios.cooja.mspmote.SkyMoteType </radiomedium>
<identifier>sky1</identifier> <events>
<description>UDP client</description> <logoutput>40000</logoutput>
<source EXPORT="discard">[CONTIKI_DIR]/examples/udp-ipv6/udp-client.c</source> </events>
<commands EXPORT="discard">make clean TARGET=sky <motetype>
make udp-client.sky TARGET=sky DEFINES=UDP_CONNECTION_ADDR=fe80::212:7402:2:202,SICSLOWPAN_CONF_FRAG=1,SEND_TOO_LARGE_PACKET_TO_TEST_FRAGMENTATION=1</commands> org.contikios.cooja.mspmote.SkyMoteType
<firmware EXPORT="copy">[CONTIKI_DIR]/examples/udp-ipv6/udp-client.sky</firmware> <identifier>sky1</identifier>
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> <description>UDP client</description>
<moteinterface>org.contikios.cooja.interfaces.RimeAddress</moteinterface> <source EXPORT="discard">[CONTIKI_DIR]/examples/udp-ipv6/udp-client.c</source>
<moteinterface>org.contikios.cooja.interfaces.IPAddress</moteinterface> <commands EXPORT="discard">make clean TARGET=sky
<moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface> make udp-client.sky TARGET=sky DEFINES=UDP_CONNECTION_ADDR=fe80::212:7402:2:202,SICSLOWPAN_CONF_FRAG=1,SEND_TOO_LARGE_PACKET_TO_TEST_FRAGMENTATION=1</commands>
<moteinterface>org.contikios.cooja.interfaces.MoteAttributes</moteinterface> <firmware EXPORT="copy">[CONTIKI_DIR]/examples/udp-ipv6/udp-client.sky</firmware>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspClock</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspMoteID</moteinterface> <moteinterface>org.contikios.cooja.interfaces.RimeAddress</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface> <moteinterface>org.contikios.cooja.interfaces.IPAddress</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyCoffeeFilesystem</moteinterface> <moteinterface>org.contikios.cooja.interfaces.MoteAttributes</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyByteRadio</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspClock</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspSerial</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspMoteID</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspDebugOutput</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyTemperature</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyCoffeeFilesystem</moteinterface>
</motetype> <moteinterface>org.contikios.cooja.mspmote.interfaces.Msp802154Radio</moteinterface>
<motetype> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspSerial</moteinterface>
org.contikios.cooja.mspmote.SkyMoteType <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface>
<identifier>sky2</identifier> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspDebugOutput</moteinterface>
<description>UDP server</description> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyTemperature</moteinterface>
<source EXPORT="discard">[CONTIKI_DIR]/examples/udp-ipv6/udp-server.c</source> </motetype>
<commands EXPORT="discard">make udp-server.sky TARGET=sky DEFINES=SICSLOWPAN_CONF_FRAG=1</commands> <motetype>
<firmware EXPORT="copy">[CONTIKI_DIR]/examples/udp-ipv6/udp-server.sky</firmware> org.contikios.cooja.mspmote.SkyMoteType
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> <identifier>sky2</identifier>
<moteinterface>org.contikios.cooja.interfaces.RimeAddress</moteinterface> <description>UDP server</description>
<moteinterface>org.contikios.cooja.interfaces.IPAddress</moteinterface> <source EXPORT="discard">[CONTIKI_DIR]/examples/udp-ipv6/udp-server.c</source>
<moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface> <commands EXPORT="discard">make udp-server.sky TARGET=sky DEFINES=SICSLOWPAN_CONF_FRAG=1</commands>
<moteinterface>org.contikios.cooja.interfaces.MoteAttributes</moteinterface> <firmware EXPORT="copy">[CONTIKI_DIR]/examples/udp-ipv6/udp-server.sky</firmware>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspClock</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspMoteID</moteinterface> <moteinterface>org.contikios.cooja.interfaces.RimeAddress</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface> <moteinterface>org.contikios.cooja.interfaces.IPAddress</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyCoffeeFilesystem</moteinterface> <moteinterface>org.contikios.cooja.interfaces.MoteAttributes</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyByteRadio</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspClock</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspSerial</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspMoteID</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspDebugOutput</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyTemperature</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyCoffeeFilesystem</moteinterface>
</motetype> <moteinterface>org.contikios.cooja.mspmote.interfaces.Msp802154Radio</moteinterface>
<mote> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspSerial</moteinterface>
<breakpoints /> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface>
<interface_config> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspDebugOutput</moteinterface>
org.contikios.cooja.interfaces.Position <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyTemperature</moteinterface>
<x>56.49442624080769</x> </motetype>
<y>69.16564756567392</y> <mote>
<z>0.0</z> <breakpoints />
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.interfaces.MspMoteID <x>56.49442624080769</x>
<id>1</id> <y>69.16564756567392</y>
</interface_config> <z>0.0</z>
<motetype_identifier>sky1</motetype_identifier> </interface_config>
</mote> <interface_config>
<mote> org.contikios.cooja.mspmote.interfaces.MspMoteID
<breakpoints /> <id>1</id>
<interface_config> </interface_config>
org.contikios.cooja.interfaces.Position <motetype_identifier>sky1</motetype_identifier>
<x>70.13661699393737</x> </mote>
<y>61.114518596613784</y> <mote>
<z>0.0</z> <breakpoints />
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.mspmote.interfaces.MspMoteID <x>70.13661699393737</x>
<id>2</id> <y>61.114518596613784</y>
</interface_config> <z>0.0</z>
<motetype_identifier>sky2</motetype_identifier> </interface_config>
</mote> <interface_config>
</simulation> org.contikios.cooja.mspmote.interfaces.MspMoteID
<plugin> <id>2</id>
org.contikios.cooja.plugins.SimControl </interface_config>
<width>248</width> <motetype_identifier>sky2</motetype_identifier>
<z>4</z> </mote>
<height>200</height> </simulation>
<location_x>0</location_x> <plugin>
<location_y>0</location_y> org.contikios.cooja.plugins.SimControl
</plugin> <width>248</width>
<plugin> <z>0</z>
org.contikios.cooja.plugins.LogListener <height>200</height>
<plugin_config> <location_x>0</location_x>
<filter /> <location_y>0</location_y>
<formatted_time /> </plugin>
<coloring /> <plugin>
</plugin_config> org.contikios.cooja.plugins.LogListener
<width>683</width> <plugin_config>
<z>1</z> <filter />
<height>550</height> <formatted_time />
<location_x>12</location_x> <coloring />
<location_y>417</location_y> </plugin_config>
</plugin> <width>683</width>
<plugin> <z>2</z>
org.contikios.cooja.plugins.Visualizer <height>550</height>
<plugin_config> <location_x>12</location_x>
<skin>org.contikios.cooja.plugins.skins.IDVisualizerSkin</skin> <location_y>417</location_y>
<skin>org.contikios.cooja.plugins.skins.AddressVisualizerSkin</skin> </plugin>
<skin>org.contikios.cooja.plugins.skins.UDGMVisualizerSkin</skin> <plugin>
<skin>org.contikios.cooja.plugins.skins.GridVisualizerSkin</skin> org.contikios.cooja.plugins.Visualizer
<skin>org.contikios.cooja.plugins.skins.MoteTypeVisualizerSkin</skin> <plugin_config>
<viewport>6.1185311939665725 0.0 0.0 6.1185311939665725 -264.82328143448046 -341.0405575126179</viewport> <skin>org.contikios.cooja.plugins.skins.IDVisualizerSkin</skin>
</plugin_config> <skin>org.contikios.cooja.plugins.skins.AddressVisualizerSkin</skin>
<width>250</width> <skin>org.contikios.cooja.plugins.skins.UDGMVisualizerSkin</skin>
<z>2</z> <skin>org.contikios.cooja.plugins.skins.GridVisualizerSkin</skin>
<height>183</height> <skin>org.contikios.cooja.plugins.skins.MoteTypeVisualizerSkin</skin>
<location_x>6</location_x> <viewport>6.1185311939665725 0.0 0.0 6.1185311939665725 -264.82328143448046 -341.0405575126179</viewport>
<location_y>214</location_y> </plugin_config>
</plugin> <width>250</width>
<plugin> <z>3</z>
org.contikios.cooja.plugins.ScriptRunner <height>183</height>
<plugin_config> <location_x>6</location_x>
<script>TIMEOUT(150000, log.log("last msg: " + msg + "\n")); /* print last msg at timeout */ <location_y>214</location_y>
</plugin>
count = 0; <plugin>
while (count++ &lt; 5) { org.contikios.cooja.plugins.ScriptRunner
/* Message from sender process to receiver process */ <plugin_config>
YIELD_THEN_WAIT_UNTIL(msg.contains("Client sending")); <script>TIMEOUT(150000, log.log("last msg: " + msg + "\n")); /* print last msg at timeout */
YIELD_THEN_WAIT_UNTIL(msg.contains("Server received"));
log.log(count + ": Sender -&gt; Receiver OK\n"); count = 0;
while (count++ &lt; 5) {
/* Message from receiver process to sender process */ /* Message from sender process to receiver process */
YIELD_THEN_WAIT_UNTIL(msg.contains("Responding with message")); YIELD_THEN_WAIT_UNTIL(msg.contains("Client sending"));
YIELD_THEN_WAIT_UNTIL(msg.contains("Response from")); YIELD_THEN_WAIT_UNTIL(msg.contains("Server received"));
log.log(count + ": Receiver -&gt; Sender OK\n"); log.log(count + ": Sender -&gt; Receiver OK\n");
}
/* Message from receiver process to sender process */
log.testOK(); /* Report test success and quit */</script> YIELD_THEN_WAIT_UNTIL(msg.contains("Responding with message"));
<active>true</active> YIELD_THEN_WAIT_UNTIL(msg.contains("Response from"));
</plugin_config> log.log(count + ": Receiver -&gt; Sender OK\n");
<width>572</width> }
<z>0</z>
<height>552</height> log.testOK(); /* Report test success and quit */</script>
<location_x>704</location_x> <active>true</active>
<location_y>417</location_y> </plugin_config>
</plugin> <width>572</width>
<plugin> <z>1</z>
org.contikios.cooja.plugins.RadioLogger <height>552</height>
<plugin_config> <location_x>704</location_x>
<split>183</split> <location_y>417</location_y>
<analyzers name="6lowpan" /> </plugin>
</plugin_config> <plugin>
<width>1008</width> org.contikios.cooja.plugins.RadioLogger
<z>3</z> <plugin_config>
<height>406</height> <split>183</split>
<location_x>261</location_x> <formatted_time />
<location_y>7</location_y> <showdups>false</showdups>
</plugin> <hidenodests>false</hidenodests>
</simconf> <analyzers name="6lowpan" />
</plugin_config>
<width>1008</width>
<z>4</z>
<height>406</height>
<location_x>261</location_x>
<location_y>7</location_y>
</plugin>
</simconf>

View file

@ -115,6 +115,7 @@ make udp-receiver.exp5438 DEFINES=NETSTACK_CONF_RDC=contikimac_driver TARGET=exp
<plugin_config> <plugin_config>
<filter /> <filter />
<formatted_time /> <formatted_time />
<coloring />
</plugin_config> </plugin_config>
<width>1200</width> <width>1200</width>
<z>5</z> <z>5</z>
@ -153,7 +154,7 @@ make udp-receiver.exp5438 DEFINES=NETSTACK_CONF_RDC=contikimac_driver TARGET=exp
<plugin> <plugin>
org.contikios.cooja.plugins.ScriptRunner org.contikios.cooja.plugins.ScriptRunner
<plugin_config> <plugin_config>
<scriptfile>[CONFIG_DIR]/fragmentation-should-receive-all.js</scriptfile> <scriptfile>[CONTIKI_DIR]/regression-tests/11-ipv6/fragmentation-should-receive-all.js</scriptfile>
<active>true</active> <active>true</active>
</plugin_config> </plugin_config>
<width>618</width> <width>618</width>

View file

@ -115,6 +115,7 @@ make udp-receiver.exp5438 DEFINES=NETSTACK_CONF_RDC=nullrdc_driver TARGET=exp543
<plugin_config> <plugin_config>
<filter /> <filter />
<formatted_time /> <formatted_time />
<coloring />
</plugin_config> </plugin_config>
<width>1200</width> <width>1200</width>
<z>5</z> <z>5</z>
@ -153,7 +154,7 @@ make udp-receiver.exp5438 DEFINES=NETSTACK_CONF_RDC=nullrdc_driver TARGET=exp543
<plugin> <plugin>
org.contikios.cooja.plugins.ScriptRunner org.contikios.cooja.plugins.ScriptRunner
<plugin_config> <plugin_config>
<scriptfile>[CONFIG_DIR]/fragmentation-should-receive-all.js</scriptfile> <scriptfile>[CONTIKI_DIR]/regression-tests/11-ipv6/fragmentation-should-receive-all.js</scriptfile>
<active>true</active> <active>true</active>
</plugin_config> </plugin_config>
<width>618</width> <width>618</width>

View file

@ -115,6 +115,7 @@ make udp-receiver.exp5438 DEFINES=NETSTACK_CONF_RDC=contikimac_driver TARGET=exp
<plugin_config> <plugin_config>
<filter /> <filter />
<formatted_time /> <formatted_time />
<coloring />
</plugin_config> </plugin_config>
<width>1200</width> <width>1200</width>
<z>5</z> <z>5</z>
@ -153,7 +154,8 @@ make udp-receiver.exp5438 DEFINES=NETSTACK_CONF_RDC=contikimac_driver TARGET=exp
<plugin> <plugin>
org.contikios.cooja.plugins.ScriptRunner org.contikios.cooja.plugins.ScriptRunner
<plugin_config> <plugin_config>
<scriptfile>[CONFIG_DIR]/fragmentation-should-receive-none.js</scriptfile> <active>true</active> <scriptfile>[CONTIKI_DIR]/regression-tests/11-ipv6/fragmentation-should-receive-none.js</scriptfile>
<active>true</active>
</plugin_config> </plugin_config>
<width>618</width> <width>618</width>
<z>1</z> <z>1</z>

View file

@ -115,6 +115,7 @@ make udp-receiver.exp5438 DEFINES=NETSTACK_CONF_RDC=nullrdc_driver TARGET=exp543
<plugin_config> <plugin_config>
<filter /> <filter />
<formatted_time /> <formatted_time />
<coloring />
</plugin_config> </plugin_config>
<width>1200</width> <width>1200</width>
<z>5</z> <z>5</z>
@ -153,7 +154,7 @@ make udp-receiver.exp5438 DEFINES=NETSTACK_CONF_RDC=nullrdc_driver TARGET=exp543
<plugin> <plugin>
org.contikios.cooja.plugins.ScriptRunner org.contikios.cooja.plugins.ScriptRunner
<plugin_config> <plugin_config>
<scriptfile>[CONFIG_DIR]/fragmentation-should-receive-none.js</scriptfile> <scriptfile>[CONTIKI_DIR]/regression-tests/11-ipv6/fragmentation-should-receive-none.js</scriptfile>
<active>true</active> <active>true</active>
</plugin_config> </plugin_config>
<width>618</width> <width>618</width>

View file

@ -115,6 +115,7 @@ make udp-receiver.exp5438 DEFINES=NETSTACK_CONF_RDC=contikimac_driver TARGET=exp
<plugin_config> <plugin_config>
<filter /> <filter />
<formatted_time /> <formatted_time />
<coloring />
</plugin_config> </plugin_config>
<width>1200</width> <width>1200</width>
<z>5</z> <z>5</z>
@ -153,7 +154,7 @@ make udp-receiver.exp5438 DEFINES=NETSTACK_CONF_RDC=contikimac_driver TARGET=exp
<plugin> <plugin>
org.contikios.cooja.plugins.ScriptRunner org.contikios.cooja.plugins.ScriptRunner
<plugin_config> <plugin_config>
<scriptfile>[CONFIG_DIR]/fragmentation-should-receive-none.js</scriptfile> <scriptfile>[CONTIKI_DIR]/regression-tests/11-ipv6/fragmentation-should-receive-none.js</scriptfile>
<active>true</active> <active>true</active>
</plugin_config> </plugin_config>
<width>618</width> <width>618</width>

File diff suppressed because it is too large Load diff

View file

@ -22,9 +22,9 @@
</events> </events>
<motetype> <motetype>
org.contikios.cooja.contikimote.ContikiMoteType org.contikios.cooja.contikimote.ContikiMoteType
<identifier>mtype456</identifier> <identifier>mtype488</identifier>
<description>Sender</description> <description>Sender</description>
<source>[CONFIG_DIR]/code/sender-node.c</source> <source>[CONTIKI_DIR]/regression-tests/12-rpl/code/sender-node.c</source>
<commands>make TARGET=cooja clean <commands>make TARGET=cooja clean
make sender-node.cooja TARGET=cooja</commands> make sender-node.cooja TARGET=cooja</commands>
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
@ -47,9 +47,9 @@ make sender-node.cooja TARGET=cooja</commands>
</motetype> </motetype>
<motetype> <motetype>
org.contikios.cooja.contikimote.ContikiMoteType org.contikios.cooja.contikimote.ContikiMoteType
<identifier>mtype452</identifier> <identifier>mtype32</identifier>
<description>RPL root</description> <description>RPL root</description>
<source>[CONFIG_DIR]/code/root-node.c</source> <source>[CONTIKI_DIR]/regression-tests/12-rpl/code/root-node.c</source>
<commands>make TARGET=cooja clean <commands>make TARGET=cooja clean
make root-node.cooja TARGET=cooja</commands> make root-node.cooja TARGET=cooja</commands>
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
@ -72,9 +72,9 @@ make root-node.cooja TARGET=cooja</commands>
</motetype> </motetype>
<motetype> <motetype>
org.contikios.cooja.contikimote.ContikiMoteType org.contikios.cooja.contikimote.ContikiMoteType
<identifier>mtype904</identifier> <identifier>mtype352</identifier>
<description>Receiver</description> <description>Receiver</description>
<source>[CONFIG_DIR]/code/receiver-node.c</source> <source>[CONTIKI_DIR]/regression-tests/12-rpl/code/receiver-node.c</source>
<commands>make TARGET=cooja clean <commands>make TARGET=cooja clean
make receiver-node.cooja TARGET=cooja</commands> make receiver-node.cooja TARGET=cooja</commands>
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
@ -110,7 +110,7 @@ make receiver-node.cooja TARGET=cooja</commands>
org.contikios.cooja.contikimote.interfaces.ContikiRadio org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate> <bitrate>250.0</bitrate>
</interface_config> </interface_config>
<motetype_identifier>mtype904</motetype_identifier> <motetype_identifier>mtype352</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -127,7 +127,7 @@ make receiver-node.cooja TARGET=cooja</commands>
org.contikios.cooja.contikimote.interfaces.ContikiRadio org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate> <bitrate>250.0</bitrate>
</interface_config> </interface_config>
<motetype_identifier>mtype456</motetype_identifier> <motetype_identifier>mtype488</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -144,7 +144,7 @@ make receiver-node.cooja TARGET=cooja</commands>
org.contikios.cooja.contikimote.interfaces.ContikiRadio org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate> <bitrate>250.0</bitrate>
</interface_config> </interface_config>
<motetype_identifier>mtype904</motetype_identifier> <motetype_identifier>mtype352</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -161,7 +161,7 @@ make receiver-node.cooja TARGET=cooja</commands>
org.contikios.cooja.contikimote.interfaces.ContikiRadio org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate> <bitrate>250.0</bitrate>
</interface_config> </interface_config>
<motetype_identifier>mtype904</motetype_identifier> <motetype_identifier>mtype352</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -178,7 +178,7 @@ make receiver-node.cooja TARGET=cooja</commands>
org.contikios.cooja.contikimote.interfaces.ContikiRadio org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate> <bitrate>250.0</bitrate>
</interface_config> </interface_config>
<motetype_identifier>mtype904</motetype_identifier> <motetype_identifier>mtype352</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -195,7 +195,7 @@ make receiver-node.cooja TARGET=cooja</commands>
org.contikios.cooja.contikimote.interfaces.ContikiRadio org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate> <bitrate>250.0</bitrate>
</interface_config> </interface_config>
<motetype_identifier>mtype904</motetype_identifier> <motetype_identifier>mtype352</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -212,7 +212,7 @@ make receiver-node.cooja TARGET=cooja</commands>
org.contikios.cooja.contikimote.interfaces.ContikiRadio org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate> <bitrate>250.0</bitrate>
</interface_config> </interface_config>
<motetype_identifier>mtype904</motetype_identifier> <motetype_identifier>mtype352</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -229,7 +229,7 @@ make receiver-node.cooja TARGET=cooja</commands>
org.contikios.cooja.contikimote.interfaces.ContikiRadio org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate> <bitrate>250.0</bitrate>
</interface_config> </interface_config>
<motetype_identifier>mtype452</motetype_identifier> <motetype_identifier>mtype32</motetype_identifier>
</mote> </mote>
</simulation> </simulation>
<plugin> <plugin>
@ -260,6 +260,7 @@ make receiver-node.cooja TARGET=cooja</commands>
<plugin_config> <plugin_config>
<filter /> <filter />
<formatted_time /> <formatted_time />
<coloring />
</plugin_config> </plugin_config>
<width>1184</width> <width>1184</width>
<z>3</z> <z>3</z>

View file

@ -22,9 +22,9 @@
</events> </events>
<motetype> <motetype>
org.contikios.cooja.contikimote.ContikiMoteType org.contikios.cooja.contikimote.ContikiMoteType
<identifier>mtype748</identifier> <identifier>mtype958</identifier>
<description>Sender</description> <description>Sender</description>
<source>[CONFIG_DIR]/code/sender-node.c</source> <source>[CONTIKI_DIR]/regression-tests/12-rpl/code/sender-node.c</source>
<commands>make TARGET=cooja clean <commands>make TARGET=cooja clean
make sender-node.cooja TARGET=cooja</commands> make sender-node.cooja TARGET=cooja</commands>
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
@ -47,9 +47,9 @@ make sender-node.cooja TARGET=cooja</commands>
</motetype> </motetype>
<motetype> <motetype>
org.contikios.cooja.contikimote.ContikiMoteType org.contikios.cooja.contikimote.ContikiMoteType
<identifier>mtype442</identifier> <identifier>mtype837</identifier>
<description>RPL root</description> <description>RPL root</description>
<source>[CONFIG_DIR]/code/root-node.c</source> <source>[CONTIKI_DIR]/regression-tests/12-rpl/code/root-node.c</source>
<commands>make TARGET=cooja clean <commands>make TARGET=cooja clean
make root-node.cooja TARGET=cooja</commands> make root-node.cooja TARGET=cooja</commands>
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
@ -72,9 +72,9 @@ make root-node.cooja TARGET=cooja</commands>
</motetype> </motetype>
<motetype> <motetype>
org.contikios.cooja.contikimote.ContikiMoteType org.contikios.cooja.contikimote.ContikiMoteType
<identifier>mtype236</identifier> <identifier>mtype358</identifier>
<description>Receiver</description> <description>Receiver</description>
<source>[CONFIG_DIR]/code/receiver-node.c</source> <source>[CONTIKI_DIR]/regression-tests/12-rpl/code/receiver-node.c</source>
<commands>make TARGET=cooja clean <commands>make TARGET=cooja clean
make receiver-node.cooja TARGET=cooja</commands> make receiver-node.cooja TARGET=cooja</commands>
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
@ -110,7 +110,7 @@ make receiver-node.cooja TARGET=cooja</commands>
org.contikios.cooja.contikimote.interfaces.ContikiRadio org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate> <bitrate>250.0</bitrate>
</interface_config> </interface_config>
<motetype_identifier>mtype236</motetype_identifier> <motetype_identifier>mtype358</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -127,7 +127,7 @@ make receiver-node.cooja TARGET=cooja</commands>
org.contikios.cooja.contikimote.interfaces.ContikiRadio org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate> <bitrate>250.0</bitrate>
</interface_config> </interface_config>
<motetype_identifier>mtype748</motetype_identifier> <motetype_identifier>mtype958</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -144,7 +144,7 @@ make receiver-node.cooja TARGET=cooja</commands>
org.contikios.cooja.contikimote.interfaces.ContikiRadio org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate> <bitrate>250.0</bitrate>
</interface_config> </interface_config>
<motetype_identifier>mtype236</motetype_identifier> <motetype_identifier>mtype358</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -161,7 +161,7 @@ make receiver-node.cooja TARGET=cooja</commands>
org.contikios.cooja.contikimote.interfaces.ContikiRadio org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate> <bitrate>250.0</bitrate>
</interface_config> </interface_config>
<motetype_identifier>mtype236</motetype_identifier> <motetype_identifier>mtype358</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -178,7 +178,7 @@ make receiver-node.cooja TARGET=cooja</commands>
org.contikios.cooja.contikimote.interfaces.ContikiRadio org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate> <bitrate>250.0</bitrate>
</interface_config> </interface_config>
<motetype_identifier>mtype236</motetype_identifier> <motetype_identifier>mtype358</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -195,7 +195,7 @@ make receiver-node.cooja TARGET=cooja</commands>
org.contikios.cooja.contikimote.interfaces.ContikiRadio org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate> <bitrate>250.0</bitrate>
</interface_config> </interface_config>
<motetype_identifier>mtype236</motetype_identifier> <motetype_identifier>mtype358</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -212,7 +212,7 @@ make receiver-node.cooja TARGET=cooja</commands>
org.contikios.cooja.contikimote.interfaces.ContikiRadio org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate> <bitrate>250.0</bitrate>
</interface_config> </interface_config>
<motetype_identifier>mtype236</motetype_identifier> <motetype_identifier>mtype358</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -229,7 +229,7 @@ make receiver-node.cooja TARGET=cooja</commands>
org.contikios.cooja.contikimote.interfaces.ContikiRadio org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate> <bitrate>250.0</bitrate>
</interface_config> </interface_config>
<motetype_identifier>mtype442</motetype_identifier> <motetype_identifier>mtype837</motetype_identifier>
</mote> </mote>
</simulation> </simulation>
<plugin> <plugin>
@ -260,6 +260,7 @@ make receiver-node.cooja TARGET=cooja</commands>
<plugin_config> <plugin_config>
<filter /> <filter />
<formatted_time /> <formatted_time />
<coloring />
</plugin_config> </plugin_config>
<width>1184</width> <width>1184</width>
<z>3</z> <z>3</z>

View file

@ -22,9 +22,9 @@
</events> </events>
<motetype> <motetype>
org.contikios.cooja.contikimote.ContikiMoteType org.contikios.cooja.contikimote.ContikiMoteType
<identifier>mtype391</identifier> <identifier>mtype110</identifier>
<description>Sender</description> <description>Sender</description>
<source>[CONFIG_DIR]/code/sender-node.c</source> <source>[CONTIKI_DIR]/regression-tests/12-rpl/code/sender-node.c</source>
<commands>make TARGET=cooja clean <commands>make TARGET=cooja clean
make sender-node.cooja TARGET=cooja</commands> make sender-node.cooja TARGET=cooja</commands>
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
@ -47,9 +47,9 @@ make sender-node.cooja TARGET=cooja</commands>
</motetype> </motetype>
<motetype> <motetype>
org.contikios.cooja.contikimote.ContikiMoteType org.contikios.cooja.contikimote.ContikiMoteType
<identifier>mtype250</identifier> <identifier>mtype792</identifier>
<description>RPL root</description> <description>RPL root</description>
<source>[CONFIG_DIR]/code/root-node.c</source> <source>[CONTIKI_DIR]/regression-tests/12-rpl/code/root-node.c</source>
<commands>make TARGET=cooja clean <commands>make TARGET=cooja clean
make root-node.cooja TARGET=cooja</commands> make root-node.cooja TARGET=cooja</commands>
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
@ -72,9 +72,9 @@ make root-node.cooja TARGET=cooja</commands>
</motetype> </motetype>
<motetype> <motetype>
org.contikios.cooja.contikimote.ContikiMoteType org.contikios.cooja.contikimote.ContikiMoteType
<identifier>mtype822</identifier> <identifier>mtype964</identifier>
<description>Receiver</description> <description>Receiver</description>
<source>[CONFIG_DIR]/code/receiver-node.c</source> <source>[CONTIKI_DIR]/regression-tests/12-rpl/code/receiver-node.c</source>
<commands>make TARGET=cooja clean <commands>make TARGET=cooja clean
make receiver-node.cooja TARGET=cooja</commands> make receiver-node.cooja TARGET=cooja</commands>
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
@ -110,7 +110,7 @@ make receiver-node.cooja TARGET=cooja</commands>
org.contikios.cooja.contikimote.interfaces.ContikiRadio org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate> <bitrate>250.0</bitrate>
</interface_config> </interface_config>
<motetype_identifier>mtype822</motetype_identifier> <motetype_identifier>mtype964</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -127,7 +127,7 @@ make receiver-node.cooja TARGET=cooja</commands>
org.contikios.cooja.contikimote.interfaces.ContikiRadio org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate> <bitrate>250.0</bitrate>
</interface_config> </interface_config>
<motetype_identifier>mtype391</motetype_identifier> <motetype_identifier>mtype110</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -144,7 +144,7 @@ make receiver-node.cooja TARGET=cooja</commands>
org.contikios.cooja.contikimote.interfaces.ContikiRadio org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate> <bitrate>250.0</bitrate>
</interface_config> </interface_config>
<motetype_identifier>mtype822</motetype_identifier> <motetype_identifier>mtype964</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -161,7 +161,7 @@ make receiver-node.cooja TARGET=cooja</commands>
org.contikios.cooja.contikimote.interfaces.ContikiRadio org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate> <bitrate>250.0</bitrate>
</interface_config> </interface_config>
<motetype_identifier>mtype822</motetype_identifier> <motetype_identifier>mtype964</motetype_identifier>
</mote> </mote>
<mote> <mote>
<interface_config> <interface_config>
@ -178,7 +178,7 @@ make receiver-node.cooja TARGET=cooja</commands>
org.contikios.cooja.contikimote.interfaces.ContikiRadio org.contikios.cooja.contikimote.interfaces.ContikiRadio
<bitrate>250.0</bitrate> <bitrate>250.0</bitrate>
</interface_config> </interface_config>
<motetype_identifier>mtype250</motetype_identifier> <motetype_identifier>mtype792</motetype_identifier>
</mote> </mote>
</simulation> </simulation>
<plugin> <plugin>
@ -209,6 +209,7 @@ make receiver-node.cooja TARGET=cooja</commands>
<plugin_config> <plugin_config>
<filter /> <filter />
<formatted_time /> <formatted_time />
<coloring />
</plugin_config> </plugin_config>
<width>1184</width> <width>1184</width>
<z>3</z> <z>3</z>

File diff suppressed because it is too large Load diff

View file

@ -1,316 +1,316 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<simconf> <simconf>
<project EXPORT="discard">[CONTIKI_DIR]/tools/cooja/apps/mrm</project> <project EXPORT="discard">[APPS_DIR]/mrm</project>
<project EXPORT="discard">[CONTIKI_DIR]/tools/cooja/apps/mspsim</project> <project EXPORT="discard">[APPS_DIR]/mspsim</project>
<project EXPORT="discard">[CONTIKI_DIR]/tools/cooja/apps/avrora</project> <project EXPORT="discard">[APPS_DIR]/avrora</project>
<project EXPORT="discard">[CONTIKI_DIR]/tools/cooja/apps/native_gateway</project> <project EXPORT="discard">[APPS_DIR]/serial_socket</project>
<project EXPORT="discard">[CONTIKI_DIR]/tools/cooja/apps/serial_socket</project> <project EXPORT="discard">[APPS_DIR]/collect-view</project>
<project EXPORT="discard">/home/user/contikiprojects/sics.se/mobility</project> <project EXPORT="discard">[APPS_DIR]/powertracker</project>
<simulation> <simulation>
<title>Servreg hack test</title> <title>Servreg hack test</title>
<delaytime>0</delaytime> <randomseed>123456</randomseed>
<randomseed>123456</randomseed> <motedelay_us>1000000</motedelay_us>
<motedelay_us>1000000</motedelay_us> <radiomedium>
<radiomedium> org.contikios.cooja.radiomediums.UDGM
org.contikios.cooja.radiomediums.UDGM <transmitting_range>40.0</transmitting_range>
<transmitting_range>40.0</transmitting_range> <interference_range>40.0</interference_range>
<interference_range>40.0</interference_range> <success_ratio_tx>1.0</success_ratio_tx>
<success_ratio_tx>1.0</success_ratio_tx> <success_ratio_rx>1.0</success_ratio_rx>
<success_ratio_rx>1.0</success_ratio_rx> </radiomedium>
</radiomedium> <events>
<events> <logoutput>40000</logoutput>
<logoutput>40000</logoutput> </events>
</events> <motetype>
<motetype> org.contikios.cooja.mspmote.SkyMoteType
org.contikios.cooja.mspmote.SkyMoteType <identifier>sky1</identifier>
<identifier>sky1</identifier> <description>Servreg server</description>
<description>Servreg server</description> <source EXPORT="discard">[CONTIKI_DIR]/examples/servreg-hack/example-servreg-server.c</source>
<source EXPORT="discard">[CONTIKI_DIR]/examples/servreg-hack/example-servreg-server.c</source> <commands EXPORT="discard">make example-servreg-server.sky TARGET=sky</commands>
<commands EXPORT="discard">make example-servreg-server.sky TARGET=sky</commands> <firmware EXPORT="copy">[CONTIKI_DIR]/examples/servreg-hack/example-servreg-server.sky</firmware>
<firmware EXPORT="copy">[CONTIKI_DIR]/examples/servreg-hack/example-servreg-server.sky</firmware> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> <moteinterface>org.contikios.cooja.interfaces.RimeAddress</moteinterface>
<moteinterface>org.contikios.cooja.interfaces.RimeAddress</moteinterface> <moteinterface>org.contikios.cooja.interfaces.IPAddress</moteinterface>
<moteinterface>org.contikios.cooja.interfaces.IPAddress</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface>
<moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface> <moteinterface>org.contikios.cooja.interfaces.MoteAttributes</moteinterface>
<moteinterface>org.contikios.cooja.interfaces.MoteAttributes</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspClock</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspClock</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspMoteID</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspMoteID</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyCoffeeFilesystem</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyCoffeeFilesystem</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.Msp802154Radio</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyByteRadio</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspSerial</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspSerial</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspDebugOutput</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspDebugOutput</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyTemperature</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyTemperature</moteinterface> </motetype>
</motetype> <motetype>
<motetype> org.contikios.cooja.mspmote.SkyMoteType
org.contikios.cooja.mspmote.SkyMoteType <identifier>sky2</identifier>
<identifier>sky2</identifier> <description>Servreg hack client</description>
<description>Servreg hack client</description> <source EXPORT="discard">[CONTIKI_DIR]/examples/servreg-hack/example-servreg-client.c</source>
<source EXPORT="discard">[CONTIKI_DIR]/examples/servreg-hack/example-servreg-client.c</source> <commands EXPORT="discard">make example-servreg-client.sky TARGET=sky</commands>
<commands EXPORT="discard">make example-servreg-client.sky TARGET=sky</commands> <firmware EXPORT="copy">[CONTIKI_DIR]/examples/servreg-hack/example-servreg-client.sky</firmware>
<firmware EXPORT="copy">[CONTIKI_DIR]/examples/servreg-hack/example-servreg-client.sky</firmware> <moteinterface>org.contikios.cooja.interfaces.Position</moteinterface>
<moteinterface>org.contikios.cooja.interfaces.Position</moteinterface> <moteinterface>org.contikios.cooja.interfaces.RimeAddress</moteinterface>
<moteinterface>org.contikios.cooja.interfaces.RimeAddress</moteinterface> <moteinterface>org.contikios.cooja.interfaces.IPAddress</moteinterface>
<moteinterface>org.contikios.cooja.interfaces.IPAddress</moteinterface> <moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface>
<moteinterface>org.contikios.cooja.interfaces.Mote2MoteRelations</moteinterface> <moteinterface>org.contikios.cooja.interfaces.MoteAttributes</moteinterface>
<moteinterface>org.contikios.cooja.interfaces.MoteAttributes</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspClock</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspClock</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspMoteID</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspMoteID</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyButton</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyFlash</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyCoffeeFilesystem</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyCoffeeFilesystem</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.Msp802154Radio</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyByteRadio</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspSerial</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspSerial</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyLED</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.MspDebugOutput</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.MspDebugOutput</moteinterface> <moteinterface>org.contikios.cooja.mspmote.interfaces.SkyTemperature</moteinterface>
<moteinterface>org.contikios.cooja.mspmote.interfaces.SkyTemperature</moteinterface> </motetype>
</motetype> <mote>
<mote> <breakpoints />
<breakpoints /> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.interfaces.Position <x>45.693987609497896</x>
<x>45.693987609497896</x> <y>26.353051242505675</y>
<y>26.353051242505675</y> <z>0.0</z>
<z>0.0</z> </interface_config>
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.mspmote.interfaces.MspMoteID
org.contikios.cooja.mspmote.interfaces.MspMoteID <id>1</id>
<id>1</id> </interface_config>
</interface_config> <motetype_identifier>sky1</motetype_identifier>
<motetype_identifier>sky1</motetype_identifier> </mote>
</mote> <mote>
<mote> <breakpoints />
<breakpoints /> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.interfaces.Position <x>18.451397050087735</x>
<x>18.451397050087735</x> <y>55.93074152489276</y>
<y>55.93074152489276</y> <z>0.0</z>
<z>0.0</z> </interface_config>
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.mspmote.interfaces.MspMoteID
org.contikios.cooja.mspmote.interfaces.MspMoteID <id>2</id>
<id>2</id> </interface_config>
</interface_config> <motetype_identifier>sky2</motetype_identifier>
<motetype_identifier>sky2</motetype_identifier> </mote>
</mote> <mote>
<mote> <breakpoints />
<breakpoints /> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.interfaces.Position <x>45.082598269523864</x>
<x>45.082598269523864</x> <y>52.7178388400784</y>
<y>52.7178388400784</y> <z>0.0</z>
<z>0.0</z> </interface_config>
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.mspmote.interfaces.MspMoteID
org.contikios.cooja.mspmote.interfaces.MspMoteID <id>3</id>
<id>3</id> </interface_config>
</interface_config> <motetype_identifier>sky2</motetype_identifier>
<motetype_identifier>sky2</motetype_identifier> </mote>
</mote> <mote>
<mote> <breakpoints />
<breakpoints /> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.interfaces.Position <x>11.116935333105516</x>
<x>11.116935333105516</x> <y>49.070534908051414</y>
<y>49.070534908051414</y> <z>0.0</z>
<z>0.0</z> </interface_config>
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.mspmote.interfaces.MspMoteID
org.contikios.cooja.mspmote.interfaces.MspMoteID <id>4</id>
<id>4</id> </interface_config>
</interface_config> <motetype_identifier>sky2</motetype_identifier>
<motetype_identifier>sky2</motetype_identifier> </mote>
</mote> <mote>
<mote> <breakpoints />
<breakpoints /> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.interfaces.Position <x>85.11866272622683</x>
<x>85.11866272622683</x> <y>30.030092430999066</y>
<y>30.030092430999066</y> <z>0.0</z>
<z>0.0</z> </interface_config>
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.mspmote.interfaces.MspMoteID
org.contikios.cooja.mspmote.interfaces.MspMoteID <id>5</id>
<id>5</id> </interface_config>
</interface_config> <motetype_identifier>sky2</motetype_identifier>
<motetype_identifier>sky2</motetype_identifier> </mote>
</mote> <mote>
<mote> <breakpoints />
<breakpoints /> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.interfaces.Position <x>30.71302161006234</x>
<x>30.71302161006234</x> <y>13.877842534368446</y>
<y>13.877842534368446</y> <z>0.0</z>
<z>0.0</z> </interface_config>
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.mspmote.interfaces.MspMoteID
org.contikios.cooja.mspmote.interfaces.MspMoteID <id>6</id>
<id>6</id> </interface_config>
</interface_config> <motetype_identifier>sky2</motetype_identifier>
<motetype_identifier>sky2</motetype_identifier> </mote>
</mote> <mote>
<mote> <breakpoints />
<breakpoints /> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.interfaces.Position <x>44.43705509785284</x>
<x>44.43705509785284</x> <y>69.81167027376168</y>
<y>69.81167027376168</y> <z>0.0</z>
<z>0.0</z> </interface_config>
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.mspmote.interfaces.MspMoteID
org.contikios.cooja.mspmote.interfaces.MspMoteID <id>7</id>
<id>7</id> </interface_config>
</interface_config> <motetype_identifier>sky2</motetype_identifier>
<motetype_identifier>sky2</motetype_identifier> </mote>
</mote> <mote>
<mote> <breakpoints />
<breakpoints /> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.interfaces.Position <x>64.10992023465046</x>
<x>64.10992023465046</x> <y>20.589540162635835</y>
<y>20.589540162635835</y> <z>0.0</z>
<z>0.0</z> </interface_config>
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.mspmote.interfaces.MspMoteID
org.contikios.cooja.mspmote.interfaces.MspMoteID <id>8</id>
<id>8</id> </interface_config>
</interface_config> <motetype_identifier>sky2</motetype_identifier>
<motetype_identifier>sky2</motetype_identifier> </mote>
</mote> <mote>
<mote> <breakpoints />
<breakpoints /> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.interfaces.Position <x>32.29787406276132</x>
<x>32.29787406276132</x> <y>18.754900913594753</y>
<y>18.754900913594753</y> <z>0.0</z>
<z>0.0</z> </interface_config>
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.mspmote.interfaces.MspMoteID
org.contikios.cooja.mspmote.interfaces.MspMoteID <id>9</id>
<id>9</id> </interface_config>
</interface_config> <motetype_identifier>sky2</motetype_identifier>
<motetype_identifier>sky2</motetype_identifier> </mote>
</mote> <mote>
<mote> <breakpoints />
<breakpoints /> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.interfaces.Position <x>25.28398611019028</x>
<x>25.28398611019028</x> <y>69.27186586570369</y>
<y>69.27186586570369</y> <z>0.0</z>
<z>0.0</z> </interface_config>
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.mspmote.interfaces.MspMoteID
org.contikios.cooja.mspmote.interfaces.MspMoteID <id>10</id>
<id>10</id> </interface_config>
</interface_config> <motetype_identifier>sky2</motetype_identifier>
<motetype_identifier>sky2</motetype_identifier> </mote>
</mote> <mote>
<mote> <breakpoints />
<breakpoints /> <interface_config>
<interface_config> org.contikios.cooja.interfaces.Position
org.contikios.cooja.interfaces.Position <x>19.3359466030565</x>
<x>19.3359466030565</x> <y>17.321986704081503</y>
<y>17.321986704081503</y> <z>0.0</z>
<z>0.0</z> </interface_config>
</interface_config> <interface_config>
<interface_config> org.contikios.cooja.mspmote.interfaces.MspMoteID
org.contikios.cooja.mspmote.interfaces.MspMoteID <id>11</id>
<id>11</id> </interface_config>
</interface_config> <motetype_identifier>sky2</motetype_identifier>
<motetype_identifier>sky2</motetype_identifier> </mote>
</mote> </simulation>
</simulation> <plugin>
<plugin> org.contikios.cooja.plugins.SimControl
org.contikios.cooja.plugins.SimControl <width>318</width>
<width>318</width> <z>1</z>
<z>1</z> <height>172</height>
<height>172</height> <location_x>0</location_x>
<location_x>0</location_x> <location_y>0</location_y>
<location_y>0</location_y> </plugin>
</plugin> <plugin>
<plugin> org.contikios.cooja.plugins.Visualizer
org.contikios.cooja.plugins.Visualizer <plugin_config>
<plugin_config> <skin>org.contikios.cooja.plugins.skins.IDVisualizerSkin</skin>
<skin>org.contikios.cooja.plugins.skins.IDVisualizerSkin</skin> <skin>org.contikios.cooja.plugins.skins.MoteTypeVisualizerSkin</skin>
<skin>org.contikios.cooja.plugins.skins.MoteTypeVisualizerSkin</skin> <skin>org.contikios.cooja.plugins.skins.AttributeVisualizerSkin</skin>
<skin>org.contikios.cooja.plugins.skins.AttributeVisualizerSkin</skin> <skin>org.contikios.cooja.plugins.skins.UDGMVisualizerSkin</skin>
<skin>org.contikios.cooja.plugins.skins.UDGMVisualizerSkin</skin> <skin>org.contikios.cooja.plugins.skins.GridVisualizerSkin</skin>
<skin>org.contikios.cooja.plugins.skins.GridVisualizerSkin</skin> <viewport>3.56257040103728 0.0 0.0 3.56257040103728 -26.423046586149052 -28.07489060373735</viewport>
<viewport>3.56257040103728 0.0 0.0 3.56257040103728 -26.423046586149052 -28.07489060373735</viewport> </plugin_config>
</plugin_config> <width>300</width>
<width>300</width> <z>2</z>
<z>2</z> <height>300</height>
<height>300</height> <location_x>1140</location_x>
<location_x>1140</location_x> <location_y>0</location_y>
<location_y>0</location_y> </plugin>
</plugin> <plugin>
<plugin> org.contikios.cooja.plugins.LogListener
org.contikios.cooja.plugins.LogListener <plugin_config>
<plugin_config> <filter />
<filter /> <formatted_time />
</plugin_config> <coloring />
<width>1440</width> </plugin_config>
<z>3</z> <width>1440</width>
<height>324</height> <z>3</z>
<location_x>2</location_x> <height>324</height>
<location_y>270</location_y> <location_x>2</location_x>
</plugin> <location_y>270</location_y>
<plugin> </plugin>
org.contikios.cooja.plugins.TimeLine <plugin>
<plugin_config> org.contikios.cooja.plugins.TimeLine
<mote>0</mote> <plugin_config>
<mote>1</mote> <mote>0</mote>
<mote>2</mote> <mote>1</mote>
<mote>3</mote> <mote>2</mote>
<mote>4</mote> <mote>3</mote>
<mote>5</mote> <mote>4</mote>
<mote>6</mote> <mote>5</mote>
<mote>7</mote> <mote>6</mote>
<mote>8</mote> <mote>7</mote>
<mote>9</mote> <mote>8</mote>
<mote>10</mote> <mote>9</mote>
<showRadioRXTX /> <mote>10</mote>
<showRadioHW /> <showRadioRXTX />
<split>125</split> <showRadioHW />
<zoomfactor>1633.2339825135305</zoomfactor> <zoomfactor>1633.2339825135305</zoomfactor>
</plugin_config> </plugin_config>
<width>1440</width> <width>1440</width>
<z>4</z> <z>4</z>
<height>238</height> <height>238</height>
<location_x>0</location_x> <location_x>0</location_x>
<location_y>595</location_y> <location_y>595</location_y>
</plugin> </plugin>
<plugin> <plugin>
org.contikios.cooja.plugins.ScriptRunner org.contikios.cooja.plugins.ScriptRunner
<plugin_config> <plugin_config>
<script>/* <script>/*
* Example Contiki test script (JavaScript). * Example Contiki test script (JavaScript).
* A Contiki test script acts on mote output, such as via printf()'s. * A Contiki test script acts on mote output, such as via printf()'s.
* The script may operate on the following variables: * The script may operate on the following variables:
* Mote mote, int id, String msg * Mote mote, int id, String msg
*/ */
TIMEOUT(120000); TIMEOUT(120000);
num = 0; num = 0;
while(true) { while(true) {
YIELD(); YIELD();
WAIT_UNTIL(msg.startsWith('Id')); WAIT_UNTIL(msg.startsWith('Id'));
num++; num++;
if(num == 9) { if(num == 9) {
log.testOK(); log.testOK();
} }
}</script> }</script>
<active>true</active> <active>true</active>
</plugin_config> </plugin_config>
<width>600</width> <width>600</width>
<z>0</z> <z>0</z>
<height>700</height> <height>700</height>
<location_x>526</location_x> <location_x>526</location_x>
<location_y>6</location_y> <location_y>6</location_y>
</plugin> </plugin>
</simconf> </simconf>