Hi Andre,
It is no problem to call a new send from within sendDone. You do not
need that delay between messages.
In tinyos-1.x, Main.StdControl.start is called on the application
before the radio is finished starting up. So, if you are experiencing
trouble, you may want to try inserting an *initial* delay only before
the first message.
Cory
On 2/3/06, Andrea Pacini <[EMAIL PROTECTED]> wrote:
> I noticed that when you must send , for example, 3 messages, you must put a
> timer between a send and the following send;
> if I don't do it the following send cannot be executed. That is, the
> scheme I used is (for 3 send):
>
> [...]
> call Send(...); // send
> [...]
>
> [...]
> event senddone(..) {
> if (<FIRST SEND> or <SECOND SEND>)
>
> call Timer.start(TIMER_ONE_SHOT,<TIME>);
> }
> [...]
>
> Timer.fired() {
> [...]
> if (<FIRST SEND> OR <SECOND SEND>))
>
> call Send(...);
> [...]
> }
>
> If I don't put the timer (scheduled with <TIME> = 0.4 - 0.5 seconds) send
> are not executed. Do you confirm this behaviour ?
>
> Thanks
> Andre
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help