Air conditioner control method and device based on state machine, air conditioner and computer readable storage medium

CN122611533APending Publication Date: 2026-08-21QINGDAO HAIER SMART TECH R & D CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510192157.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-20
Publication Date
2026-08-21

AI Technical Summary

Technical Problem

相关技术在增加新的功能模式时,需要对程序代码进行大批量修改,导致系统的可扩展性降低

Benefits of technology

[0020]This embodiment of the disclosure determines the target state and current state of the air conditioner after responding to a control command. Then, it searches for a state transition path from the current state to the target state based on the state architecture. Since the state architecture is generated based on the logic between operating modes and is a hierarchical architecture, with each layer's individual state machine corresponding to one operating mode, this embodiment can determine a logically clear state transition path from the current state to the target state based on the state architecture. Following the state transition path, it determines the operation of the air conditioner components in the associated states and controls the air conditioner components to perform corresponding operations. Thus, the hierarchical modular design of the state architecture makes the program code more concise and clear, easier to maintain, and helps reduce system maintenance costs and improve system maintainability. At the same time, the hierarchical modular design of the state architecture can refine and decompose complex control logic into different state machines. When there is a need to modify the mode corresponding to a certain state machine, the mode modification can be completed by modifying the aforementioned state machine without large-scale modifications to the system program code, thereby improving the system's scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122611533A_ABST
    Figure CN122611533A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of refrigeration equipment, and discloses an air conditioner control method based on a state machine, which comprises the following steps: in response to a control instruction, determining a target state and a current state of an air conditioner; searching for a state switching path for switching from the current state to the target state based on a state architecture; wherein the state architecture is a hierarchical architecture generated based on the logic construction between different operation modes; determining air conditioner component operations in a state associated with the state switching path according to the state switching path; and controlling the air conditioner components to perform corresponding operations. The method can improve the scalability and maintainability of the system when the air conditioner system switches between function modes. The application further discloses an air conditioner control device based on the state machine, an air conditioner and a computer readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of refrigeration equipment technology, such as a state machine-based air conditioning control method and device, an air conditioner, and a computer-readable storage medium. Background Technology

[0002] Currently, with the rapid development of science and technology, the functional modes of air conditioning systems are becoming increasingly diversified. In addition to traditional cooling, heating, dehumidification, and air supply modes, air conditioning systems now also offer functions such as negative ion generation, human sensing, sterilization, air purification, and IoT connectivity. Simultaneously, the control methods for air conditioning systems have expanded to include wired controllers, centralized controllers, and IoT-enabled Wi-Fi (Wireless Fidelity). This increase in functional modes and control methods makes the control logic of air conditioning systems more complex.

[0003] The relevant technologies achieve the control of air conditioning systems through simple condition judgments or single-layer state machines.

[0004] In the process of implementing the embodiments of this disclosure, at least the following problems were found in the related art:

[0005] As embedded devices, air conditioners have relatively low chip processing power. Adding new functionalities requires extensive modifications to the program code, reducing system scalability. Furthermore, as the control logic of air conditioning systems becomes more complex, the control methods employed can easily lead to code corruption, resulting in decreased system maintainability.

[0006] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention

[0007] To provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not intended as a general commentary, nor is it intended to identify key / important components or describe the scope of protection of these embodiments, but rather as a prelude to the detailed description that follows.

[0008] This disclosure provides a state machine-based air conditioning control method and apparatus, and an air conditioner, to improve the scalability and maintainability of the air conditioning system when switching functional modes.

[0009] In some embodiments, the method includes: in response to a control command, determining a target state and a current state of the air conditioner; searching a state transition path from the current state to the target state based on a state architecture; wherein the state architecture is a hierarchical architecture generated based on the logic between different operating modes; determining the operation of the air conditioner components in the state associated with the state transition path according to the state transition path; and controlling the air conditioner components to perform corresponding operations.

