You can maintain a "busy" state variable in your send and
sendDone functions such that only one is executed at at time.
Or you can use a queued message system. I think there's a
QueuedSend interface ... try searching for "queue" and see
where/how.

MS


Omar Losi wrote:
> Hi all,
>  
> I kindly ask you to help me with the following problem:
>  
> 1) NODE A: send an hello packet
> 2) NODE B: answers to node A
> 3) NODE A:  after receiving answer from B, must send data to node B and 
> these data must be read from the memory(an array that simulates flash 
> memory)
>  
> n.b.: Reading and writing in the array are effected by two interfaces 
> implemented by me
>  
> The problem is the following: when node A tries to send data stored in 
> the array, many times the radio is busy.(as node A is sending an hello 
> packet, right?)
> Can you suggest me a solution in order to send these data?
>  
> Many thanks for your help
>  
> Omar
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to