On Jun 29, 2010, at 7:25 AM, [email protected] wrote: > Hi, > I have been trying to run a clustering protocol in tinyos2. I have written > some code for some part of the protocol. But whenever I run the code on > TOSSIM, it runs for a few events and then a Segmentation fault is flagged > and simulation stops abruptly. > > I tried removing the noise model part(i.e. commenting out the following in > python script): > ------code begins------ > for i in range(0,numNodes): > print "Creating noise model for ",i; > t.getNode(i).createNoiseModel() > ------code ends-------- > then the code runs and terminates smoothly but it is of not much use as > none of the sent messages are received. > > I really need to simulate the protocol. Any suggestions would be greatly > appreciated.
I'd suggest running it in gdb to find out what's causing the segfault. Chances are you are not initializing the noise model correctly. Take a look through the archives: similar problems come up occasionally. Phil _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
