Building energy control system based on line controller

CN122546779APending Publication Date: 2026-08-11青岛海尔暖通空调设备有限公司 +3
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-05-09
Publication Date
2026-08-11

AI Technical Summary

Technical Problem

[0003]然而,现有线控器的功能仍主要局限于空调系统本身的控制,其应用场景较为单一

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122546779A_ABST
    Figure CN122546779A_ABST
Patent Text Reader

Abstract

This application relates to the field of building control technology, specifically providing a building energy control system based on wired controllers, aiming to solve the problem of optimizing building energy consumption based on energy consumption data of electrical equipment collected by the wired controllers. To this end, the system of this application includes a server and multiple wired controllers; each wired controller is communicatively connected to various electrical devices distributed within the building. The wired controllers are configured to collect energy consumption data of their respective electrical devices and send the energy consumption data of all electrical devices to the server; the server is configured to generate control commands based on the energy consumption data of all electrical devices and send the control commands to the first wired controller. The control commands include operating instructions for at least one electrical device. Based on the above system, real-time energy consumption data of various electrical devices within the building is collected and uploaded to the server for centralized energy consumption monitoring and optimization management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of building control technology, specifically providing a building energy control system based on a wired controller. Background Technology

[0002] Currently, wired controllers are widely used in the heating and cooling equipment industry for local control of air conditioning systems. Existing wired controllers typically integrate peripherals such as WiFi, Bluetooth, temperature and humidity sensors, human body sensors, and light sensors, and can control the start and stop of the indoor and outdoor units of the air conditioner via high-voltage relays.

[0003] However, the functions of existing wired controllers are still mainly limited to controlling the air conditioning system itself, and their application scenarios are relatively limited. For other electrical equipment in buildings besides air conditioning (such as lighting, curtains, audio-visual equipment, etc.), they still rely on separate switch panels or remote controls for control, which makes it inconvenient for users to operate and makes it impossible to monitor and centrally manage the energy consumption of these devices.

[0004] On the other hand, existing building energy consumption monitoring systems typically use independent energy consumption collectors, requiring additional wiring or installation, resulting in high costs, complex construction, and an inability to integrate with equipment control systems. For example, a building energy consumption monitoring system based on edge computing, as disclosed in Chinese invention patent publication number CN112731852A, uses independent energy consumption collection modules, concentrators, and edge controllers, requiring the deployment of dedicated equipment, leading to system complexity and high costs. While existing smart switch panels can control devices such as lighting, they lack energy consumption collection capabilities, failing to provide users with energy consumption data and hindering the achievement of refined energy-saving control.

[0005] In addition, although existing wired controllers integrate high-performance main control chips, wireless communication modules and various sensors, in practical applications they only execute the local control logic of the air conditioning system, leaving most of their processing power idle, resulting in a waste of hardware resources.

[0006] Therefore, how to utilize the idle computing and communication capabilities of existing wired controllers to collect real-time energy consumption data of various electrical devices in buildings and upload it to a cloud server for centralized monitoring and management without increasing additional hardware costs is a technical problem that urgently needs to be solved in this field. Summary of the Invention

[0007] This application aims to solve the above-mentioned technical problems, namely, to solve or at least partially solve the following technical problems: to provide a building energy control system based on a wired controller, so as to collect and upload the real-time energy consumption of various electrical devices in the building to a server, and the server to perform unified optimization management of the energy consumption of the building's electrical devices.

[0008] In a first aspect, this application provides a building energy control system based on wired controllers, wherein multiple electrical devices are distributed within the building, and the system includes a server and multiple wired controllers;

[0009] Each wired controller is communicatively connected to each electrical device, and the wired controller is configured to collect energy consumption data of the electrical devices that are communicatively connected to the wired controller.

[0010] Among the plurality of wired controllers, the first wired controller is also communicatively connected to the server and the second wired controller respectively. The first wired controller is also configured to acquire energy consumption data collected by the second wired controller and send the energy consumption data of all electrical devices to the server. The first wired controller is the wired controller that is communicatively connected to the target device among the plurality of electrical devices, and the second wired controller is the remaining wired controllers other than the first wired controller.

[0011] The server is configured to generate control commands based on the energy consumption data of all electrical devices and send the control commands to the first wired controller. The control commands include operating commands for at least one electrical device. The first wired controller is also configured to forward the operating command to a second wired controller that is communicatively connected to the other electrical device if it is recognized that the operating command is an operating command for an electrical device other than the target device.

[0012] In an optional embodiment, each wire controller is further provided with at least one sensor, and the wire controller is further configured to collect sensor data collected by the sensor provided on the wire controller;

[0013] The first wired controller is also configured to acquire sensor data collected by the second wired controller and send all sensor data collected by the wired controllers to the server;

