Control instruction execution method and device, storage medium and electronic equipment
By acquiring environmental parameters and generating control commands for anti-shake strategies, the problems of comfort fluctuations and energy waste in ventilation and temperature regulation devices when the indoor temperature deviates from the set value are solved, thus achieving stable system operation and extending equipment life.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- QINGDAO HAIER INTELLIGENT HOME APPLIANCE TECHNOLOGY CO LTD
- Filing Date
- 2025-12-30
- Publication Date
- 2026-04-21
AI Technical Summary
Existing ventilation and temperature control devices respond frequently when the indoor temperature deviates from the set value, leading to fluctuations in comfort and wasted energy.
By acquiring environmental parameters of the target area, determining the type of environmental parameter adjustment, and generating control commands based on power information and anti-shake strategy, the operation of ventilation and temperature adjustment devices is controlled, and a multi-level anti-shake strategy is adopted to avoid frequent fluctuations.
This has enabled the system to operate stably, reduced equipment wear and tear, extended equipment lifespan, and reduced energy waste.
Smart Images

Figure CN121897987A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart home technology, and more specifically, to a method and apparatus for executing control commands, a storage medium, and an electronic device. Background Technology
[0002] In traditional home environment control systems, especially ventilation and temperature control devices (such as air conditioning and fresh air systems), the system immediately responds when the indoor temperature deviates slightly from the user's ideal setting, attempting to quickly correct this deviation. However, frequent temperature adjustments lead to significant fluctuations in indoor comfort. This is because the system often takes overly aggressive measures, such as immediately engaging full-power cooling when a slightly high temperature is detected. This can cause a sudden drop in temperature, followed by triggering heating again, resulting in a swing effect rather than an ideal constant temperature. Secondly, this overly sensitive control strategy also causes unnecessary energy waste. Repeatedly starting and stopping air conditioning and fresh air systems not only consumes additional energy but also increases equipment wear and tear, reducing the overall energy efficiency ratio and lifespan of the system.
[0003] There is no effective solution yet for the problem that existing ventilation and temperature control devices react when the indoor temperature deviates from the set value, resulting in fluctuations in comfort and energy waste. Summary of the Invention
[0004] This application provides a method and apparatus for executing control commands, a storage medium, and an electronic device to at least solve the problem in the related art that existing ventilation devices and temperature adjustment devices react when the indoor temperature deviates from the set value, resulting in fluctuations in comfort and waste of energy.
[0005] According to one embodiment of this application, a method for executing control commands is provided, comprising: acquiring first environmental parameters of a target area, and determining an environmental parameter adjustment type for the target area based on the first environmental parameters and preset environmental parameters; determining power information and anti-shake strategy for a ventilation device and a temperature adjustment device based on the environmental parameter adjustment type, wherein the ventilation device and the temperature adjustment device are devices located in the target area; generating a first control command for the ventilation device and the temperature adjustment device based on the power information and the anti-shake strategy, and controlling the ventilation device and the temperature adjustment device to execute the first control command.
[0006] In an exemplary embodiment, generating a first control command for the ventilation device and the temperature adjustment device based on the power information and the anti-jitter strategy includes at least one of the following: adjusting the preset environmental parameters according to the anti-jitter strategy; if the environmental parameters do not conform to the adjusted preset environmental parameters, generating a first control command for the ventilation device and the temperature adjustment device based on the power information; determining the transmission interval of the first control command according to the anti-jitter strategy, and determining the time interval between the current time and the last transmission of the first control command; if the time interval is greater than or equal to the transmission interval, generating a first control command for the ventilation device and the temperature adjustment device based on the power information; determining preset power difference information according to the anti-jitter strategy, and determining power difference information between the current power information and the power information; if the power difference information is less than or equal to the preset power difference information, generating a first control command for the ventilation device and the temperature adjustment device based on the power information; if the power difference information is greater than the preset power difference information, generating a first control command for the ventilation device and the temperature adjustment device based on first power information, wherein the first power information is the power information determined based on the current power information and the preset power difference information.
[0007] In an exemplary embodiment, generating a first control command for the ventilation device and the temperature adjustment device based on the power information includes: determining whether to activate the energy-saving function of the ventilation device and / or the temperature adjustment device; if the energy-saving function of the ventilation device and / or the temperature adjustment device is activated, adjusting the power information to generate second power information; and generating the first control command for the ventilation device and the temperature adjustment device based on the second power information.
[0008] In an exemplary embodiment, after controlling the ventilation device and the temperature adjustment device to execute the first control command, the method further includes: acquiring a second environmental parameter of the target area, and determining whether the environment of the target area is in a stable state based on the second environmental parameter; if the environment of the target area is in a stable state, determining the duration after sending the first control command; and if the duration is greater than a preset duration, generating a second control command.
[0009] In one exemplary embodiment, generating a second control command includes: reducing the power information to obtain third power information; generating a second control command for the ventilation device and the temperature adjustment device based on the third power information; and controlling the ventilation device and the temperature adjustment device to execute the second control command.
[0010] In one exemplary embodiment, determining whether the environment of the target area is in a stable state based on the second environmental parameter includes: determining the deviation value between each sub-environmental parameter and the corresponding preset sub-environmental parameter; determining one or more deviation values greater than the preset deviation value; determining a comprehensive score of the target area based on the one or more deviation values; and determining whether the environment of the target area is in a stable state based on the comprehensive score.
[0011] In one exemplary embodiment, determining the comprehensive score of the target region based on the one or more deviation values includes: determining the deviation range corresponding to the one or more deviation values; adjusting the one or more deviation values according to the deviation range corresponding to the one or more deviation values to obtain the adjusted one or more deviation values; and determining the comprehensive score of the target region based on the adjusted one or more deviation values.
[0012] According to another embodiment of this application, a control command execution device is also provided, comprising: a first determining module, configured to acquire a first environmental parameter of a target area, and determine an environmental parameter adjustment type of the target area based on the first environmental parameter and a preset environmental parameter; a second determining module, configured to determine power information and anti-shake strategy of a ventilation device and a temperature adjustment device based on the environmental parameter adjustment type, wherein the ventilation device and the temperature adjustment device are devices located in the target area; and a control module, configured to generate a first control command for the ventilation device and the temperature adjustment device based on the power information and the anti-shake strategy, and control the ventilation device and the temperature adjustment device to execute the first control command.
[0013] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to execute the execution method of the above-described control instructions when it is run.
[0014] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the above-described method for executing control instructions through the computer program.
[0015] In this embodiment, a first environmental parameter of the target area is obtained, and the environmental parameter adjustment type of the target area is determined based on the first environmental parameter and preset environmental parameters. Power information and anti-shake strategy for the ventilation device and temperature adjustment device are determined based on the environmental parameter adjustment type, wherein the ventilation device and temperature adjustment device are devices located in the target area. First control commands for the ventilation device and temperature adjustment device are generated based on the power information and the anti-shake strategy, and the ventilation device and temperature adjustment device are controlled to execute the first control commands. This embodiment employs a multi-layered anti-shake strategy, avoiding frequent fluctuations in control commands, ensuring stable system operation, and extending equipment lifespan. This solves the problem that existing ventilation devices and temperature adjustment devices react when the indoor temperature deviates from the set value, leading to fluctuations in comfort and energy waste. Attached Figure Description
[0016] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0017] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a schematic diagram of the hardware environment for a method of executing control instructions according to an embodiment of this application;
[0019] Figure 2 This is a flowchart of a method for executing control instructions according to an embodiment of this application;
[0020] Figure 3 This is a schematic diagram of a control instruction execution system according to an embodiment of this application;
[0021] Figure 4 This is a structural block diagram of a control instruction execution device according to an embodiment of this application. Detailed Implementation
[0022] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0023] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0024] According to one aspect of the embodiments of this application, a method for executing control instructions is provided. This method for executing control instructions is widely applicable to whole-house intelligent digital control application scenarios such as smart homes, smart home ecosystems, and intelligence house ecosystems. Optionally, in this embodiment, the above-mentioned method for executing control instructions can be applied to, for example... Figure 1 The hardware environment shown consists of terminal device 102 and server 104. For example... Figure 1 As shown, server 104 is connected to terminal device 102 via a network and can be used to provide services (such as application services) to the terminal or clients installed on the terminal. A database can be set up on the server or independently of the server to provide data storage services for server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data processing services for server 104.
[0025] The aforementioned network may include, but is not limited to, at least one of the following: wired network, wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: wide area network, metropolitan area network, local area network. The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity), Bluetooth. The terminal device 102 may not be limited to PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projector, smart TV, smart clothes rack, smart curtains, smart audio-visual equipment, smart socket, smart speaker, smart speaker box, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart robot vacuum cleaner, smart window cleaning robot, smart mopping robot, smart air purifier, smart steam oven, smart microwave oven, smart water heater, smart air purifier, smart water dispenser, smart door lock, etc.
[0026] This embodiment provides a method for executing control commands, applied to the aforementioned device terminal. Figure 2 This is a flowchart of a method for executing control instructions according to an embodiment of this application, the process including the following steps:
[0027] Step S202: Obtain the first environmental parameters of the target area, and determine the environmental parameter adjustment type of the target area based on the first environmental parameters and the preset environmental parameters;
[0028] Step S202 involves acquiring first environmental parameters (such as temperature, humidity, CO2 concentration, etc.) within the target area and comparing them with preset environmental parameters to determine the type of environmental parameter adjustment for the target area. The preset environmental parameters refer to ideal or desired environmental indicators, or user-defined environmental indicators, such as a temperature between 20°C and 25°C and a CO2 concentration below 1000 ppm.
[0029] Step S204: Determine the power information and anti-shake strategy of the ventilation device and temperature adjustment device according to the environmental parameter adjustment type, wherein the ventilation device and temperature adjustment device are devices located in the target area;
[0030] Based on the determined environmental parameter adjustment type, the power information (i.e., operating intensity, such as 90% power, 80% power, etc.) and anti-jitter strategies for the ventilation and temperature control devices are further determined. Anti-jitter strategies are designed to prevent excessively frequent changes in control commands, which could lead to equipment wear or energy waste. These strategies include, but are not limited to, limiting measures such as minimum control intervals and maximum control change amplitudes.
[0031] Step S206: Generate first control commands for the ventilation device and the temperature adjustment device based on the power information and the anti-shake strategy, and control the ventilation device and the temperature adjustment device to execute the first control commands.
[0032] Based on the power information and anti-shake strategy determined above, a corresponding first control command is generated. This command guides the specific operating mode of the ventilation device and the temperature adjustment device, such as "operating the ventilation device at high speed while keeping the temperature adjustment device at medium speed".
[0033] For example, if the system checks whether any parameters exceed the emergency threshold, such as carbon dioxide concentration (CO2_in) exceeding 1200ppm or PM2.5 concentration (PM_in) exceeding 150μg / m³, it will immediately enter emergency mode for processing.
[0034] Emergency mode can be:
[0035] 1. Hypoxia emergency response: When the carbon dioxide concentration (CO2_in) exceeds 1200ppm, the hypoxia emergency response is triggered.
[0036] 2. Pollution Emergency Response: When the PM2.5 concentration (PM_in) exceeds 150 μg / m³, a pollution emergency response is triggered.
[0037] Normal mode can be:
[0038] Overheating and Oxygen Deficiency Handling: If the indoor temperature (T_in) is higher than the set temperature (T_set) plus 1.5℃ and the indoor carbon dioxide concentration (CO2_in) exceeds 1000ppm, and the outdoor air quality (PM_out) is lower than 75μg / m³, the system will maintain the current operating status of the air conditioner and gradually increase the fresh air ratio (Ratio_fresh) to improve the indoor air quality without affecting the temperature.
[0039] PM2.5 Exceedance Handling: When the indoor PM2.5 concentration (PM_in) exceeds the target value (PM_set) plus 20 μg / m³, the system adjusts the fresh air ratio (Ratio_fresh) and air conditioning operation status based on the comparison between outdoor and indoor air quality. If the outdoor air quality is cleaner, a medium fresh air ratio (50%) is set; if the outdoor air quality is worse, the fresh air ratio is limited (30%) and the filtration power of the internal circulation is increased.
[0040] Air overhumidification treatment: If the indoor humidity (H_in) exceeds 70%, the system will increase the dehumidification power of the air conditioner and set an appropriate fresh air ratio (40%) to improve indoor humidity.
[0041] Steady-state handling: If the system is in a steady state and the last adjustment occurred more than 15 minutes ago, the system will implement attenuation control, gradually reducing the air conditioning operating power (P_ac) and fresh air ratio (Ratio_fresh) to save energy while ensuring comfort. The air conditioning power will be adjusted to 98% of the current power, but not lower than 20%, and the fresh air ratio will be adjusted to 98% of the current ratio, but not lower than 15%. If the attenuation control conditions are not met when the system is in a steady state, the current settings will be maintained.
[0042] Through the above steps, first environmental parameters of the target area are obtained, and the environmental parameter adjustment type of the target area is determined based on the first environmental parameters and preset environmental parameters. Power information and anti-shake strategies for the ventilation device and temperature adjustment device are determined based on the environmental parameter adjustment type, wherein the ventilation device and temperature adjustment device are devices located in the target area. First control commands for the ventilation device and temperature adjustment device are generated based on the power information and the anti-shake strategy, and the ventilation device and temperature adjustment device are controlled to execute the first control commands. In this embodiment, a multi-layered anti-shake strategy is adopted to avoid frequent fluctuations in control commands, ensuring stable system operation and extending equipment lifespan. This solves the problem that existing ventilation devices and temperature adjustment devices react when the indoor temperature deviates from the set value, leading to fluctuations in comfort and energy waste.
[0043] Optionally, generating the first control command for the ventilation device and the temperature adjustment device based on the power information and the anti-jitter strategy includes at least one of the following: adjusting the preset environmental parameters according to the anti-jitter strategy; if the environmental parameters do not conform to the adjusted preset environmental parameters, generating the first control command for the ventilation device and the temperature adjustment device based on the power information; determining the transmission interval of the first control command according to the anti-jitter strategy, and determining the time interval between the current time and the last transmission of the first control command; if the time interval is greater than or equal to the transmission interval, generating the first control command for the ventilation device and the temperature adjustment device based on the power information; determining preset power difference information according to the anti-jitter strategy, and determining the power difference information between the current power information and the power information; if the power difference information is less than or equal to the preset power difference information, generating the first control command for the ventilation device and the temperature adjustment device based on the power information; if the power difference information is greater than the preset power difference information, generating the first control command for the ventilation device and the temperature adjustment device based on the first power information, wherein the first power information is the power information determined based on the current power information and the preset power difference information.
[0044] In this embodiment, preset environmental parameters can be fine-tuned according to the anti-shake strategy to prevent frequent control when the environmental parameters are close to the ideal value. If the adjusted environmental parameters do not match the actual measured value, a control command will be generated based on the power information to meet the adjustment requirements of the current environmental parameters. For example, the cooling start threshold is: T_in > T_set + 1.5℃ + 0.5℃; the cooling stop threshold is: T_in < T_set - 1.5℃ - 0.5℃, where T_set is the preset environmental parameter, and T_set + 1.5℃ + 0.5℃ and T_set - 1.5℃ - 0.5℃ are the adjusted preset environmental parameters.
[0045] To avoid frequent sending of control commands, a sending interval is determined based on a debouncing strategy. Each time a control command is generated, the system checks the time interval between the current time and the last sent control command. A new control command is only generated and sent when the time interval meets or exceeds this set value. This avoids unnecessary multiple adjustments to the device within a short period.
[0046] This application embodiment also considers the difference between the current power and the target power of the ventilation device and the temperature adjustment device. If this difference is less than or equal to a preset power difference information, a control command will be generated based on the current power information. However, if the power difference information exceeds the preset value, a control command will be generated based on a first power information, wherein the first power information is calculated based on the current power information and the preset power difference information to ensure that the adjustment is not too aggressive and to maintain the stable operation of the equipment.
[0047] By combining environmental parameter adjustments with anti-vibration strategies, ventilation and temperature regulation can be controlled more precisely, avoiding frequent adjustments due to minor deviations, thereby improving comfort and energy efficiency. Utilizing power difference information limits can prevent unnecessary large power fluctuations, reducing energy consumption and extending equipment lifespan. By setting the interval for sending control commands, the system can ensure environmental parameters meet standards while avoiding excessively frequent control commands, maintaining stable equipment operation.
[0048] Optionally, generating a first control command for the ventilation device and the temperature adjustment device based on the power information includes: determining whether to activate the energy-saving function of the ventilation device and / or the temperature adjustment device; if the energy-saving function of the ventilation device and / or the temperature adjustment device is activated, adjusting the power information to generate second power information; and generating the first control command for the ventilation device and the temperature adjustment device based on the second power information.
[0049] In this embodiment of the application, it is checked whether the ventilation device and the temperature adjustment device have the energy-saving function enabled. The energy-saving function can be set by the user or determined based on preset conditions. Determining whether to enable the energy-saving function based on preset conditions includes, but is not limited to, determining whether to enable the energy-saving function based on current environmental parameters, user-set operating mode (such as energy-saving priority mode), the current energy consumption status of the equipment, and external conditions such as time or season.
[0050] If the energy-saving function is activated, the original power information will be adjusted to a secondary power information. This reduces energy consumption while maintaining indoor environmental comfort as much as possible. By dynamically adjusting the power information, it is possible to achieve precise control of the energy-saving function while meeting environmental comfort requirements, avoiding energy waste and equipment overload that may result from traditional control strategies.
[0051] Optionally, after controlling the ventilation device and the temperature adjustment device to execute the first control command, the method further includes: acquiring a second environmental parameter of the target area, and determining whether the environment of the target area is in a stable state based on the second environmental parameter; if the environment of the target area is in a stable state, determining the duration after sending the first control command; and if the duration is greater than a preset duration, generating a second control command.
[0052] After executing the first control command, the system continues to monitor the second environmental parameter of the target area to assess whether the environment has reached a stable state. If the environment in the target area has stabilized, and this duration exceeds a preset duration threshold, it indicates that the environment has maintained a stable state for a sufficiently long time. At this point, a second control command is generated to perform optimization or energy-saving adjustments. The preset duration can be determined based on the device response time and the changing patterns of environmental parameters.
[0053] If the preset duration is met, a second control command will be generated. This control command includes, but is not limited to:
[0054] Gradually reduce the power of ventilation devices and / or temperature control devices to enter energy-saving operation mode.
[0055] Adjust the operating frequency of the equipment to reduce energy consumption.
[0056] Optionally, generating a second control command includes: reducing the power information to obtain third power information; generating a second control command for the ventilation device and the temperature adjustment device based on the third power information; and controlling the ventilation device and the temperature adjustment device to execute the second control command.
[0057] Once the environmental parameters of the target area have been determined to have reached and remained stable for a period of time, the power information of the ventilation and temperature control devices will be reduced to enter a more energy-efficient operating mode. By reducing the original power information, a third power information is generated, and a second control command is generated based on the third power information to guide the ventilation and temperature control devices to perform corresponding energy-saving operations.
[0058] Optionally, determining whether the environment of the target area is in a stable state based on the second environmental parameter includes: determining the deviation value between each sub-environmental parameter and the corresponding preset sub-environmental parameter; determining one or more deviation values greater than the preset deviation value; determining a comprehensive score of the target area based on the one or more deviation values; and determining whether the environment of the target area is in a stable state based on the comprehensive score.
[0059] The system calculates the deviation between each sub-environmental parameter and its pre-set target value. Sub-environmental parameters include indoor temperature, humidity, carbon dioxide concentration, and PM2.5 concentration. Pre-set sub-environmental parameters are user-defined or system-suggested ideal values used to maintain environmental comfort and health standards within the target area. It identifies parameters that exceed preset deviation thresholds. These deviations are weighted to generate a comprehensive score reflecting the environmental quality of the target area. The overall score determines whether the environment is stable. A low score indicates that all environmental parameters are close to their preset values with no significant deviations, suggesting a stable environment. Conversely, a high score indicates that multiple environmental parameters deviate significantly from their preset values, suggesting that the environment is not stable and requires further adjustment of control commands to optimize the indoor environment.
[0060] Optionally, determining the comprehensive score of the target area based on the one or more deviation values includes: determining the deviation range corresponding to the one or more deviation values; adjusting the one or more deviation values according to the deviation range corresponding to the one or more deviation values to obtain the adjusted one or more deviation values; and determining the comprehensive score of the target area based on the adjusted one or more deviation values.
[0061] For each sub-environmental parameter that exceeds a preset deviation threshold, a deviation range is determined. The deviation range is determined based on the characteristics of each parameter; for example, temperature may have a small deviation range (±1°C), while humidity or CO2 concentration may have a larger range (±5%, ±100ppm). The deviation range reflects the acceptable fluctuation range of the environmental parameter.
[0062] Adjust it according to the deviation range corresponding to each deviation value. For example, for deviation values that are outside the normal range... An aggravated penalty factor is applied during weight calculation:
[0063] ,in, As a penalty factor, .
[0064] To better understand the process of executing the above control instructions, the implementation flow of the above control instructions will be described below in conjunction with optional embodiments, but this is not intended to limit the technical solutions of the embodiments of this application.
[0065] This embodiment provides a method for executing control instructions. Figure 3 This is a schematic diagram of a control instruction execution system according to an embodiment of this application, such as... Figure 3 As shown, it includes:
[0066] The system includes a main control unit, an RS485 bus, an environmental sensor module, a user interface, an air conditioning control module, and a fresh air control module. The main control unit includes a multi-parameter trade-off and linkage control engine, which comprises a parameter standardization processing module, a weight matrix management module, a decision tree execution module, and a smooth transition and anti-jitter module.
[0067] This embodiment provides a method for executing control instructions, specifically including:
[0068] Read real-time environmental parameters, including indoor temperature (T_in), indoor humidity (H_in), indoor carbon dioxide concentration (CO2_in), indoor PM2.5 concentration (PM_in), and outdoor PM2.5 concentration (PM_out).
[0069] If any parameters exceed the emergency threshold, such as carbon dioxide concentration (CO2_in) exceeding 1200ppm or PM2.5 concentration (PM_in) exceeding 150μg / m³, the emergency mode will be activated immediately.
[0070] Emergency modes include:
[0071] 1. Hypoxia emergency response: When the carbon dioxide concentration (CO2_in) exceeds 1200ppm, the hypoxia emergency response is triggered.
[0072] 2. Pollution Emergency Response: When the PM2.5 concentration (PM_in) exceeds 150 μg / m³, a pollution emergency response is triggered.
[0073] Normal mode, including:
[0074] Overheating and Oxygen Deficiency Handling: If the indoor temperature (T_in) is higher than the set temperature (T_set) plus 1.5℃ and the indoor carbon dioxide concentration (CO2_in) exceeds 1000ppm, and the outdoor air quality (PM_out) is lower than 75μg / m³, the system will maintain the current operating status of the air conditioner and gradually increase the fresh air ratio (Ratio_fresh) to improve the indoor air quality without affecting the temperature.
[0075] PM2.5 Exceedance Handling: When the indoor PM2.5 concentration (PM_in) exceeds the target value (PM_set) plus 20 μg / m³, the system adjusts the fresh air ratio (Ratio_fresh) and air conditioning operation status based on the comparison between outdoor and indoor air quality. If the outdoor air quality is cleaner, a medium fresh air ratio (50%) is set; if the outdoor air quality is worse, the fresh air ratio is limited (30%) and the filtration power of the internal circulation is increased.
[0076] Air overhumidification treatment: If the indoor humidity (H_in) exceeds 70%, the system will increase the dehumidification power of the air conditioner and set an appropriate fresh air ratio (40%) to improve indoor humidity.
[0077] Steady-state handling: If the system is in a steady state, meaning the variation in all environmental parameters is less than 0.3 and the last adjustment was made more than 15 minutes ago, the system will implement attenuation control, gradually reducing the air conditioning power (P_ac) and fresh air ratio (Ratio_fresh) to save energy while ensuring comfort. The air conditioning power will be adjusted to 98% of the current power, but not lower than 20%, and the fresh air ratio will be adjusted to 98% of the current ratio, but not lower than 15%. If the attenuation control conditions are not met when the system is in a steady state, the current settings will be maintained.
[0078] It should be noted that a stable state includes: all environmental parameters having a deviation value of less than 0.3 and the last adjustment being more than 15 minutes ago, or the overall environmental score of the current area being greater than the preset score and the last adjustment being more than 15 minutes ago.
[0079] The deviation values of environmental parameters can be determined in the following ways:
[0080] ,in, : No. The relative deviation values of each parameter, and the initial range. , : No. The actual values of each parameter : No. Target settings for each parameter : No. The tolerance range of each parameter.
[0081] The parameter descriptions are shown in Table 1, which is as follows:
[0082] Table 1
[0083]
[0084] The parameter mapping table is shown in Table 2, and Table 2 is as follows:
[0085] Table 2
[0086]
[0087] To ensure that the standardized parameter values are within a reasonable range, multi-level constraints are used to handle outliers and deviations.
[0088] Among them, the first-level constraint (range limitation) is: if the standardized relative deviation value If the value exceeds the range [-1,1], it will be clipped to ensure that it does not exceed this range.
[0089] ,in, This is the adjusted deviation value.
[0090] Secondary constraint (first-order difference test): To avoid instability or erroneous decisions caused by sudden changes in sensor readings, the system performs a first-order difference test on the parameter changes between two adjacent samples (5-second interval). If the change exceeds a preset reasonable range, the current reading is considered abnormal, and the system will use the previous valid reading. Specific change thresholds are as follows:
[0091] Temperature change limit: 0.5°C / 5 seconds; Humidity change limit: 3% / 5 seconds; CO2 change limit: 100ppm / 5 seconds; PM2.5 change limit: 20μg / m³ / 5 seconds.
[0092] Level 3 constraints (piecewise linearization): For parameters that deviate significantly from the target setpoint (i.e., ... When calculating the weights, a heavier penalty factor is applied, and its calculation formula is as follows:
[0093] ,in, ;
[0094] The overall environmental score for the aforementioned current area includes:
[0095] To ensure the rational allocation of resources, the system employs a selective weighting algorithm, calculating weights only for parameters that deviate from the target setpoints, rather than performing indiscriminate calculations on all parameters. This mechanism avoids unnecessary adjustments to environmental parameters that already meet the targets, thereby saving energy and improving system operating efficiency.
[0096] The "active parameter set" contains all deviation values. The parameter is set to be active only when the environmental parameter deviates from the target setpoint by more than a certain threshold. This threshold setting ensures that the system will not react to slight environmental changes, avoiding unnecessary control commands.
[0097] The formula for calculating the overall score is as follows:
[0098] ,in, This represents the weight of the i-th active parameter. .
[0099] The weights of the parameters are shown in Table 3, which is as follows:
[0100] Table 3
[0101]
[0102] Energy consumption parameters can also be considered during the generation of control commands to achieve energy conservation and emission reduction. Energy consumption parameters The weights are not directly involved in the calculation of the overall score, but rather serve as constraints on control commands, through the energy consumption constraint function. Recommended power for the final air conditioner Adjustments will be made.
[0103] Recommended air conditioner power Determined by the comprehensive score function and the energy consumption constraint function, the specific formula is as follows:
[0104] ,in, Energy consumption constraint function:
[0105] .
[0106] When a user selects the "Energy Saving Priority" mode, the system will automatically reduce the recommended air conditioning power by 5% to reduce energy consumption. In other modes, the energy consumption constraint function will not affect the recommended power, meaning the system will not automatically reduce the power, but will decide based on the actual situation of the current environmental parameters.
[0107] Specifically, when a parameter enters an emergency state, its weight is temporarily increased:
[0108] Emergency weighting: The weights of other parameters are compressed proportionally to maintain a total weight of 1.0. .
[0109] Optionally, the embodiments of this application also include image stabilization design, wherein the image stabilization strategy includes:
[0110] First layer: Lag window method:
[0111] To prevent the system from frequently adjusting due to minor fluctuations around the target value, a hysteresis window mechanism is introduced, specifically applied to temperature control. This mechanism creates a stable range within a fixed area by setting thresholds for cooling start-up and shutdown. Specific parameters are as follows:
[0112] Cooling start-up threshold: T_in>T_set+1.5℃+0.5℃=26.0℃.
[0113] Cooling stop threshold: T_in < T_set = 1.5℃ - 0.5℃ = 22.0℃.
[0114] Stable range: The cooling state will remain unchanged within the temperature range of 22.0°C to 26.0°C, creating a 2°C hysteresis window to prevent frequent start-stop cycles triggered by slight temperature changes.
[0115] The concept of lag windows is also applied to the control of other parameters:
[0116] Humidity: ±2% variation range, CO2 concentration: ±100ppm variation range, PM2.5 concentration: ±10μg / m³ variation range.
[0117] A hysteresis window can reduce overreaction to minor changes in environmental parameters, ensuring the stability and efficiency of the system during normal operation.
[0118] Second layer: Minimum adjustment interval:
[0119] The system achieves anti-jitter by setting minimum adjustment intervals for different operating modes. This ensures that control commands are not sent continuously within a short period, preventing the equipment from making unnecessary and frequent adjustments in a short time, thereby protecting the equipment and improving energy efficiency. The minimum adjustment interval varies depending on the operating mode:
[0120] Normal Mode: Minimum interval is 3 minutes.
[0121] Emergency Mode: The minimum interval is further shortened to 1 minute.
[0122] The mode switching mechanism can respond to environmental changes of varying urgency, ensuring that the system can make rapid adjustments when a quick response is needed, while avoiding frequent control when the environment is stable.
[0123] Third layer: Gradual adjustment:
[0124] To prevent overly aggressive control commands, the system is set with a maximum rate of change, adjusting gradually. When the air conditioner's operating power needs adjustment, the system checks if the time interval between the last adjustment and the current time meets the limit. If it does, the maximum rate of change is applied. Adjust the air conditioner's power to ensure it does not exceed the maximum rate of change.
[0125] If the interval between the last power adjustment and the current time meets the constraint (e.g., greater than 3 minutes):
[0126] The new air conditioning power P_ac_new will be calculated based on the current and target power values, if the change exceeds the maximum allowable rate of change. This limits the changes to that range.
[0127] The actual P_ac_new is determined by the difference between the current power P_ac_current and the target power value, and the variation range does not exceed [a certain value]. .
[0128] After the adjustment, the system will reset the time for the next adjustment to the current time plus 3 minutes to avoid repeated adjustments.
[0129] If the previous adjustment did not meet the constraint conditions from the current time, the system will directly execute the target power value without imposing any constraints.
[0130] For example, suppose the initial conditions are: Indoor temperature: 26℃ (high, T_in > T_set + 1.5℃); Indoor humidity: 65% (suitable); CO2 concentration: 1100ppm (high, > 1000ppm); PM2.5: 40μg / m³ (exceeds standard, > 35μg / m³); Outdoor temperature: 32℃; Outdoor PM2.5: 30μg / m³ (good); System equipped: total heat exchange fresh air unit; User mode: health priority.
[0131] Parameter standardization calculation:
[0132] .
[0133] .
[0134] All parameters are in the range [-1,1], so no first-level constraints are required.
[0135] Selective weighted calculation:
[0136] Active parameter set ( = {Temperature, Humidity, CO2} (PM2.5 of 0.14 < 0.2, not included for now)
[0137] Normalized weights:
[0138] Temperature: 0.25 / (0.25+0.30+0.10)=0.357;
[0139] CO2: 0.30 / 0.65 = 0.462;
[0140] Humidity: 0.1 / 0.65 = 0.154;
[0141] Overall Score: .
[0142] Decision tree execution:
[0143] CO2 test: 1100 > 1000 ppm (hypoxia);
[0144] Temperature check: 26 > 24 + 1.5 = 25.5℃ (overheating);
[0145] Conditions: Overheating AND Hypoxia: Enter the second branch;
[0146] Outdoor quality inspection: PM_out = 30 < 75 μg / m³ (excellent);
[0147] Fresh air system check: Equipped with a total heat exchanger.
[0148] Execute control commands:
[0149] Air conditioning cooling rate: 50%; Fresh air opening ratio: 70%; Reason: Utilizing fresh air to replenish oxygen; The total heat exchanger can reduce the temperature of the fresh air to assist in cooling.
[0150] The continuous control process (30-minute tracking) is shown in Table 4:
[0151] Table 4
[0152]
[0153] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the related technology, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.
[0154] Figure 4This is a structural block diagram of a control instruction execution device according to an embodiment of this application; as shown... Figure 4 As shown, it includes:
[0155] The first determining module 42 is used to acquire the first environmental parameters of the target area and determine the environmental parameter adjustment type of the target area based on the first environmental parameters and preset environmental parameters;
[0156] The second determining module 44 is used to determine the power information and anti-shake strategy of the ventilation device and the temperature adjustment device according to the environmental parameter adjustment type, wherein the ventilation device and the temperature adjustment device are devices located in the target area;
[0157] The control module 46 is used to generate first control commands for the ventilation device and the temperature adjustment device based on the power information and the anti-shake strategy, and to control the ventilation device and the temperature adjustment device to execute the first control commands.
[0158] The aforementioned device acquires first environmental parameters of the target area and determines the environmental parameter adjustment type of the target area based on the first environmental parameters and preset environmental parameters. It then determines the power information and anti-shake strategy of the ventilation device and temperature adjustment device based on the environmental parameter adjustment type, wherein the ventilation device and temperature adjustment device are located in the target area. Based on the power information and the anti-shake strategy, it generates first control commands for the ventilation device and temperature adjustment device and controls the ventilation device and temperature adjustment device to execute the first control commands. This embodiment employs a multi-layered anti-shake strategy, avoiding frequent fluctuations in control commands, ensuring stable system operation, and extending equipment lifespan. This solves the problem that existing ventilation devices and temperature adjustment devices react when the indoor temperature deviates from the set value, leading to fluctuations in comfort and energy waste.
[0159] In an exemplary embodiment, the control module 46 is configured to: adjust the preset environmental parameters according to the anti-jitter strategy; if the environmental parameters do not conform to the adjusted preset environmental parameters, generate a first control command for the ventilation device and the temperature adjustment device based on the power information; determine the transmission interval of the first control command according to the anti-jitter strategy, and determine the time interval between the current time and the last transmission of the first control command; if the time interval is greater than or equal to the transmission interval, generate the first control command for the ventilation device and the temperature adjustment device based on the power information; determine preset power difference information according to the anti-jitter strategy, and determine the power difference information between the current power information and the power information; if the power difference information is less than or equal to the preset power difference information, generate the first control command for the ventilation device and the temperature adjustment device based on the power information; if the power difference information is greater than the preset power difference information, generate the first control command for the ventilation device and the temperature adjustment device based on the first power information, wherein the first power information is the power information determined based on the current power information and the preset power difference information.
[0160] In an exemplary embodiment, the control module 46 is configured to determine whether to activate the energy-saving function of the ventilation device and / or the temperature adjustment device; if the energy-saving function of the ventilation device and / or the temperature adjustment device is activated, adjust the power information to generate second power information; and generate a first control command for the ventilation device and the temperature adjustment device based on the second power information.
[0161] In an exemplary embodiment, the control module 46 is configured to acquire a second environmental parameter of the target area and determine whether the environment of the target area is in a stable state based on the second environmental parameter; if the environment of the target area is in a stable state, determine the duration after sending the first control command; if the duration is longer than a preset duration, generate a second control command.
[0162] In an exemplary embodiment, the control module 46 is configured to reduce the power information to obtain third power information; generate a second control command for the ventilation device and the temperature adjustment device based on the third power information; and control the ventilation device and the temperature adjustment device to execute the second control command.
[0163] In an exemplary embodiment, the control module 46 is configured to determine the deviation value between each sub-environmental parameter and the corresponding preset sub-environmental parameter; determine one or more deviation values that are greater than the preset deviation value; determine the comprehensive score of the target area based on the one or more deviation values; and determine whether the environment of the target area is in a stable state based on the comprehensive score.
[0164] In an exemplary embodiment, the control module 46 is configured to determine the deviation range corresponding to the one or more deviation values; adjust the one or more deviation values according to the deviation range corresponding to the one or more deviation values to obtain the adjusted one or more deviation values; and determine the comprehensive score of the target area according to the adjusted one or more deviation values.
[0165] Embodiments of this application also provide a storage medium including a stored program, wherein the program executes any of the methods described above when it is run.
[0166] Optionally, in this embodiment, the storage medium may be configured to store program code for performing the following steps:
[0167] S1, acquire the first environmental parameters of the target area, and determine the environmental parameter adjustment type of the target area based on the first environmental parameters and the preset environmental parameters;
[0168] S2, determine the power information and anti-shake strategy of the ventilation device and temperature adjustment device according to the environmental parameter adjustment type, wherein the ventilation device and temperature adjustment device are devices located in the target area;
[0169] S3, generate first control commands for the ventilation device and the temperature adjustment device based on the power information and the anti-shake strategy, and control the ventilation device and the temperature adjustment device to execute the first control commands.
[0170] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0171] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0172] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0173] S1, acquire the first environmental parameters of the target area, and determine the environmental parameter adjustment type of the target area based on the first environmental parameters and the preset environmental parameters;
[0174] S2, determine the power information and anti-shake strategy of the ventilation device and temperature adjustment device according to the environmental parameter adjustment type, wherein the ventilation device and temperature adjustment device are devices located in the target area;
[0175] S3, generate first control commands for the ventilation device and the temperature adjustment device based on the power information and the anti-shake strategy, and control the ventilation device and the temperature adjustment device to execute the first control commands.
[0176] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0177] Embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.
[0178] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.
[0179] The embodiments described herein also provide a computer program that includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps in any of the above method embodiments.
[0180] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.
[0181] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0182] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A method for executing control instructions, characterized in that, include: Obtain the first environmental parameter of the target area, and determine the environmental parameter adjustment type of the target area based on the first environmental parameter and the preset environmental parameter; The power information and anti-shake strategy of the ventilation device and temperature adjustment device are determined according to the environmental parameter adjustment type, wherein the ventilation device and temperature adjustment device are devices located in the target area; Based on the power information and the anti-shake strategy, a first control command is generated for the ventilation device and the temperature adjustment device, and the ventilation device and the temperature adjustment device are controlled to execute the first control command.
2. The method for executing control commands according to claim 1, characterized in that, Based on the power information and the anti-vibration strategy, a first control command is generated for the ventilation device and the temperature adjustment device, including at least one of the following: The preset environmental parameters are adjusted according to the anti-shake strategy. If the environmental parameters do not conform to the adjusted preset environmental parameters, a first control command for the ventilation device and the temperature adjustment device is generated according to the power information. The transmission interval of the first control command is determined according to the anti-shake strategy, and the time interval between the current time and the last transmission of the first control command is determined; if the time interval is greater than or equal to the transmission interval, the first control command of the ventilation device and the temperature adjustment device is generated according to the power information. The system determines preset power difference information based on the anti-shake strategy, and determines the power difference information between the current power information and the preset power information; when the power difference information is less than or equal to the preset power difference information, it generates a first control command for the ventilation device and the temperature adjustment device based on the power information; when the power difference information is greater than the preset power difference information, it generates a first control command for the ventilation device and the temperature adjustment device based on the first power information, wherein the first power information is the power information determined based on the current power information and the preset power difference information.
3. The method for executing control commands according to claim 2, characterized in that, Generate first control commands for the ventilation device and the temperature adjustment device based on the power information, including: Determine whether to activate the energy-saving function of the ventilation device and / or the temperature adjustment device; When the energy-saving function of the ventilation device and / or the temperature adjustment device is activated, the power information is adjusted to generate second power information; The first control command for the ventilation device and the temperature adjustment device is generated based on the second power information.
4. The method for executing control instructions according to claim 1, characterized in that, After controlling the ventilation device and the temperature adjustment device to execute the first control command, the method further includes: Obtain a second environmental parameter of the target area, and determine whether the environment of the target area is in a stable state based on the second environmental parameter; If the environment in the target area is stable, determine the duration after sending the first control command; If the duration exceeds the preset duration, a second control command is generated.
5. The method for executing control commands according to claim 4, characterized in that, Generate a second control command, including: Reduce the power information to obtain third power information; The second control command is generated for the ventilation device and the temperature adjustment device based on the third power information, and the ventilation device and the temperature adjustment device are controlled to execute the second control command.
6. The method for executing control commands according to claim 4, characterized in that, Determining whether the environment of the target area is in a stable state based on the second environmental parameter includes: Determine the deviation value between each sub-environment parameter and the corresponding preset sub-environment parameter; Determine one or more deviation values that are greater than a preset deviation value, and determine the comprehensive score of the target area based on the one or more deviation values; The overall score is used to determine whether the environment of the target area is in a stable state.
7. The method for executing control instructions according to claim 6, characterized in that, Determining the comprehensive score of the target region based on one or more deviation values includes: Determine the deviation range corresponding to the one or more deviation values; The one or more deviation values are adjusted according to the deviation range corresponding to the one or more deviation values to obtain the adjusted one or more deviation values; The overall score of the target area is determined based on one or more adjusted deviation values.
8. A control command execution device, characterized in that, include: The first determining module is used to acquire the first environmental parameters of the target area, and determine the environmental parameter adjustment type of the target area based on the first environmental parameters and preset environmental parameters; The second determining module is used to determine the power information and anti-shake strategy of the ventilation device and the temperature adjustment device according to the environmental parameter adjustment type, wherein the ventilation device and the temperature adjustment device are devices located in the target area; The control module is configured to generate first control commands for the ventilation device and the temperature adjustment device based on the power information and the anti-shake strategy, and control the ventilation device and the temperature adjustment device to execute the first control commands.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method according to any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 7 via the computer program.