]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Mirage MicaZ Test and Test Code Update
authorkaisenl <kaisenl>
Sat, 26 Jan 2008 08:30:59 +0000 (08:30 +0000)
committerkaisenl <kaisenl>
Sat, 26 Jan 2008 08:30:59 +0000 (08:30 +0000)
apps/tests/TestDIP/README
apps/tests/TestDIP/TestDIPP-Master.nc

index 2d81083e12b1132c983e64e2fc1269df020a05e1..97b9d7cd2158ed0bbf977763c32276da622f3c79 100644 (file)
@@ -30,8 +30,8 @@ typedef nx_struct dip_test_msg_t {
   nx_uint8_t isOk;
 } dip_test_msg_t;
 
-Every time a node a receives a new item, it sends a dip_test_msg_t
-through the serial interface.
+When a node receives a new item, it sends a dip_test_msg_t through the
+serial interface.
 
 id is the node id
 count is how many new items it has received so far
@@ -39,9 +39,14 @@ isOk will be true if the data value was as expected
 
 4. TIMING
 
-With a single sender and single receiver on a table, it takes
-approximately:
+With a single sender and single receiver on a table using TelosB
+nodes, it takes approximately:
 
 3.5 minutes for a node to receive 128 out of 128 items. 
 4.0 minutes for a node to receive 240 out of 240 items.
 
+With a single sender and two receivers on Mirage MicaZ nodes, it takes
+approximately:
+
+2 minutes for both nodes to receive 96 out of 96 items.
+With 128 items or more, MicaZ nodes don't receive anything. Memory limitation?
index 696743df64af08822c11f3e368f4e730b276eb67..2215ace93188021f74cefe8e4820223b8fd7776e 100644 (file)
@@ -72,14 +72,16 @@ implementation {
     }
     dbg("TestDIPP", "Got an update, %u complete now at %s\n", count, sim_time_string());
     call Leds.led0Toggle();
+
+    testmsg = (dip_test_msg_t*) call SerialSend.getPayload(&m_test, 0);
+    testmsg->id = TOS_NODE_ID;
+    testmsg->count = count;
+    testmsg->isOk = okbit;
+    call SerialSend.send(0, &m_test, sizeof(dip_test_msg_t));
     
+
     if(newcount == count) {
       call Leds.set(7);
-      testmsg = (dip_test_msg_t*) call SerialSend.getPayload(&m_test, 0);
-      testmsg->id = TOS_NODE_ID;
-      testmsg->count = count;
-      testmsg->isOk = okbit;
-      call SerialSend.send(0, &m_test, sizeof(dip_test_msg_t));
     }
     
   }