[0010] In some embodiments, the state architecture is constructed as follows: The operating modes of the air conditioner and the secondary modes and sub-modes within each operating mode are obtained; the first state layer corresponding to each operating mode is constructed; based on the secondary modes within each operating mode, a second-level state machine is constructed to form a second state layer, and a parent-child state relationship is constructed between the operating mode and its corresponding secondary mode; based on the sub-modes within each secondary mode, a third-level state machine is constructed to form a third state layer, and a parent-child state relationship is constructed between the secondary mode and its corresponding sub-mode; based on all state layers and parent-child state relationships, the state architecture is generated.

[0011] In some embodiments, searching for a state transition path from the current state to the target state based on the state architecture includes: determining a common parent state associated with the current state and the target state; wherein, the common parent state represents the parent state that is shared by the current state and the target state and is the closest to it; traversing all parent states between the current state and the common parent state to realize the state transition from the current state to the common parent state; and after completing the state transition from the current state to the common parent state, traversing all child states between the common parent state and the target state to complete the state transition from the current state to the target state.

[0012] In some embodiments, traversing all parent states between the current state and the common parent state to achieve a state transition from the current state to the common parent state includes: determining a first parent state that has a parent-child relationship with the current state; if the first parent state is not the common parent state, controlling the current state to switch to the first parent state; if the current state is not the common parent state, determining a second parent state that has a parent-child relationship with the first parent state, controlling the current state to switch to the second parent state, until the current state after the transition is the common parent state; or, if the current state is the common parent state, determining that the state transition from the current state to the common parent state is complete.

[0013] In some embodiments, traversing all child states between a common parent state and a target state to complete the state transition from the common parent state to the target state includes: determining a first child state that has a parent-child relationship with the current state; if the first child state is not the target state, controlling the current state to switch from the common parent state to the first child state; if the current state is not the target state, determining a second child state that has a parent-child relationship with the first child state, controlling the current state to switch to the second child state, until the current state after the transition is the target state; or, if the current state is the target state, determining to complete the state transition from the common parent state to the target state.

[0014] In some embodiments, the method further includes: obtaining the inheritance pattern in each sub-pattern; constructing a fourth-level state machine corresponding to each inheritance pattern to form a fourth state layer based on the inheritance pattern in each sub-pattern; and constructing a parent-child state relationship between the sub-pattern and its corresponding inheritance pattern.

[0015] In some embodiments, determining the operation of an air conditioning component in a state associated with a state switching path according to the state switching path includes: obtaining a first correspondence between the state and the air conditioning component and a second correspondence between the state and the operation parameters of the air conditioning component; and determining the target air conditioning component corresponding to the target state and the target operation parameters of the target air conditioning component based on the first and second correspondences.

[0016] In some embodiments, the apparatus includes a processor and a memory storing program instructions, the processor being configured to execute the state machine-based air conditioning control method described above when the program instructions are executed.

[0017] In some embodiments, the air conditioner includes: an air conditioner body; and an air conditioner control device based on a state machine as described above, installed on the air conditioner body.

[0018] In some embodiments, the computer-readable storage medium stores program instructions that, when executed, cause the computer to perform the state machine-based air conditioning control method described above.

[0019] The state machine-based air conditioning control method, apparatus, and air conditioner provided in this disclosure can achieve the following technical effects:

[0020] This embodiment of the disclosure determines the target state and current state of the air conditioner after responding to a control command. Then, it searches for a state transition path from the current state to the target state based on the state architecture. Since the state architecture is generated based on the logic between operating modes and is a hierarchical architecture, with each layer's individual state machine corresponding to one operating mode, this embodiment can determine a logically clear state transition path from the current state to the target state based on the state architecture. Following the state transition path, it determines the operation of the air conditioner components in the associated states and controls the air conditioner components to perform corresponding operations. Thus, the hierarchical modular design of the state architecture makes the program code more concise and clear, easier to maintain, and helps reduce system maintenance costs and improve system maintainability. At the same time, the hierarchical modular design of the state architecture can refine and decompose complex control logic into different state machines. When there is a need to modify the mode corresponding to a certain state machine, the mode modification can be completed by modifying the aforementioned state machine without large-scale modifications to the system program code, thereby improving the system's scalability.

