energy

41 views
Skip to first unread message

samia belhadj

unread,
Dec 14, 2009, 12:47:44 PM12/14/09
to ns-3-...@googlegroups.com
Hello
how  can I measure the energy consumption of sensor nodes with  ns3. for example to choose a head I hav e to Calulate this formula initial energy / energy residual;
please help
THANKS

Mathieu Lacage

unread,
Dec 15, 2009, 6:39:26 AM12/15/09
to ns-3-...@googlegroups.com
On Mon, Dec 14, 2009 at 6:47 PM, samia belhadj <belhadj....@gmail.com> wrote:
Hello
how  can I measure the energy consumption of sensor nodes with  ns3. for example to choose a head I hav e to Calulate this formula initial energy / energy residual;

ns-3 does not have any energy model but it is not very hard to add one: just create a class to keep track of the remaining energy. Once you have done that, you need to hook to every event which consumes energy and make it update the current energy level.

Mathieu
--
Mathieu Lacage <mathieu...@gmail.com>
Reply all
Reply to author
Forward
0 new messages