Class EvcsOcppIesKeywattSingleImpl
- All Implemented Interfaces:
OpenemsComponent
,Evcs
,ManagedEvcs
,MeasuringEvcs
,SocEvcs
,EvcsOcppIesKeywattSingle
,TimedataProvider
,org.osgi.service.event.EventHandler
-
Nested Class Summary
Nested classes/interfaces inherited from class io.openems.edge.evcs.ocpp.common.AbstractManagedOcppEvcsComponent
AbstractManagedOcppEvcsComponent.ChannelId
Nested classes/interfaces inherited from interface io.openems.edge.evcs.api.Evcs
Evcs.ChannelId
Nested classes/interfaces inherited from interface io.openems.edge.evcs.ocpp.ies.keywatt.singleccs.EvcsOcppIesKeywattSingle
EvcsOcppIesKeywattSingle.ChannelId
Nested classes/interfaces inherited from interface io.openems.edge.evcs.api.ManagedEvcs
ManagedEvcs.ChannelId
Nested classes/interfaces inherited from interface io.openems.edge.evcs.api.MeasuringEvcs
MeasuringEvcs.ChannelId
Nested classes/interfaces inherited from interface io.openems.edge.common.component.OpenemsComponent
OpenemsComponent.ChannelId
Nested classes/interfaces inherited from interface io.openems.edge.evcs.api.SocEvcs
SocEvcs.ChannelId
-
Field Summary
Fields inherited from class io.openems.edge.evcs.ocpp.common.AbstractManagedOcppEvcsComponent
ocppServer, profileTypes, sessionId
Fields inherited from interface io.openems.edge.evcs.api.Evcs
DEFAULT_MAXIMUM_HARDWARE_CURRENT, DEFAULT_MAXIMUM_HARDWARE_POWER, DEFAULT_MINIMUM_HARDWARE_CURRENT, DEFAULT_MINIMUM_HARDWARE_POWER, DEFAULT_POWER_RECISION, DEFAULT_VOLTAGE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
activate
(org.osgi.service.component.ComponentContext context, io.openems.edge.evcs.ocpp.ies.keywatt.singleccs.Config config) protected void
Handles @Deactivate of implementations.Get configured Connector-ID.boolean
Configuration if the debug mode is active or not.int
Maximum hardware limit in W given by the configuration.int
Minimum hardware limit in W given by the configuration.Get the configured OCPP ID.Get theEvcsPower
.int
Minimum time till a charging limit is taken by the EVCS in seconds.List<eu.chargetime.ocpp.model.Request>
Required requests that should be sent after a connection was established.List<eu.chargetime.ocpp.model.Request>
Required requests that should be sent permanently during a session.Default requests that every OCPP EVCS should have.Get the supported measurements.Gets theTimedata
service.void
handleEvent
(org.osgi.service.event.Event event) protected void
modified
(org.osgi.service.component.ComponentContext context, io.openems.edge.evcs.ocpp.ies.keywatt.singleccs.Config config) boolean
Returns session energy.Methods inherited from class io.openems.edge.evcs.ocpp.common.AbstractManagedOcppEvcsComponent
activate, applyChargePowerLimit, applyDisplayText, debugLog, getLastChargingProperty, getSessionEnd, getSessionId, getSessionStart, logInfo, logWarn, lostSession, modified, newSession, pauseChargeProcess, setLastChargingProperty
Methods inherited from class io.openems.edge.evcs.api.AbstractManagedEvcsComponent
getChargeStateHandler, logDebug, logDebug
Methods inherited from class io.openems.edge.common.component.AbstractOpenemsComponent
_channel, activate, addChannel, addChannels, addChannels, alias, channels, getComponentContext, id, isEnabled, logError, removeChannel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.openems.edge.evcs.api.Evcs
_setActiveConsumptionEnergy, _setActiveConsumptionEnergy, _setChargePower, _setChargePower, _setChargingstationCommunicationFailed, _setChargingType, _setEnergySession, _setEnergySession, _setFixedMaximumHardwarePower, _setFixedMaximumHardwarePower, _setFixedMinimumHardwarePower, _setFixedMinimumHardwarePower, _setMaximumPower, _setMaximumPower, _setMinimumPower, _setMinimumPower, _setPhases, _setPhases, _setStatus, getActiveConsumptionEnergy, getActiveConsumptionEnergyChannel, getChargePower, getChargePowerChannel, getChargingstationCommunicationFailed, getChargingstationCommunicationFailedChannel, getChargingType, getChargingTypeChannel, getEnergySession, getEnergySessionChannel, getFixedMaximumHardwarePower, getFixedMaximumHardwarePowerChannel, getFixedMinimumHardwarePower, getFixedMinimumHardwarePowerChannel, getMaximumHardwarePower, getMaximumHardwarePowerChannel, getMaximumPower, getMaximumPowerChannel, getMinimumHardwarePower, getMinimumHardwarePowerChannel, getMinimumPower, getMinimumPowerChannel, getPhases, getPhasesAsInt, getPhasesChannel, getStatus, getStatusChannel
Methods inherited from interface io.openems.edge.evcs.api.ManagedEvcs
_setChargeMode, _setIsClustered, _setPowerPrecision, _setPowerPrecision, _setSetChargePowerLimit, _setSetChargePowerLimit, _setSetChargePowerLimitWithFilter, _setSetChargePowerLimitWithFilter, _setSetChargePowerRequest, _setSetChargePowerRequest, _setSetDisplayText, _setSetEnergyLimit, _setSetEnergyLimit, applyChargePowerLimit, applyDisplayText, getChargeMode, getChargeModeChannel, getChargeState, getChargeStateChannel, getChargeStateHandler, getIsClustered, getIsClusteredChannel, getPowerPrecision, getPowerPrecisionChannel, getSetChargePowerLimit, getSetChargePowerLimitChannel, getSetChargePowerLimitWithFilter, getSetChargePowerLimitWithFilterChannel, getSetChargePowerRequest, getSetChargePowerRequestChannel, getSetDisplayText, getSetDisplayTextChannel, getSetEnergyLimit, getSetEnergyLimitChannel, getWriteInterval, logDebug, pauseChargeProcess, setChargePowerLimit, setChargePowerLimitWithFilter, setChargePowerRequest, setDisplayText, setEnergyLimit
Methods inherited from interface io.openems.edge.common.component.OpenemsComponent
_channel, _getChannelAs, alias, channel, channel, channels, debugLog, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid
Methods inherited from interface io.openems.edge.evcs.api.SocEvcs
_setSoc, _setSoc, getSoc, getSocChannel
-
Constructor Details
-
EvcsOcppIesKeywattSingleImpl
public EvcsOcppIesKeywattSingleImpl()
-
-
Method Details
-
activate
protected void activate(org.osgi.service.component.ComponentContext context, io.openems.edge.evcs.ocpp.ies.keywatt.singleccs.Config config) -
modified
protected void modified(org.osgi.service.component.ComponentContext context, io.openems.edge.evcs.ocpp.ies.keywatt.singleccs.Config config) -
deactivate
protected void deactivate()Description copied from class:AbstractOpenemsComponent
Handles @Deactivate of implementations. Prints log output.- Overrides:
deactivate
in classAbstractManagedOcppEvcsComponent
-
getSupportedMeasurements
Description copied from class:AbstractManagedOcppEvcsComponent
Get the supported measurements.- Specified by:
getSupportedMeasurements
in classAbstractManagedOcppEvcsComponent
- Returns:
- supported measurements as a Set of
OcppInformations
-
getConfiguredOcppId
Description copied from class:AbstractManagedOcppEvcsComponent
Get the configured OCPP ID.- Specified by:
getConfiguredOcppId
in classAbstractManagedOcppEvcsComponent
- Returns:
- OCPP ID
-
getConfiguredConnectorId
Description copied from class:AbstractManagedOcppEvcsComponent
Get configured Connector-ID.Every OCPP-EVCS Component requires the corresponding Connector-ID of the charger. This is especially important for an EVCS with two or more connectors.
- Specified by:
getConfiguredConnectorId
in classAbstractManagedOcppEvcsComponent
- Returns:
- configured Connector-ID
-
handleEvent
public void handleEvent(org.osgi.service.event.Event event) - Specified by:
handleEvent
in interfaceorg.osgi.service.event.EventHandler
- Overrides:
handleEvent
in classAbstractManagedOcppEvcsComponent
-
getStandardRequests
Description copied from class:AbstractManagedOcppEvcsComponent
Default requests that every OCPP EVCS should have.- Specified by:
getStandardRequests
in classAbstractManagedOcppEvcsComponent
- Returns:
- OcppRequests
-
getRequiredRequestsAfterConnection
Description copied from class:AbstractManagedOcppEvcsComponent
Required requests that should be sent after a connection was established.- Specified by:
getRequiredRequestsAfterConnection
in classAbstractManagedOcppEvcsComponent
- Returns:
- List of requests
-
getRequiredRequestsDuringConnection
Description copied from class:AbstractManagedOcppEvcsComponent
Required requests that should be sent permanently during a session.- Specified by:
getRequiredRequestsDuringConnection
in classAbstractManagedOcppEvcsComponent
- Returns:
- List of requests
-
getEvcsPower
Description copied from interface:ManagedEvcs
Get theEvcsPower
.- Specified by:
getEvcsPower
in interfaceManagedEvcs
- Returns:
- the
EvcsPower
-
returnsSessionEnergy
public boolean returnsSessionEnergy()Description copied from class:AbstractManagedOcppEvcsComponent
Returns session energy.Is the EVCS supporting SessionEnergy or only a meter with the total energy.
- Specified by:
returnsSessionEnergy
in classAbstractManagedOcppEvcsComponent
- Returns:
- boolean
-
getConfiguredDebugMode
public boolean getConfiguredDebugMode()Description copied from interface:ManagedEvcs
Configuration if the debug mode is active or not.- Specified by:
getConfiguredDebugMode
in interfaceManagedEvcs
- Returns:
- boolean
-
getMinimumTimeTillChargingLimitTaken
public int getMinimumTimeTillChargingLimitTaken()Description copied from interface:ManagedEvcs
Minimum time till a charging limit is taken by the EVCS in seconds.- Specified by:
getMinimumTimeTillChargingLimitTaken
in interfaceManagedEvcs
- Returns:
- time in seconds
-
getConfiguredMinimumHardwarePower
public int getConfiguredMinimumHardwarePower()Description copied from interface:ManagedEvcs
Minimum hardware limit in W given by the configuration.This value is taken as a fallback for the
ChannelId#FIXED_MINIMUM_HARDWARE_POWER
channel. As the configuration property should be in mA for AC chargers, make sure that the value is converted to W. Example: Math.round(current / 1000f) * DEFAULT_VOLTAGE * Phases.THREE_PHASE.getValue();- Specified by:
getConfiguredMinimumHardwarePower
in interfaceManagedEvcs
- Returns:
- minimum hardware limit in W
-
getConfiguredMaximumHardwarePower
public int getConfiguredMaximumHardwarePower()Description copied from interface:ManagedEvcs
Maximum hardware limit in W given by the configuration.This value is taken as a fallback for the
ChannelId#FIXED_MAXIMUM_HARDWARE_POWER
channel. As the configuration property should be in mA for AC chargers, make sure that the value is converted to W. Example: Math.round(current / 1000f) * DEFAULT_VOLTAGE * Phases.THREE_PHASE.getValue();- Specified by:
getConfiguredMaximumHardwarePower
in interfaceManagedEvcs
- Returns:
- maximum hardware limit in W
-
getTimedata
Description copied from interface:TimedataProvider
Gets theTimedata
service.- Specified by:
getTimedata
in interfaceTimedataProvider
- Returns:
- the service or null if it is not (yet) available.
-