LinuxQuestions.org
Review your favorite Linux distribution.
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 08-13-2014, 11:22 AM   #1
bayefalle
LQ Newbie
 
Registered: Aug 2014
Posts: 10

Rep: Reputation: Disabled
integrate leach protocol on ns2.34 in ubuntu 12.10


Hi,
i need a help. i install ns2.34 and when i integrate leach protocole, i have this error on the file
ns-allinone-2.34/ns-2.34/ns-234-leach/mit/leach_sims$ gedit leach.err
invalid command name "Resource/Energy"
while executing
"Resource/Energy instproc setParams {args} {
$self instvar energyLevel_ alarmLevel_
set energyLevel_ [lindex $args 0]
set alarmLevel_ [lind..."
(file "/home/wsn/ns2/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-energy-resource.tcl" line 11)
invoked from within
"source.orig /home/wsn/ns2/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-energy-resource.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source /home/wsn/ns2/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-energy-resource.tcl"
(file "/home/wsn/ns2/ns-allinone-2.34/ns-2.34/mit/uAMPS/sims/uamps.tcl" line 24)
invoked from within
"source.orig /home/wsn/ns2/ns-allinone-2.34/ns-2.34/mit/uAMPS/sims/uamps.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source /home/wsn/ns2/ns-allinone-2.34/ns-2.34/mit/uAMPS/sims/uamps.tcl"
(file "/home/wsn/ns2/ns-allinone-2.34/ns-2.34/tcl/mobility/leach.tcl" line 20)
invoked from within
"source.orig /home/wsn/ns2/ns-allinone-2.34/ns-2.34/tcl/mobility/leach.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source /home/wsn/ns2/ns-allinone-2.34/ns-2.34/tcl/mobility/$opt(rp).tcl"
(file "tcl/ex/wireless.tcl" line 187)

help me,
i already follow this link: http://www.linuxquestions.org/questi...2-34-a-870368/

and other link but nothink
 
Old 08-14-2014, 02:03 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
.. Which is one of the oldest methods for ns234.

Please try this one : leach+pegasis-ns234-files-2.tar.gz
http://www.linuxquestions.org/questi...-4175504301/#2
 
Old 08-18-2014, 05:10 AM   #3
bayefalle
LQ Newbie
 
Registered: Aug 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
leach file

Hi, i just install and configure leach on ns-2.34 but i want a file tcl with leach protocol. I don't understood how used leach.
 
Old 08-18-2014, 08:01 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

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

The simulation example runs this way :
$ export RCA_LIBRARY=/home/<name>/ns-allinone-2.34/ns-2.34/mit/rca && export uAMPS_LIBRARY=/home/<name>/ns-allinone-2.34/ns-2.34/mit/uAMPS && ./test

.. Please read the involved files, { test, leach_test, etc. etc. etc. }.

All LEACH info http://www.linuxquestions.org/questions/tags/leach/
LEACH + Pegasis http://www.linuxquestions.org/questions/tags/pegasis/

-
 
  


Reply


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
problem with running leach protocol in ns2.34 leach.er Mohamed69 Linux - Software 14 04-16-2018 07:10 AM
Leach Protocol for ns2.34 pushpita Linux - Software 36 07-08-2013 04:06 AM
Please guide me hw to implement LEACH protocol in Ns2.34 havn installed Ubuntu 12.10 Pallavi13 Linux - Software 2 05-30-2013 04:34 AM
LEACH and SEP protocol using ns2 renugaganapathy Linux - Newbie 3 11-03-2012 02:31 AM
LEACH protocol in ns2 swtjeeva Linux - Software 3 09-04-2012 12:53 PM

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

All times are GMT -5. The time now is 06:07 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