What radio are you using? The only ways AMSend.send() *should* fail is if that AMSenderC is busy, or the radio is off. However, at least the CC1000 radio stack can lock up when the radio is turned off during a send, because then no sendDone() event is generated and it thinks it's still busy.
If you want to know the gory details, just start at AMSenderC.send() and work your way down from there to see where you'd potentially get something back that's not SUCCESS. 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 Nicole Caruso Sent: zondag 9 december 2007 23:28 To: [email protected] Subject: [Tinyos-help] AMSend.send() unsuccessful AMSend.send() is not successful sometimes. What are some possible causes for an unsuccessful send? We have tried restarting the radio (i.e. turning it off, then turning it back on) when a send is unsuccessful, but it hasn't helped. Is it possible that the radio fails to turn on/off even if the it returns success? Here are some details about our particular algorithm, in case they contribute to the problem: Messages must be exchanged between one node (denoted the active node, whose radio is always on) and several other nodes (denoted redundant nodes, whose radios periodically turn off). We do not specify a node address when sending messages. Instead, messages are broadcast and each node uses "if" statements to filter out messages meant for other nodes.
<<image001.jpg>>
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