[0021] The above general description and the description below are exemplary and illustrative only and are not intended to limit this application. Attached Figure Description

[0022] One or more embodiments are illustrated by way of example with reference to the accompanying drawings. These illustrations and drawings do not constitute a limitation on the embodiments. Elements having the same reference numerals in the drawings are shown as similar elements. The drawings are not to be scaled. And wherein:

[0023] Figure 1 This is a schematic diagram of a state architecture provided in an embodiment of this disclosure;

[0024] Figure 2 This is a schematic diagram of an air conditioning control method based on a state machine provided in an embodiment of this disclosure;

[0025] Figure 3 This is a schematic diagram of another state machine-based air conditioning control method provided in this embodiment of the present disclosure;

[0026] Figure 4 This is a schematic diagram of another state machine-based air conditioning control method provided in this embodiment of the present disclosure;

[0027] Figure 5 This is a schematic diagram of another state machine-based air conditioning control method provided in this embodiment of the present disclosure;

[0028] Figure 6 This is a schematic diagram of another state machine-based air conditioning control method provided in this embodiment of the present disclosure;

[0029] Figure 7This is a schematic diagram of another state machine-based air conditioning control method provided in this embodiment of the present disclosure;

[0030] Figure 8-1 This is a schematic diagram of state switching provided in an embodiment of this disclosure;

[0031] Figure 8-2 This is a schematic diagram of an application of a state architecture provided in an embodiment of this disclosure;

[0032] Figure 9 This is a schematic diagram of an air conditioning control device based on a state machine provided in an embodiment of this disclosure;

[0033] Figure 10 This is a schematic diagram of an air conditioner provided in an embodiment of this disclosure. Detailed Implementation

[0034] To provide a more detailed understanding of the features and technical content of the embodiments of this disclosure, the implementation of the embodiments of this disclosure will be described in detail below with reference to the accompanying drawings. The accompanying drawings are for illustrative purposes only and are not intended to limit the embodiments of this disclosure. In the following technical description, for ease of explanation, several details are used to provide a full understanding of the disclosed embodiments. However, one or more embodiments may still be implemented without these details. In other cases, well-known structures and devices may be simplified in their depiction to simplify the drawings.

[0035] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this disclosure described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion.

[0036] Unless otherwise stated, the term "multiple" means two or more.

[0037] In this embodiment of the disclosure, the character " / " indicates that the objects before and after it are in an "or" relationship. For example, A / B means: A or B.

[0038] The term "and / or" describes an association between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or A and B.

[0039] The term "correspondence" can refer to an association or binding relationship. The correspondence between A and B means that there is an association or binding relationship between A and B.

[0040] Combination Figure 2As shown, this disclosure provides an air conditioning control method based on a state machine, including:

[0041] S01, the air conditioner responds to the control command and determines the target state and current state of the air conditioner.

[0042] S02, the air conditioner searches for a state transition path from the current state to the target state based on the state architecture. The state architecture is a layered architecture generated based on the logic between different operating modes.

[0043] In this step, the state architecture comprises multiple state layers, each containing one or more state machines. Each state machine corresponds to a specific operating mode, and different state machines correspond to different operating modes. (Combined...) Figure 1 As shown, the state architecture consists of N state layers, where N is greater than or equal to 3. The N state layers include a level 1 state layer, a level 2 state layer, a (n-1)th level state machine, and an nth level state layer. Specifically, the level 1 state layer includes m1 state machines, which represent level 1 states 1, ..., m1. The level 2 state layer includes m2 state machines, which represent level 2 states 1, ..., m2. The nth level state layer includes n state machines, which represent state 1, ..., n.

