On Feb 23, 2007, at 1:44 PM, Panos Kampanakis wrote:
Hi,
I have the following code in TinyOS:
event result_t Msg1.sendDone(TOS_MsgPtr sent, result_t success) {
call TP.functionTest(); // takes 10 secs
call Msg2.send(TOS_UART_ADDR, sizeof(tp_time_msg), &report);
return SUCCESS;
}
W
MAIL PROTECTED]>
Cc:
Sent: Friday, February 23, 2007 5:12 PM
Subject: Re: [Tinyos-help] Msg.send always fails
well, there's probably lots of stuff going on in the background
that doesn't get to run while your functionTest() hogs the controller.
I wouldn't hazard a guess as to exactl
well, there's probably lots of stuff going on in the background
that doesn't get to run while your functionTest() hogs the controller.
I wouldn't hazard a guess as to exactly what is getting hung up,
but the best TOS approach would be to break your function into
multiple tasks that post each other
Hi,
I have the following code in TinyOS:
event result_t Msg1.sendDone(TOS_MsgPtr sent, result_t success) {
call TP.functionTest(); // takes 10 secs
call Msg2.send(TOS_UART_ADDR, sizeof(tp_time_msg), &report);
return SUCCESS;
}
When I am trying to send a message after the call functio