[0014] The server is also configured to generate the control commands based on the energy consumption data of all electrical devices and the sensor data collected by all wired controllers.

[0015] In an optional embodiment, the server is equipped with an electrical equipment control model built based on artificial intelligence technology;

[0016] The server is also configured to use the control model to process the energy consumption data of all electrical devices to generate the control commands, or to process the energy consumption data of all electrical devices and the sensor data collected by all wired controllers to generate the control commands.

[0017] In an optional embodiment, at least one wired controller is further provided with an energy consumption monitoring circuit.

[0018] The energy consumption monitoring circuit of the wired controller is configured to collect energy consumption data of the electrical equipment that is communicatively connected to the wired controller, and disconnect the power supply circuit of the electrical equipment when an abnormality is detected in the energy consumption data.

[0019] In an optional embodiment, the energy consumption monitoring circuit includes a current sensor and a relay, the relay being disposed on the power supply circuit, and the current sensor being used to collect the current of the electrical equipment.

[0020] The step of disconnecting the power supply circuit of the electrical equipment when an abnormality is detected in the energy consumption data includes: if the current is detected to be greater than a set threshold, controlling the relay to disconnect the power supply circuit.

[0021] In an optional embodiment, at least one wired controller is further configured with an energy consumption monitoring model built on artificial intelligence technology;

[0022] The energy consumption monitoring model set in the wired controller is configured to monitor the energy consumption data of the electrical equipment that is communicatively connected to the wired controller, and disconnect the power supply circuit of the electrical equipment when abnormal energy consumption data is detected.

[0023] In an optional embodiment, each wired controller is connected to each electrical device via wired communication.

[0024] The first wired controller is connected to the server and the second wired controller via wireless communication.

[0025] In one optional embodiment, the wireless communication method includes at least WiFi communication and Bluetooth communication.

[0026] In an optional embodiment, the operating instructions include an instruction to turn on or off the electrical equipment.

[0027] In an optional embodiment, the target device is an air conditioner.

[0028] The above-described technical solutions of this application have at least one or more of the following beneficial effects:

[0029] In one technical solution of the building energy control system based on wired controllers provided in this application, multiple electrical devices are distributed in the building, and the system includes a server and multiple wired controllers.

[0030] Each wired controller is connected to each electrical device in communication. The wired controller is configured to collect energy consumption data of the electrical devices that are connected to the wired controller in communication.

[0031] Among the multiple wired controllers, the first wired controller is also connected to the server and the second wired controller respectively. The first wired controller is also configured to acquire the energy consumption data collected by the second wired controller and send the energy consumption data of all electrical devices to the server. The first wired controller is the wired controller that is connected to the target device among the multiple electrical devices, and the second wired controller is the remaining wired controllers other than the first wired controller.

[0032] The server is configured to generate control commands based on the energy consumption data of all electrical devices and send the control commands to the first wired controller. The control commands include the operation commands of at least one electrical device. The first wired controller is also configured to forward the operation commands to a second wired controller that is connected to the other electrical device if it is recognized that the operation command is the operation command of an electrical device other than the target device.

[0033] Based on the above implementation scheme, the idle computing power and communication capabilities of existing wired controllers can be utilized to collect real-time energy consumption data of various electrical devices in the building and upload it to the cloud server. The server can then perform centralized energy consumption monitoring and energy consumption optimization management of the building's electrical devices. Attached Figure Description

[0034] The disclosure of this application will become more readily understood with reference to the accompanying drawings. It will be readily understood by those skilled in the art that these drawings are for illustrative purposes only and are not intended to limit the scope of protection of this application. Wherein:

[0035] Figure 1 This is a schematic diagram of the structure of a building energy control system based on a wired controller in some embodiments of this application;

[0036] Figure 2 This is a schematic diagram of the energy consumption monitoring circuit in some embodiments of this application;

[0037] Figure 3 This is a schematic diagram of the circuit structure of the current sensor in some embodiments of this application;

[0038] Figure 4 This is a schematic diagram of the structure of a relay and a relay control circuit in some embodiments of this application. Detailed Implementation

[0039] Some embodiments of this application are described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are merely illustrative of the technical principles of this application and are not intended to limit the scope of protection of this application.

[0040] First, an embodiment of the building energy control system based on a wired controller provided in this application will be described. In this embodiment, multiple electrical appliances are distributed within the building, including but not limited to air conditioners, televisions, washing machines, refrigerators, and lights.

[0041] Specifically, see Appendix Figure 1 , Figure 1 This is a schematic diagram of the structure of a building energy control system based on a wired controller, as shown in some embodiments of this application. Figure 1 As shown, in this embodiment of the application, the building energy control system may include a server and multiple wired controllers;

