VENTS TwinFresh Smart House Connection Guide

Connecting your VENTS TwinFresh units to a Smart House system.

Purpose

This guide covers the connection of TwinFresh Expert RW V.2 (V.3) and TwinFresh Style Wi-Fi series of air handling units to a "Smart House" system. Control is provided only by Master devices. Slave devices, mobile devices, and “Smart House” system components are connected to master devices over Wi-Fi. Slave devices are controlled by means of commands received from master devices.

There are two wireless connection patterns available:

  1. A master device with a Wi-Fi access point, which can accept up to eight slave connections. If all available eight connections of the master device are used, a mobile device or a "Smart House" system will not be able to connect to the master device.
  2. Master devices, slave devices, mobile devices and a “Smart House" system connect to the Wi-Fi access point of the network router. In this case, the maximum number of available Wi-Fi connections is limited by the router functionality. If the number of necessary ventilation units is more than the router can accept, you may use an additional Wi-Fi access point to connect the remaining ventilation units. The router network may include several master devices to provide control by zones.

The connection is set up via the mobile application from the Connection -> Wi-Fi setup menu (see the unit data sheet).

Network Parameters

Data is exchanged via the UDP protocol (with broadcast support).

Master device IP address:

Master device port:

4000.

Maximum packet size:

256 bytes.

Packet Structure

The general packet structure is as follows:

0xFD 0xFD TYPE SIZE ID ID SIZE PWD PWD FUNC DATA Chksum L Chksum H

Examples of Using Special Commands in the Data Block

Write request (FUNC = 0x03) for parameters number 0x009B, 0x0070, and 0x0007

0xFD 0xFD 0x02 0x10 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x04 0x31 0x31 0x31 0x31 0x01 0x01 0x02 0xDE 0x00

Write request details:

Controller response (FUNC = 0x06) to write request

0xFD 0xFD 0x02 0x10 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x04 0x31 0x31 0x31 0x31 0x06 0x01 0x00 0x02 0x42 0x37 0x85 0x04 0x07 0x01 0xE6 0x00

Controller response details:

Read request (FUNC = 0x01) for parameters number 0x0101, 0x0104, and 0x0240

0xFF 0x01 0x01 0x04 0xFF 0x02 0x40 0x01 0x01 0x04 0x05 0xFF 0x02 0x40 0x51 0x68

Controller response (FUNC = 0x06) to write request

0xFF 0x01 0xFD 0x01 0x04 0x05 0xFF 0x02 0x40 0x51 0x68

Controller response details:

Complete Packet Examples

Sending "Smart House–> Controller" packet

This packet contains a read request (FUNC = 0x01) for parameters number: 0x0001, 0x0002.

0xFD 0xFD 0x02 0x10 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x04 0x31 0x31 0x31 0x31 0x01 0x01 0x02 0xDE 0x00

Request details:

Sending "Controller –> Smart House" packet

This packet contains the controller response (FUNC = 0x06) to the write request.

0xFD 0xFD 0x02 0x10 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x04 0x31 0x31 0x31 0x31 0x06 0x01 0x00 0x02 0x03 0xE6 0x00

Controller response details:

Parameter Table

Functions: R - 0x01, W - 0x02, RW - 0x03, INC - 0x04, DEC - 0x05