[0044] S03, the air conditioner determines the operation of the air conditioner components in the associated state according to the state switching path.

[0045] S04, the air conditioning control unit performs the corresponding operation.

[0046] The air conditioning control method based on state machines provided in this disclosure determines the target state and current state of the air conditioner after responding to a control command. Then, it searches for a state transition path from the current state to the target state based on the state architecture. Since the state architecture is generated based on the logic between operating modes and is a hierarchical architecture, with each layer's individual state machine corresponding to one operating mode, this disclosure can determine a logically clear state transition path from the current state to the target state based on the state architecture. Following the state transition path, it determines the operation of the air conditioning components in the associated states and controls the air conditioning components to perform corresponding operations. Thus, the hierarchical modular design of the state architecture makes the program code more concise and clear, easier to maintain, and helps reduce system maintenance costs and improve system maintainability. At the same time, the hierarchical modular design of the state architecture can decompose complex control logic into different state machines. When there is a need to modify the mode corresponding to a certain state machine, the mode modification can be completed by modifying the aforementioned state machine without large-scale modifications to the system program code, thereby improving the system's scalability.

[0047] Optionally, combined Figure 3 As shown, the air conditioner constructs its state architecture in the following way:

[0048] S11, the air conditioner obtains the air conditioner's operating mode and the secondary mode and sub-mode of each operating mode.

[0049] S12, the air conditioner constructs the first state layer corresponding to each operating mode.

[0050] S13, the air conditioner constructs a second-level state machine corresponding to each secondary mode according to the secondary mode of each operating mode to form a second state layer, and constructs a parent-child state relationship between the operating mode and the corresponding secondary mode.

[0051] This step involves establishing a parent-child state relationship between the operating mode and its corresponding sub-mode, including: configuring the operating mode as the parent state of its corresponding sub-mode, and configuring the sub-mode as the child state of its corresponding operating mode.

[0052] S14, the air conditioner constructs a third-level state machine corresponding to each sub-mode to form a third state layer based on the sub-mode in each sub-mode, and constructs the parent-child state relationship between the sub-mode and the corresponding sub-mode.

[0053] This step involves establishing the parent-child state relationship between a secondary pattern and its corresponding child pattern, including configuring the secondary pattern as the parent state of its corresponding child pattern and configuring the child pattern as the child state of its corresponding secondary pattern.

[0054] S15, the air conditioner generates a state architecture based on all state layers and parent-child state relationships.

[0055] Thus, some operating modes of the air conditioner have secondary modes, and some secondary modes have sub-modes. As an example, combining... Figure 8-2As shown, the operating mode has a secondary mode upon startup, which includes normal operation, special test, and fault mode. The normal operation secondary mode includes sub-modes, such as cooling, heating, and dehumidification. The special test secondary mode includes sub-modes, such as special cooling and special heating. To obtain a state architecture with clear logical relationships, this embodiment of the disclosure, after obtaining the operating mode and its secondary modes and sub-modes, first constructs the first state layer corresponding to each operating mode. Then, based on the secondary modes under each operating mode, it constructs the second-level state machine corresponding to each secondary mode to form the second state layer and establishes the parent-child state relationship between the operating mode and its corresponding secondary mode. Finally, based on the sub-modes under each secondary mode, it constructs the third-level state machine corresponding to each sub-mode to form the third state layer and establishes the parent-child state relationship between the secondary mode and its corresponding sub-mode. Thus, this embodiment of the disclosure can construct and generate a state architecture based on all state layers and parent-child state relationships, thereby modularizing the complex control logic in layers, which helps reduce system maintenance costs and improve system maintainability.

[0056] It should be noted that the correspondence between the operating mode and the secondary mode, and the correspondence between the secondary mode and the sub-mode, is set during the air conditioner's manufacturing process. After the air conditioner leaves the factory, the functional modes are modified or added through the state layer of the maintenance state architecture.