[0042] Each wired controller is connected to each electrical device, and the wired controller is configured to collect energy consumption data of the electrical devices connected to it.

[0043] In a multi-wired controller, the first wired controller is also communicatively connected to both the server and the second wired controller. The first wired controller is also configured to acquire energy consumption data collected by the second wired controller and send the energy consumption data of all electrical devices to the server. The first wired controller is the one communicatively connected to the target device among the multiple electrical devices, and the second wired controller is the remaining wired controllers besides the first wired controller. For example... Figure 1 As shown, the air conditioner is the target device, the wired controller that communicates with the air conditioner is the first wired controller, and the other wired controllers are the second wired controllers.

[0044] The server is configured to generate control commands based on the energy consumption data of all electrical devices and send the control commands to a first wired controller. The control commands include the operation commands of at least one electrical device. The first wired controller is also configured to forward the operation commands to a second wired controller that is connected to the other electrical device if it recognizes that the operation command is the operation command of an electrical device other than the target device.

[0045] In some embodiments of this application, each wired controller collects energy consumption data of the electrical equipment connected to it. When each wired controller is configured with one electrical equipment, the wired controller and the corresponding electrical equipment can be integrated into one unit (integrated inside the electrical equipment) or separately installed (independently mounted on a wall or in a distribution box). The system of this application embodiment can select one wired controller from multiple wired controllers or select any one wired controller as the first wired controller according to actual conditions, and the remaining wired controllers are second wired controllers. The first wired controller is communicatively connected to the server and the second wired controllers respectively. Each second wired controller sends the energy consumption data of the corresponding electrical equipment it collects to the first wired controller. The first wired controller sends the energy consumption data of the electrical equipment it collects and the energy consumption data of the electrical equipment collected by each second wired controller it receives together to the server.

[0046] The server performs energy consumption analysis based on the energy consumption data of all electrical devices, generates control instructions for the corresponding electrical devices, and sends them to the first wired controller. The control instructions include operation instructions for at least one electrical device, which include on / off instructions, parameter adjustment instructions, or parameter adjustment instructions. Parameter adjustment instructions are used to adjust the operating parameters of controllable electrical devices (such as PWM signals, operating frequency, voltage, etc.) to optimize energy consumption. For example, on / off instructions are used to control the on / off state of electrical devices (such as lighting, ordinary household appliances); parameter adjustment instructions are used to adjust the operating parameters of controllable electrical devices (such as frequency converters, dimmers).

[0047] In some implementations, the energy consumption data of all electrical devices includes: the energy consumption data of the target device collected by the first wired controller, and the energy consumption data of the remaining electrical devices collected by all the second wired controllers.

[0048] Specifically, the control commands issued by the server can contain operation commands for multiple electrical devices, each command carrying a corresponding device identifier. Upon receiving the control commands, the first wired controller parses each operation command and its corresponding device identifier, and determines whether the device is a target device directly connected to it. In one specific implementation, the target device is an air conditioner; other devices could be televisions, washing machines, refrigerators, and lamps. If so, the first wired controller directly executes the operation command (e.g., by controlling the power supply to the device via a relay, or by adjusting device parameters via a PWM signal); otherwise, the first wired controller forwards the operation command to a second wired controller connected to the device, which then executes it. Through this mechanism, the server only needs to communicate with the first wired controller to achieve centralized control of all devices connected to wired controllers across the entire network.

[0049] The following section describes the wired controller and server.

[0050] In some implementations, each wired controller is further provided with at least one sensor, and the wired controller is further configured to collect sensor data collected by the sensor set on the wired controller; the first wired controller is further configured to acquire sensor data collected by the second wired controller and send the sensor data collected by all wired controllers to the server; the server is further configured to generate control commands based on the energy consumption data of all electrical devices and the sensor data collected by all wired controllers.

[0051] Specifically, the sensors are environmental sensing sensors such as temperature and humidity sensors, human body sensors, or light sensors. In one specific embodiment, the sensor data collected by all wired controllers includes: sensor data collected by the first wired controller and sensor data collected by all second wired controllers, so that the server can combine environmental information to perform more accurate energy consumption analysis and optimized control.

[0052] The server is also configured to generate control commands based on the energy consumption data of all electrical devices and the sensor data collected by all wired controllers. Specifically, it can receive energy consumption data and sensor data of the corresponding electrical devices reported by each wired controller; analyze the sensor data and energy consumption data; and generate control commands for at least one electrical device.

[0053] In some implementations, the server is equipped with an electrical equipment control model built on artificial intelligence technology; the server is also configured to use the control model to process the energy consumption data of all electrical equipment to generate control commands, or to process the energy consumption data of all electrical equipment and the sensor data collected by all wired controllers to generate control commands.

