Ieee80211StateBasedCcEnergyConsumer

Package: inet.physicallayer.wireless.ieee80211.packetlevel

Ieee80211StateBasedCcEnergyConsumer

simple module

C++ definition

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

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
displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

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
class StateBasedCcEnergyConsumer
display i=block/cogwheel

Signals

Name Type Unit Description
currentConsumptionChanged double

Statistics

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

Source code

//
// 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 information yet
        receiverReceivingCurrentConsumption = default(100mA);
        receiverReceivingPreambleCurrentConsumption = default(receiverReceivingCurrentConsumption);
        receiverReceivingHeaderCurrentConsumption = default(receiverReceivingCurrentConsumption);
        receiverReceivingDataCurrentConsumption = default(receiverReceivingCurrentConsumption);
        transmitterIdleCurrentConsumption = default(100mA);    // No information yet
        transmitterTransmittingCurrentConsumption = default(250mA);
        transmitterTransmittingPreambleCurrentConsumption = default(transmitterTransmittingCurrentConsumption);
        transmitterTransmittingHeaderCurrentConsumption = default(transmitterTransmittingCurrentConsumption);
        transmitterTransmittingDataCurrentConsumption = default(transmitterTransmittingCurrentConsumption);
}

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