energy residual Capacity in inet2.99.1

183 views
Skip to first unread message

Wael Ali

unread,
May 24, 2015, 11:21:36 PM5/24/15
to omn...@googlegroups.com
Hi every body,

firstly i would like to say thank you for people who is working in devloping Inet,

i have moved my simulation work to inet2.99.1 2 days ago and simulation has many problem i cant solve well,the problem as following:

1. residual energy capacity is not changed and fixed
2. radio distance cant change by change ini file "radiomaxdistance", it is become more difficult because have to play with power and senstivity
3. how to find hop count in the network
,

thank u and best regards
my problem which is really affect my work is how to find sample storage residual capacity, here is my ini file :

[General]
#record-eventlog = true
# debug-on-errors = true

sim-time-limit = 3000s
repeat = 7
seed-set =  ${runnumber}
num-rngs = 4

**.mobility.rng-0 = 1
**.wlan[*].mac.rng-0 = 2

tkenv-plugin-path = ../../../etc/plugins

# mobility
**.mobility.constraintAreaMinZ = 0m
**.mobility.constraintAreaMaxZ = 0m
**.mobility.constraintAreaMinX = 0m
**.mobility.constraintAreaMinY = 0m
**.mobility.constraintAreaMaxX = 1000m
**.mobility.constraintAreaMaxY = 1000m

# nic settings
**.wlan[*].bitrate = 2Mbps

**.wlan[*].mgmt.frameCapacity = 10
**.wlan[*].mac.address = "auto"
**.wlan[*].mac.maxQueueSize = 14
**.wlan[*].mac.rtsThresholdBytes = 3000B
**.wlan[*].mac.retryLimit = 7
**.wlan[*].mac.cwMinData = 7
**.wlan[*].mac.cwMinMulticast = 31

**.wlan[*].radio.transmitter.power = 0.2mW

**.wlan*.radio.receiver.energyDetection = -85dBm
**.wlan*.radio.receiver.sensitivity = -85dBm

[Config Manual]
network = GPSRNetworkManual

**.host*.mobilityType = "StationaryMobility"

# ping app
#*.host0.pingApp[0].destAddr = "sink"
#*.host*.numPingApps = 1
#*.host*.pingApp[0].startTime = uniform(1s,5s)
**.udpApp[*].destAddresses = "sink"
**.udpApp[*].destPort = 1234
**.udpApp[*].messageLength = 10240B
**.udpApp[*].burstDuration = 0
**.udpApp[*].sleepDuration = 1s
**.udpApp[*].sendInterval = 1s + uniform(-0.001s,0.001s)
**.udpApp[*].chooseDestAddrMode = "perBurst"
**.udpApp[*].localPort = 1234
**.udpApp[*].startTime = 10s

**.host0.hasUdp = default
**.host0.udpType = default
**.host0.gpsrType =default


**.sink.hasUdp = default
**.sink.udpApp.typename = "UDPSink"
**.sink.numUdpApps = 1
**.source.hasUdp = default
**.source.udpType = default
**.source.numUdpApps = 1
**.source.udpApp.typename = "UDPBasicBurst"


**.ip.timeToLive = default
**.simpleEnergyStorage.initialCapacity = 3.8J
**.simpleEnergyStorage.printCapacityStep = default
**.simpleEnergyStorage.nominalCapacity =3.8J
**.radioMedium.rangeFilter = default
**.wlan[*].energySourceModule ="SimpleEnergyStorage"
**.radio.energyConsumerType ="energyStorage"



Rudolf Hornig

unread,
May 28, 2015, 5:04:23 AM5/28/15
to omn...@googlegroups.com, wael....@gmail.com
It's a bit hard to say anything from afar, but were you able to check the tutorials/wireless folder? That is an example where the idealradio works and there is also a step which adds the energy framework. Experiment how it is configured.

Wael Ali

unread,
May 29, 2015, 4:18:11 AM5/29/15
to omn...@googlegroups.com
Dr Rudolf, you are amazing, thank you for help it is working now very well,, and here is ini setting that were missing:
by adding following model well work well

**.energyStorageType = "SimpleEnergyStorage"
**.energyConsumerType = "StateBasedEnergyConsumer"
**.energyStorage.nominalCapacity = 100J
**.energyStorage.nodeShutdownCapacity = 0J
**.energyStorage.nodeStartCapacity = 0.5 * this.nominalCapacity
*.host[*].energyStorage.initialCapacity = uniform(0J, this.nominalCapacity)
*.host[*].energyGeneratorType = "AlternatingEnergyGenerator"
*.host[*].energyGenerator.energySinkModule = "^.energyStorage"
*.host[*].energyGenerator.powerGeneration = 1mW
*.host[*].energyGenerator.sleepInterval = exponential(10s)
*.host[*].energyGenerator.generationInterval = exponential(10s)

thank you


--
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/IMR2xyu0zk0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to omnetpp+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Shaikha Al-Khuder

unread,
Dec 25, 2015, 2:04:57 AM12/25/15
to OMNeT++ Users
I can't get my energy values to change, and after reading half of the energy posts in this group, I'm suspecting one of two:
I's either my ini file:


**.scalar-recording = true

**.vector-recording = true

**.batteryType = "InetSimpleBattery"

*.host[*].battery.nominal = 99999

*.host[*].battery.capacity = 99999 

*.host[*].battery.voltage = 3.3

*.host[*].battery.resolution =1s

*.host[*].battery.publishDelta = 0.5

*.host[*].battery.publishTime = 1s


*.host[*].usage_radio_idle = 1.38mA    #[mA]

*.host[*].usage_radio_recv = 9.6mA     #[mA]

*.host[*].usage_radio_sleep = 0.06mA  #[mA]

*.host[*].usage_radio_send = 0.06mA

//Last 4 lines have warnings.

OR

I'm missing something in my .cc files. probably IdealRadio or UDPBasicApp...

Any advise?

Shaikha Al-Khuder

unread,
Jan 15, 2016, 2:02:18 PM1/15/16
to OMNeT++ Users
Hello Mr. Wael,

What does the energy generator do?
Does it generate energy? Or is it like the initial battery generation?

I'm asking because I just need to simulate the behavior of a simple battery ( I don't want it to be recharged or anything ) 

Wael Ali

unread,
Jan 17, 2016, 8:19:32 PM1/17/16
to omn...@googlegroups.com
genrate energy , i think likesolar cell.
b regds

Shaikha Al-Khuder

unread,
Feb 11, 2016, 8:30:44 AM2/11/16
to OMNeT++ Users
When you used these values did you get reasonable values for power consumption?
I can only see the values of residual capacity. The power consumption is always 0.


On Friday, May 29, 2015 at 11:18:11 AM UTC+3, Wael Ali wrote:
Reply all
Reply to author
Forward
0 new messages