On Jun 18, 2007, at 5:21 AM, Marek Jawurek wrote:

Hi Philip,

I think I found another problem concerning restart of Motes:
I have a running simulation where I stop after not getting any debug
message from my motes for a specified time and then restart all motes by
doing :

simt = tossim.time()
for i in range(0,maxNodes):
        tossim.turnOff(i)
for i in range(maxNodes-1,-1,-1):
        tossim.bootAtTime(simt+50)
        tossim.turnOn(i)

This works for a couple of times and then I get another Segfault. I ran
it throug gdb and appended the output.

As I said, you want to let the motes wait a bit before rebooting them (e.g., a few ms). 50 simulation ticks is not enough: it's something like 5 *nanoseconds*.

Phil



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

Reply via email to