INET Battery

112 views
Skip to first unread message

platzhirsch

unread,
Aug 31, 2010, 5:06:38 AM8/31/10
to omnetpp
Hello everyone,

I added a battery to my mobile hosts. I am, however, still a bit
confused about the meanings of the battery fields. I would be glad if
someone helps me out:

lastPublishCapacity: This is the only value being decrement, so I
guess this is the remaining capacity?

residualCapacity: This confuses me, residual is another word for
remaining, isn't it? It seems like this is the value of capacity being
consumed yet.

What does comsuedVector do?

Why is the field capacity a very little value and lastPublishCapacity
so big?

Best regards,
Konrad

Alfonso Ariza Quintana

unread,
Aug 31, 2010, 6:57:20 AM8/31/10
to omn...@googlegroups.com

The real value is residualCapacity, the lastPublishCapacity is actualized if the value of residualCapacity has change more that a delta.



> Date: Tue, 31 Aug 2010 02:06:38 -0700
> Subject: [Omnetpp-l] INET Battery
> From: ho...@pathethic.com
> To: omn...@googlegroups.com
> --
> You received this message because you are subscribed to the Google Groups "omnetpp" group.
> To post to this group, send email to omn...@googlegroups.com.
> To unsubscribe from this group, send email to omnetpp+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/omnetpp?hl=en.
>

Sh Asaadi

unread,
Apr 27, 2014, 8:47:25 AM4/27/14
to omn...@googlegroups.com
Hi, 
I am working with inetsimplebattery, I want to get the maximum capacity of the node in the code. Could you pls tell the command of getting max energy of the node? thanks. 

Shaikha Al-Khuder

unread,
Dec 25, 2015, 3:26:10 AM12/25/15
to OMNeT++ Users
Do you have a Git code example of how energy is implemented using a simple network? Just to relate to it.

I've read a lot about how to use the energy framework, but the problem is It's not working with me properly, and it's probably because I'm missing something somewhere. 

Even if someone could write down a pseudocode of how it's done instead of writing an actual one, it would be truly helpful.

I'm looking for something like:
1- Import the framework to our node class
2- set up initial values to your ini file
3- customize how energy is changing in your network using functions like:
A( int a)
B ( double c, double z)
.
.

Doesn't have to be precise. But really when there's multiple inheritance and tens of imports between libraries, it's really hard to determine WHERE to do the change and how to add it.

I even ordered a book from amazon about omnet++ to help but even that was quite abstract and preliminary.
I'm open for any energy related manual or documentation.
OMNeT++ is truly a power fun tool but it gets more complicated to use the more you try to customize your own simulation.

Kindly advise.

Alfonso Ariza Quintana

unread,
Dec 27, 2015, 3:34:25 PM12/27/15
to omn...@googlegroups.com
bu what versión are you using?

The energy module has been completly rewrite in inet 3.x


Date: Fri, 25 Dec 2015 00:26:10 -0800
From: cpe....@gmail.com
To: omn...@googlegroups.com
Subject: Re: [Omnetpp-l] INET Battery
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
Visit this group at https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.

Shaikha Al-Khuder

unread,
Dec 28, 2015, 2:08:46 PM12/28/15
to omn...@googlegroups.com
If I downloaded the latest version, I have to move my changes to it, right?
Because I have made changes to AODVRouting and also to the UDPBasicApplication.


You received this message because you are subscribed to a topic in the Google Groups "OMNeT++ Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/omnetpp/GGZOyn0XMDo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to omnetpp+u...@googlegroups.com.

Shaikha Al-Khuder

unread,
Jan 15, 2016, 1:30:44 PM1/15/16
to OMNeT++ Users, aari...@hotmail.com
I got inet 3.2, and I've run simulation for the power example. The Power Consumption graph is only one dot ! It doesn't change until the end of the simulation.
Seriously, will this work for me at any point of time?! :)
Reply all
Reply to author
Forward
0 new messages