Hi Urs,

you are right about the local variable. I made it a global variable  
and am checking the behaviour now.

Thanks, David.

Am 01.09.2009 um 14:58 schrieb Urs Hunkeler:

> Hi David,
>
> I had a brief look at the code in one of your previous messages. It  
> seems that you use a local variable (rrMessage) as an argument to  
> the send function. This might be your problem as the variable gets  
> released once the function (dsrRouteRequest) terminates, but the  
> TinyOS radio library will still have a reference to that radio.
>
> Try to declare a global variable (maybe an array if needed) for  
> sending packets. You might have to include code to ensure that  
> multiple calls to your function will not interfere with each other.
>
> Cheers,
> Urs
>
>
> David wrote:
>> I increased send speed now and can see no more errors or crashes.  
>> This  is strange isn't it? I was sending one message every two  
>> seconds  before, now I'm sending one message every 750ms.
>> David.

_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to