LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-20-2014, 09:49 PM   #1
esthersangeetha
LQ Newbie
 
Registered: Mar 2014
Posts: 10

Rep: Reputation: Disabled
Problem with NAM while running mannasim


Dear Sir/Mam,
I am using ns-allinone-2.29.3 with fedora 18. I have installed Mannasim successfully. My tcl code runs with following error and also i couldn't find how to run my nam.

ns: finish: can't read "namtraceAllFile_": no such variable
while executing
"if {$namtraceAllFile_ != ""} {
$self puts-nam-config "W -t $stoptime"
}"
(procedure "_o3" line 4)
(Simulator nam-end-wireless line 4)
invoked from within
"$ns_ nam-end-wireless $val(stop)"
(procedure "finish" line 9)
invoked from within
"finish"
 
Old 09-21-2014, 01:35 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Mannasim info http://www.linuxquestions.org/questions/tags/mannasim/


AFAIK, mannasim does not support nam.


-
 
1 members found this post helpful.
Old 09-21-2014, 06:55 AM   #3
esthersangeetha
LQ Newbie
 
Registered: Mar 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Is there any tool available for NAM output in wireless sensor network using ns2 ?

Last edited by esthersangeetha; 09-21-2014 at 07:04 AM.
 
Old 09-21-2014, 09:25 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #3 .

Well, you can use Goggle .. ns2 wireless sensor network ..
https://www.google.com/webhp?hl=all&...sensor+network
... for a search.


The old "nrl-sensorsim" for ns226 uses nam in all the examples :
{phenom05.tcl phenom08b.tcl phenom10.tcl phenom13.tcl
phenom06.tcl phenom08.tcl phenom11.tcl phenom14m.tcl
phenom07.tcl phenom09.tcl phenom12.tcl phenom14.tcl}
. http://www.nrl.navy.mil/itd/ncs/products/sensorsim
. http://downloads.pf.itd.nrl.navy.mil.../nrlsensorsim/
LQ nrlsensorsim http://www.linuxquestions.org/questi.../nrlsensorsim/
LQ wsn http://www.linuxquestions.org/questions/tags/wsn/

Package with examples : nrlsensorsim-examples.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing

And a Fedora package : nrl-sensorsim-ns-2.26-1.sl6.i686.rpm
https://drive.google.com/file/d/0B7S...it?usp=sharing
Install with : # yum localinstall nrl-sensorsim-ns-2.26-1.sl6.i686.rpm
Provides /usr/local/bin/ns-nrl
.. which means simulation is done with $ ns-nrl file.tcl

-
 
1 members found this post helpful.
Old 09-30-2014, 07:05 AM   #5
esthersangeetha
LQ Newbie
 
Registered: Mar 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thanks knufdl...
I will go through the links
 
Old 10-02-2014, 07:27 AM   #6
esthersangeetha
LQ Newbie
 
Registered: Mar 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
I have downloaded nrl-sensorsim-ns-2.26-1.sl6.i686.rpm.. I have seen the questions related to nrl-sensorsim. But i couldn't follow the steps. plz help me to install nrl-sensorsim in ns-allinone-2.34.. I am using fedora 18.

Last edited by esthersangeetha; 10-02-2014 at 07:29 AM.
 
Old 10-02-2014, 08:51 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #6 .

"nrl-sensorsim-ns-2.26-1.sl6.i686.rpm" is a binary package.
Have you installed the package ? ( See post #4.)
Is a "complete" ns-allinone-2.26 with nrl-sensorsim.
* All applications not required to run $ ns-nrl
.. are not included in the rpm package.

I don't think you can add the complete patch
to any later version : ns-2.26 .

-
 
Old 10-04-2014, 08:24 AM   #8
esthersangeetha
LQ Newbie
 
Registered: Mar 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
When i am running the nrl-sensorsim 2.26 in ns-allinone-2.26 i face the following error.

[root@localhost simulation_aids]# ns simme-phenoms.tcl
This is a sensor network simulation.
num_nodes is set 102
Wrong node routing agent!
[root@localhost simulation_aids]# nam simme-phenoms.nam
*** !!! ***
nam cannot recognize the trace file simme-phenoms.nam
Please make sure that the file is not empty and it is a nam trace
***********
plz help me to resolve this..
 
Old 10-04-2014, 11:24 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← ref. post #8.

None of the examples seem to work anymore.
I think they worked OK at begin of 2013 ? → some old OS.
(Ubuntu 10.04, CentOS 5 (Fedora 6 based), CentOS 6 (Fedora 12 based)).
OS's get updated, and ns-2.26+nrlsensorsim are very old.

* Better consider another WSN / may be another simulator ?

-
 
  


Reply

Tags
ns2



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
How to add NAM with mannasim in ns2.34 Aska123 Linux - Software 1 04-10-2013 02:14 PM
problem in nam-1.14 sukrutha Linux - Newbie 2 08-21-2011 03:59 AM
problem in running nam-1.11 of ns-allinone-2.29 rishabhk Linux - Newbie 5 03-17-2011 05:31 AM
problem with running nam file under ns 2.33 and mobiwan_1 manjunath11 Linux - Newbie 0 11-08-2010 02:42 AM
problem in running NAM marioma Linux - Networking 4 06-01-2010 07:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:08 PM.

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