[0057] Optionally, combined Figure 4 and Figure 8-1 As shown, the air conditioner searches for a state transition path from the current state to the target state based on the state architecture, including:

[0058] S21, the air conditioner determines the common parent state associated with the current state and the target state. The common parent state refers to the nearest parent state shared by both the current state and the target state.

[0059] In this step, the common parent state represents the nearest parent state shared by the current state and the target state. It should be noted that for a given state, all parent states of the corresponding pattern are parent states of that pattern. All child states of the corresponding pattern are child states. Here, parent patterns represent the patterns from the previous state level to the first state level, and child patterns represent the patterns from the next state level to the last state level. Figure 8-2 As shown, as an example, for cooling, the superior mode corresponding to the cooling mode includes normal operation and start-up, and the subordinate mode corresponding to the cooling mode includes normal cooling, powerful cooling, and energy-saving cooling. As another example, for special testing, the superior mode corresponding to the special testing mode includes start-up, and the subordinate mode corresponding to the special testing mode includes special cooling, special heating, special cooling test, and special heating test.

[0060] S22, the air conditioner traverses all parent states between the current state and the common parent state to achieve the state switch from the current state to the common parent state.

[0061] S23, after the air conditioner completes the state transition from the current state to the common parent state, it traverses all the sub-states between the common parent state and the target state to complete the state transition from the current state to the target state.

[0062] In this embodiment, the common parent state associated with the current state and the target state is first determined. Then, all parent states self-checked by the current state and the common parent state are traversed to achieve a state transition from the current state to the common parent state. After completing the state transition from the current state to the common parent state, all child states between the common parent state and the target state are traversed to complete the state transition from the current state to the target state. Thus, this embodiment can trace back to the common parent state based on the current state and its logically related parent states, and then sequentially perform state transitions based on the logical relationship between the common parent state and the target state, thereby completing the state transition from the current state to the target state. This embodiment can quickly and reliably complete state transitions based on a layered and modular architecture, improving system maintainability, response speed, and performance.

[0063] As an example, combined Figure 8-2 As shown, when the current state corresponds to normal cooling and the target state corresponds to a special heating test, the air conditioner searches for a state transition path from the current state to the target state based on the state architecture, including:

[0064] First, the air conditioner uses a state architecture to find the common parent state of normal cooling and special heating tests, which is "on".

[0065] Then, the air conditioner traverses all parent states between the normal cooling and the start-up state, that is, it switches between normal cooling, normal operation and start-up in sequence to complete the state switch from normal cooling to the common parent state.

[0066] Finally, the air conditioner goes through all the sub-states between the start-up and the special heating test, that is, it switches between the start-up, special heating and special heating test states in sequence to complete the state switch from start-up to special heating test for normal cooling.

[0067] Optionally, combined Figure 5 As shown, the air conditioner traverses all parent states between the current state and the common parent state to achieve the state transition from the current state to the common parent state, including:

[0068] S31, the air conditioner determines the first parent state that has a parent-child relationship with the current state.

[0069] S32, the air conditioner determines whether the first parent state is a common parent state; if not, proceed to step S33.

[0070] S33, the current state of the air conditioning control is switched to the first parent state.

[0071] S34, the air conditioner determines whether the current state is a common parent state; if not, proceed to step S35; if yes, proceed to step S36.

[0072] S35, the air conditioner determines the second parent state that has a parent-child relationship with the first parent state, controls the current state to switch to the second parent state, and returns to the execution step S34.

[0073] S36, the air conditioner confirms that it has completed the state transition from the current state to the common parent state.

[0074] To achieve the state transition from the current state to the common parent state, this embodiment first determines a first parent state that has a parent-child relationship with the current state, and then determines whether the first parent state is a common parent state. If not, it indicates that a search for a common parent state needs to continue and the state transition needs to continue. At this time, this embodiment controls the current state to switch to the first parent state. After switching to the first parent state, it determines whether the current state is a common parent state. If not, it indicates that a search for a common parent state needs to be conducted again and the state transition needs to continue. At this time, this embodiment determines a second parent state that has a parent-child relationship with the first parent state and controls the current state to switch to the second parent state. When it is determined that the current state is a common parent state, it is determined that the state transition from the current state to the common parent state has been successfully completed. This embodiment completes the state transition operation from the current state to the common parent state through state judgment during the state transition process.

