LinuxQuestions.org
Review your favorite Linux distribution.
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-13-2012, 02:13 AM   #301
farab
LQ Newbie
 
Registered: Aug 2011
Posts: 18

Rep: Reputation: 22

melody this page is for issues.
if you want more information abaout leach itself and how it wrols, you can send a private message to me or chat me in facebook:
facebook.com/farabf33
 
Old 09-13-2012, 02:56 AM   #302
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
# 301
Quote:
this page is for issues.
All technical information about LEACH :
It would be highly appreciated if you write your ideas here in an LQ thread.
( This thread or a new thread. Or an 'LQ Blog'.)

LQ is a knowledge base for everybody, and I am sure that
all the people interested in ns2 leach would want to read
any information, that you can present.
( So far this thread has had 24,000 readers.)

.
 
1 members found this post helpful.
Old 09-14-2012, 04:05 AM   #303
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Rep: Reputation: Disabled
Quote:
Originally Posted by farab View Post
melody this page is for issues.
if you want more information abaout leach itself and how it wrols, you can send a private message to me or chat me in facebook:
facebook.com/farabf33
hello... I heard, you know about the simulation of leach in wsn? Can you help me? please..

Last edited by lubelube; 09-14-2012 at 04:06 AM.
 
Old 09-22-2012, 12:01 AM   #304
anataodesu
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Rep: Reputation: Disabled
leach.err

Hi,

I try to read all threads but nobody replied this error. Although when i run ./test in my teminal display:
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 89.8
SORTING LISTS ...DONE!
NS EXITING...



but in my leach.out, there are no data and in leach.err, it announces:

can't read "opt(nn_)": no such element in array
while executing
"set opt(bsID) $opt(nn_) "
(file "mit/uAMPS/sims/uamps.tcl" line 35)
invoked from within
"source.orig 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 mit/uAMPS/sims/uamps.tcl"
(file "tcl/mobility/leach.tcl" line 18)
invoked from within
"source.orig 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 tcl/mobility/$opt(rp).tcl"
(file "tcl/ex/wireless.tcl" line 187)



Please help me, because i try for many times, i actually, feel axhausted.hix

Thanks in advanced!

Last edited by anataodesu; 09-22-2012 at 12:02 AM.
 
Old 09-22-2012, 12:11 AM   #305
anataodesu
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Rep: Reputation: Disabled
please help me ASAP

Hello again,
I intergrated LEACH in ns-2.34 on UBUTU 10.04.3, i try to run it for long times but i can't. I have two days left to finish. Please, please help me soon
 
Old 09-22-2012, 01:05 AM   #306
anataodesu
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Rep: Reputation: Disabled
One small error..I install it sucessfull.thanks you very much!
 
