Yes, warnings that "timer.start() is called asynchronously" are
exactly what I mean. You must call Timer.start from within a task.
If you are calling it from a command or event marked "async" (or from
an internal function called by one of those), then you need to post a
task that starts your timer, instead of starting the timer directly.
Search the mailing list archives for more information on task vs
asynchronous, task execution, and so on.
Cory
On 3/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> > Are you calling Timer commands from task or interrupt (async) context?
> > Note, the Timer commands must be called from within task context and
> > with break the Timer component if called within interrupt context.
> >
> Sorry Cory, but i don't really know the diference(i'm a little new on
> tinyos...). I get some warnings when i compile that tells me that the
> timer.start() is called asyncronuosly. Is that waht you mean?
> The wiring of the timers are that:
>
>
> CC2420RadioM.TrxTimer -> TimerC.Timer[unique("Timer")];
> CC2420RadioM.AckTimer -> TimerC.Timer[unique("Timer")];
>
> (in the cc2420RadioC)
>
> and then i use :
>
> call TraxTimer.start( , )
>
> it means that i call then asyncronusly. What i want to do is launch the
> itmer at the begining, send packets, or whatever the b-mac protocol
> should do, and then when the timer fires, shut down the radio. That
> works, but the problem is the one i told in the other mail. am i doing
> something wrong?
> Thnks a lot
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help