Hi.
In case there was something wrong with my code, I decided to try this out on
the BlinkToRadio app that is described in the mote-to-mote communication
tutorial. After doing some unofficial timing of the program running with 16
and 32 nodes, with the timer firing every 2.500.000 milliseconds, it seems
that when you double the amount of nodes simulated then the real-time
between firing also doubles. If you double the time that the timers fire at,
then the real-time also doubles.
This code contains no loops except the following one, which is in my python
script. It makes sure that simulator runs until I tell it to stop.
status = t.runNextEvent();
try:
while(status != 0):
status = t.runNextEvent();
except KeyboardInterrupt:
print "Simulation stopped"
So I guess the simulator just becomes that slow when running with 100+ nodes
and making them fire every 10-15 million milliseconds. Unless, I am
misunderstanding something.
With regards,
Elvar Olafsson
On Fri, Jul 11, 2008 at 9:14 PM, Philip Levis <[EMAIL PROTECTED]> wrote:
>
> 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