May I ask why you are using TinyOS 1.x. It is not supported since three years now. Why to use something in which no one will fix bugs and less people can help. Secondly, what mote you are using.
Thanks -- Faisal Aslam University of Freiburg http://cone.informatik.uni-freiburg.de/people/aslam/ Kiraneet sharma wrote: > Respected Sir, > > Thanks a lot for replying. It really means a lot to me. > > I was indeed overwriting some memory in the code, which I have fixed. > So for the time being got rid of segmentation fault. > > But the main problem still persists. > > I have attached the code snippet in the file 'details.txt'. Please > take a look whenever convenient for you. > Here nodes 1 and 2 send data to the leader node 3 which takes average > of 2 packets and sends this to base station. > > Now the code runs in an infinite loop because 3 keeps on getting data, > calculates correct average and sends to base station. But the base > station isnt receiving any data. How do I make it receive ? The event > should be triggered on its own isnt it? > > Or if you can suggest some other way of doing the same thing ? > > I hope to hear again from you.I am sure your pointers will help me > progress further. > > Thanking you in advance. > > Regards, > Kiraneet > > > On 11/26/09, Paul Johnson <[email protected]> wrote: > >> Kiraneet, >> >> As stated before, tinyos-1.x hasn't been in development for a few years, >> so it's unlikely that many people on the list are going to be able to >> give you much support. Please include at least the important code >> segments that you modified/created, otherwise, I can only guess in the >> dark about the problem. >> >> If TOSSIM is segfaulting, then it's very likely that you have some >> memory corruption issues. (unless there were some issues in TOSSIM for 1.x) >> >> -Paul >> >> Kiraneet sharma wrote: >> >>> Hello everyone... >>> >>> I had asked this query earlier but since I got no reply yet..I am >>> trying to explain the problem in detail.If someone could help me I >>> would be really grateful. >>> >>> I am trying to simulate data aggregation in tinyos-1.x >>> >>> I have 6 nodes: >>> 1 and 2 send their data to their leader i.e. node 3..similarly 4 and 5 >>> send data to node 6.. >>> after about collecting three readings nodes 3 and 6 calculate the >>> average and send the aggregated data to base station i.e. node 0. >>> >>> >>> This thing is done entirely in simulation and works well for ONE time >>> only. >>> After that nodes 3 and 6 continue to correctly calculate the average >>> and send data to base station,however it is never received. >>> >>> The thing is that when I am trying to implement the same logic without >>> any average calculation then it works fine. >>> >>> To implement this entire logic I have added a few statements in >>> receive and send in AMStandard. >>> >>> So is it possible that multiple sends are done consecutively and so >>> packet collision occurs, causing the packets to be dropped and not >>> being received by base station? >>> >>> At times the program terminates with a segmentation fault ? >>> Any pointers where should I do this averaging thing ? Where does the >>> problem lie? >>> >>> Thanks a lot in advance.. >>> >>> Hope to hear from you.. >>> >>> Best regards, >>> Kiraneet >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Tinyos-help mailing list >>> [email protected] >>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >>> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Tinyos-help mailing list >> [email protected] >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
