I need, in a 3 nodes line net, the second node to forward a beacon from node
1 to 3 and vice versa
The only problem is that the node 2, just after sent a beacon, is still busy
and cannot forward the second beacon
*if(!busy) {*
* **dbg("ProActiveC", " Propagating the beacon forward..\n");*
* **PPpkt->from = TOS_NODE_ID;*
* **if (call AMSend.send(AM_BROADCAST_ADDR, msg, sizeof(BeaconMsg)) ==
SUCCESS) {*
* **dbg("ProActiveC", "[%s]ProActiveC: beacon sent.\n", sim_time_string());*
* *
* **busy = TRUE;*
* **add_cache_table(PPpkt->seq, PPpkt->src);*
* **print_cache_table();*
* **}*
* **}*
* **else *
* **dbg("ProActiveC","+++++++++++++++++++ BUSY!!! ++++++++++++++++++\n");*
Any ideas?
Thanks in advance,
Giuseppe
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help