Heat pump control method and device based on event flow, equipment and storage medium
By using an event-flow-based control method, the operating events in the heat pump system are independently controlled and processes are switched in case of failure, which solves the problem of control system complexity in the prior art and realizes efficient heat pump control and simple system update and iteration.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGDONG PHNIX ECO ENERGY SOLUTION
- Filing Date
- 2023-03-23
- Publication Date
- 2026-05-29
AI Technical Summary
The existing heat pump control system lacks a clear and well-defined control function architecture, resulting in a complex program module organization that affects update iteration and maintenance efficiency.
An event-based control method is adopted. By setting the trigger conditions and fault detection mechanism for running events, each running event is independently controlled. When a fault occurs, the current process is interrupted and switched to the corresponding fault handling process, and the condition judgment is restarted.
It achieves clear control functions for the heat pump control system, reduces the organizational complexity between program modules, and improves update, iteration, and maintenance efficiency.
Smart Images

Figure CN116499139B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of heat pump control systems, and more particularly to a heat pump control method, apparatus, device, and storage medium based on event flow. Background Technology
[0002] In the current context of tightening energy supply and increasingly stringent environmental protection requirements, heat pumps, as devices that transfer heat energy from low-grade heat sources to high-grade heat sources, have become a new energy technology that has attracted worldwide attention. However, with the continuous upgrading and iteration of heat pump products, and the ever-expanding application scenarios of heat pump products, the requirements for efficient and agile development and maintenance of heat pump control systems are also increasing.
[0003] However, the heat pump control system in the relevant technology does not have a clear and well-defined control function architecture. This makes it difficult for the program modules designed by the development engineers to achieve efficient control of the heat pump product by the heat pump control system after the functions and logic of the heat pump product are converted into control programming language. Moreover, the organizational relationship between the program modules is complicated, which affects the update and iteration of the heat pump control system and its later maintenance. Summary of the Invention
[0004] This application provides an event-flow-based heat pump control method, apparatus, device, and storage medium, which can provide an effective control method for heat pump control systems to meet the requirements of efficient and agile development and maintenance.
[0005] In a first aspect, embodiments of this application provide an event-flow-based heat pump control method. The heat pump control system has corresponding operating events set for different control functions. The method includes:
[0006] Based on the triggering conditions corresponding to each running event, the conditions of each running event in the event set are judged one by one to determine whether the triggering conditions are met.
[0007] When the first target event meets the triggering condition, the first execution process corresponding to the first target event is run. The first target event is the running event for which the condition is currently being judged.
[0008] During the execution of the first process, it is determined whether fault information is detected. Fault information is the information reported when the device fails.
[0009] If a fault is detected, the first execution process is interrupted and the second execution process corresponding to the second target event is started. The second target event is associated with the fault information.
[0010] Restart the conditional judgment of the running events in the event set after the second execution process has finished running.
[0011] Secondly, embodiments of this application also provide a heat pump control device, the device comprising:
[0012] The condition judgment module is configured to perform condition judgments on each running event in the event set according to the trigger conditions corresponding to each running event, in order to determine whether the trigger conditions are met.
[0013] The first event execution module is configured to run the first execution process corresponding to the first target event when the first target event meets the triggering condition. The first target event is the running event for which the condition is currently being judged.
[0014] The anomaly detection module is configured to determine whether fault information is detected during the first execution process. The fault information is the information reported when the device fails.
[0015] The second event execution module is configured to interrupt the first execution process and start the second execution process corresponding to the second target event if fault information is detected. The second target event is associated with the fault information.
[0016] The restart judgment module is configured to restart the conditional judgment of running events in the event set after the second execution process has finished running.
[0017] Thirdly, embodiments of this application also provide an electronic device, which further includes:
[0018] One or more processors;
[0019] A storage device for storing one or more programs, which, when executed by one or more processors, implement the event-flow-based heat pump control method as described in any of the above embodiments.
[0020] Fourthly, embodiments of this application also provide a storage medium storing computer-executable instructions, which, when executed by a processor, are used to perform the event-flow-based heat pump control method as described in any of the above embodiments.
[0021] This application's solution independently controls each operating event of the heat pump control system and sets corresponding trigger conditions. When an event meets the trigger conditions, the corresponding execution process runs. Furthermore, it detects faults and can interrupt the running process of an event when a fault occurs. In other words, this solution provides clear and explicit control functions, enabling development engineers to independently set the program modules corresponding to the running events. This reduces the complexity of the organizational relationships between program modules, which is beneficial for the updating and iteration of the heat pump control system and its later maintenance, and can effectively achieve efficient control of the heat pump. Attached Figure Description
[0022] Figure 1 A flowchart illustrating the steps of an event-flow-based heat pump control method provided in an embodiment of this application;
[0023] Figure 2 A flowchart illustrating the steps of running a first execution process according to an embodiment of this application;
[0024] Figure 3 A flowchart of steps for running a first execution process is provided for another embodiment of this application;
[0025] Figure 4 A flowchart illustrating the steps of running a second target process according to an embodiment of this application;
[0026] Figure 5 A flowchart of steps for running a second execution process is provided for another embodiment of this application;
[0027] Figure 6 This is a schematic diagram of the structure of a heat pump control device provided in another embodiment of this application;
[0028] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0029] The embodiments of this application will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the embodiments of this application and are not intended to limit the scope of the embodiments. Furthermore, it should be noted that, for ease of description, only the parts relevant to the embodiments of this application are shown in the accompanying drawings, not the entire structure.
[0030] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship. In the description of this application, "multiple" means two or more, and "several" means one or more.
[0031] The event-flow-based heat pump control method of this application can provide a clear and explicit control function for the heat pump control system, which is beneficial for the update and iteration of the heat pump control system and its subsequent maintenance, and can effectively achieve efficient control of the heat pump.
[0032] Figure 1 A flowchart illustrating the steps of an event-flow-based heat pump control method provided in an embodiment of this application is shown below. Figure 1 As shown, the event-flow-based heat pump control method includes the following steps:
[0033] Step S110: Based on the triggering conditions corresponding to each running event, perform condition judgment on each running event in the event set to determine whether the triggering conditions are met.
[0034] Understandably, the event set contains several operational events. In the heat pump control system, corresponding operational events are set for different control functions, such as the heat pump initialization event and the cruise detection event used to detect the heat pump unit's operating mode. Therefore, development engineers can edit the corresponding operational events according to the heat pump control requirements and add them to the event set.
[0035] Each running event has a corresponding trigger condition, which serves as the entry condition for the running event. Therefore, when a running event meets the trigger condition, the running event is executed. It should be noted that the trigger condition is set by the system based on preset parameter thresholds. Furthermore, the condition judgment for the running event is based on the relevant operating parameters of the heat pump unit, and the corresponding program module implements the condition judgment function. However, the program module needs to output the judgment result, which indicates whether the trigger condition is met.
[0036] In one embodiment, each running event is assigned a priority. Therefore, in the process of conditionally judging each running time in the event set, it is necessary to judge the running events according to their priority. For example, the current running event is judged one by one from high to low priority to determine whether it meets the triggering condition, so as to reduce the chaos of the condition judgment process and make the heat pump control system more orderly.
[0037] Step S120: When the first target event meets the triggering condition, the first execution process corresponding to the first target event is run.
[0038] It is conceivable that the first target event is the operational event for which conditions are currently being determined. Corresponding to each operational event, a specific execution process is set up in the heat pump control system. Understandably, the execution process for each operational event is associated with a sub-load of the heat pump unit, and it is used to control the sub-load to perform corresponding actions. For example, the execution process corresponding to the cruise detection event is associated with sub-loads such as the fan and circulating pump. When the cruise detection event meets the triggering conditions, the heat pump control system executes the corresponding execution process, such as controlling the fan to rotate at the set speed or controlling the circulating pump to operate at a constant pressure.
[0039] Step S130: Determine whether fault information is detected during the execution of the first process.
[0040] Step S140: If fault information is detected, the first execution process is interrupted and the second execution process corresponding to the second target event is started.
[0041] It is understandable that the fault information is the information reported when the equipment malfunctions, and the fault information is associated with the second target event. During the execution of the first execution process, the fault information is monitored simultaneously. When the fault information is detected, the first execution process is interrupted and the second execution process corresponding to the second target event is started, where the second target event is associated with the fault information.
[0042] In some embodiments, the heat pump control system also has an abnormal event database. When fault information is detected, the system adds an abnormal event to the abnormal event database. Therefore, it is also possible to determine whether to interrupt the first execution process and run the execution process corresponding to the abnormal event by detecting whether a new abnormal event has been added to the abnormal event database.
[0043] For example, in the event of a fault caused by an abnormality in the wind turbine, after the system detects the fault information, it can interrupt the currently running first execution process and start a second execution process. This second execution process is associated with the wind turbine, and its corresponding second target event is the wind turbine fault protection event. Therefore, the second execution process is run to control the wind turbine, for example, to control the wind turbine to start and stop intermittently in an attempt to resolve the fault.
[0044] Step S150: Restart the condition judgment of the running events in the event set after the second execution process finishes running.
[0045] For the second target event that causes the interruption, after the second execution process corresponding to the second target event finishes running, the first execution process will not be re-run. Instead, the condition judgment of the running events in the event set will be restarted so that the corresponding execution process will be executed when other running events in the event set meet the corresponding trigger conditions.
[0046] As can be seen from the above scheme, this application provides clear and explicit control functions for the heat pump control system by setting up a corresponding control architecture. Moreover, in the heat pump control system, for each operating event, the development engineer only needs to set the trigger conditions and exit conditions required by the heat pump control system for the corresponding program module, thereby effectively reducing the complexity of the organizational relationship between the program modules, making the update and iteration of the heat pump control system and its later maintenance more convenient, and thus better meeting the requirements of efficient and agile development and maintenance.
[0047] In some embodiments, the event set also includes a locking event, which is a running event carrying locking parameters. It is understood that the locking parameters are used not only to identify the running event as a locking event, but also to inform the heat pump control system to prioritize the execution of the current running event.
[0048] Therefore, if a locking event exists in the event set, the locking event is executed, and the operating events are re-evaluated after the locking event is completed. That is, when the heat pump control system detects a locking event carrying locking parameters, it first executes the process corresponding to the locking event. Furthermore, after completing this process, the heat pump control system re-evaluates the events in the event set. By locking the current operating events, the heat pump control system can block interference from operating events, better control sub-loads and other equipment, and achieve accurate and effective control.
[0049] In some embodiments, for the process of running the first execution process corresponding to the first target event, such as Figure 2 As shown, Figure 2 The flowchart of the steps for running the first execution process provided in one embodiment of this application, the event-flow-based heat pump control method of this application further includes the following steps:
[0050] Step S210: Execute the control thread corresponding to the sub-load associated with the first target event to control the sub-load to perform the corresponding load action.
[0051] Step S220: When the first target event meets the corresponding first exit condition, the first execution process ends and the condition judgment of each running event in the event set is restarted.
[0052] It is understandable that control threads correspond to sub-loads. In a heat pump unit, each operating event corresponds to an associated sub-load. For example, the cruise detection event is associated with sub-loads such as the fan and the circulating pump. Therefore, during the execution of the first execution process, the control thread corresponding to the sub-load is executed, thereby controlling the sub-load to perform the corresponding load actions. Taking the cruise detection event as an example, this could involve controlling the fan to rotate at the set speed or controlling the circulating pump to operate at a constant pressure.
[0053] Before terminating the first execution process, it is necessary to determine the first exit condition. The first exit condition is set for the first target event, and a separate exit condition is set for each running event. For example, for the cruise detection event, the corresponding exit condition is that the compressor frequency is 0. Therefore, when the compressor frequency meets the above exit condition, the execution process corresponding to the cruise detection event is terminated.
[0054] For the first target event, corresponding exit conditions are also set so that the heat pump control system can return to condition judgment of other operating events. This helps in the modular design of operating events and makes the organizational relationship between program modules simpler and clearer.
[0055] In some embodiments, for the process of running the first execution process corresponding to the first target event, such as Figure 3 As shown, Figure 3 The flowchart of the steps for running the first execution process provided in another embodiment of this application, the event-flow-based heat pump control method of this application further includes the following steps:
[0056] Step S310: Set locking parameters for the first target event to lock the first target event.
[0057] Step S320: When the first target event meets the corresponding first exit condition, reset the locking parameters to unlock the first target event.
[0058] Understandably, during the execution of the first execution process corresponding to the first target event, locking parameters can be set to lock the first target event, ensuring that the heat pump control system prioritizes its execution of the first target event. In other words, the locking parameters inform the heat pump control system to prioritize the current running event. For the locking parameters, corresponding parameter items can be set during the execution process. For example, setting the parameter item to 1 indicates setting the locking parameter, thus locking the running event. Therefore, it is conceivable that resetting the locking parameters, such as setting the parameter item to 0, can unlock the running event.
[0059] When the first target event meets the first exit condition, the heat pump control system needs to terminate the first execution process corresponding to the first target event. In addition, the heat pump control system also needs to unlock the first target event. Therefore, the locking parameters need to be reset.
[0060] Therefore, by locking the current operating event, the heat pump control system can block interference from the operating event, better control sub-loads and other equipment, and achieve accurate and effective control.
[0061] In some embodiments, upon detecting fault information, the heat pump control system needs to interrupt the currently executing first target event and instead run the second target process corresponding to the second target event, such as... Figure 4 As shown, Figure 4 The flowchart of the steps for running a second target process provided in one embodiment of this application, the event-flow-based heat pump control method of this application, further includes the following steps:
[0062] Step S410: Terminate the first execution process and start the second execution process.
[0063] Step S420: Set locking parameters for the second target event to lock the second target event.
[0064] Step S430: Execute the control thread corresponding to the sub-load associated with the second target event.
[0065] Step S440: When the second target event meets the corresponding second exit condition, reset the locking parameters and terminate the second execution process.
[0066] Understandably, after detecting a fault, the heat pump control system will terminate the currently running first execution process and start the second execution process. During the execution of the second process, locking parameters can be set for the second target event, thereby locking the second target event and ensuring that the heat pump control system executes it first.
[0067] It should be noted that the sub-load associated with the second target event can be selected according to design requirements. Furthermore, during the execution of the second process, the heat pump control system executes the control thread corresponding to the sub-load associated with the second target event, thereby completing the second target event. Similarly, when the second target event meets the corresponding second exit condition, the heat pump control system needs to reset the locking parameters to unlock the second target event, thus ending the second execution process.
[0068] For example, in the event of a fan malfunction causing a fault, the heat pump control system, upon detecting the fault information, interrupts the currently running first execution process and starts a second execution process. This second execution process is associated with the fan, and its corresponding second target event is a fan fault protection event. Furthermore, the heat pump control system locks the second target event to prioritize the execution of the second execution process corresponding to it. By running the second execution process, the fan is controlled, for example, by intermittently starting and stopping the fan to attempt to resolve the fault.
[0069] Therefore, the second execution process corresponding to the second target event can be independent of the first execution process, making the program module corresponding to the second target event independent of the program module of the first target event. This effectively simplifies the organizational relationship between the program modules and helps with the updating and iteration of the heat pump control system and its later maintenance.
[0070] In one embodiment, during the execution of the second execution process, the control thread corresponding to the sub-load of the second target event is executed to drive the sub-load to perform corresponding actions, such as... Figure 5 As shown, Figure 5 A flowchart illustrating the steps of running a second execution process is provided in another embodiment of this application. The event-flow-based heat pump control method of this application further includes the following steps:
[0071] Step S510: Listen for abnormal messages, which carry abnormal parameters.
[0072] Step S520: Determine the abnormal sub-load based on the abnormal parameters carried in the received abnormal message.
[0073] Step S530: Based on the abnormal sub-load, select the abnormal control thread associated with the abnormal sub-load in the load action library and execute the abnormal control thread.
[0074] Understandably, the anomaly messages are provided by the heat pump control system, for example, output by the anomaly diagnosis module within the system. This module is likely a program designed by the development engineers, incorporating relevant technologies for detecting equipment anomalies. The anomaly messages carry anomaly parameters, which can be used to indicate the corresponding sub-load, allowing the heat pump control system to identify the abnormal sub-load. It then selects the appropriate anomaly control thread from the load action library to drive the sub-load to perform the corresponding action, thereby resolving the fault. Therefore, during the execution of the second process, the heat pump control system selects the appropriate control thread based on the abnormal sub-load, enabling independent development of each control thread, achieving modular design, and facilitating the update and iteration of the heat pump control system.
[0075] For example, in the event of a fan malfunction causing a failure, the abnormal parameters correspond to the fan that caused the failure. Therefore, the heat pump control system can determine the relevant information of the fan, such as its serial number, and then select the abnormal control thread associated with the fan from the load action library. It is conceivable that the load action library records several control threads corresponding to different abnormal sub-loads. The heat pump control system can drive the sub-load to perform the corresponding action by calling the corresponding control thread.
[0076] Figure 6 This is a schematic diagram of a heat pump control device according to another embodiment of this application. The device is used to execute the event-flow-based heat pump control method provided in the above embodiment, and has corresponding functional modules and beneficial effects for executing the method. As shown in the figure, the heat pump control device includes a condition judgment module 601, a first event execution module 602, an anomaly judgment module 603, a second event execution module 604, and a restart judgment module 605.
[0077] The condition judgment module 601 is configured to perform condition judgment on each running event in the event set according to the triggering conditions corresponding to each running event, so as to determine whether the triggering conditions are met.
[0078] The first event execution module 602 is configured to run the first execution process corresponding to the first target event when the first target event meets the triggering condition. The first target event is the running event for which the condition is currently being judged.
[0079] The anomaly detection module 603 is configured to determine whether fault information is detected during the first execution process. The fault information is the information reported when the device fails.
[0080] The second event execution module 604 is configured to interrupt the first execution process and start the second execution process corresponding to the second target event if fault information is detected. The second target event is associated with the fault information.
[0081] The restart module 605 is configured to restart the conditional judgment of running events in the event set after the second execution process has finished running.
[0082] Based on the above embodiments, each running event is assigned a priority, and the running events in the event set are sorted according to priority so that condition judgments can be performed one by one.
[0083] Based on the above embodiments, the heat pump control device further includes a lock event operation module, which is configured as follows:
[0084] If a locked event exists in the event set, the locked event is executed, and the conditions of each running event are re-evaluated after the locked event is executed.
[0085] Among them, the lock event carries a lock parameter, which is used to inform the heat pump control system to prioritize the current operating event.
[0086] Based on the above embodiments, the first event execution module 602 is further configured as follows:
[0087] Execute the control thread corresponding to the sub-load associated with the first target event to control the sub-load to perform the corresponding load action;
[0088] When the first target event meets the corresponding first exit condition, the first execution process ends and the condition judgment of each running event in the event set is restarted.
[0089] Based on the above embodiments, the first event execution module 602 is further configured as follows:
[0090] Set a locking parameter for the first target event to lock the first target event. The locking parameter is used to tell the heat pump control system to prioritize the execution of the current operating event.
[0091] When the first target event meets the corresponding first exit condition, the locking parameters are reset to unlock the first target event.
[0092] Based on the above embodiments, the second event execution module 604 is further configured as follows:
[0093] Terminate the first execution process and start the second execution process;
[0094] Set a locking parameter for the second target event to lock the second target event. The locking parameter is used to tell the heat pump control system to prioritize the current operating event.
[0095] Execute the control thread corresponding to the sub-load associated with the second target event;
[0096] When the second target event meets the corresponding second exit condition, reset the locking parameters and terminate the second execution process.
[0097] Based on the above embodiments, the second event execution module 604 is further configured as follows:
[0098] Listen for exception messages, which carry exception parameters.
[0099] Determine the abnormal sub-load based on the abnormal parameters carried in the received abnormal message;
[0100] Based on the abnormal sub-load, select the abnormal control thread associated with the abnormal sub-load in the load action library and execute the abnormal control thread.
[0101] It is worth noting that in the embodiments of the heat pump control device described above, the various functional modules are divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional module are only for easy differentiation and are not used to limit the scope of protection of this application.
[0102] Figure 7 This is a schematic diagram of an electronic device according to an embodiment of this application. The device is used to execute the event-flow-based heat pump control method provided in the above embodiment, and has corresponding functional modules and beneficial effects for executing the method. Figure 7 As shown, the device includes a processor 701, a memory 702, an input device 703, and an output device 704. The number of processors 701 in the device can be one or more; the figure shows one processor 701 as an example. The processor 701, memory 702, input device 703, and output device 704 in the device can be connected via a bus or other means; the figure shows a connection via a bus as an example. The memory 702, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the event-flow-based heat pump control method in this embodiment. The processor 701 executes various functional applications and data processing of the device by running the software programs, instructions, and modules stored in the memory 702, thereby implementing the aforementioned event-flow-based heat pump control method.
[0103] The memory 702 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a given function; the data storage area may store data recorded or created during the use of the electronic device. Furthermore, the memory 702 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 702 may further include memory remotely located relative to the processor 701, which can be connected to a terminal device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0104] The input device 703 can be used to input corresponding numerical or character information to the processor 701, and to generate key signal inputs related to user settings and function control of the device. The output device 704 can be used to send or display key signal outputs related to user settings and function control of the device.
[0105] This application also provides a storage medium storing computer-executable instructions, which, when executed by a processor, are used to perform relevant operations in the event-flow-based heat pump control method provided in any embodiment of this application.
[0106] Computer-readable storage media include both permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.
[0107] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0108] Note that the above are merely preferred embodiments and the technical principles employed in this application. Those skilled in the art will understand that this application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of this application, the scope of which is determined by the scope of the appended claims.
Claims
1. A heat pump control method based on event flow, characterized in that, The heat pump control system has corresponding operating events set for different control functions, and the method includes: Based on the triggering conditions corresponding to each running event, condition judgment is performed on each running event in the event set to determine whether the triggering conditions are met. When the first target event meets the triggering condition, the first execution process corresponding to the first target event is run, where the first target event is the running event for which the condition is currently being judged; During the execution of the first execution process, it is determined whether fault information is detected, wherein the fault information is the information reported when the device malfunctions. If the fault information is detected, the first execution process is interrupted and the second execution process corresponding to the second target event is started. The second target event is an abnormal event in the abnormal event library that is associated with the fault information. The abnormal event library is used to store abnormal events added by the heat pump control system after detecting the fault information. After the second execution process finishes running, restart the condition judgment of the running events in the event set; Specifically, when running the first execution process, a corresponding locking parameter is set to lock the first target event, or when running the second execution process, a corresponding locking parameter is set to lock the second target event, so that the heat pump control system can prioritize the execution of the current running event; Furthermore, when the first execution process ends, the corresponding locking parameters are reset to unlock the first target event, or when the second execution process ends, the corresponding locking parameters are reset to unlock the second target event, so that the heat pump control system can terminate the currently executed running event.
2. The event-flow-based heat pump control method according to claim 1, characterized in that, The running events are assigned priorities, and each running event in the event set is sorted according to its priority to perform condition judgments one by one.
3. The event-flow-based heat pump control method according to claim 1, characterized in that, After determining whether each running event in the event set satisfies the triggering condition according to the triggering condition corresponding to each running event, the method further includes: If a locking event exists in the event set, the locking event is executed, and after the locking event is executed, the conditions of each running event are re-evaluated. The locking event carries a locking parameter, which is used to inform the heat pump control system to prioritize the execution of the current operating event.
4. The event-flow-based heat pump control method according to claim 1, characterized in that, When the first target event meets the triggering condition, the first execution process corresponding to the first target event is executed, where the first target event is the running event for which the condition is currently being determined. include: Execute the control thread corresponding to the sub-load associated with the first target event to control the sub-load to perform the corresponding load action; When the first target event satisfies the corresponding first exit condition, the first execution process ends and the condition judgment for each running event in the event set is restarted.
5. The event-flow-based heat pump control method according to claim 1 or 4, characterized in that, The step of running the first execution process corresponding to the first target event when the first target event meets the triggering condition, wherein the first target event is the running event for which the condition is currently being judged, further includes: A locking parameter is set for the first target event to lock the first target event. The locking parameter is used to inform the heat pump control system to prioritize the execution of the current operating event. When the first target event meets the corresponding first exit condition, the locking parameters are reset to unlock the first target event.
6. The event-flow-based heat pump control method according to claim 1, characterized in that, If the fault information is detected, the first execution process is interrupted, and the second execution process corresponding to the second target event is started. The second target event is associated with the fault information and includes: Terminate the first execution process and start the second execution process; A locking parameter is set for the second target event to lock the second target event. The locking parameter is used to inform the heat pump control system to prioritize the execution of the current operating event. Execute the control thread corresponding to the sub-load associated with the second target event; When the second target event satisfies the corresponding second exit condition, the locking parameters are reset and the second execution process is terminated.
7. The event-flow-based heat pump control method according to claim 6, characterized in that, The control thread that executes the sub-load associated with the second target event includes: Listen for abnormal messages, which carry abnormal parameters; Based on the abnormal parameters carried in the received abnormal message, determine the abnormal sub-load; Based on the abnormal sub-load, select the abnormal control thread associated with the abnormal sub-load in the load action library and execute the abnormal control thread.
8. A heat pump control device, characterized in that, The heat pump control system has corresponding operating events set for different control functions, and the device includes: The condition judgment module is configured to perform condition judgment on each of the running events in the event set according to the triggering conditions corresponding to each running event, so as to determine whether the triggering conditions are met. The first event execution module is configured to run the first execution process corresponding to the first target event when the first target event meets the triggering condition, wherein the first target event is the running event for which the condition is currently being judged; The anomaly detection module is configured to detect whether fault information is detected during the execution of the first execution process, wherein the fault information is the information reported when the device fails. The second event execution module is configured to interrupt the first execution process and start the second execution process corresponding to the second target event if the fault information is detected. The second target event is an abnormal event in the abnormal event library associated with the fault information. The abnormal event library is used to store abnormal events added by the heat pump control system after detecting the fault information. The restart determination module is configured to restart the conditional determination of running events in the event set after the second execution process has finished running; Specifically, when running the first execution process, a corresponding locking parameter is set to lock the first target event, or when running the second execution process, a corresponding locking parameter is set to lock the second target event, so that the heat pump control system can prioritize the execution of the current running event; Furthermore, when the first execution process ends, the corresponding locking parameters are reset to unlock the first target event, or when the second execution process ends, the corresponding locking parameters are reset to unlock the second target event, so that the heat pump control system can terminate the currently executed running event.
9. An electronic device, characterized in that, The electronic device includes: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, implement the event-flow-based heat pump control method as described in any one of claims 1 to 7.
10. A storage medium for storing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a processor, are used to perform the event-flow-based heat pump control method as described in any one of claims 1 to 7.