Old 09-24-2012, 04:04 AM   #307
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Rep: Reputation: Disabled
helloo, can you help me? i run ./leach_test in ns 2.27 but that is error..(invalid command name"resource/energy" while executing...
what should i do?
 
Old 10-02-2012, 04:57 AM   #308
psd_prasad
LQ Newbie
 
Registered: Oct 2008
Posts: 8

Rep: Reputation: 0
error in wile make file in ns 2.34

while configuring leach in ns2.34
error in cmu trace file how to solve it
 
Old 10-02-2012, 08:06 AM   #309
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
Post # 308

There is an edited cmu-trace.h attached to post # 10 here ..
http://www.linuxquestions.org/questi...a13-907076/#10

(There may be more suggestions for the cmu-trace.h when you read all above 300 posts.)

Please also see post # 11 :
http://www.linuxquestions.org/questi...a13-907076/#11

.
 
Old 10-02-2012, 11:20 PM   #310
nzny
LQ Newbie
 
Registered: Jan 2012
Posts: 22

Rep: Reputation: Disabled
hi exidus..couldnt download the file...could you pls share the file once again...thank you

Quote:
Originally Posted by exidus View Post
Hi guys,

here is my version of uAMPS extension. I added option for protocol PEGASIS simulations.
You can also simulate modified version of LEACH and LEACH-C. By default number of cluster nodes is
5% from all nodes (5 CH nodes for 100 sensor nodes). In these modified version, number of CH nodes is
changed dynamically - 5% nodes from actual alive nodes. The simulations are longer a more data is send
with this modified version.

You can download this uAMPS extension from:
https://rapidshare.com/files/2585681...4-leach.tar.gz

Manual how to use modified LEACH,LEACH-C and PEGASIS
1. In folder mit/uAMPS are files ns-leach_2.tcl and ns-bsapp_2.tcl
2. You have to rename file to ns-leach_2 to ns-leach.tcl and you can simulate modified protocol LEACH
3. You have to rename file to ns-bsapp_2.tcl to ns-bsapp.tcl and you can simulate modified protocol LEACH-C
4. You have to use option alg=pegasis in leach_test. Option num_clusters MUST BE 1 like this: num_clusters=1. Only if you want to simulate PEGASIS of course

I hope that it will help you in your simulations.
 
1 members found this post helpful.
Old 10-03-2012, 12:49 AM   #311
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
Post # 308, @nzny : Please do not quote complete posts.
Only the relevant line should be quoted. Thank you.


A new link for the "exidus-pegasis_ns-234-leach" ( See post # 289 )
https://docs.google.com/open?id=0B7S...XQ3UmlOeWQ2ZXM


.

Last edited by knudfl; 10-03-2012 at 01:23 AM.
 
1 members found this post helpful.
Old 10-08-2012, 02:14 AM   #312
yueling
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Rep: Reputation: Disabled
hello guys,

i have installed ns-2.34 in ubuntu 10.04..
Ns-allinone-2.34 package has been installed successfully..
i've add mit files and following this link (post #5) : http://www.linuxquestions.org/questi...2-34-a-870368/

i've add g++-4.3 and gcc-4.3 to .../ns-allinone-2.34/ns-2.34, its work..

but, i have problem when i install run "make clean" :

rm: cannot remove `gen/version.o': Permission denied
rm: cannot remove `gen/ns_tcl.o': Permission denied
rm: cannot remove `gen/ptypes.o': Permission denied
rm: cannot remove `gen/ns_tcl.cc': Permission denied
rm: cannot remove `gen/ns_tcl.o': Permission denied
rm: cannot remove `gen/ptypes.cc': Permission denied
rm: cannot remove `gen/ptypes.o': Permission denied
rm: cannot remove `gen/version.c': Permission denied
rm: cannot remove `gen/version.o': Permission denied
make: *** [clean] Error 1

can anyone tell me how to solve this problem?

thank you =)
 
Old 10-08-2012, 03:50 AM   #313
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
Post # 312, @yueling.

If you install to /opt/ : All commands at install time must be : sudo <command>.


Better install to /home/yueling/, post # 11 here ..
http://www.linuxquestions.org/questi...a13-907076/#11
.. Use the script leach-HOME-setup234.sh.

And, for any install location : The new 'cmu-trace.h' must be used ..
#9 http://www.linuxquestions.org/questi...ra13-907076/#9

.
 
Old 10-19-2012, 12:13 PM   #314
ni_saghari
LQ Newbie
 
Registered: Oct 2012
Posts: 16

Rep: Reputation: Disabled
hi, i installed leach successfully but i need to know which .tcl or cc files are related to packages in leach
i want to add encryption to packages and i don't know how to find package information
could u please guid me? thanks
 
Old 10-25-2012, 10:08 AM   #315
lubelube
Member
 
Registered: Mar 2012
Posts: 35

Rep: Reputation: Disabled
Quote:
Originally Posted by deepa_2111 View Post
helyos,

i had removed all the warnings.

1. Make sure the bind code is there in wireless-phy.cc
2. Add the commands in uamps.tcl

i think there was something else i did ... check the tcl-object.tcl file. I remember i followed instructions from there.

Got it !
You need to set the variables in \tcl\lib\ns-default.tcl also ::

Code:
# ------------------------------------------------------
Phy/WirelessPhy set alive_ 1
Phy/WirelessPhy set Efriss_amp_ 100e-12
Phy/WirelessPhy set Etwo_ray_amp_ 0.013e-12 

Phy/WirelessPhy set EXcvr_ 50e-9
Phy/WirelessPhy set sleep_ 0
Phy/WirelessPhy set ss_ 1 
Phy/WirelessPhy set dist_ 0
# ------------------------------------------------------
Let me know if the warnings are removed now
Hello deepa_2111..
I have some problem with keepwalking..
on the line to what I have to add this code in \tcl\lib\ns-default.tcl?
thanks before..
 
  


Reply

Tags
leach, leach-warning50, ns2, ns2 ns234, pegasis



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
ns:"error when calling class OldSim"&tclsh:"invalid command+child process exits abn." shojaru Linux - Newbie 0 03-05-2009 04:23 AM
labview stopped at "init tmp resource files" on FC4 baosheng Linux - Software 2 09-28-2007 11:02 AM
ORiNOCO WLAN card not working - "failed to allocate resource" hauneboo Linux - Laptop and Netbook 1 11-29-2005 09:08 AM
What "kernel opts" allow PC to power down with "turning energy off"? kornerr Linux - General 1 03-10-2005 12:07 PM
nvidia insmod: "Device or resource busy" w/GeForce 4 MX KeithSpook Linux - Hardware 4 03-03-2004 12:21 PM

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

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