diff --git a/tools/cooja/contiki_tests/rime_collect.csc b/tools/cooja/contiki_tests/rime_collect.csc
index deb3e2d2a..e831dc5fb 100644
--- a/tools/cooja/contiki_tests/rime_collect.csc
+++ b/tools/cooja/contiki_tests/rime_collect.csc
@@ -16,7 +16,7 @@
10000000
se.sics.cooja.radiomediums.UDGM
- 67.0
+ 80.0
0.0
1.0
1.0
@@ -26,7 +26,7 @@
se.sics.cooja.contikimote.ContikiMoteType
- mtype374
+ mtype949
Contiki Mote Type #1
[CONTIKI_DIR]/examples/rime/example-collect.c
make example-collect.cooja TARGET=cooja
@@ -59,7 +59,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
1
- mtype374
+ mtype949
@@ -72,7 +72,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
2
- mtype374
+ mtype949
@@ -85,7 +85,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
3
- mtype374
+ mtype949
@@ -98,7 +98,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
4
- mtype374
+ mtype949
@@ -111,7 +111,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
5
- mtype374
+ mtype949
@@ -124,7 +124,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
6
- mtype374
+ mtype949
@@ -137,7 +137,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
7
- mtype374
+ mtype949
@@ -150,7 +150,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
8
- mtype374
+ mtype949
@@ -163,7 +163,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
9
- mtype374
+ mtype949
@@ -176,7 +176,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
10
- mtype374
+ mtype949
@@ -189,7 +189,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
11
- mtype374
+ mtype949
@@ -202,7 +202,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
12
- mtype374
+ mtype949
@@ -215,7 +215,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
13
- mtype374
+ mtype949
@@ -228,7 +228,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
14
- mtype374
+ mtype949
@@ -241,7 +241,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
15
- mtype374
+ mtype949
@@ -254,7 +254,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
16
- mtype374
+ mtype949
@@ -267,7 +267,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
17
- mtype374
+ mtype949
@@ -280,7 +280,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
18
- mtype374
+ mtype949
@@ -293,7 +293,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
19
- mtype374
+ mtype949
@@ -306,7 +306,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
20
- mtype374
+ mtype949
@@ -319,7 +319,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
21
- mtype374
+ mtype949
@@ -332,7 +332,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
22
- mtype374
+ mtype949
@@ -345,7 +345,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
23
- mtype374
+ mtype949
@@ -358,7 +358,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
24
- mtype374
+ mtype949
@@ -371,7 +371,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
25
- mtype374
+ mtype949
@@ -384,7 +384,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
26
- mtype374
+ mtype949
@@ -397,7 +397,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
27
- mtype374
+ mtype949
@@ -410,7 +410,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
28
- mtype374
+ mtype949
@@ -423,7 +423,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
29
- mtype374
+ mtype949
@@ -436,7 +436,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
30
- mtype374
+ mtype949
@@ -449,7 +449,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
31
- mtype374
+ mtype949
@@ -462,7 +462,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
32
- mtype374
+ mtype949
@@ -475,7 +475,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
33
- mtype374
+ mtype949
@@ -488,7 +488,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
34
- mtype374
+ mtype949
@@ -501,7 +501,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
35
- mtype374
+ mtype949
@@ -514,7 +514,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
36
- mtype374
+ mtype949
@@ -527,7 +527,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
37
- mtype374
+ mtype949
@@ -540,7 +540,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
38
- mtype374
+ mtype949
@@ -553,7 +553,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
39
- mtype374
+ mtype949
@@ -566,7 +566,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
40
- mtype374
+ mtype949
@@ -579,7 +579,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
41
- mtype374
+ mtype949
@@ -592,7 +592,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
42
- mtype374
+ mtype949
@@ -605,7 +605,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
43
- mtype374
+ mtype949
@@ -618,7 +618,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
44
- mtype374
+ mtype949
@@ -631,7 +631,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
45
- mtype374
+ mtype949
@@ -644,7 +644,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
46
- mtype374
+ mtype949
@@ -657,7 +657,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
47
- mtype374
+ mtype949
@@ -670,7 +670,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
48
- mtype374
+ mtype949
@@ -683,7 +683,7 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
49
- mtype374
+ mtype949
@@ -696,13 +696,13 @@
se.sics.cooja.contikimote.interfaces.ContikiMoteID
50
- mtype374
+ mtype949
se.sics.cooja.plugins.SimControl
262
- 3
+ 1
185
0
0
@@ -715,7 +715,7 @@
1.283542488892569 0.0 0.0 1.283542488892569 56.0530822138472 6.888296017222324
496
- 0
+ 3
198
1
184
@@ -723,10 +723,10 @@
se.sics.cooja.plugins.LogListener
-
+ ID:1
- 497
- 1
+ 933
+ 2
333
0
381
@@ -752,7 +752,6 @@ function print_stats() {
/* Init */
sink = 0;
-booted = new Array();
hops = new Array();
dups = new Array();
received = new Array();
@@ -760,31 +759,22 @@ received = new Array();
doubleFormat = new java.text.DecimalFormat("0.00");
integerFormat = new java.text.DecimalFormat("00");
for(i = 1; i <= num_nodes; i++) {
- booted[i] = false;
received[i] = "__________";
hops[i] = received[i];
}
-/* Wait until all nodes have started */
log.log("Simulation has " + num_nodes + " nodes\n");
-for(i = 1; i <= num_nodes; i++) {
- YIELD_THEN_WAIT_UNTIL(msg.startsWith('Starting'));
- /* log.log("Node " + id + " booted\n");*/
-}
-
-/* Create sink */
-log.log("All nodes booted, sink is node 1\n\n");
-sink = 1;
-mote.getInterfaces().getButton().clickButton();
while(true) {
YIELD();
-
+ log.log(time + " " + id + " " + msg + "\n");
/* Count sensor data packets */
if(msg.startsWith("Sink got message")) {
+
node_text = msg.split(" ")[4];
seqno_text = msg.split(" ")[6];
hops_text = msg.split(" ")[8];
+
if(node_text) {
source = parseInt(node_text);
seqno = parseInt(seqno_text);
@@ -809,14 +799,12 @@ while(true) {
/* Signal OK if all nodes have reported 10 messages. */
num_reported = 0;
for(i = 1; i <= num_nodes; i++) {
- if(i != sink) {
- if(!isNaN(received[i])) {
- num_reported++;
- }
+ if(!isNaN(received[i])) {
+ num_reported++;
}
}
- if(num_reported == num_nodes - 1) {
+ if(num_reported == num_nodes) {
print_stats();
log.testOK();
}
@@ -824,7 +812,7 @@ while(true) {
true
676
- 2
+ 0
714
497
0
diff --git a/tools/cooja/contiki_tests/rime_collect_sky.csc b/tools/cooja/contiki_tests/rime_collect_sky.csc
index a01da38ef..f9c7a6a82 100644
--- a/tools/cooja/contiki_tests/rime_collect_sky.csc
+++ b/tools/cooja/contiki_tests/rime_collect_sky.csc
@@ -356,134 +356,79 @@ make example-collect.sky TARGET=sky
se.sics.cooja.plugins.ScriptRunner
-
+ }
true
600