Parameter number [Dec./Hex.]FunctionsDescriptionPossible valuesSize [bytes]
1/0x0001R/W/RWUnit On/Off0 - Off
1 - On
2 - Invert
1
2/0x0002R/W/RW/INC/DECSpeed number1 - Speed 1
2 - Speed 2
3 - Speed 3
255 - manual speed setting mode (see parameter 68)
1
6/0x0006RBoost mode status0 - Off
1 - On
1
7/0x0007R/W/RW/INC/DECTimer mode (see parameters 770 and 771)0 - Off
1 - Night mode
2 - Party mode
1
11/0x000BRCurrent countdown of the Timer modeByte 1 - seconds (0...59)
Byte 2 – minutes (0...59)
Byte 3 - hours (0...23)
3
15/0x000FR/W/RWHumidity sensor activation0 - Off
1 - On
2 - Invert
1
20/0x0014R/W/RWRelay sensor activation0 - Off
1 - On
2 - Invert
1
22/0x0016R/W/RW0-10 V* sensor activation0 - Off
1 - On
2 - Invert
1
25/0x0019R/W/RW/INC/DECHumidity threshold setpoint40...80 RH%1
36/0x0024RCurrent RTC battery voltage0...5000 mV2
37/0x0025RCurrent humidity0...100 RH%1
45/0x002DRCurrent 0-10 V* sensor signal value0...100%1
50/0x0032RCurrent relay sensor state0 - Off
1 - On
1
58/0x003AR/W/RW/INC/DECSupply fan speed in 1st speed mode**10...2551
59/0x003BR/W/RW/INC/DECExhaust fan speed in 1st speed mode**10...2551
60/0x003CR/W/RW/INC/DECSupply fan speed in 2nd speed mode**10...2551
61/0x003DR/W/RW/INC/DECExhaust fan speed in 2nd speed mode**10...2551
62/0x003ER/W/RW/INC/DECSupply fan speed in 3rd speed mode**10...2551
63/0x003FR/W/RW/INC/DECExhaust fan speed in 3rd speed mode**10...2551
74/0x004ARFan 1 speed0...5000 rpm2
75/0x004BRFan 2 speed0...5000 rpm2
99/0x0063R/W/RW/INC/DECFilter replacement timer setup**70...365 days2
100/0x0064RTimer countdown to filter replacementByte 1 - minutes (0...59)
Byte 2 - hours (0...23)
Byte 3 - days (0...181)
3
101/0x0065WReset timer countdown to filter replacementAny byte1
102/0x0066R/W/RW/INC/DECSetpoint of the Boost mode deactivation delay0...60 minutes1
111/0x006FR/W/RWRTC timeByte 1 - RTC seconds (0...59)
Byte 2 - RTC minutes (0...59)
Byte 3 - RTC hours (0...23)
3
112/0x0070R/W/RWRTC calendarByte 1 - RTC number (1...31)
Byte 2 - RTC day of the week (1...7)
Byte 3 - RTC month (1...12)
Byte 4 - RTC year (0...99)
4
114/0x0072R/W/RWWeekly schedule mode0 - Off
1 - On
2 - Invert
1
119/0x0077R/W/RWSchedule setupByte 1 - day of the week:
0 - all days (write only)
1 - Monday
2 - Tuesday
3 - Wednesday
4 - Thursday
5 - Friday
6 - Saturday
7 - Sunday
8 - Mon... Fri (write only)
9 - Sat...Sun (write only)
Byte 2 - period number: 1...4
Byte 3 - speed number: 0 - standby, 1...3
Byte 4 - reserved: any byte
Byte 5 - minutes to end of period: 0...59
Byte 6 - hours to end of period: 0...23
6
124/0x007CRDevice search on the local network, IDText ("0...9", "A...F")16
125/0x007DR/W/RWDevice passwordText ("0...9", "a...z", "A...Z")0-8
126/0x007ERMachine hoursByte 1 - minutes (0...59)
Byte 2 - hours (0...23)
Byte 3 and Byte 4 – days (0...65535)
4
128/0x0080WReset alarmsAny byte1
131/0x0083RAlarm/warning indicator0 - no
1 - alarm (highest priority)
2 - warning
1
133/0x0085R/W/RWCloud server operation permission0 - Off
1 - On
2 - Invert
1
134/0x0086RController base firmware version and dateByte 1 - firmware version (major)
Byte 2 - firmware version (minor)
Byte 3 - day
Byte 4 - month
Byte 5 and Byte 6 – year
6
135/0x0087WRestore factory settingsAny byte1
136/0x0088RFilter replacement indicator0 - filter replacement not required
1 - replace filter
1
148/0x0094R/W/RW/INC/DECWi-Fi operation mode1 - Client
2 - Access Point
1
149/0x0095R/W/RWWi-Fi name in Client modeText1
150/0x0096R/W/RWWi-Fi passwordText8...64
153/0x0099R/W/RWWi-Fi data encryption type48 - OPEN
50-WPA_PSK
51-WPA2_PSK
52-WPA_WPA2_PSK
1
154/0x009AR/W/RW/INC/DECWi-Fi frequency channel1...131
155/0x009BR/W/RWWi-Fi module DHCP0 - STATIC
1 - DHCP
2 - Invert
1
156/0x009CR/W/RWIP address assigned to Wi-Fi moduleByte 1-0...255, Byte 2 – 0...255, Byte 3-0...255, Byte 4 – 0...2554
157/0x009DR/W/RWWi-Fi module subnet maskByte 1-0...255, Byte 2 – 0...255, Byte 3-0...255, Byte 4 – 0...2554
158/0x009ER/W/RWWi-Fi module main gatewayByte 1-0...255, Byte 2 – 0...255, Byte 3-0...255, Byte 4 – 0...2554
160/0x00A0WApply new Wi-Fi parameters and quit Setup ModeAny byte1
162/0x00A2WDiscard new Wi-Fi parameters and quit Setup ModeAny byte1
163/0x00A3RCurrent Wi-Fi module IP addressByte 1-0...255, Byte 2 – 0...255, Byte 3-0...255, Byte 4 – 0...2554
183/0x00B7R/W/RW/INC/DECVentilator operation mode0 - ventilation
1 - heat recovery
2 - supply
1
184/0x00B8R/W/RW/INC/DEC0-10 V* sensor threshold setpoint5...100%1
185/0x00B9RUnit type3: TwinFresh Expert RW1-50 V.2,
TwinFresh Expert RW1-85 V.2,
TwinFresh Expert RW1-100 V.2
4: TwinFresh Expert Duo RW1-30 V.2
5: TwinFresh Expert RW-30 V.2
2
770/0x0302R/W/RWNight mode timer setpointByte 1 - minutes (0...59)
Byte 2 - hours (0...23)
2
771/0x0303R/W/RWParty mode timer setpointByte 1 - minutes (0...59)
Byte 2 - hours (0...23)
2
772/0x0304RHumidity sensor status0 - below setpoint
1 - over setpoint
1
773/0x0305R0-10 V* sensor status0 - below setpoint
1 - over setpoint
1

