actually when I tried to run the basic leach.tcl it was not running properly. So I searched on net and there I found that I need to configure and then downloaded the leach patch zip file and leach-setup.sh file for my ns2... After performing some steps as mentioned in some blog again it was showing some errors. Also makefile.in file is locked in my OS as I was trying to do changes for gcc and g++ it was not allowing me....
Can you please tell me that if I want to work for Fault Detection in WSN from where I should start for making an appropriate TCL file related to my objective.
yes, as Mr.Boudhir said, Mannasim is a patchfile which help you to run leach.
If you neaad Leach Tcl file, I can send u via msg. In order to wirte other Tcl codes, it doesnt matter where u create them, u just run them from the address u made them.
actually I already have ns2.34 installed on my Pc. Does this patch provided on the link for mannasim works after installation or I have to first use the command patch -p1 < file_name.diff and after patching up .diff file then I need to make the fresh installation for ns2.34 on my Pc.
As after installation I tried patching up it is not working. Is there any command for post installation patching of mannasim withns2.34
OR I have to start from fresh installation for mannasim.
so u have ns2allinone folder already, after that u are gonna download the compatible version of mannasim for your ns2.34 and then patch it. U may google it to facilitate your work. its easy to install it, just some simple steps and that's it!
I checked my folders, and I just found a Single folder mit in this address: /ns-234-leach/mit
and inside of the leach.err file, its written : INITIALIZE THE LIST xListHead
SORTING LISTS ...DONE!
means there is no error. so I suppose that this folder has the correct one!
about leach.tr, it depends on where do u address about creation of trace file. U should check your TCL file and find where its written about the address of trace files. Or an easier way is searching for the name of the trace file through your /home. So u may find it sooner! and rememeber that there is no special rule that your .tr file has been saved in your NS folder, it can be saved in your document, home or even desktop!
which Tcl file did u use for running leach? Did I send it to U? because as I remember correctly , what I've got as a result was totally different! Could u plz send the tcl code which you've used?
and for getting plit graph , u need to use xgraph commands adding to ur Tcl file.
Can the leach protocol successfully be installed in ns2.34? i have tried it many times, but i am not successful. Can anyone tell me which operating system with version and ns2 version will be easier to mplement LEACH protocol with successfull results.