[0054] In this embodiment, the wired controller performs edge computing processing on the acquired device energy consumption data and environmental information, and then uploads it to the server. The server analyzes the environmental information and the energy consumption curves of the electrical equipment to achieve fault prediction and energy consumption optimization control, thereby completing the environmental perception and online monitoring and management of electrical equipment in the smart building.

[0055] By building the aforementioned control system, the application scenarios of wired controllers for electrical equipment can be expanded. Multiple wired controllers, through a self-organizing network, achieve equipment control and energy consumption optimization in smart buildings, fully leveraging the original computing and communication resource advantages of the wired controllers and evolving them into energy routers with intelligent decision-making capabilities. Based on precise modeling of the indoor environment, it is possible to rationally control the indoor and outdoor units of air conditioners to achieve precise temperature control, while intelligently adjusting the operating status of various electrical equipment to achieve building-level energy consumption optimization.

[0056] In normal operating scenarios, the wired controller can receive instructions from the server to intelligently control the opening and closing of electrical equipment, thereby achieving energy optimization control and supporting the energy optimization management of the entire smart building.

[0057] In some implementations, at least one wired controller also includes an energy consumption monitoring model built on artificial intelligence technology. This model can be configured to monitor the energy consumption data of electrical devices communicatively connected to the controller and disconnect the power supply circuit to the devices when abnormal energy consumption data is detected. The energy consumption monitoring model can be a lightweight model to reduce the computational resource consumption of the wired controller.

[0058] The wired controller in this embodiment can monitor the energy consumption of smart building equipment and control the switching on and off of the equipment. The wired controller can act as an edge node, and after collecting energy consumption data from electrical equipment, it can fully utilize the computing power of its main control unit to perform preliminary analysis of the energy consumption data. When significant abnormal energy consumption of electrical equipment is detected, it can proactively disconnect the electrical equipment to achieve protection.

[0059] In addition, the wired controller can sense the room status in real time through its own temperature and humidity sensor and built-in human body and light sensors, and intelligently adjust lighting, curtains, air conditioning, home appliances and other equipment to achieve smart building energy consumption optimization (such as automatically turning off lights, TV and air conditioning when no one is around).

[0060] In some implementations, such as Figure 2 As shown, at least one wired controller is also equipped with an energy consumption monitoring circuit; the energy consumption monitoring circuit of the wired controller is configured to collect energy consumption data of the electrical equipment that is connected to the wired controller, and disconnect the power supply circuit of the electrical equipment when abnormal energy consumption data is detected.

[0061] Specifically, once the wired controller detects abnormal power consumption of the electrical equipment, it can promptly disconnect the power supply to the equipment to achieve abnormal safety protection.

[0062] In some implementations, such as Figure 2 As shown, the energy consumption monitoring circuit includes a current sensor 110 and a relay 120. The relay 120 is installed on the power supply circuit, and the current sensor 110 is used to collect the current of the electrical equipment.

[0063] Disconnecting the power supply circuit of electrical equipment when abnormal energy consumption data is detected includes: if the detected current is greater than a set threshold, controlling the relay to disconnect the power supply circuit.

[0064] Specifically, current sensor 110 is connected to both the electrical device and relay 120, with all three connected in series in the power supply circuit of the electrical device. The wired controller also includes a control unit for calculating energy consumption, i.e., a microcontroller. This control unit is connected to a Hall effect current sensor and the relay, calculates energy consumption based on the current collected by the Hall effect current sensor, and uploads the current and energy consumption data to the first wired controller or a server. The microcontroller controls whether the relay disconnects based on the relationship between the collected current and a set threshold. It should be noted that if the detected current exceeds the set threshold, indicating an abnormal current, the control unit controls the relay to disconnect the power supply circuit. By promptly controlling the relay to actively shut off the power supply to the electrical device, abnormal safety protection is achieved.

[0065] In some implementations, such as Figure 2 As shown, the energy consumption monitoring circuit also includes a signal processing circuit 130, which is connected to a current sensor 110 and a relay 120. The signal processing circuit 130 is used to adjust the current collected by the current sensor and disconnect the power supply circuit of the electrical equipment when an abnormality is detected in the energy consumption data.

[0066] Specifically, when the signal processing circuit detects abnormal energy consumption data, it disconnects the power supply circuit of the electrical equipment, including: if the received current is greater than a preset threshold, it indicates that the current is abnormal, and overcurrent protection is performed. The signal processing circuit controls the relay to disconnect the power supply circuit.