*Available for all models except TwinFresh Expert RW-30 V.2

**Available for TwinFresh Expert RW1-50 V.3, TwinFresh Style Wi-Fi, TwinFresh Style Wi-Fi Frost, TwinFresh Style Wi-Fi mini.

Example of Processing Packets Written in C

The following C code demonstrates how to process incoming and outgoing packets for the Smart House system.


// Special commands
#define BGCP_CMD_PAGE 0xFF
#define BGCP_CMD_FUNC 0xFC
#define BGCP_CMD_SIZE 0xFE
#define BGCP_CMD_NOT_SUP 0xFD

// Special commands
#define BGCP_FUNC_RESP 0x06

uint8_t receive_data [256];
uint16_t receive_data_size;
uint8_t State_Power;
uint8_t State_Speed_mode;
char current_id [17] = "002D6E1B34565815"; // Controller ID

// Checksum and start of packet check
uint8_t check_protocol (uint8_t *data, uint16_t size)
{
    uint16_t i, chksum1 = 0, chksum2 = 0;
    if((data[0] == 0xFD) && (data [1] == 0xFD))
    {
        for(i = 2; i <= size-3; i++)
            chksum1 += data[i];
        chksum2 = (uint16_t)(data[size-1] << 8) | (uint16_t)(data[size-2]);
        if (chksum1 == chksum2)
            return 1;
        else
            return 0;
    }
    else
        return 0;
}

int main(void)
{
    if (check_protocol(receive_data, receive_data_size) == 1) // Checksum
    {
        if (receive_data [2] == 0x02) // Protocol type
        {
            if(memcmp(&receive_data[4], current_id, receive_data[3]) == 0) // ID
            {
                uint16_t jump_size = 0, page = 0, param, param_size, r_pos;
                uint8_t flag_check_func = 1, BGCP_func;

                r_pos = 4 + receive_data[3];
                r_pos += 1 + receive_data[r_pos]; // Position in array where FUNC block begins
                // FUNC and DATA
                for(; r_pos < receive_data_size - 2; r_pos++)
                {
                    // Special commands
                    param_size = 1;
                    // New function number
                    if((flag_check_func == 1) || (receive_data[r_pos] == BGCP_CMD_FUNC))
                    {
                        if (receive_data[r_pos] == BGCP_CMD_FUNC)
                        {
                            r_pos++;
                            flag_check_func = 0;
                            BGCP_func = receive_data[r_pos];
                            if (BGCP_func != BGCP_FUNC_RESP) // If the function number is not supported
                                break;
                        }
                        continue;
                    }
                    // New lead byte value for parameter numbers
                    else if (receive_data[r_pos] == BGCP_CMD_PAGE)
                    {
                        page = receive_data[++r_pos];
                        continue;
                    }
                    // New parameter size value
                    else if (receive_data[r_pos] == BGCP_CMD_SIZE)
                    {
                        param_size = receive_data[++r_pos];
                        r_pos++;
                    }
                    // If the parameter is not supported
                    else if(receive_data[r_pos] == BGCP_CMD_NOT_SUP)
                    {
                        r_pos++;
                        // Processing of non-supported parameters
                        param = (uint16_t) (page << 8) | (uint16_t)(receive_data[r_pos]);
                        switch (param)
                        {
                            case 0x0001:
                            break;
                            case 0x0002:
                            break;
                        }
                        //
                        continue;
                    }
                    //
                    jump_size = param_size;
                    // Processing of supported parameters
                    param = (uint16_t) (page << 8) | (uint16_t) (receive_data[r_pos]);
                    switch (param)
                    {
                        case 0x0001:
                        State_Power = receive_data[r_pos+1];
                        break;
                        case 0x0002:
                        State_Speed_mode = receive_data[r_pos+1];
                        break;
                    }
                    //
                    r_pos += jump_size;
                }
                //
            }
        }
    }
}
  
Models: 53-115, TwinFresh Expert RW-30 V.2 Single Room Ventilation System, 53-115 TwinFresh Expert RW-30 V.2 Single Room Ventilation System

File Info : application/pdf, 12 Pages, 704.62KB

PDF preview unavailable. Download the PDF instead.

v133 4 1en a4 02 preview

References

Adobe PDF Library 15.0 Adobe InDesign CC 2015 (Windows)

Related Documents

PreviewVENTS TwinFresh Style Wi-Fi User Manual: Installation and Operation Guide
Comprehensive user manual for VENTS TwinFresh Style Wi-Fi series single-room reversible energy recovery ventilators, covering installation, operation, maintenance, and troubleshooting.
PreviewVENTS NKP/NKD A21 V.2 Duct Heater User Manual
User manual for VENTS NKP/NKD A21 V.2 duct heaters, providing comprehensive information on purpose, technical specifications, design, operating principles, installation, mounting, electrical connection, maintenance, troubleshooting, storage, transportation, and warranty.
PreviewVENTS MV Series Ventilation Grilles - Product Overview
Detailed overview of VENTS MV 102, MV 122, and MV 152 series ventilation grilles, including features, modifications, color options, and technical specifications for various models.
PreviewVENTS Simple Axial Fan User's Manual
Comprehensive user's manual for the VENTS Simple series axial fans, detailing installation, operation, maintenance, technical specifications, and warranty information. Covers model designations, safety precautions, and electronic operation algorithms.
PreviewVENTS VUT 100 P mini / VUE 100 P mini User Manual - Ventilation & Heat Recovery
Discover the VENTS VUT 100 P mini and VUE 100 P mini air handling units. This user manual guides through installation, operation, maintenance, and troubleshooting for efficient ventilation and heat recovery in residential and commercial spaces. Learn about safety, technical data, and system benefits.
PreviewVents D Axial Fan User's Manual
Comprehensive user's manual for the Vents D axial fan, covering delivery set, installation, operation, technical maintenance, troubleshooting, and manufacturer's warranty. Includes technical specifications and safety guidelines.
PreviewVENTS Micra 60 User Manual: Single-Room Heat Recovery Air Handling Unit
Comprehensive user manual for the VENTS Micra 60 single-room heat recovery air handling unit, covering installation, operation, maintenance, and safety guidelines.
PreviewVENTS TT PRO EC Inline Mixed-Flow Fan User Manual
Comprehensive user manual for the VENTS TT PRO EC series of inline mixed-flow fans, covering installation, operation, maintenance, troubleshooting, and warranty information.