Control method and device, computer equipment, readable storage medium and program product
By dividing the operating state of the air conditioner into child state and parent state, and obtaining the conversion strategy based on the parent state and target event information, the problem of poor flexibility in traditional air conditioner control logic is solved, and the control flexibility and energy efficiency of the air conditioner are improved.
Patent Information
- Application Number
- CN202411587381.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2025-01-17
AI Technical Summary
The traditional air conditioner control logic has the problem of poor control flexibility, and cannot effectively adapt to changes in different environmental conditions, the energy utilization efficiency is not high, and the refrigeration effect is not obvious.
By dividing the operating state of the refrigeration equipment into multiple state levels, such as child state and parent state, obtaining the target state conversion strategy based on the parent state and target event information, control the refrigeration equipment to transition from the current state to the next state, avoiding traversing all states Corresponding control conditions or table data.
It improves the flexibility of air conditioning control and energy utilization efficiency, reduces memory usage, and achieves a more efficient refrigeration effect.
Smart Images

Figure CN119321606A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of air conditioning control technology, and in particular to a control method, device, computer equipment, readable storage medium and program product. Background Art
[0002] With the development of cooling technology, in order to achieve energy-saving control and improve air-conditioning performance, it is necessary to optimize the control method of air-conditioning.
[0003] Traditional air conditioning control logic, such as branch structure or table lookup structure, the control logic of the branch structure is usually based on simple conditional judgment to control the operation of the air conditioner, while the table lookup structure is usually based on the control actions pre-set in the data table to control the operation of the air conditioner.
[0004] However, the above control methods all have the problem of poor control flexibility. Summary of the invention
[0005] Based on this, it is necessary to provide a control method, device, computer equipment, readable storage medium and program product that can improve control flexibility in response to the above technical problems.
[0006] In a first aspect, the present application provides a control method, comprising:
[0007] Obtain target event information corresponding to the refrigeration equipment and the current state of the refrigeration equipment, where the target event information is used to represent the next state of the refrigeration equipment;
[0008] If the state level of the current state is a sub-state, determine the parent state corresponding to the current state, and obtain the target state transition strategy based on the parent state and target event information;
[0009] According to the target state transition strategy, the refrigeration equipment is controlled to transition from the current state to the next state.
[0010] In one embodiment, obtaining a target state transition strategy according to the parent state and target event information includes:
[0011] According to the parent state and the target event information, the target state transition strategy is determined from the preset state transition data, and the state transition data includes the mapping relationship between each state, each event information and each state transition strategy.
[0012] In one embodiment, determining a target state transition strategy from preset state transition data according to the parent state and target event information includes:
[0013] Determine at least one candidate state transition strategy corresponding to the parent state from the state transition data according to the parent state;
[0014] The candidate conversion strategies are screened according to the target event information to determine the target state conversion strategy.
[0015] In one embodiment, the method further comprises:
[0016] Query the target state transition strategy from the state transition data according to the current state and target event information;
[0017] If the target state transition strategy is not found in the state transition data, the current state is determined to be a sub-state.
[0018] In one embodiment, the target event information includes a device identifier, and according to the target state transition strategy, controlling the refrigeration device to transition from a current state to a next state includes:
[0019] According to the conversion operation included in the target state conversion strategy, the device corresponding to the device identifier in the refrigeration equipment is controlled to perform the conversion operation to convert to the next state.
[0020] In one embodiment, the method further comprises:
[0021] Before the control device performs the conversion operation, the control device performs the state exit operation according to the state exit operation included in the target state conversion strategy; and / or,
[0022] After the control device performs the transition operation, the control device performs the state entry operation according to the state entry operation included in the target state transition strategy.
[0023] In one embodiment, the method further comprises:
[0024] Receive target event information sent by the host computer and / or generate target event information when preset conditions are met, and store the target event information in an event queue;
[0025] Get the target event information corresponding to the refrigeration equipment, including:
[0026] Get target event information from the event queue.
[0027] In a second aspect, the present application further provides a control device, comprising:
[0028] An acquisition module, used to acquire target event information corresponding to the refrigeration equipment and the current state of the refrigeration equipment, wherein the target event information is used to represent the next state of the refrigeration equipment;
[0029] A strategy determination module is used to determine the parent state corresponding to the current state if the state level of the current state is a sub-state, and obtain the target state transition strategy according to the parent state and the target event information;
[0030] The control module is used to control the refrigeration equipment to switch from the current state to the next state according to the target state transition strategy.
[0031] In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method of the first aspect when executing the computer program.
[0032] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method of the first aspect described above.
[0033] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the method in the first aspect are implemented.
[0034] The control method, device, computer device, readable storage medium and program product described above obtain the target event information corresponding to the refrigeration device and the current state of the refrigeration device. If the state level of the current state is a sub-state, the parent state corresponding to the current state is determined, and the target state transition strategy is obtained according to the parent state and the target event information. In this way, the refrigeration device can be controlled to transition from the current state to the next state according to the target state transition strategy, wherein the target event information is used to characterize the next state of the refrigeration device. In this way, by dividing the operating state of the refrigeration device into multiple state levels, such as sub-states and parent states, if the current state is a sub-state, the target state transition strategy can be directly determined according to the event information corresponding to its parent state and the state transition strategy, thereby controlling the refrigeration device to perform state transition according to the target state transition strategy, avoiding the problem of poor control flexibility in the traditional technology of the table lookup structure and branch structure due to the lack of obvious state level division, which can only traverse the control conditions or table data corresponding to all states to control the operation of the air conditioner. The technical solution provided by the present application has higher control flexibility. In addition, since the sub-state can directly inherit the event information and state transition strategy corresponding to the parent state, less memory is required. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 An application environment diagram of a control method in an embodiment;
[0037] Figure 2 A schematic flow chart of a control method in one embodiment;
[0038] Figure 3 is a flow chart of an exemplary control method in another embodiment;
[0039] Figure 4 A structure of a state hierarchy of an exemplary refrigeration device in another embodiment;
[0040] Figure 5 is a structural block diagram of a control device in one embodiment;
[0041] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0043] With the development of cooling technology and the need for energy conservation and emission reduction, liquid-cooled energy-saving air conditioners have gradually become the future development direction. Traditional air conditioners have some challenges in control and optimization, such as the inability to effectively adapt to changes in different environmental conditions, low energy efficiency, and unclear cooling effect. Compared with the control system of traditional air conditioners, the complexity of the liquid-cooled energy-saving air conditioner control system has been significantly improved. In order to improve the performance of air conditioners, the control method of liquid-cooled energy-saving air conditioners needs to be optimized.
[0044] Traditional air conditioning control logic usually adopts a branch structure or a table lookup structure. The control logic of the branch structure usually controls the operation of the air conditioner based on simple conditional judgments. When the air conditioner needs to enter a certain operating state, it is necessary to traverse all the judgment conditions before entering the corresponding operating state; under the control logic of the table lookup structure, when the air conditioner needs to enter a certain operating state, it is necessary to traverse all the table data first to find the corresponding control action, and then control the air conditioner to enter the corresponding operating state according to the control action.
[0045] The above control methods all have the problem of poor control flexibility.
[0046] In view of this, the present application provides a control method, device, computer equipment, readable storage medium and program product, which obtain the target event information corresponding to the refrigeration equipment and the current state of the refrigeration equipment. If the state level of the current state is a sub-state, the parent state corresponding to the current state is determined, and the target state transition strategy is obtained according to the parent state and the target event information. In this way, the refrigeration equipment can be controlled to transition from the current state to the next state according to the target state transition strategy, wherein the target event information is used to characterize the next state of the refrigeration equipment. In this way, by dividing the operating state of the refrigeration equipment into multiple state levels, such as sub-states and parent states, if the current state is a sub-state, the target state transition strategy can be directly determined according to the event information corresponding to its parent state and the state transition strategy, so that the refrigeration equipment is controlled to perform state transition according to the target state transition strategy, avoiding the problem of poor control flexibility in the traditional technology of the table lookup structure and the branch structure due to the lack of obvious state level division, which can only traverse the control conditions or table data corresponding to all states to control the operation of the air conditioner. The technical solution provided by the present application has higher control flexibility. In addition, since the sub-state can directly inherit the event information and state transition strategy corresponding to the parent state, less memory is required.
[0047] The control method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. The refrigeration equipment may be an air conditioner, a refrigerator, a freezer, an ice maker, etc. The refrigeration equipment may include a host computer 101, a controller 102, and at least one device for refrigeration, wherein the host computer 101 and the controller 102 may communicate with each other, and the controller 102 and the device 103 may communicate with each other, wherein the host computer 101 may be any external input device such as a touch screen, a mouse, a button, etc., the controller 102 may be any device that can process the communication signal sent by the host computer 101, and the device 103 may be a fan, a compressor, a water valve, an electronic expansion valve, an electric heater, a sensor, etc. in the refrigeration equipment, and different devices may have different device identifiers, such as device 1, device 2, ..., device N, etc.
[0048] In an exemplary embodiment, Figure 2 As shown, a control method is provided, which is applied to Figure 1 The controller 102 in FIG. 1 is taken as an example to illustrate the method, which includes the following steps 202 to 206. Among them:
[0049] Step 201: Obtain target event information corresponding to the refrigeration equipment and the current state of the refrigeration equipment.
[0050] The target event information is used to represent the next state of the refrigeration equipment.
[0051] The state can be a set operating state of the refrigeration equipment, such as standby state, startup process state, working operation state, and fault state. When the refrigeration equipment is in different states, its internal components can operate under different conditions. In the embodiment of the present application, at any time, the refrigeration equipment can only be in one state.
[0052] The event can be used to drive the controller to control the refrigeration device to switch from the current state to the next state. In the embodiment of the present application, when the controller obtains the target event information, it can control the refrigeration device to switch from the current state to the next state.
[0053] Optionally, the controller can obtain the target event information of external input through the host computer; optionally, the controller can obtain the target event information generated internally through real-time detection. Based on this, in the embodiment of the present application, the target event information can be divided into external event information and internal event information. Optionally, the external event information may include power-on events, power-off events, manual operation of compressor events, manual operation of fan events, manual operation of water valve events, manual operation of electronic expansion valve events, etc. These event information may be generated by the host computer according to the instructions or signals obtained from the external input, and the controller may obtain them through the transmission of the host computer; optionally, the internal event information may include sensor alarm events, actuator failure events, subsystem status events, etc. These event information may be automatically generated by the controller when it detects that the preset conditions are met inside the refrigeration equipment.
[0054] Regarding the method for the controller to obtain target event information, in a possible implementation, the controller can receive target event information sent by the host computer and / or generate target event information when preset conditions are met, and store the target event information in an event queue. Then, the controller can obtain the target event information from the event queue.
[0055] In an embodiment of the present application, an event queue can be preset inside the controller. When the controller receives newly generated event information, the event information can be encapsulated into the event queue, and then the event information in the event queue can be processed one by one. This can ensure that when the controller detects many newly generated event information at the same time, the event information will not be lost, thereby ensuring the reliability of event information processing. In addition, based on the first-in-first-out characteristic of the event queue, the processing of event information is completed through the event queue, which can ensure that the processing order of event information is not disrupted, that is, the newly generated event information is processed first, and the later generated event information is processed later.
[0056] Step 202: If the state level of the current state is a sub-state, determine the parent state corresponding to the current state, and obtain the target state transition strategy according to the parent state and the target event information.
[0057] In an embodiment of the present application, the state of the refrigeration equipment can be divided into different state levels, such as a parent state and a child state, where the parent state is the parent state of the child state. By way of example, the working operation state in the above-mentioned state has a state level of the parent state, and the working operation state also corresponds to multiple sub-states, such as a mechanical refrigeration state, a mixed refrigeration state, a natural cooling state, an automatic operation state, and the like.
[0058] When the refrigeration device is in different states, the controller can control the refrigeration device to transition from the current state to the next state according to the acquired target event information. Therefore, different state transitions correspond to different event information and state transition strategies.
[0059] The state transition strategy is a strategy that enables the controller to control the refrigeration equipment to transition from the current state to the next state. In an embodiment of the present application, in order to reduce the memory required for data occupation, the state of each state level as a sub-state can inherit the event information and state transition strategy corresponding to its parent state. For example, when the refrigeration equipment is in a sub-state such as a mechanical refrigeration state or a mixed refrigeration state, if the controller obtains the target event information, the controller needs to control the refrigeration equipment to perform a state transition. At this time, the controller can find the target transition strategy according to the target event information from the parent state corresponding to the current state, that is, the event information corresponding to the working operation state, and the state transition strategy corresponding to the event information.
[0060] Optionally, the controller determines the state level corresponding to the current state. If the state level of the current state is a child state, the controller can first determine the parent state corresponding to the current state, and determine the event information and state transition rules corresponding to the parent state, and then use the target event information to filter the event information and state transition rules corresponding to the parent state to determine the target state transition rules; optionally, if the state level of the current state is a parent state, the controller can directly filter the event information and state transition rules corresponding to the current state according to the target event information to determine the target state transition rules.
[0061] In one possible implementation, the controller is unable to determine the target state transition rule, indicating that there is an error in the target event information. The controller may discard the target event information and not perform the corresponding state transition. Optionally, the controller may also output a transition failure prompt message to indicate that the state transition failed.
[0062] Step 203: Control the refrigeration equipment to transition from the current state to the next state according to the target state transition strategy.
[0063] After the controller obtains the target state transition strategy, it can control the refrigeration equipment to perform state transition according to the target state transition strategy.
[0064] In a possible implementation, the target state conversion strategy includes multiple conversion steps, and the controller can control the operation of the refrigeration equipment according to each conversion step.
[0065] In another possible implementation, the target conversion strategy may include at least one conversion operation, which may enable the controller to control the operation of a certain device, such as controlling the fan speed to reach 1 revolution per second. In an embodiment of the present application, the controller may control the operation of each device according to the conversion operation included in the target conversion strategy, thereby converting the refrigeration equipment from the current state to the next state.
[0066] In the above embodiment, by dividing the operating state of the refrigeration equipment into multiple state levels, such as child states and parent states, if the current state is a child state, the target state transition strategy can be directly determined according to the event information corresponding to its parent state and the state transition strategy, so as to control the refrigeration equipment to perform state transition according to the target state transition strategy, thereby avoiding the problem of poor control flexibility in the traditional technology that the table lookup structure and branch structure can only traverse the control conditions or table data corresponding to all states to control the operation of the air conditioner due to the lack of obvious state hierarchy division. The technical solution provided by the present application has higher control flexibility. In addition, since the child state can directly inherit the event information and state transition strategy corresponding to the parent state, less memory is required.
[0067] In one embodiment, based on the above Figure 2 The embodiment shown in the present invention relates to a process of determining a target state transition strategy from preset state transition data according to the parent state and target event information. Step 202 may include: determining a target state transition strategy from preset state transition data according to the parent state and target event information.
[0068] In the embodiment of the present application, state transition data may be preset, wherein the state transition data includes a mapping relationship between each state, each event information and each state transition strategy.
[0069] In a possible implementation manner, the state conversion data may further include parameter information of the state conversion data, such as the number of conversion rules, the data structure of the state conversion data, etc.
[0070] The controller can determine the target state transition strategy from the preset state transition data based on the parent state and the target event. In one possible implementation, the controller can determine at least one candidate state transition strategy corresponding to the parent state from the state transition data based on the parent state, and then screen each candidate transition strategy according to the target event information to determine the target state transition strategy.
[0071] In an embodiment of the present application, the controller can determine at least one event information corresponding to the parent state and the mapping relationship between each event information and each candidate state transition strategy from the preset state transition data based on the parent state, thereby determining multiple candidate state transition strategies. Then, the controller can filter the event information corresponding to the parent state according to the target event information, thereby determining the target state transition strategy from the candidate state transition strategies.
[0072] In a possible implementation, when the controller queries the target state transition strategy from the state transition data according to the current state and the target event information, if the target state transition strategy is not found in the state transition data, the controller may determine that the current state is a sub-state.
[0073] In an embodiment of the present application, if the state of a hierarchical state is a sub-state, it can directly inherit the event information and state transition strategy corresponding to the parent state. Therefore, when the controller cannot determine the target state transition strategy based on the current state and the target event information, the controller can first determine that the state hierarchy of the current state is a sub-state, and then determine the target state transition strategy from the parent state corresponding to the current state and the target event information.
[0074] In the above embodiment, the controller can directly determine the target state transition strategy based on the parent state corresponding to the current state and the target event information, so that the preset state transition data can only store the mapping relationship between the parent state and the event information corresponding to each parent state and the state transition strategy. That is, it is only necessary to set the event information and state transition strategy corresponding to the state with the state hierarchy as the parent state, thereby avoiding the need to set a corresponding state transition strategy for each operating state in traditional technology and reducing memory usage.
[0075] In one embodiment, based on the above Figure 2 In the embodiment shown, this embodiment relates to a process of controlling the refrigeration device to switch from a current state to a next state according to a target state switching strategy. Step 203 may include: according to a switching operation included in the target state switching strategy, controlling the device corresponding to the device identifier in the refrigeration device to perform a switching operation to switch to the next state.
[0076] In an embodiment of the present application, the target event information includes a device identification, which can be used to uniquely identify a device used for refrigeration in the refrigeration equipment. The device may include a fan, a compressor, a water valve, an electronic expansion valve, an electric heater, a sensor, etc.
[0077] In an embodiment of the present application, the target state transition strategy may include at least one transition operation. Thus, when the controller obtains the target transition strategy, it can determine the device to be controlled based on the device identifier in the event information, and then, according to the transition operation in the target transition strategy, the controller performs the transition operation to transition the refrigeration equipment to the next state.
[0078] In one possible implementation, in order to ensure the safety of the environment during the state transition process, guard conditions and guard functions can be preset. In this way, before the controller controls the refrigeration equipment to perform state transition according to the target transition strategy, the preset guard function can be called to detect whether the current environment of the refrigeration equipment can perform state transition. Optionally, if the result output by the guard function is a first preset field, such as true, it indicates that the current environment of the refrigeration equipment meets the guard condition and the state transition can be performed. The controller can control the refrigeration equipment to perform state transition according to the target transition strategy; optionally, if the guard function fails to output the first preset field, or outputs the second preset field, such as false, it indicates that the current environment of the refrigeration equipment does not meet the guard condition and the state transition cannot be performed. The controller can generate a conversion failure message to prompt the state transition failure.
[0079] In an embodiment of the present application, in order to enrich the conversion operations in the state transition process, the target state conversion strategy may include, in addition to the conversion operation, a state exit operation and / or a state entry operation, wherein the state exit operation may be an operation performed by the controller to control the refrigeration equipment when exiting the current state, such as recording the current time, controlling the prompt light to flash once, etc. Correspondingly, the state entry operation may be an operation performed when the controller controls the device to execute the conversion strategy and enters the next state.
[0080] Therefore, before the control device performs the conversion operation, the controller may control the device to perform the state exit operation according to the state exit operation included in the target state conversion strategy; and / or, after the control device performs the conversion operation, the controller may control the device to perform the state entry operation according to the state entry operation included in the target state conversion strategy.
[0081] In the above embodiment, the controller can determine the device to be controlled according to the device identifier in the target event information, and then control the operation of the device corresponding to the device identifier according to the conversion operation in the target state conversion strategy, so as to improve the control accuracy.
[0082] In one embodiment, referring to Figure 3 , provides an exemplary control method, which can be applied to Figure 1 In the implementation environment shown.
[0083] Step 301: Receive target event information sent by a host computer and / or generate target event information when a preset condition is met, and store the target event information in an event queue.
[0084] Step 302: Get target event information from the event queue.
[0085] Step 303: Obtain the current state of the refrigeration equipment.
[0086] The target event information is used to represent the next state of the refrigeration equipment.
[0087] Step 304: query the target state transition strategy from the state transition data according to the current state and the target event information.
[0088] Step 305: If the target state transition strategy is not found in the state transition data, it is determined that the current state is a sub-state.
[0089] Step 306: If the state level of the current state is a child state, determine the parent state corresponding to the current state.
[0090] Step 307: Determine at least one candidate state transition strategy corresponding to the parent state from the state transition data according to the parent state.
[0091] Step 308: Screen the candidate conversion strategies according to the target event information to determine the target state conversion strategy.
[0092] The state transition data includes the mapping relationship between each state, each event information and each state transition strategy.
[0093] Step 309: before the control device performs the conversion operation, the control device performs the state exit operation according to the state exit operation included in the target state conversion strategy.
[0094] Step 310: According to the conversion operation included in the target state conversion strategy, the device corresponding to the device identifier in the refrigeration equipment is controlled to perform the conversion operation to convert to the next state.
[0095] The target event information includes a device identifier.
[0096] Step 311: After the control device performs the conversion operation, the control device performs the state entry operation according to the state entry operation included in the target state conversion strategy.
[0097] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0098] Based on the above embodiments, refer to Figure 4 , an exemplary introduction is given to the status hierarchy of refrigeration equipment.
[0099] In an embodiment of the present application, among the states of the refrigeration equipment, the state with the state level as the parent state may include a standby state, a power-on state, a working state, a fault state, and a shutdown state, wherein the working state may include multiple states with the state level as the sub-states, namely, a mechanical refrigeration state, a mixed refrigeration state, a natural cooling state, and an automatic operation state.
[0100] In an embodiment of the present application, after the refrigeration device is powered on, the controller will control the refrigeration device to initialize. The initialization process may include device fault checking, etc. When the initialization is completed, the controller can output an initialization completion event, thereby controlling the refrigeration device to enter a standby state.
[0101] When a power-on event appears in the event queue, the controller can obtain the power-on event in the event queue, thereby switching the refrigeration equipment from the standby state to the power-on state. During the conversion to the power-on state, if the controller obtains an event related to a fault from the event queue, the controller can terminate the conversion process of the power-on state.
[0102] When any sub-state representing the working state appears in the event queue (such as mechanical refrigeration state, mixed refrigeration state, natural cooling state, automatic operation state, etc.), the controller can control the refrigeration equipment to switch to the corresponding sub-state. Regarding the conversion between these four sub-states, special settings can be made according to actual needs. For example, when the current state of the refrigeration equipment is any one of the mechanical refrigeration state, mixed refrigeration state and automatic operation state, if the controller detects changes in the temperature and humidity in the current environment through sensors, the controller cannot switch between these four sub-states.
[0103] When the refrigeration equipment is in these four sub-states, if the controller obtains any fault-related events from the event queue, the controller will control the refrigeration equipment to exit the current state and switch to the fault state. When it detects that it has entered the fault state, the controller can obtain the shutdown event by default and control the refrigeration equipment to switch to the shutdown state; or, if the controller obtains the shutdown event from the event queue, the controller can exit the current state and control the refrigeration equipment to switch to the shutdown state. After the conversion is completed, the controller can receive the standby event by default and control the refrigeration equipment to enter the standby state.
[0104] Based on the same inventive concept, the embodiment of the present application also provides a control device for implementing the control method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more control device embodiments provided below can refer to the limitations on the control method above, and will not be repeated here.
[0105] In an exemplary embodiment, Figure 5 As shown, a control device is provided, including: an acquisition module 501, a strategy determination module 502 and a control module 503, wherein:
[0106] An acquisition module 501 is used to acquire target event information corresponding to the refrigeration equipment and the current state of the refrigeration equipment, where the target event information is used to represent the next state of the refrigeration equipment;
[0107] A strategy determination module 502 is used to determine the parent state corresponding to the current state if the state level of the current state is a sub-state, and obtain a target state transition strategy according to the parent state and target event information;
[0108] The control module 503 is used to control the refrigeration equipment to switch from the current state to the next state according to the target state transition strategy.
[0109] In one embodiment, the policy determination module 502 includes:
[0110] The determination unit is used to determine the target state transition strategy from preset state transition data according to the parent state and the target event information, wherein the state transition data includes the mapping relationship between each state, each event information and each state transition strategy.
[0111] In one embodiment, the determination unit is specifically used to execute: determining at least one candidate state transition strategy corresponding to the parent state from the state transition data according to the parent state; screening each candidate transition strategy according to the target event information to determine the target state transition strategy.
[0112] In one embodiment, the policy determination module 502 further includes:
[0113] A query unit, used to query a target state transition strategy from the state transition data according to the current state and target event information;
[0114] The level determination unit is used to determine that the current state is a sub-state if the target state transition strategy is not found in the state transition data.
[0115] In one embodiment, the target event information includes a device identification, and the control module 503 includes:
[0116] The operation unit is used to control the device corresponding to the device identifier in the refrigeration equipment to perform the conversion operation according to the conversion operation included in the target state conversion strategy, so as to convert to the next state.
[0117] In one embodiment, the control module 503 further includes:
[0118] an exit unit, configured to control the device to execute a state exit operation according to the state exit operation included in the target state transition strategy before the control device executes the transition operation; and / or,
[0119] The entry unit is used to control the device to perform a state entry operation according to the state entry operation included in the target state transition strategy after the control device performs the conversion operation.
[0120] In one embodiment, the control device further comprises:
[0121] An event receiving module is used to receive target event information sent by the host computer and / or generate target event information when preset conditions are met, and store the target event information in an event queue;
[0122] Get the target event information corresponding to the refrigeration equipment, including:
[0123] The event acquisition module is used to obtain target event information from the event queue.
[0124] Each module in the above control device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0125] In an exemplary embodiment, a computer device is provided. The computer device may be a controller, and its internal structure diagram may be as shown in FIG. Figure 6As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store control data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a control method is implemented.
[0126] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0127] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0128] Acquire target event information corresponding to the refrigeration equipment and the current state of the refrigeration equipment, wherein the target event information is used to represent the next state of the refrigeration equipment;
[0129] If the state level of the current state is a sub-state, determining the parent state corresponding to the current state, and acquiring a target state transition strategy according to the parent state and the target event information;
[0130] According to the target state transition strategy, the refrigeration equipment is controlled to transition from the current state to the next state.
[0131] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0132] According to the parent state and the target event information, the target state transition strategy is determined from preset state transition data, wherein the state transition data includes a mapping relationship between each state, each event information and each state transition strategy.
[0133] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0134] Determining at least one candidate state transition strategy corresponding to the parent state from the state transition data according to the parent state;
[0135] The candidate conversion strategies are screened according to the target event information to determine the target state conversion strategy.
[0136] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0137] querying the target state transition strategy from the state transition data according to the current state and the target event information;
[0138] If the target state transition strategy is not found in the state transition data, it is determined that the current state is a sub-state.
[0139] In one embodiment, the target event information includes a device identification, and the processor further implements the following steps when executing the computer program:
[0140] According to the conversion operation included in the target state conversion strategy, the device corresponding to the device identifier in the refrigeration equipment is controlled to perform the conversion operation to convert to the next state.
[0141] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0142] Before controlling the device to perform the conversion operation, controlling the device to perform the state exit operation according to the state exit operation included in the target state conversion strategy; and / or,
[0143] After controlling the device to perform the conversion operation, the device is controlled to perform the state entry operation according to the state entry operation included in the target state conversion strategy.
[0144] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0145] Receiving the target event information sent by the host computer and / or generating the target event information when a preset condition is met, and storing the target event information in an event queue;
[0146] The obtaining of target event information corresponding to the refrigeration equipment includes:
[0147] The target event information is obtained from the event queue.
[0148] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0149] Acquire target event information corresponding to the refrigeration equipment and the current state of the refrigeration equipment, wherein the target event information is used to represent the next state of the refrigeration equipment;
[0150] If the state level of the current state is a sub-state, determining the parent state corresponding to the current state, and acquiring a target state transition strategy according to the parent state and the target event information;
[0151] According to the target state transition strategy, the refrigeration equipment is controlled to transition from the current state to the next state.
[0152] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0153] According to the parent state and the target event information, the target state transition strategy is determined from preset state transition data, wherein the state transition data includes a mapping relationship between each state, each event information and each state transition strategy.
[0154] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0155] Determining at least one candidate state transition strategy corresponding to the parent state from the state transition data according to the parent state;
[0156] The candidate conversion strategies are screened according to the target event information to determine the target state conversion strategy.
[0157] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0158] querying the target state transition strategy from the state transition data according to the current state and the target event information;
[0159] If the target state transition strategy is not found in the state transition data, it is determined that the current state is a sub-state.
[0160] In one embodiment, the target event information includes a device identification, and when the computer program is executed by a processor, the following steps are further implemented:
[0161] According to the conversion operation included in the target state conversion strategy, the device corresponding to the device identifier in the refrigeration equipment is controlled to perform the conversion operation to convert to the next state.
[0162] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0163] Before controlling the device to perform the conversion operation, controlling the device to perform the state exit operation according to the state exit operation included in the target state conversion strategy; and / or,
[0164] After controlling the device to perform the conversion operation, the device is controlled to perform the state entry operation according to the state entry operation included in the target state conversion strategy.
[0165] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0166] Receiving the target event information sent by the host computer and / or generating the target event information when a preset condition is met, and storing the target event information in an event queue;
[0167] The obtaining of target event information corresponding to the refrigeration equipment includes:
[0168] The target event information is obtained from the event queue.
[0169] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0170] Acquire target event information corresponding to the refrigeration equipment and the current state of the refrigeration equipment, wherein the target event information is used to represent the next state of the refrigeration equipment;
[0171] If the state level of the current state is a sub-state, determining the parent state corresponding to the current state, and acquiring a target state transition strategy according to the parent state and the target event information;
[0172] According to the target state transition strategy, the refrigeration equipment is controlled to transition from the current state to the next state.
[0173] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0174] According to the parent state and the target event information, the target state transition strategy is determined from preset state transition data, wherein the state transition data includes a mapping relationship between each state, each event information and each state transition strategy.
[0175] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0176] Determining at least one candidate state transition strategy corresponding to the parent state from the state transition data according to the parent state;
[0177] The candidate conversion strategies are screened according to the target event information to determine the target state conversion strategy.
[0178] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0179] querying the target state transition strategy from the state transition data according to the current state and the target event information;
[0180] If the target state transition strategy is not found in the state transition data, it is determined that the current state is a sub-state.
[0181] In one embodiment, the target event information includes a device identification, and when the computer program is executed by a processor, the following steps are further implemented:
[0182] According to the conversion operation included in the target state conversion strategy, the device corresponding to the device identifier in the refrigeration equipment is controlled to perform the conversion operation to convert to the next state.
[0183] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0184] Before controlling the device to perform the conversion operation, controlling the device to perform the state exit operation according to the state exit operation included in the target state conversion strategy; and / or,
[0185] After controlling the device to perform the conversion operation, the device is controlled to perform the state entry operation according to the state entry operation included in the target state conversion strategy.
[0186] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0187] Receiving the target event information sent by the host computer and / or generating the target event information when a preset condition is met, and storing the target event information in an event queue;
[0188] The obtaining of target event information corresponding to the refrigeration equipment includes:
[0189] The target event information is obtained from the event queue.
[0190] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0191] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0192] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0193] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A control method, characterized in that: The method comprises: Acquire target event information corresponding to the refrigeration equipment and the current state of the refrigeration equipment, wherein the target event information is used to represent the next state of the refrigeration equipment; If the state level of the current state is a sub-state, determining the parent state corresponding to the current state, and acquiring a target state transition strategy according to the parent state and the target event information; According to the target state transition strategy, the refrigeration equipment is controlled to transition from the current state to the next state.
2. The method according to claim 1, characterized in that The acquiring the target state transition strategy according to the parent state and the target event information includes: According to the parent state and the target event information, the target state transition strategy is determined from preset state transition data, wherein the state transition data includes a mapping relationship between each state, each event information and each state transition strategy.
3. The method according to claim 2, characterized in that The step of determining the target state transition strategy from preset state transition data according to the parent state and the target event information includes: Determining at least one candidate state transition strategy corresponding to the parent state from the state transition data according to the parent state; The candidate conversion strategies are screened according to the target event information to determine the target state conversion strategy.
4. The method according to claim 2, characterized in that: The method further comprises: querying the target state transition strategy from the state transition data according to the current state and the target event information; If the target state transition strategy is not found in the state transition data, it is determined that the current state is a sub-state.
5. The method according to claim 1, characterized in that The target event information includes a device identifier, and controlling the refrigeration device to switch from the current state to the next state according to the target state transition strategy includes: According to the conversion operation included in the target state conversion strategy, the device corresponding to the device identifier in the refrigeration equipment is controlled to perform the conversion operation to convert to the next state.
6. The method according to claim 5, characterized in that The method further comprises: Before controlling the device to perform the conversion operation, controlling the device to perform the state exit operation according to the state exit operation included in the target state conversion strategy; and / or, After controlling the device to perform the conversion operation, the device is controlled to perform the state entry operation according to the state entry operation included in the target state conversion strategy.
7. The method according to claim 1, characterized in that The method further comprises: Receiving the target event information sent by the host computer and / or generating the target event information when a preset condition is met, and storing the target event information in an event queue; The obtaining of target event information corresponding to the refrigeration equipment includes: The target event information is obtained from the event queue.
8. A control device, characterized in that: The device comprises: An acquisition module, used to acquire target event information corresponding to the refrigeration equipment and the current state of the refrigeration equipment, wherein the target event information is used to represent the next state of the refrigeration equipment; A strategy determination module, configured to determine the parent state corresponding to the current state if the state level of the current state is a sub-state, and obtain a target state transition strategy according to the parent state and the target event information; The control module is used to control the refrigeration equipment to switch from the current state to the next state according to the target state transition strategy.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.