You can not send a packet until the previous packet has been transmitted. One should wait untill the "AMSend.sendDone" is signalled and then proceed with next packet.
If you see any sample programs under app/, you may notice a "sendBusy" flag. Manjunath D ################################################################################################################ *************************************************************************************************************** On Tue, 26 Oct 2010, [email protected] wrote: > Hi, > > I am a newbie to nesc and tinyos. . I have a small problem with concurrent > send. I have a mote that sends a packet of 96 byes of payload every 2 > seconds. I am trying to send this packet to three different receiving motes, > through the Same AM layer. So basically, I am sending 3 packets of 96 byes > of payload each, to 3 different receiving nodes every 2 secs via the same > AMLayer. > > I am doing data filling and *call AMSend.send* for sending it to each node > in three different tasks and posting it all in Timer.fired event. But I see > that only task one is getting posted,, and the other 2 tasks are not gettin > posted. I checked this by using printf statements on the receiving ends, > that were printed on the terminal. i.e the node that is receiving the packet > correctly prints the data correctly on the terminal while the other two does > not print anything at all.. > > I hope i have explained my problem clearly. Could someone tell me what Am i > doing wrong? Or could anyone suggest any other ideas of doing a Concurrent > send to 3 different nodes every 2 secs? > > Thank you very much,, > > Regards, > Venkat. > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
