Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
@ wcdj, welcome to LQ. .. .. ..
#131 : Well, that's just the way "test" was made.
'wireless-demo-csci694.tcl' is run first, and next the file
" #Topology " in leach_test, which is another tcl script.
#132 : As far as I remember : In one file, x and y
should be changed to a lower value.
Why not just try it out with x=100 y=100 .
The test is described in post # 6, long time since,
( about ten months ) and I don't remember it all.
......
Click here to see the post LQ members have rated as the most helpful post in this thread.
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/deepak/ns/ns-2.34/mit/rca//resources/ns-energy-resource.tcl" line 11)
invoked from within
"source.orig /home/deepak/ns/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 $env(RCA_LIBRARY)/resources/ns-energy-resource.tcl"
(file "mit/uAMPS/sims/uamps.tcl" line 18)
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)
I am using ubuntu 10.10, ns2.34 and tarik-ns234-leach. Please help.
Deepak
Hello, everyone, I find a mistake that in the leach_test file, x=1000 y=1000, but in the 100nodes.txt file the nodes are all in 100*100. Is this an error? If is, maybe we must modify the genscen file i think. thank you !
in leach_test we fixe the size of the filed.
to generate the topology they use the three files nodescen.tcl genscen.tcl and 100nodes.txt
in genscen.tcl coordinates are generated randomly and stored in 100nodes.txt
nodescen use this file 100nodes.txt generate the topology (node($i) set x, ....)
be care the size of the topology generated bay nodescen must be small or equal to the size fixed in leach_test
Thank you!
I have another question that i simulate leach-c protocol using default options and only change "alg=leach-c" option, but the simulation shows that the leach-c is worse than leach.
btw, the position of base station is (50,175). thanks a lot!
Sorry, i cannot execute mte protocol, when i made it, i found the mte.err like following: INITIALIZE THE LIST xListHead
And mte.alive, mte.data, etc are null files. I have no idea about this. plz help me! thank you.
to generate the topology they use the three files nodescen.tcl genscen.tcl and 100nodes.txt
in genscen.tcl coordinates are generated randomly and stored in 100nodes.txt
nodescen use this file 100nodes.txt generate the topology (node($i) set x, ....)
be care the size of the topology generated bay nodescen must be small or equal to the size fixed in leach_test
good luck
i don't know why set x and y in the leach_test file, bcz the 100nodes.txt tells us the size of networking implicitly. thank you very much.
can any one help me as i am having these lines printed on screen when i run wireless.tcl. what should i do to have the LEACH simulation results further?
Usage: tcl/ex/wireless.tcl
mandatory arguments:
[-x MAXX] [-y MAXY]
optional arguments:
[-cp conn pattern] [-sc scenario] [-nn nodes]
[-seed seed] [-stop sec]
I just altered the attempt record as it was in the 6th aviator and it worked. yes the difficulty was it was in alternative entryway through MS morpheme (a Inebriant effort). I fair edited the tryout record and ransomed it and run the ./test. I didnt get any errors..(only irritating warnings)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.