On Jul 11, 2008, at 5:00 AM, Elvar Ólafsson wrote:

> Hi.
>
> I am using Timers in my TinyOS project using TinyOS 2.0.2. I do not  
> have any actual motes so I am simulating everything in TOSSIM. It  
> works great so far but when I set the timers to fire 10-20 million  
> milliseconds into the future then that takes alot of simulation  
> time(sometimes hours) even though nothing else is happening in my  
> program. Is the simulator slow or what? I thought it would advance  
> to the next event that is supposed to happen or is that a  
> misunderstanding on my behalf?
> My simulation has 100 nodes in them and it spends most of the time  
> waiting for the timers to fire.
>
> Hope anyone can shed a light on this matter.

You probably have an infinite loop (or really really long loop).  
TOSSIM does not model execution time, so computation takes zero  
simulation time. Correspondingly, a while(1) loop will cause the  
simulator to stop.

Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to