leach on wsn
Quote:
W. Heinzelman, "Application- Specific Protocol Architectures for Wireless Networks," PhD Thesis, Massachusetts Institute of Technology, June 2000. |
thanks hidoussi for the reference :)
|
Quote:
|
install leach protocol
Quote:
i have DEBIAN |
Quote:
|
Quote:
|
Quote:
|
how do I find the value of energy dissipation (leach) at each node? do you have its code? please help me. thanks before.
|
i need an awk file to find the energy consumption to leach in ns 2.27, any body help me? please. thx before
|
Quote:
|
hidoussi, i want ask you, why the simulation area of ns-2 should be rectangular?
|
Quote:
open the file ns-leach.tcl Receiving Functions the code # After an entire frame of data has been received, the cluster-head # must perform data aggregation functions and transmit the aggregate # signal to the base station. pp "CH $chID must now perform comp and xmit to BS." set num_sigs [llength $TDMAschedule_] set compute_energy [bf $opt(sig_size) $num_sigs] pp "\tcompute_energy = $compute_energy" [$self getER] remove $compute_energy set receivedFrom_ [lappend receivedFrom_ $chID] set dataReceived_ $receivedFrom_ set receivedFrom_ "" |
leach on ns2.27
I followed your instructions to run leach on ns2.27 with ns 2.27-gcc410 patch and mit.tar.gz and succeded to run ./test but got the following warning.If you have any suggestion in installation procedure to clear warnings please let me know it.
Thanks for your help. [root@localhost ns-2.27]# ./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... ./test: line 5: ./leach_test: No such file or directory |
Quote:
go to the link ns/ns-allinone-2.34/tcl/ex/wireless demo-csci694.tcl open this file and add this code befor main program # ------------------------------------------------------ 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 # ------------------------------------------------------ save the file again run the simulation any question you can ask me by |
# 28
Quote:
http://www.linuxquestions.org/questi...2-27-a-785379/ . |
All times are GMT -5. The time now is 05:36 PM. |