[0075] Optionally, combined Figure 6 As shown, the air conditioner traverses all child states between the common parent state and the target state to complete the state transition from the common parent state to the target state, including:

[0076] S41, the air conditioner determines the first child state that has a parent-child relationship with the current state.

[0077] S42, the air conditioner determines whether the first sub-state is the target state; if not, proceed to step S43.

[0078] S43, the current state of the air conditioning control changes from the common parent state to the first child state.

[0079] S44, the air conditioner determines whether the current state is the target state; if not, proceed to step S45; if yes, proceed to step S46.

[0080] S45, the air conditioner determines the second child state that has a parent-child relationship with the first child state, controls the current state to switch to the second child state, and returns to the execution step S44.

[0081] S46, the air conditioner confirms that the current state has been switched from the common parent state to the target state.

[0082] In order to achieve the state transition from the current state to the target state, this embodiment first determines the first child state that has a parent-child relationship with the current state, and then determines whether the first child state is the target state. If not, it indicates that the search for the target state needs to continue and the state transition needs to continue. At this time, this embodiment controls the current state to switch to the first child state. After switching to the first child state, it is determined whether the current state is the target state. If not, it indicates that the search for child states needs to be conducted again and the state transition needs to continue. At this time, this embodiment determines the second child state that has a parent-child relationship with the first child state and controls the current state to switch to the second child state. When the current state is determined to be the target state, it is determined that the state transition from the current state to the target state has been successfully completed. This embodiment completes the state transition operation from the current state to the target state through state judgment during the state transition process.

[0083] Optionally, combined Figure 7 As shown, the air conditioner constructs its state architecture in the following way:

[0084] S51, the air conditioner obtains the air conditioner's operating mode and the secondary mode under each operating mode, the sub-mode under each secondary mode, and the inherited mode under each sub-mode.

[0085] S52, the air conditioner constructs the first state layer corresponding to each operating mode.

[0086] S53, the air conditioner constructs a second-level state machine corresponding to each secondary mode according to the secondary mode of each operating mode to form a second state layer, and constructs the parent-child state relationship between the operating mode and the corresponding secondary mode.

[0087] S54, the air conditioner constructs a third-level state machine corresponding to each sub-mode to form a third state layer based on the sub-mode in each sub-mode, and constructs the parent-child state relationship between the sub-mode and the corresponding sub-mode.

[0088] S55, the air conditioner constructs the fourth-level state machine corresponding to each inheritance mode to form the fourth state layer according to the inheritance mode in each sub-mode, and constructs the parent-child state relationship between the sub-mode and the corresponding inheritance mode.

[0089] S56, the air conditioner generates a state architecture based on all state layers and parent-child state relationships.

[0090] In this way, the layered and modular design of the state architecture makes the program code more concise, clear, and easier to maintain, which helps reduce system maintenance costs and improve system maintainability. At the same time, the layered and modular design of the state architecture can break down complex control logic into different state machines. When a new pattern needs to be added based on the original state architecture, the addition of the pattern can be completed by building a new state machine and a new state layer, without requiring large-scale modifications to the system program code, thereby improving the system's scalability.

[0091] It should be noted that after constructing the state architecture of the air conditioner, if the inheritance pattern also corresponds to a child inheritance pattern, the state architecture can be extended by referring to the parent-child state relationship construction method between the child pattern and the inheritance pattern. Understandably, the number of new state layers in the state architecture can be set according to the actual application requirements of the air conditioner, and this embodiment does not impose specific limitations on this.

[0092] Optionally, the air conditioner determines the operation of the air conditioner components in the associated state according to the state switching path, including:

