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 have spent a lot of time in actually
locating the place of the fault (by adding debug statements) but haven't
been able to as the point at which it stops keeps varying each time I run
it. I use random numbers though but don't think that should have much
affect on this. I have checked all the mallocs carefully too.

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 heard.

I really need to simulate the protocol. Any suggestions would be greatly
appreciated.

--
Regards,
Harshal A. Waghmare,
IIT Kanpur


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

Reply via email to