[Tinyos-help] sending of message over the radio
Gaurav Chhawchharia
gchhawchharia at gmail.com
Sun May 4 11:32:37 PDT 2008
Hello All,
I am using tinyOS-1.x on windows with cygwin.
I am trying to send a broadcast message through the radio.
I give the command to send the message in the StdControl.start(). The
SendMsg.send returned a SUCCESS but the sendDone was not called and in
fact the message was not even received at the receiver.
Next, I put the SendMsg.send command in a function and called the same
in StdControl.start. The resultant behavior was the same as above.
After this, I put the SendMsg.send command in a task and posted the
task from StdControl.start. Again the behavior was the same.
Finally I set an alarm in StdControl.start, and in the alarm.fired(),
i called SendMsg.send. This time it WORKED perfectly.
Now I am trying to send another message when the sendDone is signaled
(giving the SendMsg.send command in the body of the event
SendMsg.sendDone). If i send the message to TOS_UART_ADDR, it works
perfectly. However, if i send the message to TOS_BCAST_ADDR, the
SendMsg.send doesnt even return a SUCCESS.
Please, someone, explain this behavior.
Thanks in advance.
Gaurav.
More information about the Tinyos-help
mailing list