[0093] The air conditioner obtains a first correspondence between its status and the air conditioner components, and a second correspondence between its status and the operating parameters of the air conditioner components.

[0094] Based on the first and second correspondences, the air conditioner determines the target air conditioning component and the target operating parameters of the target air conditioning component corresponding to the target state.

[0095] The air conditioning components include air conditioning parts such as compressors, evaporators, condensers, and four-way valves, and the operating parameters represent the operating parameters of the above-mentioned air conditioning components.

[0096] Thus, the embodiments of this disclosure can accurately determine the air conditioning components and their operating parameters corresponding to the target state based on the above correspondence, enabling the corresponding air conditioning components to respond quickly, improving response speed, and optimizing system performance.

[0097] Combination Figure 9 As shown, this disclosure provides a state machine-based air conditioning control device 70, including a processor 700 and a memory 701. Optionally, the device 70 may further include a communication interface 702 and a bus 703. The processor 700, communication interface 702, and memory 701 can communicate with each other via the bus 703. The communication interface 702 can be used for information transmission. The processor 700 can call logical instructions in the memory 701 to execute the state machine-based air conditioning control method of the above embodiment.

[0098] Furthermore, the logic instructions in the aforementioned memory 701 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.

[0099] The memory 701, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of this disclosure. The processor 700 executes functional applications and data processing by running the program instructions / modules stored in the memory 701, thereby implementing the state machine-based air conditioning control method in the above embodiments.

[0100] The memory 701 may include a program storage area and a data storage area. The program storage area may store the operating system and application programs required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 701 may include high-speed random access memory and may also include non-volatile memory.

[0101] Combination Figure 10 As shown, this disclosure provides an air conditioner 100, including an air conditioner body and the aforementioned state machine-based air conditioner control device 70. The state machine-based air conditioner control device 70 is installed on the air conditioner body. The installation relationship described herein is not limited to placement inside the air conditioner body, but also includes installation connections with other components of the air conditioner 100, including but not limited to physical connections, electrical connections, or signal transmission connections. Those skilled in the art will understand that the state machine-based air conditioner control device 70 can be adapted to any feasible air conditioner body, thereby realizing other feasible embodiments.

[0102] This disclosure provides a computer-readable storage medium storing computer-executable instructions configured to execute the aforementioned state machine-based air conditioning control method.

[0103] The technical solutions of this disclosure can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes one or more instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in this disclosure. The aforementioned storage medium can be a non-transitory storage medium, such as a USB flash drive, external hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk, etc., and other media capable of storing program code.

[0104] The foregoing description and accompanying drawings fully illustrate embodiments of this disclosure to enable those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, procedural, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the order of operation may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the terminology used in this application is for describing embodiments only and is not intended to limit the claims. As used in the description of embodiments and claims, the singular forms “a,” “an,” and “the” are intended to equally include the plural forms unless the context clearly indicates otherwise. Similarly, the term “and / or” as used in this application means including one or more of the associated listed items and all possible combinations thereof. Additionally, when used in this application, the term "comprise" and its variations "comprises" and / or "comprising" refer to the presence of stated features, integrals, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof. Without further limitations, an element defined by the phrase "comprises a..." does not exclude the presence of other identical elements in the process, method, or apparatus that includes said element. In this document, each embodiment may focus on the differences from other embodiments, and similar or identical parts between embodiments can be referred to mutually. For methods, products, etc., disclosed in the embodiments, if they correspond to the method section disclosed in the embodiments, the relevant parts can be referred to the description of the method section.

[0105] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this disclosure. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0106] The methods and products (including but not limited to devices and equipment) disclosed in the embodiments herein can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of units may be merely a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the shown or discussed units may be through some interfaces, and the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected to implement this embodiment according to actual needs. Furthermore, the functional units in the embodiments of this disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0107] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than that shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different blocks may also occur in a different order than disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. Each block in a block diagram and / or flowchart, and combinations of blocks in a block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

