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
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?
}
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));
}
}