Package io.openems.edge.fenecon.dess.ess
Class FeneconDessEssImpl
- java.lang.Object
-
- io.openems.edge.common.component.AbstractOpenemsComponent
-
- io.openems.edge.bridge.modbus.api.AbstractOpenemsModbusComponent
-
- io.openems.edge.fenecon.dess.ess.FeneconDessEssImpl
-
- All Implemented Interfaces:
ModbusComponent
,OpenemsComponent
,AsymmetricEss
,HybridEss
,SymmetricEss
,FeneconDessEss
,TimedataProvider
,org.osgi.service.event.EventHandler
public class FeneconDessEssImpl extends AbstractOpenemsModbusComponent implements FeneconDessEss, AsymmetricEss, SymmetricEss, HybridEss, ModbusComponent, OpenemsComponent, org.osgi.service.event.EventHandler, TimedataProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.openems.edge.bridge.modbus.api.AbstractOpenemsModbusComponent
AbstractOpenemsModbusComponent.BitConverter, AbstractOpenemsModbusComponent.ChannelMapper<T extends AbstractModbusElement<?>>
-
Nested classes/interfaces inherited from interface io.openems.edge.ess.api.AsymmetricEss
AsymmetricEss.ChannelId
-
Nested classes/interfaces inherited from interface io.openems.edge.fenecon.dess.ess.FeneconDessEss
FeneconDessEss.ChannelId
-
Nested classes/interfaces inherited from interface io.openems.edge.ess.api.HybridEss
HybridEss.ChannelId
-
Nested classes/interfaces inherited from interface io.openems.edge.bridge.modbus.api.ModbusComponent
ModbusComponent.ChannelId
-
Nested classes/interfaces inherited from interface io.openems.edge.common.component.OpenemsComponent
OpenemsComponent.ChannelId
-
Nested classes/interfaces inherited from interface io.openems.edge.ess.api.SymmetricEss
SymmetricEss.ChannelId
-
-
Field Summary
Fields Modifier and Type Field Description protected org.osgi.service.cm.ConfigurationAdmin
cm
-
Fields inherited from interface io.openems.edge.fenecon.dess.ess.FeneconDessEss
CAPACITY, MAX_APPARENT_POWER
-
-
Constructor Summary
Constructors Constructor Description FeneconDessEssImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCharger(AbstractFeneconDessCharger charger)
Registers a Charger with this ESS.protected void
deactivate()
Handles @Deactivate of implementations.java.lang.String
debugLog()
Gets some output that is suitable for a continuous Debug log.protected ModbusProtocol
defineModbusProtocol()
Defines the Modbus protocol.java.lang.String
getModbusBridgeId()
Gets the Modbus-Bridge Component-ID, i.e.java.lang.Integer
getSurplusPower()
Gets the Surplus Power of theEssDcCharger
s of thisHybridEss
.Timedata
getTimedata()
Gets theTimedata
service.void
handleEvent(org.osgi.service.event.Event event)
void
removeCharger(AbstractFeneconDessCharger charger)
Unregisters a Charger from this ESS.protected void
setModbus(BridgeModbus modbus)
Set the Modbus bridge.-
Methods inherited from class io.openems.edge.bridge.modbus.api.AbstractOpenemsModbusComponent
activate, activate, activate, getBridgeModbus, getModbusProtocol, getUnitId, m, m, m, m, m, m, modified, modified, unsetModbus
-
Methods inherited from class io.openems.edge.common.component.AbstractOpenemsComponent
_channel, addChannel, addChannels, addChannels, alias, channels, getComponentContext, id, isEnabled, logDebug, logError, logInfo, logWarn, 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.ess.api.AsymmetricEss
_setActivePowerL1, _setActivePowerL1, _setActivePowerL2, _setActivePowerL2, _setActivePowerL3, _setActivePowerL3, _setReactivePowerL1, _setReactivePowerL1, _setReactivePowerL2, _setReactivePowerL2, _setReactivePowerL3, _setReactivePowerL3, getActivePowerL1, getActivePowerL1Channel, getActivePowerL2, getActivePowerL2Channel, getActivePowerL3, getActivePowerL3Channel, getReactivePowerL1, getReactivePowerL1Channel, getReactivePowerL2, getReactivePowerL2Channel, getReactivePowerL3, getReactivePowerL3Channel
-
Methods inherited from interface io.openems.edge.fenecon.dess.ess.FeneconDessEss
getUnitId
-
Methods inherited from interface io.openems.edge.ess.api.HybridEss
_setDcChargeEnergy, _setDcChargeEnergy, _setDcDischargeEnergy, _setDcDischargeEnergy, _setDcDischargePower, getDcChargeEnergy, getDcChargeEnergyChannel, getDcDischargeEnergy, getDcDischargeEnergyChannel, getDcDischargePower, getDcDischargePowerChannel
-
Methods inherited from interface io.openems.edge.bridge.modbus.api.ModbusComponent
_setModbusCommunicationFailed, getModbusCommunicationFailed, getModbusCommunicationFailedChannel
-
Methods inherited from interface io.openems.edge.common.component.OpenemsComponent
_channel, _getChannelAs, alias, channel, channel, channels, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid
-
Methods inherited from interface io.openems.edge.ess.api.SymmetricEss
_setActiveChargeEnergy, _setActiveChargeEnergy, _setActiveDischargeEnergy, _setActiveDischargeEnergy, _setActivePower, _setActivePower, _setCapacity, _setCapacity, _setGridMode, _setMaxApparentPower, _setMaxApparentPower, _setMaxCellTemperature, _setMaxCellTemperature, _setMaxCellVoltage, _setMaxCellVoltage, _setMinCellTemperature, _setMinCellTemperature, _setMinCellVoltage, _setMinCellVoltage, _setReactivePower, _setReactivePower, _setSoc, _setSoc, getActiveChargeEnergy, getActiveChargeEnergyChannel, getActiveDischargeEnergy, getActiveDischargeEnergyChannel, getActivePower, getActivePowerChannel, getCapacity, getCapacityChannel, getGridMode, getGridModeChannel, getMaxApparentPower, getMaxApparentPowerChannel, getMaxCellTemperature, getMaxCellTemperatureChannel, getMaxCellVoltage, getMaxCellVoltageChannel, getMinCellTemperature, getMinCellTemperatureChannel, getMinCellVoltage, getMinCellVoltageChannel, getReactivePower, getReactivePowerChannel, getSoc, getSocChannel
-
-
-
-
Method Detail
-
setModbus
protected void setModbus(BridgeModbus modbus)
Description copied from class:AbstractOpenemsModbusComponent
Set the Modbus bridge. Should be called by @Reference- Overrides:
setModbus
in classAbstractOpenemsModbusComponent
- Parameters:
modbus
- the BridgeModbus Reference
-
deactivate
protected void deactivate()
Description copied from class:AbstractOpenemsComponent
Handles @Deactivate of implementations. Prints log output.- Overrides:
deactivate
in classAbstractOpenemsModbusComponent
-
defineModbusProtocol
protected ModbusProtocol defineModbusProtocol() throws OpenemsException
Description copied from class:AbstractOpenemsModbusComponent
Defines the Modbus protocol.- Specified by:
defineModbusProtocol
in classAbstractOpenemsModbusComponent
- Returns:
- the ModbusProtocol
- Throws:
OpenemsException
- on error
-
debugLog
public java.lang.String debugLog()
Description copied from interface:OpenemsComponent
Gets some output that is suitable for a continuous Debug log. Returns 'null' by default which causes no output.- Specified by:
debugLog
in interfaceOpenemsComponent
- Returns:
- the debug log output
-
getModbusBridgeId
public java.lang.String getModbusBridgeId()
Description copied from interface:FeneconDessEss
Gets the Modbus-Bridge Component-ID, i.e. "modbus0".- Specified by:
getModbusBridgeId
in interfaceFeneconDessEss
- Returns:
- the Component-ID
-
addCharger
public void addCharger(AbstractFeneconDessCharger charger)
Description copied from interface:FeneconDessEss
Registers a Charger with this ESS.- Specified by:
addCharger
in interfaceFeneconDessEss
- Parameters:
charger
- the Charger
-
removeCharger
public void removeCharger(AbstractFeneconDessCharger charger)
Description copied from interface:FeneconDessEss
Unregisters a Charger from this ESS.- Specified by:
removeCharger
in interfaceFeneconDessEss
- Parameters:
charger
- the Charger
-
getTimedata
public Timedata 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.
-
handleEvent
public void handleEvent(org.osgi.service.event.Event event)
- Specified by:
handleEvent
in interfaceorg.osgi.service.event.EventHandler
-
getSurplusPower
public java.lang.Integer getSurplusPower()
Description copied from interface:HybridEss
Gets the Surplus Power of theEssDcCharger
s of thisHybridEss
.This value is usually calculated from the
EssDcCharger.getActualPower()
when the battery is full. It is used by the Ess.Hybrid.Surplus-Feed-To-Grid Controller to feed the surplus power to grid.- Specified by:
getSurplusPower
in interfaceHybridEss
- Returns:
- the surplus power, or 'null' if there is no surplus power
-
-