LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-25-2016, 04:43 AM   #1
lakshmisreepanigrahi
LQ Newbie
 
Registered: Jun 2016
Location: Bhubaneswar,odisha,india
Posts: 5

Rep: Reputation: Disabled
Question 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)

Last edited by lakshmisreepanigrahi; 06-25-2016 at 04:44 AM. Reason: skiped words
 
Old 06-25-2016, 06:37 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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



-

Last edited by knudfl; 06-25-2016 at 09:05 AM.
 
1 members found this post helpful.
Old 06-27-2016, 05:04 AM   #3
lakshmisreepanigrahi
LQ Newbie
 
Registered: Jun 2016
Location: Bhubaneswar,odisha,india
Posts: 5

Original Poster
Rep: Reputation: Disabled
reply

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

thank you.
 
Old 06-27-2016, 05:52 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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".)


-

Last edited by knudfl; 06-27-2016 at 05:53 AM.
 
1 members found this post helpful.
Old 06-27-2016, 06:51 AM   #5
lakshmisreepanigrahi
LQ Newbie
 
Registered: Jun 2016
Location: Bhubaneswar,odisha,india
Posts: 5

Original Poster
Rep: Reputation: Disabled
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)
 
Old 06-27-2016, 07:42 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.
 
Old 07-14-2016, 06:38 AM   #7
lakshmisreepanigrahi
LQ Newbie
 
Registered: Jun 2016
Location: Bhubaneswar,odisha,india
Posts: 5

Original Poster
Rep: Reputation: Disabled
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.

Last edited by lakshmisreepanigrahi; 07-15-2016 at 05:56 AM.
 
Old 07-14-2016, 09:49 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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


-

Last edited by knudfl; 07-14-2016 at 09:50 AM.
 
Old 07-15-2016, 05:59 AM   #9
lakshmisreepanigrahi
LQ Newbie
 
Registered: Jun 2016
Location: Bhubaneswar,odisha,india
Posts: 5

Original Poster
Rep: Reputation: Disabled
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.

Last edited by lakshmisreepanigrahi; 07-15-2016 at 06:20 AM.
 
Old 07-15-2016, 06:27 AM   #10
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by lakshmisreepanigrahi View Post
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.
 
Old 07-15-2016, 07:05 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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
 
  


Reply

Tags
mannasim, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error in mannasim generated tcl file amita_s12 Linux - Newbie 20 07-22-2015 01:53 AM
awk file for mannasim generated leach.tcl amita_s12 Linux - Software 3 06-08-2015 12:38 PM
LEACH and dsdv in tcl file linuxUser123linux Linux - Software 1 03-05-2014 12:05 AM
a tcl sample file using leach saeed.m Linux - Software 2 07-15-2013 04:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration