On Jul 9, 2008, at 12:35 PM, Nahr ... wrote: > > > Hi all, > > I found a very astonishing thing in Tossim simulator because I got > extremely different result from one simulation to an other. > In the first simulation I get the packet delivery rate = ~ 0.9 > in the second I get the packet delivery rate = 0 !!!!!!!!!!!!!! > I found that it is illogical result. > > I am using this code to turn mote aff and restart the second > simulation: > > for simul in range(1,(nbrsimulation + 1)): > t = Tossim([]) > r = t.radio() > numnodes = 2 > for i in range(0, numnodes): > m = t.getNode(i); > time = randint(t.ticksPerSecond(), 10 * t.ticksPerSecond()) > m.bootAtTime(time) > > ****************************** > ****************************** > > *******ADDing************** > *******GAIN &************** > *******Noise**************** > > ****************************** > ****************************** > for i in range(0, numnodes): > m = t.getNode(i); > m.turnOff() > > > > Could someone explain to me why?
Maybe in the second simulation one of the nodes never turned on (due to the random start time), or turned on just before turning off? Without knowing how long the simulation ran, it's hard to tell. Phil _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
