A heat pump energy-saving control method and system
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-05-13
- Publication Date
- 2026-08-14
AI Technical Summary
[0015]本发明的有益技术效果至少在于以下几点:
Smart Images

Figure CN122566321A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of heat pump control technology, and particularly relates to a heat pump energy-saving control method and system. Background Technology
[0002] Heat pumps, as environmental control devices in residential settings that combine heating and cooling with high energy efficiency, have been increasingly integrated with home automation control systems in recent years. Existing residential heat pump control schemes typically revolve around the condition of "whether anyone is home." Common approaches rely on the location of individual family members' terminals, geofencing status, indoor human activity sensor results, or a simple time schedule to determine the current occupancy status of the residence, and then control the heat pump to maintain normal operation or switch to energy-saving mode accordingly. While this type of solution can be effective in scenarios with single-person residences and relatively fixed entry and exit patterns, it often struggles to balance accuracy, continuous device response, and energy-saving effects in real-world home environments with multiple family members living together, staggered entry and exit times, and asynchronous arrival and departure times.
[0003] On the one hand, relying solely on a single terminal location or simple geofencing triggers can easily lead to prematurely classifying a residence as vacant when family members leave home in batches, do not carry their mobile phones, or experience short-term fluctuations in location status. This causes the heat pump to enter energy-saving mode prematurely, affecting the user experience of those still at home. On the other hand, relying solely on indoor activity sensors is susceptible to factors such as short-term stillness, limited detection range, and spatial obstruction, making it difficult to establish a stable judgment of the actual occupancy status of the residence. Furthermore, many existing solutions employ a "direct triggering of device switching based on occupancy judgment" approach. This means that once the system detects a certain condition, it immediately controls the heat pump to change its operating mode, lacking a continuous control process from determining residence occupancy to confirming device control status and then to the device executing constraint processing. This approach can easily cause the heat pump to frequently switch between normal and energy-saving modes when there are short-term fluctuations in residence status, not only weakening the energy-saving effect but also increasing the ineffective repetition of device control actions. Therefore, the main shortcoming of existing technologies is not the lack of location data or sensor data, but the lack of a complete control scheme for multi-member family scenarios that can continuously transform changes in family occupancy into the control state of heat pump equipment and further implement it into stable execution actions. Summary of the Invention
[0004] This invention discloses a heat pump energy-saving control method and system to solve the problems mentioned in the background art.
[0005] To achieve the above objectives, the first aspect of the present invention provides a heat pump energy-saving control method, the method comprising: Obtain the residential location status and indoor activity status of family member terminals; construct a member occupancy contribution status based on the residential location status; logically fuse the member occupancy contribution status with the indoor activity status to generate a family occupancy determination result; The household occupancy determination results for multiple consecutive control cycles are obtained, and the occupancy stability is calculated based on the time-decreasing weight and the continuous occupancy enhancement coefficient. The occupancy stability is compared with the occupancy confirmation threshold and the vacancy confirmation threshold to generate the heat pump energy-saving control status result. Read the current operating status of the heat pump reported by the heat pump controller, and generate the heat pump control execution result based on the coupling relationship between the heat pump energy-saving control status result and the current operating status of the heat pump; A target mode code is generated based on the heat pump control execution result, and a hold mode code is generated based on the current operating state of the heat pump. The current time stamp and the time stamp of the most recent mode switching command are read, the difference between the time stamps is compared with the minimum switching interval parameter of the heat pump, and the final control command is generated by combining the target mode code and the hold mode code and sent to the heat pump controller.
[0006] Furthermore, the residential location status includes being within a residential area, near a residential area, and not near a residential area; the process of constructing member occupancy contribution status based on the residential location status includes: When the location status of the residence is within the residential area, the member's occupancy contribution status is assigned the value of "occupancy". When the residential location status is "outside the residential area but close to the residential area", the member's occupancy contribution status is assigned the value "occupancy". When the residential location status is outside the residential area and not close to the residential area, the member's occupancy contribution status is set to empty.
[0007] Furthermore, the logical fusion of the member's occupancy contribution status with the indoor activity status includes: Determine whether there is an occupied status in the member occupancy contribution status of all family members; If the indoor activity is in an occupied state, or if the indoor activity is in a state of being occupied, then the household occupancy determination result is generated as occupied; If the occupancy status of all members is vacant and the indoor activity status is unattended, then the generated household occupancy determination result is vacant.
[0008] Furthermore, the calculation of occupancy stability based on time-decreasing weights and continuous occupancy enhancement coefficients includes: The household occupancy determination results for multiple consecutive control periods are multiplied by their corresponding time-decreasing weights and summed to obtain the first weighted sum. Calculate the product of the household occupancy determination results of two adjacent control periods, and multiply all product results by the continuous occupancy reinforcement coefficient and sum them to obtain the second weighted sum; Add the first weighted sum to the second weighted sum, and divide by the maximum possible value normalization parameter to obtain the occupancy stability.
[0009] Furthermore, the step of comparing the occupancy stability with the occupancy confirmation threshold and the vacancy confirmation threshold to generate the heat pump energy-saving control status result includes: If the occupancy stability is greater than or equal to the occupancy confirmation threshold, the generated heat pump energy-saving control status result is the normal operation control direction; If the occupancy stability is less than or equal to the vacancy confirmation threshold, then the generated heat pump energy-saving control status result is the energy-saving operation control direction; If the occupancy stability is between the occupancy confirmation threshold and the vacancy confirmation threshold, then the generated heat pump energy-saving control state result is a transitional control direction.
[0010] Furthermore, the step of generating the heat pump control execution result based on the coupling relationship between the heat pump energy-saving control status result and the current operating status of the heat pump includes: Calculate the state deviation between the heat pump energy-saving control state result and the current operating state of the heat pump; If the heat pump energy-saving control state result is a transitional control direction, then the heat pump control execution result is assigned the value of maintaining the current state; If the heat pump energy-saving control state result is not a transitional control direction, and the current operating state of the heat pump is a switching process, then the state deviation is enhanced according to the switching convergence enhancement coefficient to generate a heat pump control execution score. The heat pump control execution score is mapped to the heat pump control execution result of resuming operation, maintaining the current state, or entering energy-saving operation.
[0011] Furthermore, the heat pump control execution result includes a resumption of operation direction, a maintenance of the current state direction, and an energy-saving operation direction; the generation of the target mode code based on the heat pump control execution result includes: If the heat pump control execution result is to resume operation, then the generated target mode code is the normal operation mode code; If the heat pump control execution result is energy-saving operation, then the generated target mode code is the energy-saving operation mode code; If the heat pump control execution result is to maintain the current state direction, then the generated target mode code is the hold mode code.
[0012] Furthermore, the step of generating the final control command by combining the target mode code and the hold mode code includes: If the heat pump control execution result is to maintain the current state direction, then the final control command generated is the hold mode code; If the heat pump control execution result is a resumption of operation or an energy-saving operation, and the difference between the current time stamp and the time stamp of the most recent mode switching command is greater than or equal to the minimum switching interval parameter of the heat pump, then the final control command generated is the target mode code. If the heat pump control execution result is a resumption of operation or an energy-saving operation, and the difference between the current time stamp and the time stamp of the most recent mode switching command is less than the minimum switching interval parameter of the heat pump, then the final control command generated is a mode-holding code.
[0013] Furthermore, after generating the final control command, it also includes: If the final control command is a target mode code, then the current timestamp is updated to the timestamp of the most recent mode switching command. If the final control command is a hold mode code, then the timestamp of the most recent mode switching command remains unchanged.
[0014] A second aspect of the present invention provides a heat pump energy-saving control system, the system comprising: The occupancy determination module is used to obtain the residential location status and indoor activity status of family member terminals; construct the member occupancy contribution status based on the residential location status; logically fuse the member occupancy contribution status with the indoor activity status to generate a family occupancy determination result. The status generation module is used to obtain the household occupancy determination results for multiple consecutive control cycles, calculate the occupancy stability based on the time-decreasing weight and the continuous occupancy enhancement coefficient, and compare the occupancy stability with the occupancy confirmation threshold and the vacancy confirmation threshold to generate the heat pump energy-saving control status result. The execution generation module is used to read the current operating status of the heat pump reported by the heat pump controller, and generate the heat pump control execution result based on the coupling relationship between the heat pump energy-saving control status result and the current operating status of the heat pump. The action execution module is used to generate a target mode code based on the heat pump control execution result, generate a hold mode code based on the current operating state of the heat pump, read the current time stamp and the time stamp of the most recent mode switching command, compare the difference between the time stamps with the minimum switching interval parameter of the heat pump, combine the target mode code and the hold mode code to generate a final control command and send it to the heat pump controller.
[0015] The beneficial technical effects of the present invention are at least as follows: To address the aforementioned issues, this invention provides a heat pump energy-saving control method and system. First, it unifies the processing of the residential location status and indoor activity status of multiple family member terminals to form a family-level occupancy determination result, thus eliminating the reliance on a single member or a single sensor event for control input. To address the problem of existing solutions lacking state continuity characterization, leading to frequent switching of the heat pump during short-term fluctuations in family status, this invention further utilizes the family occupancy determination results over multiple consecutive control cycles to construct an occupancy stability, mapping this stability to the heat pump energy-saving control state. This allows the controller to distinguish between three different control scenarios: stable occupancy, stable vacancy, and transitional changes. To address the problem of existing solutions lacking linkage judgment with the current operating state of the heat pump at the equipment execution level, resulting in a disconnect between control results and equipment status, this invention couples the heat pump energy-saving control state with the current operating state of the heat pump to generate a heat pump control execution result. Furthermore, it introduces a minimum switching interval constraint when executing heat pump energy-saving control actions, ensuring that control commands reflect both the energy-saving target driven by changes in family occupancy and the inherent operating switching patterns of the heat pump equipment. Through the above improvements, this invention no longer regards household status judgment and heat pump operation as two separate links. Instead, it stably transforms changes in household occupancy into equipment operation through a layer-by-layer transmission and convergence method. This improves the reliability of household status judgment, the smoothness of control status transition, and the effectiveness of heat pump energy-saving control operation in multi-member household environments. Attached Figure Description
[0016] The present invention will be further described with reference to the accompanying drawings, but the embodiments in the drawings do not constitute any limitation on the present invention. For those skilled in the art, other drawings can be obtained based on the following drawings without creative effort.
[0017] Figure 1 This is a flowchart of a heat pump energy-saving control method according to the present invention.
[0018] Figure 2 This is a framework diagram of a heat pump energy-saving control system according to the present invention. Detailed Implementation
[0019] Embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.
[0020] In one or more embodiments, such as Figure 1 As shown, a heat pump energy-saving control method is disclosed, the method comprising the following: S1: Obtain the residential location status and indoor activity status of family member terminals; construct the member occupancy contribution status based on the residential location status; logically fuse the member occupancy contribution status with the indoor activity status to generate a family occupancy determination result.
[0021] Specifically, step one generates a household occupancy determination result based on the residential location status and indoor activity status of family member terminals. In practice, a residential location status is established for each authorized member terminal. This state transition is handled locally by the terminal application: the terminal application calls the location interface provided by the mobile operating system to obtain the current location, and then compares the current location with the pre-stored residential area boundaries; if the current location falls within the residential area, it is recorded as [status]. If the current location is outside a residential area and two consecutive samples show a convergence of the location to a residential area, then it is recorded as... If the current location is outside the residential area and does not show a shrinking trend, it is denoted as... .in, A member index is used to distinguish different authorized member terminals. The determination of two consecutive samples can be achieved by retaining the calculation results of the terminal's two most recent location states; if the later positional relationship relative to the residential boundary is closer than the previous one, the member is marked as near the residence. The indoor activity sensor outputs the activity status. When human activity is detected in the most recent sampling period, take Otherwise take This status is reported by an indoor infrared activity sensor or a millimeter-wave presence sensor via the home gateway. After completing the above data collection and status mapping, an occupancy contribution status is then constructed for each member. Its value is determined by Directly determine: when Time to take ,when Time to take .so, This indicates that the member is already at home or has developed a stable habit of returning home; This indicates that the member is not currently making a positive contribution to the family's usage. Subsequently, all members'... indoor activity status The results of the household occupancy determination were summarized. : ; in, The result of the household occupancy determination is set to a value of [value missing]. or ;when When this occurs, it indicates that the residence is already occupied or there is a clear signal that it will soon be occupied; when This indicates that the residence is currently vacant. For indoor activity status, the value is [value]. or . This represents the number of authorized member terminals, and its value is determined by the family member authorization configuration. For the first The status of each member's occupation and contribution. This indicates the number of members who make a positive contribution to residential occupancy among all members. The multi-member contribution results are compressed into a binary result to indicate whether at least one member is currently inside the residence or approaching it. (Outer layer) The formula integrates indoor activity status and member status into a unified family-level judgment result. It uses the characteristic function concept from set theory and the "OR" relationship from digital logic to map "already at home" and "near residence" into a unified occupancy contribution, which, together with the indoor activity status, constitutes the family occupancy judgment result. This compresses the scattered clues in multi-member families into a single state quantity that can be directly used for subsequent heat pump energy-saving control.
[0022] In a specific set of embodiments, it is assumed that there are three authorized members in the current household, and their terminal location states are as follows: the first member is located outside the residential area and has not shown any tendency to approach the residence, therefore... The second member was located outside the residential area, but the two most recent sampling results show that it has been moving closer to the residential area, therefore... The third member is located outside the residential area and does not exhibit a trend of approaching residential areas, therefore Therefore, we can obtain... , , Meanwhile, the indoor activity sensor did not detect any human activity in the current sampling period, therefore After substituting into the above formula, first calculate the total contribution of each member. , and then get Finally, calculate ,therefore This result indicates that although the indoor activity sensors have not yet detected any activity, the household occupancy determination has been changed to occupancy because some members are already in a stable approaching state to the residence. In another scenario, if all three members are located outside the residential area and none show a tendency to approach the residence, then... And the indoor activity sensor also outputs ,at this time Thus obtain Further obtained ,therefore The control module reads all data in each control cycle. With the present ,Finish The generation and After the calculation, This serves as the sole input for the next step, thereby unifying the original location status and indoor activity status into a single occupancy determination result at the home level.
[0023] S2: Obtain the household occupancy determination results for multiple consecutive control cycles, calculate the occupancy stability based on the time-decreasing weight and the continuous occupancy enhancement coefficient; compare the occupancy stability with the occupancy confirmation threshold and the vacancy confirmation threshold to generate the heat pump energy-saving control status result.
[0024] Specifically, step two receives the household occupancy determination results output by step one over multiple consecutive control cycles. This result is then converted into a heat pump energy-saving control status result. The core of this process is not to re-determine whether the household is occupied, but rather to further refine the single-cycle household occupancy conclusion given in Step One into state semantics suitable for direct use by the heat pump controller. This is because the operation switching of a heat pump differs from that of lighting equipment; the device side is more concerned with "whether household occupancy has formed a stable trend," rather than simply "whether it is occupied in the current cycle." In multi-member household scenarios, phenomena such as members leaving home, returning home, staying briefly, and resuming indoor activities will gradually manifest over several consecutive cycles. Therefore, Step Two constructs an "occupancy stability" based on the output of Step One, and then maps this stability to the heat pump energy-saving control state, allowing subsequent steps to be directly executed based on the heat pump state. In this way, a clear connection is formed between Step Two and Step One: Step One is responsible for compressing the location state and indoor activity state into a household occupancy determination result, and Step Two is responsible for expanding this determination result along the time direction to form the stable state required for heat pump control.
[0025] In practice, the control module maintains a length of [length missing] for the current residence. The historical sequence, where each item in the sequence comes from the household occupancy determination result output in the adjacent control cycle of step one, is denoted as... ,in This indicates the household occupancy assessment result for the current period. This represents the household occupancy determination result for the previous cycle, and so on. Since the output of Step One is a binary state quantity, directly using a simple arithmetic average, while reflecting "how many times occupancy has occurred" in a recent period, is insufficient to reflect two characteristics highly relevant to the implementation scenario of this solution: First, the closer the occupancy result is to the current cycle, the more critical it is for the current control of the heat pump; second, two consecutive cycles being determined as occupied is more indicative of a household truly entering a stable occupancy state than two occupancy points that are far apart. Based on this consideration, Step Two starts from the classic weighted moving average and makes two modifications. The first modification is to change the fixed weight in the average to a decreasing weight, making the weight of the most recent cycle... To achieve a higher contribution, the second modification introduces an adjacent-period product term into the weighted sum to characterize the enhanced effect of "continuous occupancy." The decreasing weights are derived from the weighted moving average concept commonly used in time-series data processing, while the adjacent-period product term is derived from the reinforcement of continuous states in sequence smoothing and adjacent consistency statistics. This application combines these two methods for use in multi-member household heat pump control scenarios to obtain occupancy stability. : ; in, This represents the occupancy stability, which is a normalized result. This indicates that step one is in the first stage. The household occupancy determination result output in the most recent control cycle has a value of or ; This indicates the length of the historical sequence, which is set by the control module during initialization. Represents a periodic index in a historical sequence; This represents the successive occupancy enhancement coefficient, used to adjust the degree of influence of consecutive occupancy in adjacent periods on stability. The first term in the numerator... This is the result of introducing decreasing weights into a standard moving average, where the current period has the largest weight. The earliest period has the smallest weight, which is The second term in the numerator It is a continuous occupancy enhancement term, which only contributes when both adjacent cycles are occupied. Therefore, it can highlight scenarios that are more sensitive to the heat pump's resumption of operation, such as "continuous home visits" and "continuous home stays." The denominator... This is a normalized expansion of the molecule's maximum possible value, where the first part corresponds to the sum of weights, and the second part corresponds to the maximum contribution of the continuously occupied reinforcement term when all periods are occupied. From this construction, we know that when all historical periods are empty, the molecule is zero. When all historical cycles are occupied, the numerator and denominator are equal. In the remaining cases, Located between zero and one, it is therefore suitable to continue mapping to discrete control states.
[0026] In obtaining Next, step two converts it into a heat pump energy-saving control state result. This paper employs a dual-threshold hysteresis mapping, initially derived from the handling of dual-threshold switching logic in control engineering: a higher threshold is used to confirm that the system has entered the target state, and a lower threshold is used to confirm that the system has exited the target state, with a transition interval formed between the two thresholds. This application applies this idea to energy-saving control of household heat pumps by setting an occupancy confirmation threshold. and empty confirmation threshold The occupancy stability is divided into three control states: normal operation, transition, and energy-saving operation. The specific mapping is as follows: ; in, This indicates the result of the heat pump energy-saving control status; when When this occurs, it indicates that the residence has reached a stable occupancy state, and the heat pump enters normal operation control mode; when When this occurs, it indicates that the residence is currently undergoing a change in occupancy, and the heat pump enters a transitional control direction; when When this occurs, it indicates that the residence has reached a stable vacancy state, and the heat pump enters the energy-saving operation control direction. The occupancy stability is obtained from the previous formula. Indicates the occupancy confirmation threshold. This represents the vacancy confirmation threshold, both of which are determined by system parameter configuration and must satisfy... The introduction of these two thresholds allows step two to determine not only whether the current state is more like occupied or vacant, but also whether the state has stabilized enough to allow the heat pump to change its operating direction, thus directly corresponding to the equipment switching scenario.
[0027] The above calculation can be explained by combining a set of specific implementation procedures. The historical sequence length of the control module is set to... The continuous occupancy reinforcement coefficient is The threshold for confirmation of occupancy is The vacancy confirmation threshold is Assume that in the last four control cycles, the household occupancy determination results output in step one are as follows: , , , First, calculate the first term in the numerator: Next, calculate the product of adjacent terms in the second term of the numerator: , , Adding them together gives multiplied by Later obtained Therefore, the sum of the numerators is Then calculate the denominator: the sum of the weights is... The maximum contribution of continuous occupation enhancement items is Therefore, the denominator is Therefore, we can obtain... Substituting it into the second equation, since... Therefore, we obtain This indicates that the current heat pump control state is in the transition control direction. If the results of the last four cycles become... Then the first term of the numerator is The sum of adjacent products is multiplied by Later The sum of the numerators is The denominator is still ,therefore The mapping yields If the results of the last four cycles are Then the molecule is ,get The mapping yields This calculation process shows that step two, through continuous cycle occupancy stability and dual threshold mapping, further improves the household occupancy determination result given in step one into the heat pump energy-saving control state result, so that the "household level state" can smoothly transition to the "equipment level state", and incorporates the directly related change processes such as "continuously returning home", "stable at home", and "stable away from home" into the formation logic of the heat pump control state.
[0028] S3: Read the current operating status of the heat pump reported by the heat pump controller, and generate the heat pump control execution result based on the coupling relationship between the heat pump energy-saving control status result and the current operating status of the heat pump.
[0029] Specifically, step three takes the heat pump energy-saving control status result output from step two. And read the operating status currently reported by the heat pump controller. Based on this, the heat pump control execution results are generated. .in, The household occupancy stability over multiple consecutive control cycles has been converted into control direction at the device level, with a value of [value to be filled in]. , or These represent the normal operation control direction, the transition control direction, and the energy-saving operation control direction, respectively. The value is returned by the heat pump controller through the communication interface, and the value is also [value missing]. , or These represent the current operating state of the heat pump: normal operation, switching process, or energy-saving operation. With this definition, the output of step two and the current state of the equipment reside in the same discrete state space. The task of step three then shifts from "determining again whether the household is occupied" to "forming a directly executable action result based on the deviation between the target state and the current state." The position of this step in the entire technology chain is very clear: step one provides a single-cycle occupancy determination; step two transforms the occupancy determination into a stable control state along the time direction; and step three couples the stable control state with the current state of the equipment to form a truly executable conclusion. Thus, changes in family members' entry and exit, changes in indoor activities, and the current operating state of the heat pump converge into a single execution semantic for the first time in this step.
[0030] From an algorithmic perspective, the core calculation in this step originates from the concept of state error in discrete control. Classical discrete control typically describes the control driving force as "target state minus current state," where zero error indicates that the current state has reached the target, and positive or negative error indicates that adjustment is needed in different directions. This step builds upon this by making two modifications for a heat pump scenario. The first modification is the addition of a target state gating term. This ensures that the transition control direction does not directly trigger mode switching, but instead retains the current device state and waits for further confirmation in subsequent cycles; the second layer of modification is the addition of a switching convergence enhancement. This ensures that when the heat pump has a known target direction and is in the switching or startup phase, the execution score remains consistent along the target direction, thus allowing the process of resuming operation or entering energy-saving operation to converge more smoothly to a stable mode. The heat pump execution score is constructed accordingly. : ; in, The score for the heat pump is an intermediate result calculated by the control module in the current control cycle. The heat pump energy-saving control status result output in step two is derived from the unique output of the previous step. The current operating status of the heat pump is derived from the current device mode read from the heat pump controller or home gateway; For the target state gating term, when Its value at that time ,when or Its value at that time ; The switching convergence enhancement coefficient is given by the system configuration parameters and is used to adjust the convergence strength when the device is in the switching state. Used to distinguish whether the heat pump is currently in a stable operating mode, when Its value at that time ,when or Its value at that time The derivation of this formula can be understood in three steps: first use... Establish the basic deviation between the target state and the current state; then multiply by This ensures that when the transition state is output in step two, the basic deviation does not directly trigger the switching action; finally, the output is superimposed. Consistency enhancement is provided along the target direction when the equipment itself is in the switching process. Since each variable is a discrete state quantity or the absolute value of a discrete state quantity, all terms in the formula are dimensionless discrete values, and the left and right sides remain consistent. When the household status has just changed from vacant to occupied, and the heat pump is still in energy-saving mode, It will show a significant positive bias, pushing for the resumption of operation; when the household status has just changed from occupied to vacant, while the heat pump is still in normal mode, It will be significantly negative, pushing the system into energy-saving operation; when the household situation is still in a transitional phase, The value remains near zero, allowing the device to maintain its current mode in this cycle, which will then be confirmed in subsequent cycles based on the results of step two.
[0031] After obtaining the execution score Next, step three continues to use the discrete decision approach, compressing the score into a three-valued execution result. This processing method originates from the symbolic decision notation in digital control. Its function is to uniformly convert continuous or multi-level scores into device action semantics, allowing the next step to directly issue control commands based on the results without needing to re-parse the score amplitude. Specifically, it is expressed as follows: ; in, The result of the heat pump control execution is the final output of this step; when When, it indicates that the current cycle should execute either the action of resuming operation or maintaining convergence towards normal operation; when When, it indicates that the current cycle maintains the existing equipment state; when When this occurs, it indicates that the current cycle should execute either the action of entering energy-saving operation or maintaining convergence towards energy-saving operation. The logical relationship between this decision formula and the previous formula is clear: the former formula first generates an execution score based on the target state and the current state, and the latter formula then maps the score to standardized action results. Because... It is a dimensionless scoring quantity, therefore It is also a dimensionless discrete state result, and the relationship between the two belongs to the discrete mapping from the scoring space to the action space.
[0032] By examining a specific implementation process, it becomes clear how this step connects to step two and generates subsequent executable results. Let's assume the heat pump energy-saving control status result output by step two is... This indicates that the household has established a stable occupancy status; the current cycle reads the equipment operating status from the heat pump controller. This indicates that the heat pump is still operating in energy-saving mode; the system configuration switching convergence enhancement coefficient When substituting into the first formula, calculate first. , ,get Substituting this into the second formula, because... Therefore, we obtain This indicates that the execution result for the recovery direction should be generated in this cycle. If the device has already switched to normal operation in the next control cycle, then the result read at this time... Step two still outputs Then there is Thus obtain This indicates that the device's current state is consistent with the target state, and it can maintain its current operation for this cycle. Next, let's look at the situation when entering energy-saving operation. If the output of step two... This indicates that the household has reached a stable vacancy state, and the current status of the heat pump is... This indicates that the equipment is still operating normally, so substituting it into the first formula yields... Further obtained This indicates that the execution result for energy-saving operation should be generated in this cycle. Let's consider another scenario representative of a home environment: if step two outputs... This indicates that the family status is still in transition, for example, one member has just left and another member has just arrived at the residence. At this time, regardless of the current device status... , still The first formula And in the second item Therefore, there is always Thus obtain This means that before a stable direction is established in the household's condition, step three will maintain the current state, awaiting a clearer control direction from step two in subsequent cycles. Through this process, step three further integrates the heat pump control state established in step two with the current state of the equipment, transforming it into a standardized execution result. This allows the next step to directly revolve around To issue control commands and execute equipment actions.
[0033] S4: Generate a target mode code based on the heat pump control execution result, and generate a hold mode code based on the current operating state of the heat pump; read the current time stamp and the time stamp of the most recent mode switching command, compare the difference between the time stamps with the minimum switching interval parameter of the heat pump, and combine the target mode code and the hold mode code to generate a final control command and send it to the heat pump controller.
[0034] Specifically, step four receives the heat pump control execution result output from step three. And convert it into control commands that can be directly executed by the heat pump controller. In the preceding steps, step one provides the result of the household occupancy determination. Step two is based on multiple consecutive control cycles. The results of heat pump energy-saving control state formation Step three then considers the current operating status of the heat pump. Forming heat pump control execution results Therefore, at this step, the control module clearly knows whether the action direction for this cycle is to resume operation, maintain the current state, or enter energy-saving operation. The focus of this step is to further implement this action direction into an execution command that can actually be issued to the heat pump controller, while incorporating the minimum switching interval during the operation of the heat pump equipment into the command generation process. This ensures that the control action responds to changes in household occupancy while conforming to the switching patterns of compressor-type equipment in actual operation. The basic idea used here comes from the "state triggering + minimum event interval constraint" method in discrete event control: first, the target action is determined by the discrete state, and then the minimum event interval is used to limit repeated triggering. This application applies it to the household heat pump energy-saving control scenario, introducing both the target mode and time constraints into the action triggering conditions, so that "whether to issue a command" and "what kind of command to issue" are completed in the same logic.
[0035] In practice, the control module first... Forming target pattern code Then, based on the current operating status of the heat pump Forming a pattern code .in, This indicates the target operating mode code that the system is preparing to switch to in this cycle. hour, Retrieve normal operating mode code; when hour, Retrieve the energy-saving operation mode code. The hold mode code indicates the current operating state, which is determined by the current heat pump operating state. From the table, we can see that when hour, Take the normal operation retention code; when hour, Retrieve the hold code during the handover process; when hour, Retrieve the energy-saving operation maintenance code. These mode codes are predefined by the heat pump manufacturer's control protocol. The control module pre-stores the register values corresponding to normal operation, energy-saving operation, and maintenance mode during initialization configuration, and then reads them in this step using a lookup table. Subsequently, the control module reads the current timestamp. The timestamp recorded when the most recent mode switching command was issued and use minimum switching interval Construct the final control command. The original source of this formula is the minimum trigger interval decision commonly used in discrete event control: when the interval between two events reaches a threshold, triggering again is allowed; otherwise, the current state is maintained. This application adds a feature based on... The target pattern mapping couples "action direction" and "trigger permission" into a heat pump-oriented instruction generator: ; in, This is the final control command sent to the heat pump controller; For the target pattern code, by Obtained through table lookup mapping; The hold mode code corresponding to the current operating state is determined by the current heat pump operating state. Obtained through table lookup mapping; The output of step three is the heat pump control execution result, with a value of [value to be filled in]. , or ; This serves as the system time stamp for the current control cycle, generated by the control module clock. This is a timestamp for the most recent mode switching command, which is updated by the control module after each actual mode switching command is sent. This is the minimum switching interval parameter for the heat pump, given by the equipment's operating configuration. From the derivation process, this formula is derived from step three... Determine if there is a need for mode switching, and then consider the time difference. Minimum handover interval The comparison determines whether the request can be executed; therefore, "state triggering" and "device protection" are merged into the same instruction decision process. In the formula, Both the time difference and the pattern code are discrete, dimensionless state quantities. For the same amount of time, the comparison relationship holds; final result Since it is a discrete instruction quantity, the overall calculation relationship remains consistent.
[0036] In order to Once formed, it can stably operate on the heat pump controller. This step further updates the time stamp after the mode switch is executed. Here, a recursive update method from discrete event recording is used: when the target mode code is actually issued in this cycle... When the current time stamp is written to the switching record, the hold mode code is issued in this cycle. In this case, the existing record remains unchanged. It is expressed as follows: ; in, Write back the latest switching time stamp to the control module storage area after the end of this cycle; Used as a time marker for the current control cycle; This is the final control command; For target pattern code; To preserve the pattern code; This is a timestamp of the most recent mode switching command issued before the start of the current cycle. This formula originates from the recursive notion in discrete state machines: "update time if an event triggers, otherwise retain the historical value." This application uses it for heat pump mode switching records, ensuring that the minimum switching interval constraint remains effective in subsequent control cycles. Thus, the first formula generates the execution command for the current cycle, and the second formula updates the time boundary for the next cycle. Logically, they are interconnected: first, it determines whether switching is allowed, then the switching result is written back to the timing record.
[0037] This computational chain can be illustrated with a specific implementation process. Assume step three outputs... This indicates that a recovery operation direction action needs to be executed in this cycle; the control module looks up the normal operation mode code in the table. The current operating status of the heat pump is as follows: Therefore, the mode code is obtained by looking up the table from the current state. Current system timestamp The time stamp of the most recent mode switching command issued Minimum switching interval First calculate the time difference. ,because and Substituting into the first expression, we get This means that a normal operating mode command is sent to the heat pump controller during this cycle. Substituting this into the second equation, since... ,get The control module writes this value back as a new switching time record. If step three still outputs in the next cycle... The heat pump has now been switched to normal operation, therefore... Get from table The current timestamp becomes The time difference is Since it has not yet reached Substituting into the first expression, we get That is, if the current pattern is maintained in this cycle, substituting into the second equation yields... This indicates that the time record will not be updated. Next, let's look at the situation when entering energy-saving operation. If step three of a certain cycle outputs... The control module looks up the energy-saving operation mode code in the table. The current operating status of the heat pump is as follows: Therefore, the pattern code is preserved. If the current time stamp There is already a switch record. The time difference is It satisfies the minimum switching interval condition, therefore we get After receiving the energy-saving operation mode command, the heat pump controller enters energy-saving operation and updates simultaneously. Through this calculation process, it can be seen that when this step converts the result of step three into specific instructions, it simultaneously handles the action direction, current operating state, and switching interval constraints in a unified manner. This ensures that the control action serves both the energy-saving goal driven by changes in household occupancy and meets the stable switching requirements of the heat pump controller in actual operation.
[0038] At the system execution level, this step is jointly completed by the control module, home gateway, and heat pump controller. The control module receives the output from step three. Then, generate the target mode code according to the pre-stored protocol table. And based on the current operating status of the heat pump Generate hold mode code Then read the locally saved data. and the current clock output The final control command is generated according to the first formula. Home gateway The mode register of the heat pump controller is written according to the communication protocol; if the target mode code is issued in this cycle... Then the control module updates the timestamp according to the second formula and writes it back to the storage area. In this way, this step completely transforms the execution result output from step three into an energy-saving control action that the heat pump controller can execute.
[0039] In one or more embodiments, such as Figure 2 As shown, a heat pump energy-saving control system is disclosed, the system comprising: The occupancy determination module is used to obtain the residential location status and indoor activity status of family member terminals; construct the member occupancy contribution status based on the residential location status; logically fuse the member occupancy contribution status with the indoor activity status to generate a family occupancy determination result. The status generation module is used to obtain the household occupancy determination results for multiple consecutive control cycles, calculate the occupancy stability based on the time-decreasing weight and the continuous occupancy enhancement coefficient, and compare the occupancy stability with the occupancy confirmation threshold and the vacancy confirmation threshold to generate the heat pump energy-saving control status result. The execution generation module is used to read the current operating status of the heat pump reported by the heat pump controller, and generate the heat pump control execution result based on the coupling relationship between the heat pump energy-saving control status result and the current operating status of the heat pump. The action execution module is used to generate a target mode code based on the heat pump control execution result, generate a hold mode code based on the current operating state of the heat pump, read the current time stamp and the time stamp of the most recent mode switching command, compare the difference between the time stamps with the minimum switching interval parameter of the heat pump, combine the target mode code and the hold mode code to generate a final control command and send it to the heat pump controller.
[0040] It is worth noting that the specific workflow of the heat pump energy-saving control system provided in this embodiment is the same as that of the heat pump energy-saving control method described in the above embodiment, and will not be repeated here.
[0041] This invention also provides a heat pump energy-saving control device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the steps described in the above-described embodiment of a heat pump energy-saving control method, for example... Figure 1 The steps S1 to S4 described above; or, when the processor executes the computer program, it implements the functions of each module in the above system embodiments.
[0042] For example, the computer program may be divided into one or more modules, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of the computer program in the heat pump energy-saving control device.
[0043] The aforementioned heat pump energy-saving control device can be a desktop computer, laptop, handheld computer, or cloud server, or other computing device. This device may include, but is not limited to, a processor and memory. Those skilled in the art will understand that the heat pump energy-saving control device may also include input / output devices, network access devices, buses, etc.
[0044] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the heat pump energy-saving control device, connecting all parts of the device via various interfaces and lines.
[0045] The memory can be used to store the computer program and / or modules. The processor implements various functions of the heat pump energy-saving control device by running or executing the computer program and / or modules stored in the memory and calling the data stored in the memory. The memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function, etc.; the data storage area may store data created according to the operation of the controller, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, memory, plug-in hard disk, smart media card (SMC), secure digital card (SD card), flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0046] If the integrated module of the heat pump energy-saving control device is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.
[0047] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0048] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A heat pump energy-saving control method, characterized in that, The method includes: Obtain the residential location status and indoor activity status of family member terminals; construct a member occupancy contribution status based on the residential location status; logically fuse the member occupancy contribution status with the indoor activity status to generate a family occupancy determination result; The household occupancy determination results for multiple consecutive control cycles are obtained, and the occupancy stability is calculated based on the time-decreasing weight and the continuous occupancy enhancement coefficient. The occupancy stability is compared with the occupancy confirmation threshold and the vacancy confirmation threshold to generate the heat pump energy-saving control status result. Read the current operating status of the heat pump reported by the heat pump controller, and generate the heat pump control execution result based on the coupling relationship between the heat pump energy-saving control status result and the current operating status of the heat pump; A target mode code is generated based on the heat pump control execution result, and a hold mode code is generated based on the current operating state of the heat pump. The current time stamp and the time stamp of the most recent mode switching command are read, the difference between the time stamps is compared with the minimum switching interval parameter of the heat pump, and the final control command is generated by combining the target mode code and the hold mode code and sent to the heat pump controller.
2. The heat pump energy-saving control method according to claim 1, characterized in that, The residential location status includes being within the residential area, being near the residential area, and being outside the residential area but not near the residential area. The step of constructing the member occupancy contribution status based on the residential location status includes: When the location status of the residence is within the residential area, the member's occupancy contribution status is assigned the value of "occupancy". When the residential location status is "outside the residential area but close to the residential area", the member's occupancy contribution status is assigned the value "occupancy". When the residential location status is outside the residential area and not close to the residential area, the member's occupancy contribution status is set to empty.
3. The heat pump energy-saving control method according to claim 1, characterized in that, The logical fusion of the member's occupancy contribution status with the indoor activity status includes: Determine whether there is an occupied status in the member occupancy contribution status of all family members; If the indoor activity is in an occupied state, or if the indoor activity is in a state of being occupied, then the household occupancy determination result is generated as occupied; If the occupancy status of all members is vacant and the indoor activity status is unattended, then the generated household occupancy determination result is vacant.
4. The heat pump energy-saving control method according to claim 1, characterized in that, The calculation of occupancy stability based on time-decreasing weights and continuous occupancy reinforcement coefficients includes: The household occupancy determination results for multiple consecutive control periods are multiplied by their corresponding time-decreasing weights and summed to obtain the first weighted sum. Calculate the product of the household occupancy determination results of two adjacent control periods, and multiply all product results by the continuous occupancy reinforcement coefficient and sum them to obtain the second weighted sum; Add the first weighted sum to the second weighted sum, and divide by the maximum possible value normalization parameter to obtain the occupancy stability.
5. The heat pump energy-saving control method according to claim 1, characterized in that, The step of comparing the occupancy stability with the occupancy confirmation threshold and the vacancy confirmation threshold to generate the heat pump energy-saving control status result includes: If the occupancy stability is greater than or equal to the occupancy confirmation threshold, the generated heat pump energy-saving control status result is the normal operation control direction; If the occupancy stability is less than or equal to the vacancy confirmation threshold, then the generated heat pump energy-saving control status result is the energy-saving operation control direction; If the occupancy stability is between the occupancy confirmation threshold and the vacancy confirmation threshold, then the generated heat pump energy-saving control state result is a transitional control direction.
6. The heat pump energy-saving control method according to claim 1, characterized in that, The step of generating heat pump control execution results based on the coupling relationship between the heat pump energy-saving control status results and the current operating status of the heat pump includes: Calculate the state deviation between the heat pump energy-saving control state result and the current operating state of the heat pump; If the heat pump energy-saving control state result is a transitional control direction, then the heat pump control execution result is assigned the value of maintaining the current state; If the heat pump energy-saving control state result is not a transitional control direction, and the current operating state of the heat pump is a switching process, then the state deviation is enhanced according to the switching convergence enhancement coefficient to generate a heat pump control execution score. The heat pump control execution score is mapped to the heat pump control execution result of resuming operation, maintaining the current state, or entering energy-saving operation.
7. The heat pump energy-saving control method according to claim 1, characterized in that, The heat pump control execution result includes a resumption operation direction, a maintenance of the current state direction, and an energy-saving operation direction; the generation of the target mode code based on the heat pump control execution result includes: If the heat pump control execution result is to resume operation, then the generated target mode code is the normal operation mode code; If the heat pump control execution result is energy-saving operation, then the generated target mode code is the energy-saving operation mode code; If the heat pump control execution result is to maintain the current state direction, then the generated target mode code is the hold mode code.
8. The heat pump energy-saving control method according to claim 1, characterized in that, The step of generating the final control command by combining the target mode code and the hold mode code includes: If the heat pump control execution result is to maintain the current state direction, then the final control command generated is the hold mode code; If the heat pump control execution result is a resumption of operation or an energy-saving operation, and the difference between the current time stamp and the time stamp of the most recent mode switching command is greater than or equal to the minimum switching interval parameter of the heat pump, then the final control command generated is the target mode code. If the heat pump control execution result is a resumption of operation or an energy-saving operation, and the difference between the current time stamp and the time stamp of the most recent mode switching command is less than the minimum switching interval parameter of the heat pump, then the final control command generated is a mode-holding code.
9. The heat pump energy-saving control method according to claim 8, characterized in that, After generating the final control commands, the following is also included: If the final control command is a target mode code, then the current timestamp is updated to the timestamp of the most recent mode switching command issued; If the final control command is a hold mode code, then the timestamp of the most recent mode switching command remains unchanged.
10. A heat pump energy-saving control system, characterized in that, The system includes: The occupancy determination module is used to obtain the residential location status and indoor activity status of family member terminals; construct the member occupancy contribution status based on the residential location status; logically fuse the member occupancy contribution status with the indoor activity status to generate a family occupancy determination result. The status generation module is used to obtain the household occupancy determination results for multiple consecutive control cycles, calculate the occupancy stability based on the time-decreasing weight and the continuous occupancy enhancement coefficient, and compare the occupancy stability with the occupancy confirmation threshold and the vacancy confirmation threshold to generate the heat pump energy-saving control status result. The execution generation module is used to read the current operating status of the heat pump reported by the heat pump controller, and generate the heat pump control execution result based on the coupling relationship between the heat pump energy-saving control status result and the current operating status of the heat pump. The action execution module is used to generate a target mode code based on the heat pump control execution result, generate a hold mode code based on the current operating state of the heat pump, read the current time stamp and the time stamp of the most recent mode switching command, compare the difference between the time stamps with the minimum switching interval parameter of the heat pump, combine the target mode code and the hold mode code to generate a final control command and send it to the heat pump controller.