LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   want to run leach.tcl file generated from manassim (https://www.linuxquestions.org/questions/linux-newbie-8/want-to-run-leach-tcl-file-generated-from-manassim-4175583039/)

lakshmisreepanigrahi 06-25-2016 04:43 AM

want to run leach.tcl file generated from manassim
 
Can anybody help me
in running the leach tcl file from manas
sim whose error is as follows:

Initializing MannaSim Script...
Setting up mica 2 mote with Antenna/OmniAntenna and range = 100
invalid command name "Node/MobileNode/SensorNode"
while executing
"Node/MobileNode/SensorNode set sensingPower_ 0.015"
(procedure "setup_mica2" line 18)
invoked from within
"setup_mica2 $val(antenna) $val(range)"
(procedure "set_default_settings" line 29)
invoked from within
"set_default_settings"
(file "leach.tcl" line 493)

knudfl 06-25-2016 06:37 AM

Welcome to LQ.

"leach.tcl" : Where did you find it ?

There are LEACH_mannasim.tcl, kartiksd-leach.tcl in the examples, mannasim-examples05.2016.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing



-

lakshmisreepanigrahi 06-27-2016 05:04 AM

reply
 
hello knudfl,
I have created the leach.tcl file by using the ScriptGeneratorTool.
Now,plz help me in debugging the error.

thank you.

knudfl 06-27-2016 05:52 AM

Re #3.

You have to be very lucky to create a usable leach simulation with 'ScriptGeneratorTool'.
... If it was an easy task, we would have more than two known examples.
( LEACH_mannasim.tcl, kartiksd-leach.tcl ).
... You can use those examples to edit your {mannasim leach.tcl}.

Please upload your file to 'Google Drive' or dropbox ... and use a unique file name.
* The file name leach.tcl already exists : Suggested file name = mannasim-leach-4.tcl .
( We have a lot of "leach*.tcl files already : The "MIT leach".)


-

lakshmisreepanigrahi 06-27-2016 06:51 AM

Hello Sir,
I am getting the same output as in post-1 while executing ur file "LEACH_mannasim.tcl".Can u please suggest what I am doing wrong.Is it ok to run the above file under "ns-allinone-2.35/ns-2.35" or i have to run it in home folder.please help.

Initializing MannaSim Script...
Setting up mica 2 mote with Antenna/OmniAntenna and range = 100
invalid command name "Node/MobileNode/SensorNode"
while executing
"Node/MobileNode/SensorNode set sensingPower_ 0.015"
(procedure "setup_mica2" line 18)
invoked from within
"setup_mica2 $val(antenna) $val(range)"
(procedure "set_default_settings" line 29)
invoked from within
"set_default_settings"
(file "leach.tcl" line 493)

knudfl 06-27-2016 07:42 AM

Re #5.

OK, you are using an executable 'ns' with no mannasim.

HOWTO mannasim
Code:

$ tar xvf ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ cd ns-allinone-2.35/
$ patch -p1 < ns2.35-mannasim.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ ./install
$ cd ns-2.35/
$ cp ns ns235-mannasim
$ sudo cp ns235-mannasim /usr/local/bin/
Or use $ ./ns235-mannasim LEACH_mannasim.tcl for the simulation.


lakshmisreepanigrahi 07-14-2016 06:38 AM

Hello sir,
now,i am able to run leach.tcl file,it shows the output,
but in the last line,it is showing the error.Below is the last lines of my o/p:


Node 10 - Temperature Data 28.454246 - Time 1.574636
Common Node 10 - Disseminating data - Time 1.575
- There is 100 data aggregated.
Warning! No Cluster Head ADVs were heard by 4
Node 4 sending 100 data to BS at time 1.580150
Error: Meta size 4064 too large (max = 1000).


Please help in costructing NAM and trace file from the above.

knudfl 07-14-2016 09:49 AM

Re #7.

Bold characters is to be used for a single word only.
Please edit posts #1, #5 and #7 to use code tags
http://www.linuxquestions.org/questi....php?do=bbcode
... I.e. like [code]code text[/code]


Repeat, from post #4 : »» Please upload your file to 'Google Drive' .. ««
... and please use a new file name, e.g. laksh-mannasim-leach.tcl


-

lakshmisreepanigrahi 07-15-2016 05:59 AM

Hello sir,
i cannot edit post#1 to post#5 as no editing option is displaying.i have edited post#7.please reply.don't know how to upload file in google drive.

hydrurga 07-15-2016 06:27 AM

Quote:

Originally Posted by lakshmisreepanigrahi (Post 5576359)
Hello sir,
i cannot edit post#1 to post#5 as no editing option is displaying.i have edited post#7.please reply.don't know how to upload file in google drive.

Just for info on how to use Google Drive:

http://www.wikihow.com/Use-Google-Drive

Also, knudfl talked about using code tags in your posts. These are inserted by selecting text and clicking on the hash (#) button in the edit menu.

For example:

Code:

This is some code
Cheers.

knudfl 07-15-2016 07:05 AM

Upload a file : Log in to 'Google Docs'
... and simple pull your laksh-mannasim-leach.tcl.txt into the browser.

Upload to a pastebin site http://pastebin.com/

Upload to Dropbox https://www.dropbox.com/home


All times are GMT -5. The time now is 02:45 AM.