[0067] In some specific implementations, the current sensor is a Hall effect current sensor, and the signal processing circuit uses an operational amplifier. The Hall effect current sensor collects the current of the electrical equipment and outputs an analog voltage signal. The operational amplifier performs impedance transformation and level conversion on the analog voltage signal to generate a conditioned analog voltage signal suitable for sampling by the control unit. The control unit calculates the energy consumption of the electrical equipment based on the conditioned signal. Figure 3 and Figure 4 As shown, the relay is installed in the relay control circuit 140. The control unit and the signal processing circuit 130 both output a low level to the relay control circuit 140 to de-energize the relay coil, thereby disconnecting the relay and disconnecting the power supply circuit.

[0068] By upgrading existing high-voltage wireless communication wired controllers and adding energy consumption monitoring circuitry, they can be used as wireless smart switches, collecting real-time power consumption data and controlling the switching of electrical equipment. The improved controllers expand their application range, enabling energy consumption data collection, optimized energy consumption control, and emergency shutdown protection for electrical equipment.

[0069] The structure and connection relationships of the Hall effect current sensor, operational amplifier, relay control circuit, and control unit are further explained below.

[0070] Specifically, it can be done through, for example Figure 2 The circuit structure shown illustrates the principle of hardware protection.

[0071] The Hall effect current sensor chip U11 includes: current input terminals (1IP+, 2IP+), current output terminals (3IP-, 4IP-), a first power supply terminal (8VCC), a first signal output terminal (7VIOUT), a first ground terminal (5GND), and a filter pin (6FILTER); the signal processing module U22 (operational amplifier) ​​includes: an inverting input terminal (16IN2-), a non-inverting input terminal (15IN2+), a second signal output terminal (17OUT2), a second power supply terminal (18VCC), and a second ground terminal (14GND); the relay control circuit includes: an NPN transistor (Q3), a P-channel MOSFET (Q2), a first current-limiting resistor (R3), a first pull-down resistor (R3), a second connection resistor (R3), and a first pull-up resistor (R3); the main control unit includes: an analog-to-digital converter pin (ADC_IN), a control signal output pin (IO_Control), a third power supply terminal, and a third ground terminal; the relay includes: a coil, a normally open contact (NO), a normally closed contact (NC), and a common contact (COM). The current input terminals (1IP+, 2IP+) are connected to the common contact (COM) of the relay, with a fuse F3 between them. Fuse F3 is used to blow and disconnect the circuit when the electrical equipment experiences a short circuit or severe overload. The current output terminals (3IP-, 4IP-) are connected to the live wire input terminal of the electrical equipment, and the neutral wire terminal of the electrical equipment is connected to the power supply neutral wire. The first power supply terminal (8VCC) is connected to the first DC power supply and is connected to the first system ground through the first decoupling capacitor C2. The first DC power supply is 5V, and the first decoupling capacitor C2 is 100pF. The first ground terminal (8VCC) is connected to the filter pin (6FILTER) through the first filter capacitor C3, which is 1nF. The first signal output terminal (7VIOUT) outputs the original analog voltage signal proportional to the current flowing between the current input terminals (1IP+, 2IP+) and the current output terminals (3IP-, 4IP-). The inverting input terminal (16IN2-) is connected to the first signal output terminal (7VIOUT); the non-inverting input terminal (15IN2+) is connected to the second DC power supply through the first voltage divider resistor R_Load2, and to the second system ground through the second voltage divider resistor R_Load3. The second DC power supply is 5V, the first voltage divider resistor R_Load2 is 20K, and the second voltage divider resistor R_Load3 is 30K. The second signal output terminal (17OUT2) is connected to the analog-to-digital converter pin (ADC_IN) of the relay control circuit and the main control unit, respectively, and outputs the conditioned analog voltage signal to the main control unit and the relay control circuit simultaneously. The second power supply terminal (18VCC) is connected to the third DC power supply, and to the third system ground through the second decoupling capacitor C4. The third DC power supply is 5V, and the second decoupling capacitor C4 is 100pF. The second ground terminal (14GND) is connected to the fourth system ground.The base of the NPN transistor is connected to the main control unit and the second signal output terminal (17OUT2) through the first current-limiting resistor R15. The first current-limiting resistor R15 can also be connected in series with fuse F2 and then connected to the control signal output pin (IO_Control) and the second signal output terminal (17OUT2) of the main control unit. Its emitter is connected to the fifth system ground. The first pull-down resistor R16 is connected between its base and emitter. Its collector is connected to the gate of the P-channel MOSFET through the second connection resistor R14. The gate of the P-channel MOSFET is also connected to the fourth DC power supply through the first pull-up resistor R13. Its source is connected to the fourth DC power supply. Its drain is connected to the power supply terminal of the relay coil. One end of the other end of the coil is connected to the sixth system ground. The first current-limiting resistor R15 is 10K, the first pull-down resistor R16 is 10K, the second connection resistor R14 is 10K, the first pull-up resistor R13 is 10K, and the fourth DC power supply is 12V. The normally open contact (NO) of the relay is connected to the live power wire; the normally closed contact is connected to the floating (NC) terminal; the common contact (COM) is connected to the current input terminals (1IP+, 2IP+). The analog-to-digital converter pin (ADC_IN) is connected to the second signal output terminal (17OUT2); the control signal output pin (IO_Control) is connected to the base of the NPN transistor (Q3) through the first current-limiting resistor R15 and the fuse F2 to control the conduction and disconnection of the NPN transistor (Q3); the third power supply terminal is connected to the fifth DC power supply, and the third ground terminal is connected to the seventh system ground.

