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.
I try it but I got lot of warnings (I copy and paste (merge and replace all) the files you modified in ns-2.34 folder and I add leach.tcl, leach-c.tcl on ..\tcl\mobility\):
Code:
[root@localhost ns-2.34]# ./test
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
warning: no class variable Phy/WirelessPhy::alive_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Phy/WirelessPhy::Efriss_amp_
warning: no class variable Phy/WirelessPhy::Etwo_ray_amp_
warning: no class variable Phy/WirelessPhy::EXcvr_
warning: no class variable Phy/WirelessPhy::sleep_
warning: no class variable Phy/WirelessPhy::ss_
warning: no class variable Phy/WirelessPhy::dist_
INITIALIZE THE LIST xListHead
warning: no class variable Phy/WirelessPhy::alive_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Phy/WirelessPhy::Efriss_amp_
warning: no class variable Phy/WirelessPhy::Etwo_ray_amp_
warning: no class variable Phy/WirelessPhy::EXcvr_
warning: no class variable Phy/WirelessPhy::sleep_
warning: no class variable Phy/WirelessPhy::ss_
warning: no class variable Phy/WirelessPhy::dist_
warning: no class variable Phy/WirelessPhy::alive_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Phy/WirelessPhy::Efriss_amp_
warning: no class variable Phy/WirelessPhy::Etwo_ray_amp_
warning: no class variable Phy/WirelessPhy::EXcvr_
warning: no class variable Phy/WirelessPhy::sleep_
warning: no class variable Phy/WirelessPhy::ss_
warning: no class variable Phy/WirelessPhy::dist_
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...
[root@localhost ns-2.34]#
Is it mean it is work correct with all of these warnings or what is the problem and how can I solve it?
# 71 , @ WSNs :
You will know from other LQ Leach posts, that warnings
don't mean errors. Warnings are information.
Words, expressions, statements not used : you will get
'an information' about the situation : A "warning".
Thank you knudfl. Actually, I modified LEACH before 1 week to work with ns-2.34 and I did not get all of these warnings:
Code:
[naif@localhost ns-2.34]$ ./test
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_ = 550.0
SORTING LISTS ...DONE!
NS EXITING...
BUT when I ./validate there are some portable and non-portable tests failed:
Code:
validate overall report: some portable tests failed:
./test-all-diffusion3 ./test-all-smac ./test-all-WLtutorial ./test-all-wireless-infra ./test-all-wireless-infra-mobility ./test-all-wireless-lan-aodv ./test-all-wireless-diffusion ./test-all-wireless-lan-newnode ./test-all-wireless-lan-newnode-80211Ext ./test-all-tagged-trace ./test-all-wpan ./test-all-energy
some non-portable tests also failed:
./test-all-smac-multihop ./test-all-wireless-tdma
to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME
[naif@localhost ns-2.34]$
My questions is:
- Does all these test important to agree (not failed)?
- NOW, How I can run example of leach and see the trace and nam of this example because when I (./test) it run wireless-demo-csci694.tcl and (./leach_test) does not give me any thing:
Code:
[naif@localhost ns-2.34]$ ./test
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_ = 550.0
SORTING LISTS ...DONE!
NS EXITING...
[naif@localhost ns-2.34]$ ./leach_test
[naif@localhost ns-2.34]$
Thank you knudfl. Actually, I modified LEACH before 1 week to work with ns-2.34 and I did not get all of these warnings:
Code:
[naif@localhost ns-2.34]$ ./test
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_ = 550.0
SORTING LISTS ...DONE!
NS EXITING...
BUT when I ./validate there are some portable and non-portable tests failed:
Code:
validate overall report: some portable tests failed:
./test-all-diffusion3 ./test-all-smac ./test-all-WLtutorial ./test-all-wireless-infra ./test-all-wireless-infra-mobility ./test-all-wireless-lan-aodv ./test-all-wireless-diffusion ./test-all-wireless-lan-newnode ./test-all-wireless-lan-newnode-80211Ext ./test-all-tagged-trace ./test-all-wpan ./test-all-energy
some non-portable tests also failed:
./test-all-smac-multihop ./test-all-wireless-tdma
to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME
[naif@localhost ns-2.34]$
My questions is:
- Does all these test important to agree (not failed)?
- NOW, How I can run example of leach and see the trace and nam of this example because when I (./test) it run wireless-demo-csci694.tcl and (./leach_test) does not give me any thing:
Code:
[naif@localhost ns-2.34]$ ./test
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_ = 550.0
SORTING LISTS ...DONE!
NS EXITING...
[naif@localhost ns-2.34]$ ./leach_test
[naif@localhost ns-2.34]$
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.