Hi,
I am new with Tinyos programming and currently using Tinyos 2.0.2
I have installed the base station program in one node(A) and in another
node(B), Blinktoradio program has been installed.
Now node B should send packets only after receiving the broadcast message
from A. For this, I have made changes in Blinktoradio like
// After AMControl StopDone
event message_t* Receive1.receive( payload, uint8_t len){ // Receive1
interface been used
if (len == sizeof(BlinkToRadioMsg)) {
BlinkToRadioMsg* btrpkt1 = (BlinkToRadioMsg*)payload;
counter++;
btrpkt1->nodeid = TOS_NODE_ID;
if(TOS_NODE_ID == 1) { // node A node id is 1 given
call Timer0.startPeriodic(TIMER_PERIOD_MILLI); // In
timero.fired, AMSend.send is given to trasmit
}
Now my problem is, Node B starts sending packets to A, before it receiving
braodcast msg.
can you please tell me where the problem occured and which interface and
commands should be used for Receiving packets
Best regards,
Naresh
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help