public class FeneconHomeBatteryImpl extends AbstractOpenemsModbusComponent implements OpenemsComponent, Battery, org.osgi.service.event.EventHandler, ModbusSlave, StartStoppable, FeneconHomeBattery
AbstractOpenemsModbusComponent.BitConverter, AbstractOpenemsModbusComponent.ChannelMapper<T extends AbstractModbusElement<?>>
FeneconHomeBattery.ChannelId
Modifier and Type | Field and Description |
---|---|
protected org.osgi.service.cm.ConfigurationAdmin |
cm |
Constructor and Description |
---|
FeneconHomeBatteryImpl() |
Modifier and Type | Method and Description |
---|---|
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.
|
ModbusSlaveTable |
getModbusSlaveTable(AccessMode accessMode)
Gets the Modbus-Slave-Table for this OpenEMS-Component.
|
StartStop |
getStartStopTarget()
Gets the target Start/Stop mode from config or StartStop-Channel.
|
void |
handleEvent(org.osgi.service.event.Event event) |
protected void |
setModbus(BridgeModbus modbus)
Set the Modbus bridge.
|
void |
setStartStop(StartStop value)
Starts or stops the device or service represented by this OpenEMS Component.
|
activate, activate, activate, getBridgeModbus, getModbusProtocol, getUnitId, m, m, m, m, unsetModbus
_channel, addChannel, addChannels, addChannels, alias, channels, getComponentContext, id, isEnabled, logDebug, logError, logInfo, logWarn, modified, removeChannel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_setBmsControl, getBmsControl, getBmsControlChannel, setBmsControl
_setCapacity, _setCapacity, _setChargeMaxCurrent, _setChargeMaxCurrent, _setChargeMaxVoltage, _setChargeMaxVoltage, _setCurrent, _setCurrent, _setDischargeMaxCurrent, _setDischargeMaxCurrent, _setDischargeMinVoltage, _setDischargeMinVoltage, _setForceChargeActive, _setForceChargeActive, _setForceDischargeActive, _setForceDischargeActive, _setMaxCellTemperature, _setMaxCellTemperature, _setMaxCellVoltage, _setMaxCellVoltage, _setMinCellTemperature, _setMinCellTemperature, _setMinCellVoltage, _setMinCellVoltage, _setSoc, _setSoc, _setSoh, _setSoh, _setVoltage, _setVoltage, getCapacity, getCapacityChannel, getChargeMaxCurrent, getChargeMaxCurrentChannel, getChargeMaxVoltage, getChargeMaxVoltageChannel, getCurrent, getCurrentChannel, getDischargeMaxCurrent, getDischargeMaxCurrentChannel, getDischargeMinVoltage, getDischargeMinVoltageChannel, getForceChargeActive, getForceChargeActiveChannel, getForceDischargeActive, getForceDischargeActiveChannel, getMaxCellTemperature, getMaxCellTemperatureChannel, getMaxCellVoltage, getMaxCellVoltageChannel, getMinCellTemperature, getMinCellTemperatureChannel, getMinCellVoltage, getMinCellVoltageChannel, getSoc, getSocChannel, getSoh, getSohChannel, getVoltage, getVoltageChannel
protected void setModbus(BridgeModbus modbus)
AbstractOpenemsModbusComponent
setModbus
in class AbstractOpenemsModbusComponent
modbus
- the BridgeModbus Referenceprotected void deactivate()
AbstractOpenemsComponent
deactivate
in class AbstractOpenemsModbusComponent
public void handleEvent(org.osgi.service.event.Event event)
handleEvent
in interface org.osgi.service.event.EventHandler
protected ModbusProtocol defineModbusProtocol() throws OpenemsException
AbstractOpenemsModbusComponent
defineModbusProtocol
in class AbstractOpenemsModbusComponent
OpenemsException
- on errorpublic java.lang.String debugLog()
OpenemsComponent
debugLog
in interface OpenemsComponent
public ModbusSlaveTable getModbusSlaveTable(AccessMode accessMode)
ModbusSlave
getModbusSlaveTable
in interface ModbusSlave
accessMode
- filters the Modbus-Records that should be shownpublic void setStartStop(StartStop value)
StartStoppable
setStartStop
in interface StartStoppable
value
- target StartStop
statepublic StartStop getStartStopTarget()
FeneconHomeBattery
getStartStopTarget
in interface FeneconHomeBattery
StartStop