HI, another time. I have done what you told me, I don't have anymore the
wrnings about timers. But it seems like i have to put high values yet.
it's very strange, becuase in the aplication i use to(CntToRfm) there'a
another timre that works corrrectly. i have another problem. The
protocol works correctly. i mean, the radio stays sleeping along some
time and then it wakes up  and send packets. But it comes a moment that
the radio seems to forget the timer values. i mean. if it has to stay
10ms on and 100ms sleep, arrives a moment(some second or a minute) when
te period of wakes up and sleep turns the same value that i put in the
aplication. I mean if that, generate a value each 2 seconds. it works
correctly a long a time, and then the turning on and the sleep time,
becomes together 2 seconds. I know it's strange, but i don't have what
to do. any idea??thanks



 
> > 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

Reply via email to