Ieee80211StateBasedCcEnergyConsumer

Package: inet.physicallayer.wireless.ieee80211.packetlevel

Ieee80211StateBasedCcEnergyConsumer

simple module

This module provides a radio power consumer model for IEEE 802.11 radios. Default values are roughly based on CC3220 transceiver. The power consumption is determined by the radio mode, the transmitter state and the receiver state using constant parameters.

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Extends

Name Type Description
StateBasedCcEnergyConsumer simple module

This module provides a radio energy consumer model. The current consumption is determined by the radio mode, the transmitter state and the receiver state using constant parameters.

Parameters

Name Type Default value Description
energySourceModule string
minSupplyVoltage double 0V
maxSupplyVoltage double inf V
offCurrentConsumption double 0mA
sleepCurrentConsumption double 0.01mA
switchingCurrentConsumption double 100mA
receiverIdleCurrentConsumption double 100mA
receiverBusyCurrentConsumption double 100mA
receiverReceivingCurrentConsumption double 100mA
receiverReceivingPreambleCurrentConsumption double receiverReceivingCurrentConsumption
receiverReceivingHeaderCurrentConsumption double receiverReceivingCurrentConsumption
receiverReceivingDataCurrentConsumption double receiverReceivingCurrentConsumption
transmitterIdleCurrentConsumption double 100mA
transmitterTransmittingCurrentConsumption double 250mA
transmitterTransmittingPreambleCurrentConsumption double transmitterTransmittingCurrentConsumption
transmitterTransmittingHeaderCurrentConsumption double transmitterTransmittingCurrentConsumption
transmitterTransmittingDataCurrentConsumption double transmitterTransmittingCurrentConsumption

Properties

Name Value Description
display i=block/cogwheel
class StateBasedCcEnergyConsumer

Signals

Name Type Unit
currentConsumptionChanged double

Statistics

Name Title Source Record Unit Interpolation Mode
currentConsumption Current consumption currentConsumptionChanged vector A sample-hold

Source code

//
// This module provides a radio power consumer model for IEEE 802.11 radios.
// Default values are roughly based on CC3220 transceiver. The power consumption is
// determined by the radio mode, the transmitter state and the receiver state
// using constant parameters.
//
simple Ieee80211StateBasedCcEnergyConsumer extends StateBasedCcEnergyConsumer
{
    parameters:
        offCurrentConsumption = default(0mA);
        sleepCurrentConsumption = default(0.01mA);
        switchingCurrentConsumption = default(100mA);       // tx/rx calibration mode
        receiverIdleCurrentConsumption = default(100mA);
        receiverBusyCurrentConsumption = default(100mA);    // no info yet
        receiverReceivingCurrentConsumption = default(100mA);
        receiverReceivingPreambleCurrentConsumption = default(receiverReceivingCurrentConsumption);
        receiverReceivingHeaderCurrentConsumption = default(receiverReceivingCurrentConsumption);
        receiverReceivingDataCurrentConsumption = default(receiverReceivingCurrentConsumption);
        transmitterIdleCurrentConsumption = default(100mA);    // no info yet
        transmitterTransmittingCurrentConsumption = default(250mA);
        transmitterTransmittingPreambleCurrentConsumption = default(transmitterTransmittingCurrentConsumption);
        transmitterTransmittingHeaderCurrentConsumption = default(transmitterTransmittingCurrentConsumption);
        transmitterTransmittingDataCurrentConsumption = default(transmitterTransmittingCurrentConsumption);
}

File: src/inet/physicallayer/wireless/ieee80211/packetlevel/Ieee80211StateBasedCcEnergyConsumer.ned