My protocol is not interested in the energy consumption, so I didn't check 
that.  But according to the code in mobilenode.cc/command(), the tcl command 
"off" should turn off the energy consumption.

在2009-05-01 01:18:41,"Ezequiel García" <elezegar...@yahoo.com.ar> 写道:
>
>I have a question regarding this, does the shuted down node continue to consume energy?
>
>--- El mié 29-abr-09, realoneone <realone...@126.com> escribió:
>De: realoneone <realone...@126.com>
>Asunto: Re: [ns] How to shut down a mobile node
>Para: ns-us...@isi.edu
>Fecha: miércoles, 29 de abril de 2009, 10:51 pm
>
>Hi there,
>
>Though I had problems by just using "on/off" command of the mobile
>nodes, I finally used a tricky way to "shut down" some nodes at
>certain time:
>
>In mac/mac-802_11.cc, I added a few lines in the beginning of transmit() and
>recv(), which stop transmitting/receiving the packet depending on the clock time
>and the id of the node which is calling this function.
>
>Though I have to re-make ns2, it does works fine for me.
>
>Hope it helps.
>
>Ryan
>
>
>
>      ____________________________________________________________________________________
>¡Viví la mejor experiencia en la web!
>Descargá gratis el nuevo Internet Explorer 8
>http://downloads.yahoo.com/ieak8/?l=ar

Reply via email to