Calduino
1.0
|
Public Member Functions | |
Calduino () | |
boolean | begin (EMSSerial *_calduinoSerial, Stream *debugSerial=NULL) |
boolean | printEMSDatagram (EMSDatagramID eMSDatagramID, DatagramDataIndex datagramDataIndex=ERROR_VALUE) |
byte | getCalduinoByteValue (ByteRequest typeIdx) |
float | getCalduinoFloatValue (FloatRequest typeIdx) |
unsigned long | getCalduinoUlongValue (ULongRequest typeIdx) |
boolean | getCalduinoBitValue (BitRequest typeIdx) |
SwitchPoint | getCalduinoSwitchPoint (EMSDatagramID selProgram, byte switchPointID) |
boolean | setWorkModeHC (byte selHC, byte selMode) |
boolean | setTemperatureHC (byte selHC, byte selMode, byte selTmp) |
boolean | setProgramHC (byte selHC, byte selProgram) |
boolean | setSWThresholdTempHC (byte selHC, byte selTmp) |
boolean | setNightSetbackModeHC (byte selHC, byte selMode) |
boolean | setNightThresholdOutTempHC (byte selHC, int8_t selTmp) |
boolean | setRoomTempOffsetHC (byte selHC, int8_t selTmp) |
boolean | setPauseModeHC (byte selHC, byte duration) |
boolean | setPartyModeHC (byte selHC, byte duration) |
boolean | setHolidayModeHC (byte selHC, byte startHolidayDay, byte startHoldidayMonth, byte startHolidayYear, byte endHolidayDay, byte endHoldidayMonth, byte endHolidayYear) |
boolean | setHomeHolidayModeHC (byte selHC, byte startHomeHolidayDay, byte startHomeHoldidayMonth, byte startHomeHolidayYear, byte endHomeHolidayDay, byte endHomeHoldidayMonth, byte endHomeHolidayYear) |
boolean | setWorkModeDHW (byte selMode) |
boolean | setWorkModePumpDHW (byte selMode) |
boolean | setTemperatureDHW (byte selTmp) |
boolean | setTemperatureTDDHW (byte selTmp) |
boolean | setProgramDHW (byte selProgram) |
boolean | setProgramPumpDHW (byte selProgram) |
boolean | setOneTimeDHW (boolean selMode) |
boolean | setWorkModeTDDHW (byte selMode) |
boolean | setDayTDDHW (byte dayTherDisDHW) |
boolean | setHourTDDHW (byte hourTherDisDHW) |
boolean | setProgramSwitchPoint (EMSDatagramID selProgram, byte switchPointID, byte operationSwitchPoint, byte daySwitchPoint, byte hourSwitchPoint, byte minuteSwitchPoint) |
Public Attributes | |
PrintFormat | printFormat |
Definition at line 630 of file Calduino.h.
Calduino::Calduino | ( | ) |
Calduino constructor method. Initialize variables.
Definition at line 1299 of file Calduino.cpp.
boolean Calduino::begin | ( | EMSSerial * | _calduinoSerial, |
Stream * | _debugSerial = NULL |
||
) |
Start the Calduino device assigning the serial streams used.
[in,out] | _calduinoSerial | - UART port used to communicate with the EMS Serial. |
[in,out] | _debugSerial | - Optional stream to report errors and status. |
Definition at line 1315 of file Calduino.cpp.
boolean Calduino::getCalduinoBitValue | ( | BitRequest | typeIdx | ) |
Get a Calduino Data of type Bit.
typeIdx | Identifier of the Calduino Data Bit requested. |
Definition at line 1849 of file Calduino.cpp.
byte Calduino::getCalduinoByteValue | ( | ByteRequest | typeIdx | ) |
Get a Calduino Data of type Byte.
typeIdx | Identifier of the Calduino Data Byte requested. |
Definition at line 1732 of file Calduino.cpp.
float Calduino::getCalduinoFloatValue | ( | FloatRequest | typeIdx | ) |
Get a Calduino Data of type Float.
typeIdx | Identifier of the Calduino Data Float requested. |
Definition at line 1771 of file Calduino.cpp.
SwitchPoint Calduino::getCalduinoSwitchPoint | ( | EMSDatagramID | selProgram, |
byte | switchPointID | ||
) |
Get a Calduino Data of type Switch Point.
selProgram | Identifier of the Calduino Data Bit requested. |
switchPointID | Identifier for the switch point. |
Definition at line 1889 of file Calduino.cpp.
unsigned long Calduino::getCalduinoUlongValue | ( | ULongRequest | typeIdx | ) |
Get a Calduino Data of type ULong.
typeIdx | Identifier of the Calduino Data ULong requested. |
Definition at line 1810 of file Calduino.cpp.
boolean Calduino::printEMSDatagram | ( | EMSDatagramID | eMSDatagramID, |
DatagramDataIndex | datagramDataIndex = ERROR_VALUE |
||
) |
Get the EMS Datagram passed as parameter by sending a get EMS command and parsing the bytes obtained. If datagramDataIndex is ERROR_VALUE, get the whole datagram. Get only the Data Index otherwise. If debug is activated the results will be sent to the Debug Serial Stream following the print format activated.
eMSDatagramID | - The EMS Datagram ID to be obtained. |
datagramDataIndex | - (Optional) If not ERROR_VALUE, the position that the data to be recovered occupies in the calduinoDataValues array. |
Definition at line 1936 of file Calduino.cpp.
boolean Calduino::setDayTDDHW | ( | byte | dayTDDHW | ) |
Send an EMS command to change the thermal disinfection DHW running day. It will run once per week at the selected daySwitchPoint and hour, or once per day if dayTDDHW is 7.
dayTDDHW | Day of the week to run the thermal disinfection (7 is everyday). |
Definition at line 2562 of file Calduino.cpp.
boolean Calduino::setHolidayModeHC | ( | byte | selHC, |
byte | startHolidayDay, | ||
byte | startHoldidayMonth, | ||
byte | startHolidayYear, | ||
byte | endHolidayDay, | ||
byte | endHoldidayMonth, | ||
byte | endHolidayYear | ||
) |
Send an EMS command to configure Holidays mode between start and end daySwitchPoint.
selHC | The heating circuit to modify (1 is HC1, 2 is HC2, 3 is HC3 and 4 is HC4). |
startHolidayDay | The start holiday day. |
startHoldidayMonth | The start holdiday month. |
startHolidayYear | The start holiday year. |
endHolidayDay | The end holiday dat. |
endHoldidayMonth | The end holdiday month. |
endHolidayYear | The end holiday year. |
Definition at line 2327 of file Calduino.cpp.
boolean Calduino::setHomeHolidayModeHC | ( | byte | selHC, |
byte | startHomeHolidayDay, | ||
byte | startHomeHoldidayMonth, | ||
byte | startHomeHolidayYear, | ||
byte | endHomeHolidayDay, | ||
byte | endHomeHoldidayMonth, | ||
byte | endHomeHolidayYear | ||
) |
Send an EMS command to configure Home Holiday mode (saturday configuration) between start and end daySwitchPoint.
selHC | The heating circuit to modify (1 is HC1, 2 is HC2, 3 is HC3 and 4 is HC4). |
startHomeHolidayDay | The start home holiday day. |
startHomeHoldidayMonth | The start home holdiday month. |
startHomeHolidayYear | The start home holiday year. |
endHomeHolidayDay | The end home holiday. |
endHomeHoldidayMonth | The end home holdiday month. |
endHomeHolidayYear | The end home holiday year. |
Definition at line 2366 of file Calduino.cpp.
boolean Calduino::setHourTDDHW | ( | byte | hourTDDHW | ) |
Send an EMS command to change the thermal disinfection DHW program. It will run once per week at the selected daySwitchPoint and hour, or once per day if dayTDDHW is 7.
hourTDDHW | Hour of the week to run the thermal disinfection. |
Definition at line 2585 of file Calduino.cpp.
boolean Calduino::setNightSetbackModeHC | ( | byte | selHC, |
byte | selMode | ||
) |
Send an EMS command to configure the night setback mode in the selected heating circuit.
selHC | The heating circuit to modify (1 is HC1, 2 is HC2, 3 is HC3 and 4 is HC4). |
selMode | The desired setback mode (0 - Shutdown, 1 - Reduced Operation, 2 - Room Setback, 3 - Outdoor Setback). |
Definition at line 2193 of file Calduino.cpp.
boolean Calduino::setNightThresholdOutTempHC | ( | byte | selHC, |
int8_t | selTmp | ||
) |
Send an EMS command to configure the night setback outside temperature threshold in the selected heating circuit. This temperature is only considered if night setback mode is set to 3 (Outdoor Setback).
selHC | The heating circuit to modify (1 is HC1, 2 is HC2, 3 is HC3 and 4 is HC4). |
selTmp | The desired outside temperature to switch between shutdown and reduced mode. |
Definition at line 2220 of file Calduino.cpp.
boolean Calduino::setOneTimeDHW | ( | boolean | selMode | ) |
Send an EMS command to set the warm watter one time function on or off.
selMode | True to enable one time function, false to disable it. |
Definition at line 2652 of file Calduino.cpp.
boolean Calduino::setPartyModeHC | ( | byte | selHC, |
byte | duration | ||
) |
Send an EMS command to configure party mode in duration hours in the selected heating circuit. the heating circuit to modify (1 is HC1, 2 is HC2, 3 is HC3 and 4 is HC4). the desired duration of the party mode.
selHC | The heating circuit to modify (1 is HC1, 2 is HC2, 3 is HC3 and 4 is HC4). |
duration | The desired duration of the party mode. |
Definition at line 2297 of file Calduino.cpp.
boolean Calduino::setPauseModeHC | ( | byte | selHC, |
byte | duration | ||
) |
Send an EMS command to configure pause mode in duration hours in the selected heating circuit.
selHC | The heating circuit to modify (1 is HC1, 2 is HC2, 3 is HC3 and 4 is HC4). |
duration | The desired duration of the pause mode. |
Definition at line 2271 of file Calduino.cpp.
boolean Calduino::setProgramDHW | ( | byte | selProgram | ) |
Send an EMS command to change the DHW program.
selProgram | The working program to be set (0 = like the heating circuit, 255 = own program). |
Definition at line 2492 of file Calduino.cpp.
boolean Calduino::setProgramHC | ( | byte | selHC, |
byte | selProgram | ||
) |
Send an EMS command to set the selected RC35 heating circuit to the desired program. the heating circuit to modify (1 is HC1, 2 is HC2, 3 is HC3 and 4 is HC4). the working program to set (0x00 = User 1, 0x01 = Family, 0x02 = Morning, 0x03 = Early morning, 0x04 = Evening, 0x05 = Midmorning, 0x06 = Afternoon, 0x07 = Midday, 0x08 = Single, 0x09 = Senioren, 0x0A User2).
selHC | The heating circuit to modify (1 is HC1, 2 is HC2, 3 is HC3 and 4 is HC4). |
selProgram | The the working program to set (0x00 = User 1, 0x01 = Family, 0x02 = Morning, 0x03 = Early morning, 0x04 = Evening, 0x05 = Midmorning, 0x06 = Afternoon, 0x07 = Midday, 0x08 = Single, 0x09 = Senioren, 0x0A User2). |
Definition at line 2141 of file Calduino.cpp.
boolean Calduino::setProgramPumpDHW | ( | byte | selProgram | ) |
Send an EMS command to change the Pump DHW program.
selProgram | The working program to be set (0 = like the heating circuit, 255 = own program). |
Definition at line 2516 of file Calduino.cpp.
boolean Calduino::setProgramSwitchPoint | ( | EMSDatagramID | selProgram, |
byte | switchPointID, | ||
byte | operationSwitchPoint, | ||
byte | daySwitchPoint, | ||
byte | hourSwitchPoint, | ||
byte | minuteSwitchPoint | ||
) |
Send an EMS command to change an specific switch point in the program passed as parameter.
selProgram | The selected program to be updated. |
switchPointID | Identifier for the switch point. |
operationSwitchPoint | The operation to be performed in the switch point (0 - off/night, 1 - on/day, 7 - undefined). |
daySwitchPoint | Day of the week (0 - monday, ..., 6 - sunday). |
hourSwitchPoint | Hour of the day (0 to 23). |
minuteSwitchPoint | Minute (The minimum time between switching points is 10 min). |
Definition at line 2614 of file Calduino.cpp.
boolean Calduino::setRoomTempOffsetHC | ( | byte | selHC, |
int8_t | selTmp | ||
) |
Send an EMS command to configure the room temperature offset in the selected heating circuit. This value shifts left and right the heating characteristic curve.
selHC | The heating circuit to modify (1 is HC1, 2 is HC2, 3 is HC3 and 4 is HC4). |
selTmp | The desired offset temperature. |
Definition at line 2246 of file Calduino.cpp.
boolean Calduino::setSWThresholdTempHC | ( | byte | selHC, |
byte | selTmp | ||
) |
Send an EMS command to configure the temperature for summer / winter threshold switchpoint in the selected heating circuit.
selHC | The heating circuit to modify (1 is HC1, 2 is HC2, 3 is HC3 and 4 is HC4). |
selTmp | The desired Summer / Winter Threshold temperature. |
Definition at line 2167 of file Calduino.cpp.
boolean Calduino::setTemperatureDHW | ( | byte | selTmp | ) |
Send an EMS command to set the desired temperature in the Domestic How Water System.
selTmp | The desired temperature to be configured. |
Definition at line 2444 of file Calduino.cpp.
boolean Calduino::setTemperatureHC | ( | byte | selHC, |
byte | selMode, | ||
byte | selTmp | ||
) |
Send an EMS command to set in the selected RC35 heating circuit and Mode, the desired temperature.
selHC | The heating circuit to modify (1 is HC1, 2 is HC2, 3 is HC3 and 4 is HC4). |
selMode | The working mode to be configured (0-night, 1-day, 2-holidays). |
selTmp | The desired temperature (multiplied by two, originally in increments of 0,5). |
Definition at line 2109 of file Calduino.cpp.
boolean Calduino::setTemperatureTDDHW | ( | byte | selTmp | ) |
Send an EMS command to set the desired disinfection temperature in the Domestic How Water System.
selTmp | The desired temperature to be configured. |
Definition at line 2468 of file Calduino.cpp.
boolean Calduino::setWorkModeDHW | ( | byte | selMode | ) |
Send an EMS command to set the DHW working mode. the working mode to be configured (0-off, 1-on, 2-auto)
selMode | The working mode to be configured (0-off, 1-on, 2-auto). |
Definition at line 2398 of file Calduino.cpp.
boolean Calduino::setWorkModeHC | ( | byte | selHC, |
byte | selMode | ||
) |
Send an EMS command to set the selected RC35 heating circuit to the desired Mode
selHC | The heating circuit to modify (1 is HC1, 2 is HC2, 3 is HC3 and 4 is HC4). |
selMode | The selected working mode to be configured (0-night, 1-day, 2-auto/program). |
Definition at line 2082 of file Calduino.cpp.
boolean Calduino::setWorkModePumpDHW | ( | byte | selMode | ) |
Send an EMS command to set the DHW Pump working mode.
selMode | The working mode to be configured (0-off, 1-on, 2-auto) |
Definition at line 2421 of file Calduino.cpp.
boolean Calduino::setWorkModeTDDHW | ( | byte | selMode | ) |
Send an EMS command to change the thermal disinfection DHW working mode.
selMode | 255 to enable thermal disinfection DHW function, 0 to disable it. |
Definition at line 2539 of file Calduino.cpp.