[0072] Voltage value V out The data represents the converted current of the electrical equipment. The equipment current can be deduced from the typical sensitivity of the ACS712 Hall effect current sensor. The first signal output, VIOUT, can be directly sent to a 5V microcontroller system for analog-to-digital conversion (ADC) integration and sampling to obtain the power consumption data of the electrical equipment. VIOUT can also be used as the input signal of the LM2904 operational amplifier for comparison with the reference input voltage at the non-inverting input, IN2+.

[0073] According to the parameters of the ACS712 Hall current sensor, when the detected current is 5A, if the current is positive (+5A), the output voltage of the ACS712 Hall current sensor is V = 2.5V + (5A × 100mV / A) = 2.5V + 0.5V = 3.0V. Therefore, the input voltage at the non-inverting input terminal IN2+ is 3V. When the device current exceeds 5A, the voltage at the inverting input terminal IN- exceeds 3V. The second signal output terminal OUT2 of the LM2904 operational amplifier outputs a low level, the NPN transistor Q3 is turned off, the P-channel MOSFET Q2 is turned off, the device power control relay K1 is disconnected, and the device is powered off.

[0074] In addition, the microcontroller will also collect the device current in real time through the analog-to-digital converter pin ADC_IN. When an abnormal situation is detected, it will also turn off Q3 through the control signal output pin IO_Control. That is, when the current is detected to be greater than the set threshold, the relay will be controlled to disconnect.

[0075] The energy consumption monitoring circuit of the wired controller can sample the current of the electrical equipment by using the ACS712 Hall effect current sensor chip, and the microcontroller can perform energy consumption statistics.

[0076] In some implementations, the sampling and integration logic of the microcontroller-based analog-to-digital converter (ADC) is implemented as follows.

[0077] Step S100: Collect the current of the electrical equipment and output an analog voltage signal.

[0078] Specifically, the analog voltage signal output by the operational amplifier is sampled by an ADC at a preset sampling frequency (e.g., N points are sampled per power frequency cycle, where N can be 40) to obtain the instantaneous voltage value sequence Vout(t). i ).

[0079] The output voltage of the ACS712 Hall effect current sensor consists of two parts: DC bias: When the measured current is 0, the typical output is Vcc / 2 (e.g., 2.5V with a 5V power supply). AC component: The voltage signal generated by the current is superimposed on the DC bias, and the sensitivity varies depending on the model (185 mV / A for the 5A model, 100 mV / A for the 20A model, and 66 mV / A for the 30A model). Therefore, the first step in ADC sampling is to remove this DC bias in the software to restore the true AC voltage waveform.

[0080] To calculate the AC RMS value, a sufficient number of points must be collected within a complete time period to reconstruct the waveform characteristics. Sampling window: It must cover the complete power frequency cycle or an integer multiple thereof. For example, for a 50Hz power grid, the period is 20ms; for a 60Hz power grid, the period is approximately 16.67ms. Sampling rate: At least 20-30 points need to be sampled within one cycle to ensure calculation accuracy. For example, 40 points are sampled evenly within 20ms (i.e., a 500Hz sampling rate). DC bias calibration: Perform an ADC calibration when the equipment is started and no load current flows. Take multiple consecutive ADC readings (e.g., 100 times), average them, and record the resulting analog-to-digital converter ADC reading as the midpoint value.

[0081] For AC signals, the instantaneous values ​​cannot be directly averaged (the average value is 0). Instead, a "square-mean-square root" algorithm should be used. Assumptions: ADC resolution 12-bit (0-4095), reference voltage V... ref=5.0V, sensitivity=0.100V / A (20A model).

[0082] Step S200: Calculate the current effective value based on the instantaneous voltage value sequence and the preset sensitivity coefficient.

