[Smac-users] Re: energy - smac in ns
mbuyukozer at yahoo.com
Tue May 10 20:24:16 PDT 2005
Hi Utku, as it seems you did not overwrite energy-model.h and energy-model.cc under ns-2.28/mobile/ also you should overwrite other files,
I put all these files to these directories and I got one last error from wireless-phy.cc which seemed getDist function was not added to the wireless-phy.cc. I added this function to the end of file and also added header description to wireless-phy.h , then I successfully compiled.
double WirelessPhy::getDist(double Pr, double Pt, double Gt, double Gr,
double hr, double ht, double L, double lambda)
Utku Acer <utkuacer at gmail.com> wrote:
First, thanks for sharing your work. I tried to use your code. I put
all the files in the zip file to the places that the original files
reside. After that when I tried to make that it gave me the following
warning and the error. Is there something I am missing or doing wrong?
Thank you very much.
In file included from ./common/node.h:59,
./mobile/energy-model.h: In constructor
`EnergyModel::EnergyModel(MobileNode*, double, double, double)':
./mobile/energy-model.h:198: warning: `EnergyModel::node_on_' will be
./mobile/energy-model.h:153: warning: `double EnergyModel::last_send_time_'
./mobile/energy-model.h:98: warning: when initialized here
mac/channel.cc: In member function `void
mac/channel.cc:632: error: 'class WirelessPhy' has no member named 'getDist'
make: *** [mac/channel.o] Error 1
> ---------- Forwarded message ----------
> From: "Ali Hummos"
> To: smac-users at mailman.isi.edu
> Date: Sat, 07 May 2005 23:38:00 +0000
> Subject: [Smac-users] RE: Smac-users Digest, Vol 13, Issue 2
> I have modified some files in ns2 to solve the energy problem of smac based on the hint We Yei provided to this mailing list couple of months ago. I believe my modification solves the energy problem of smac in ns2.
> Please see my website (under miscellaneous) for more details and to download the modified files with explanation and some Energy results for 3 cases (No Sleep, SMAC with Adaptive Listening, and SMAC without Adaptive Listening). Please feel free to email me if you have any questions regarding my modification.
> Based on this modification, you can now specify the sleep power in your NS2 Tcl file:
> $ns_ node-config -rxPower 1.00 \
> -txPower 2.00 \
> -idlePower 1.00 \
> -sleepPower 0.00\
> Ali Abu-EL Humos
> PH.D Cadidate
> Computer Science and Engineering
> Florida Atlantic University
> aabuel at fau.edu
Smac-users mailing list
Smac-users at mailman.isi.edu
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Smac-users