When you call send() and it returns SUCCESS, the packet goes into a queue with the promise to send it at some point in the future. The radio might first finish receiving a packet and/or wait for the channel to clear if it is currently busy. After that, it'll go into TX mode and actually send the packet.
HTH, Michiel SOWNet logo_KL Michiel Konstapel Software Engineer T: +31 (0)15 26 00 44 6 F: +31 (0)15 26 00 40 5 W: www.sownet.nl From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tingting Sun Sent: vrijdag 30 november 2007 0:26 To: [email protected] Subject: [Tinyos-help] send(), senddone() and receive() Hi All, For some reason my motes are getting interrupted between AMSend.send() and AMSend.sendDone() by the Receive.receive() event. But to my understanding, after a send() and before a senddone(), the radio is in "tx" mode and should not go to "rx" mode in the middle to enable a receive, is that correct? Any quick suggestions, if possible, would be greately appreciated. Here are some details about my project, in case they contribute to my problem: I am trying to implement a network of 6 or so motes. Part of my algorithm includes having the five nodes turn their radios off periodically. While their radios are on, these five of the nodes must exchange messages with the sixth node, whose radio is always on. regards, tingting
<<image001.jpg>>
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