[0083] Specifically, the current effective value I rms The calculation formula is: I rms Indicates the effective value of the current, N represents the number of sampling points within one power frequency cycle (e.g., N=40), i(t) i ) represents the instantaneous current value at the i-th sampling time; instantaneous current value i(t) i The formula for calculating ) is: i(t) i )=(V out (t i )-V offset The calculation is performed using ) / Sensitivity, where V offset This is the zero-current bias voltage, i.e., the output voltage at zero current (typically VCC / 2 = 2.5V), which needs to be calibrated; V out (t i ) is a Hall effect current sensor at t i The analog voltage output at any given time, i.e., the instantaneous voltage value sequence; Sensitivity is the sensitivity of the Hall effect current sensor (e.g., 100mV / A); voltage V out (t i V is obtained based on the ADC sampling value. out (t i The formula for calculating (ADC) is: raw (t i ) / 2 res )×V ref Among them, ADC raw (t i ) represents the original ADC sampled value (0~2) res -1); res is the ADC resolution (e.g., 12-bit); V ref This is the ADC reference voltage.

[0084] Step S300: Based on the current effective current value I rms and the preset effective voltage value V rms (e.g., 220V) Calculate the current instantaneous power P.

[0085] Specifically, the formula for calculating the instantaneous power P is: P = V rms ×I rms ×cosφ, assuming the power factor cosφ≈0, P=V rms ×I rmsWhere P is instantaneous power (unit: watt, W), V rms The grid voltage is the effective value (a constant, e.g., 220V), which can be obtained from the system configuration or measured by the voltage acquisition circuit. In the embodiments of this application, the grid voltage refers to the mains voltage.

[0086] Step S400: Calculate the electrical energy based on the current instantaneous power and the preset time interval.

[0087] Specifically, the electrical energy E(t) is accumulated using an integral method. That is, the microcontroller needs to calculate the power every fixed time interval Δt (in hours) and accumulate it to obtain the electrical energy E(t) (in kWh). E(t) = E(t-1) + P(t) × Δt, where E(t) is the total electrical energy up to the current time t, E(t-1) is the total electrical energy up to the previous time t-1, P(t) is the power at the current time t, and Δt is the time interval between the two power calculations.

[0088] In some implementations, each wired controller is connected to each electrical device via wired communication; the first wired controller is connected to the server and the second wired controller via wireless communication.

[0089] Specifically, each wired controller is equipped with a wireless communication module to collect energy consumption data of the connected electrical equipment and send it to the server. Each wired controller can perform energy consumption statistics and switch control on electrical equipment other than the air conditioning system. Data is transmitted between the wired controllers wirelessly. Finally, the first wired controller performs preliminary data processing and transmits it to the server via WIFI. A router can also be set up between the first wired controller and the server to increase the transmission distance. The router uploads data to the server and retrieves data from the server, such as the energy consumption monitoring model.

[0090] In some implementations, the wireless communication method includes at least WiFi communication and Bluetooth communication.

[0091] Specifically, electrical equipment can be paired with various models of wired controllers via WIFI or Bluetooth BLE, eliminating the need for wiring.

[0092] The high-end wired controller, as the core of the energy router, works in conjunction with appliance control wired controllers and air conditioning indoor and outdoor units. The wired controllers communicate wirelessly via WiFi or BLE to control the switching and energy consumption of various electrical devices (such as lighting, curtains, and audio-visual equipment) in smart buildings, excluding the air conditioning system.

[0093] The wired controller integrates multiple environmental sensors (such as temperature, humidity, human body detection, and light intensity) to monitor environmental conditions in real time. By adding high-voltage relay control and power consumption statistics circuitry to the wireless wired controller, it can be upgraded into a wireless smart switch for home appliances. Multiple wired controllers can form a self-organizing network to perform energy consumption statistics analysis, energy optimization control, and anomaly protection response for electrical equipment within a building.

[0094] The sensor data collected by the wired controller can also be used to enrich the environmental model of smart buildings, thereby upgrading the traditional wired controller into a building energy router with AI capabilities, realizing the integration of environmental perception, energy consumption monitoring, equipment control, anomaly protection and AI intelligent decision-making.

[0095] The advantages of the embodiments in this application compared to the prior art are as follows:

[0096] 1. Expand the application scope of wired controllers: Wired controllers are no longer limited to local control of air conditioning systems, but can be connected to various electrical equipment such as lighting, curtains, and audio-visual equipment, becoming a universal switch controller for power supply equipment in buildings.

[0097] 2. Integrated energy consumption acquisition function: The wired controller has a built-in power consumption statistics circuit, i.e. energy consumption monitoring circuit, which can collect the current, power and energy data of the connected electrical equipment in real time. There is no need to deploy an additional independent energy consumption acquisition device, which reduces system cost and construction complexity.

