Documentation
¶
Overview ¶
Package valloxrs485 implements Vallox RS485 protocol
Index ¶
Constants ¶
View Source
const ( MsgDomain = 0x01 MsgPollByte = 0x00 MsgMainboard1 = 0x11 MsgMainboards = 0x10 MsgPanel1 = 0x21 MsgPanels = 0x20 )
View Source
const ( RegisterIO07 byte = 0x07 RegisterIO08 byte = 0x08 RegisterCurrentFanSpeed byte = 0x29 RegisterMaxRH byte = 0x2a RegisterCurrentCO2 byte = 0x2b RegisterMaximumCO2 byte = 0x2c RegisterCO2Status byte = 0x2d RegisterMessage byte = 0x2e RegisterRH1 byte = 0x2f RegisterRH2 byte = 0x30 RegisterOutdoorTemp byte = 0x32 RegisterExhaustOutTemp byte = 0x33 RegisterExhaustInTemp byte = 0x34 RegisterSupplyTemp byte = 0x35 RegisterFaultCode byte = 0x36 RegisterPostHeatingOnTime byte = 0x55 RegisterPostHeatingOffTime byte = 0x56 RegisterPostHeatingTarget byte = 0x57 RegisterFlags02 byte = 0x6d RegisterFlags04 byte = 0x6f RegisterFlags05 byte = 0x70 RegisterFlags06 byte = 0x71 RegisterFireplaceCounter byte = 0x79 Register8f byte = 0x8f Register91 byte = 0x91 RegisterStatus byte = 0xa3 RegisterPostHeatingSetpoint byte = 0xa4 RegisterMaxFanSpeed byte = 0xa5 RegisterServiceInterval byte = 0xa6 RegisterPreheatingTemp byte = 0xa7 RegisterSupplyFanStopTemp byte = 0xa8 RegisterDefaultFanSpeed byte = 0xa9 RegisterProgram byte = 0xaa RegisterServiceCounter byte = 0xab RegisterBasicHumidity byte = 0xae RegisterBypassTemp byte = 0xaf RegisterSupplyFanSetpoint byte = 0xb0 RegisterExhaustFanSetpoint byte = 0xb1 RegisterAntiFreezeHysteresis byte = 0xb2 RegisterCO2SetpointUpper byte = 0xb3 RegisterCO2SetpointLower byte = 0xb4 RegisterProgram2 byte = 0xb5 )
Registers based on Vallox documentation
View Source
const ( IO08FlagSummerMode byte = 0x02 IO08FlagErrorRelay byte = 0x04 IO08FlagMotorIn byte = 0x08 IO08FlagPreheating byte = 0x10 IO08FlagMotorOut byte = 0x20 IO08FlagFireplaceSwitch byte = 0x40 )
Flags of variable 08
View Source
const ( FanSpeed1 byte = 0x01 FanSpeed2 byte = 0x03 FanSpeed3 byte = 0x07 FanSpeed4 byte = 0x0f FanSpeed5 byte = 0x1f FanSpeed6 byte = 0x3f FanSpeed7 byte = 0x7f FanSpeed8 byte = 0xff )
Fan speeds
View Source
const ( CO2Sensor1 byte = 0x02 CO2Sensor2 byte = 0x04 CO2Sensor3 byte = 0x08 CO2Sensor4 byte = 0x10 CO2Sensor5 byte = 0x20 )
Status flags of variable 2d
View Source
const ( FaultSupplyAirSensorFault byte = 0x05 FaultCarbonDioxideAlarm byte = 0x06 FaultOutdoorSensorFault byte = 0x07 FaultExhaustAirInSensorFault byte = 0x08 FaultWaterCoilFreezing byte = 0x09 FaultExhaustAirOutSensorFault byte = 0x0a )
Status flags of variable 36
View Source
const ( Flags2CO2HigherSpeedReq byte = 0x01 Flags2CO2LowerSpeedReq byte = 0x02 Flags2RHLowerSpeedReq byte = 0x04 Flags2SwitchLowerSpeedReq byte = 0x08 Flags2CO2Alarm byte = 0x40 Flags2CellFreezeAlarm byte = 0x80 )
View Source
const ( Flags4WaterCoilFreezing byte = 0x10 Flags4Master byte = 0xf0 )
View Source
const ( Flags6RemoteControl byte = 0x10 Flags6ActivateFireplaceSwitch byte = 0x20 Flags6FireplaceFunction byte = 0x40 )
View Source
const ( StatusFlagPower byte = 0x01 StatusFlagCO2 byte = 0x02 StatusFlagRH byte = 0x04 StatusFlagHeatingMode byte = 0x08 StatusFlagFilter byte = 0x10 StatusFlagHeating byte = 0x20 StatusFlagFault byte = 0x40 StatusFlagService byte = 0x80 )
Status flags of variable a3
View Source
const ( ProgramFlagAutomaticHumidity byte = 0x10 ProgramFlagBoostSwitch byte = 0x20 ProgramFlagWater byte = 0x40 ProgramFlagCascadeControl byte = 0x80 )
View Source
const (
Flags5PreheatingStatus byte = 0xf0
)
View Source
const (
IO07FlagReheating byte = 0x20
)
Flags of variable 08
View Source
const (
Program2FlagMaximumSpeedLimit byte = 0x01
)
View Source
const RHDivider = 2.04
View Source
const RHOffset = 51
View Source
const TimeDivider = 2.5
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Device file for rs485 device
Device string
// RemoteClientId is the id for this device in Vallox rs485 bus
RemoteClientId byte
// Enable writing to Vallox regisers, default false
EnableWrite bool
// Logge for debug, default no logging
LogDebug *log.Logger
}
Config foo
type Vallox ¶
type Vallox struct {
// contains filtered or unexported fields
}
func (Vallox) SetDefaultFanSpeed ¶
SetDefaultFanSpeed changes default speed of ventilation fan
func (Vallox) SetMaxFanSpeed ¶
SetMaxFanSpeed changes maximum speed of ventilation fan
Click to show internal directories.
Click to hide internal directories.