Claims

1. An air conditioning control method based on a state machine, characterized in that, include: In response to control commands, determine the target state and current state of the air conditioner; The search is based on a state architecture to find the state transition path from the current state to the target state; where the state architecture is a layered architecture generated by the logic between different operating modes. According to the state transition path, determine the operation of the air conditioning components in the state associated with the state transition path; Control the air conditioning components to perform corresponding operations.

2. The method according to claim 1, characterized in that, Construct the state architecture as follows: Obtain the operating mode of the air conditioner, the secondary mode under each operating mode, and the sub-mode under each secondary mode; Construct the first state layer corresponding to each operating mode; Based on the secondary modes in each operating mode, construct the second-level state machine corresponding to each secondary mode to form the second state layer, and construct the parent-child state relationship between the operating mode and the corresponding secondary mode. Based on the sub-patterns in each sub-pattern, construct the third-level state machine corresponding to each sub-pattern to form the third state layer, and construct the parent-child state relationship between the sub-pattern and the corresponding sub-pattern. A state architecture is generated based on all state layers and parent-child state relationships.

3. The method according to claim 2, characterized in that, Based on state architecture, search for state transition paths from the current state to the target state, including: Determine the common parent state that is associated with the current state and the target state; where the common parent state is the nearest parent state that is shared by the current state and the target state; Iterate through all parent states between the current state and the common parent state to achieve the state transition from the current state to the common parent state; After completing the state transition from the current state to the common parent state, traverse all child states between the common parent state and the target state to complete the state transition from the current state to the target state.

4. The method according to claim 3, characterized in that, Traverse all parent states between the current state and the common parent state to achieve the state transition from the current state to the common parent state, including: Determine the first parent state that has a parent-child relationship with the current state; If the first parent state is not a common parent state, control the current state to switch to the first parent state; If the current state is not a common parent state, determine a second parent state that has a parent-child relationship with the first parent state, and control the current state to switch to the second parent state, until the current state after the switch becomes a common parent state; or... If the current state is a common parent state, determine whether the state transition from the current state to the common parent state is complete.

5. The method according to claim 3, characterized in that, Traverse all child states between the common parent state and the target state to complete the state transition from the common parent state to the target state, including: Determine the first child state that has a parent-child relationship with the current state; If the first child state is not the target state, control the current state to switch from the common parent state to the first child state; If the current state is not the target state, determine the second child state that has a parent-child relationship with the first child state, and control the current state to switch to the second child state until the current state after the switch is the target state; or... If the current state is the target state, determine the state transition from the current state to the target state by the common parent state.

6. The method according to claim 2, characterized in that, Also includes: Obtain the inheritance pattern for each sub-pattern; Based on the inheritance pattern in each sub-pattern, construct the fourth-level state machine corresponding to each inheritance pattern to form the fourth state layer; Construct the parent-child relationship between the sub-pattern and its corresponding inherited pattern.

7. The method according to any one of claims 1 to 6, characterized in that, According to the state transition path, determine the operation of the air conditioning components in the associated state of the state transition path, including: Obtain the first correspondence between the state and the air conditioning component, and the second correspondence between the state and the operating parameters of the air conditioning component; Based on the first and second correspondences, the target air conditioning component corresponding to the target state and the target operating parameters of the target air conditioning component are determined.

8. A state machine-based air conditioning control device, comprising a processor and a memory storing program instructions, characterized in that, The processor is configured to execute the state machine-based air conditioning control method as described in any one of claims 1 to 7 when running the program instructions.

9. An air conditioner, characterized in that, include: Air conditioner unit; The state machine-based air conditioning control device as described in claim 8 is installed on the air conditioning unit.

10. A computer-readable storage medium storing program instructions, characterized in that, When the program instructions are executed, they cause the computer to perform the state machine-based air conditioning control method as described in any one of claims 1 to 7.