[0098] 3. Wireless networking, no wiring required: The wired controllers communicate wirelessly with each other via WiFi or BLE, and each wired controller also connects wirelessly to the wireless smart switch, avoiding the wiring construction of traditional wired control systems and facilitating system expansion and maintenance.

[0099] 4. Active anomaly protection: The wired controller can analyze the energy consumption data of electrical equipment in real time. When a significant anomaly is detected (such as overload, short circuit, or abnormal power consumption fluctuation), it will actively cut off the power supply circuit of the corresponding equipment to achieve localized safety protection without relying on the network.

[0100] 5. Environmental perception and AI data fusion: The wired controller integrates sensors such as temperature and humidity, human body detection, and light to sense the indoor environment. Combined with energy consumption data from connected lighting, curtains, air conditioners, and home appliances, it provides rich multi-dimensional data sources for AI models, supporting environmental modeling, fault prediction, and energy consumption optimization control in smart buildings.

[0101] The technical solutions of this application have been described above with reference to the optional embodiments shown in the accompanying drawings. However, it will be readily understood by those skilled in the art that the scope of protection of this application is obviously not limited to these specific embodiments. Without departing from the principles of this application, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will all fall within the scope of protection of this application.

Claims

1. A building energy control system based on a wired controller, characterized in that, The building contains multiple electrical devices, and the system includes a server and multiple wired controllers. Each wired controller is communicatively connected to each electrical device, and the wired controller is configured to collect energy consumption data of the electrical devices that are communicatively connected to the wired controller. Among the plurality of wired controllers, the first wired controller is also communicatively connected to the server and the second wired controller respectively. The first wired controller is also configured to acquire energy consumption data collected by the second wired controller and send the energy consumption data of all electrical devices to the server. The first wired controller is the wired controller that is communicatively connected to the target device among the plurality of electrical devices, and the second wired controller is the remaining wired controllers other than the first wired controller. The server is configured to generate control commands based on the energy consumption data of all electrical devices and send the control commands to the first wired controller. The control commands include operating commands for at least one electrical device. The first wired controller is also configured to forward the operating command to a second wired controller that is communicatively connected to the other electrical device if it is recognized that the operating command is an operating command for an electrical device other than the target device.

2. The system according to claim 1, characterized in that, Each wire controller is also provided with at least one sensor, and the wire controller is also configured to collect sensor data collected by the sensor set on the wire controller; The first wired controller is also configured to acquire sensor data collected by the second wired controller and send all sensor data collected by the wired controllers to the server; The server is also configured to generate the control commands based on the energy consumption data of all electrical devices and the sensor data collected by all wired controllers.

3. The system according to claim 2, characterized in that, The server is equipped with an electrical equipment control model built based on artificial intelligence technology; The server is also configured to use the control model to process the energy consumption data of all electrical devices to generate the control commands, or to process the energy consumption data of all electrical devices and the sensor data collected by all wired controllers to generate the control commands.

4. The system according to claim 1, characterized in that, At least one wired controller is also equipped with an energy consumption monitoring circuit; The energy consumption monitoring circuit of the wired controller is configured to collect energy consumption data of the electrical equipment that is communicatively connected to the wired controller, and disconnect the power supply circuit of the electrical equipment when an abnormality is detected in the energy consumption data.

5. The system according to claim 4, characterized in that, The energy consumption monitoring circuit includes a current sensor and a relay. The relay is installed on the power supply circuit, and the current sensor is used to collect the current of the electrical equipment. The step of disconnecting the power supply circuit of the electrical equipment when an abnormality is detected in the energy consumption data includes: if the current is detected to be greater than a set threshold, controlling the relay to disconnect the power supply circuit.

6. The system according to claim 1, characterized in that, At least one wired controller is also equipped with an energy consumption monitoring model built based on artificial intelligence technology; The energy consumption monitoring model set in the wired controller is configured to monitor the energy consumption data of the electrical equipment that is communicatively connected to the wired controller, and disconnect the power supply circuit of the electrical equipment when abnormal energy consumption data is detected.

7. The system according to any one of claims 1 to 6, characterized in that, Each wired controller is connected to each electrical device via wired communication. The first wired controller is connected to the server and the second wired controller via wireless communication.

8. The system according to claim 7, characterized in that, The wireless communication methods include at least WiFi communication and Bluetooth communication.

9. The system according to any one of claims 1 to 6, characterized in that, The operating instructions include instructions to turn on or off the electrical equipment.

10. The system according to any one of claims 1 to 6, characterized in that, The target device is an air conditioner.

Citation Information

Patent Citations

  • Building energy consumption monitoring system based on edge calculation and monitoring method thereof

    CN112731852A