Re: [Tinyos-help] Msg.send always fails

2007-02-23 Thread Philip Levis
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

Re: [Tinyos-help] Msg.send always fails

2007-02-23 Thread Panos Kampanakis
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

Re: [Tinyos-help] Msg.send always fails

2007-02-23 Thread Michael Schippling
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

[Tinyos-help] Msg.send always fails

2007-02-23 Thread Panos Kampanakis
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