I would like to simulate mobility in some nodes and I have seen some references indicate that this is not feasible without modifying TOSSIM. I cannot find any source code for these modifications, so I just attempted to change gain values in the middle of my simulation at set times in order to simulate mobility. Is there any reason why this would not work? When I tried this, it seems to work.
Just for reference, here is the code snippet: ************************************************* while (t.time() / t.ticksPerSecond() < 45): t.runNextEvent() #this should break contact between nodes 2 and 3 r.add(2,3,-130) r.add(3,2,-130) while (t.time() / t.ticksPerSecond() < 90): t.runNextEvent() #this should re-establish contact between nodes 2 and 3 r.add(2,3,-70) r.add(3,2,-70) while (t.time() / t.ticksPerSecond() < 130): t.runNextEvent() ************************************************************** Best, -AR
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
