Air conditioner and control method thereof
By using the connection status of the network module and the network server to manage the storage location of the power-off memory parameters of the air conditioner, the problem of limited number of eeprom writing times is solved, extending the service life of the storage module and ensuring the real-timeness of the parameters.
Patent Information
- Application Number
- CN202311075509.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-24
- Publication Date
- 2025-02-25
AI Technical Summary
In existing air conditioners, the number of times of writing eeprom is limited. If the frequency of writing parameters of power outage memory is too high, it will cause the eeprom to run out of life and fail, causing the air conditioner to fail to work normally.
The storage location of the power outage memory parameters is determined through the connection status of the network module and the network server. It is stored to the network server when connected, and stored to the storage module when it is not connected or the connection is interrupted, reducing the number of times the storage module is written.
The service life of the storage module is extended, ensuring real-time recording of power-off memory parameters, and reducing the writing frequency to eeprom.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of air conditioners, and in particular to an air conditioner and a control method thereof. Background Art
[0002] Generally, when the air conditioner is running, its power-off memory parameters will be written into the eeprom in real time for backup, so that when the air conditioner is switched from the power-off state to the power-on state, the power-off memory parameters can be read from the eeprom and executed. However, the number of times the eeprom is burned is generally 100,000 to 1 million times. If the frequency of writing the power-off memory parameters into the eeprom is too high, it will cause the life of the eeprom to be exhausted in a short period of time, making the eeprom invalid. If the power-off memory parameters are written once every five minutes on average, the number of burns will reach 1 million times in about ten years. For an eeprom with only 100,000 burns, its service life will reach its end in one year, causing the air conditioner to be unable to work normally. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the purpose of the present invention is to provide an air conditioner and a control method thereof.
[0004] The present invention provides an air conditioner, comprising: a casing; a refrigerant circulation loop, arranged in the casing, so that the refrigerant circulates in a loop composed of a compressor, a condenser, an expansion valve, an evaporator, a four-way valve and a pressure reducer; a refrigeration system, arranged in the casing, which performs heat exchange between the refrigerant and indoor air in a compression refrigeration cycle of the refrigerant circulation loop, the refrigeration system comprising the compressor, the compressor being used to compress low-temperature and low-pressure refrigerant gas into high-temperature and high-pressure refrigerant gas and discharge it to the condenser; an indoor fan, used to drive the indoor air to pass through an indoor heat exchanger so that the refrigerant and the indoor air perform heat exchange; an indoor fan, used to drive the indoor fan to rotate; a network module, arranged in the casing, used to connect to a network server; a storage module, arranged in the casing, used to store power-off memory parameters of the air conditioner; a controller, connected to the network module and the storage module, the controller being configured to: determine that the power-off memory parameters change; and store the power-off memory parameters in the network server or the storage module according to the connection state between the network module and the network server.
[0005] In addition, the air conditioner according to the embodiment of the present invention may also have the following additional technical features:
[0006] Furthermore, when the power-off memory parameters are stored in the network server or the storage module according to the connection status between the network module and the network server, the controller is specifically configured as follows: when the network module is connected to the network server, the changed power-off memory parameters are stored in the network server through the network module; when it is determined that the network module and the network server are not connected, the changed power-off memory parameters are stored in the storage module; when it is determined that the connection between the network module and the network server changes to disconnection, the changed power-off memory parameters are stored in the storage module.
[0007] Furthermore, after storing the changed power-off memory parameters in the storage module, the controller is also configured to: determine whether the network module is reconnected to the network server; when it is determined that the network module is reconnected to the network server, synchronize the power-off memory parameters stored in the storage module to the network server; when it is determined that the network module is not reconnected to the network server, continue to store the changed power-off memory parameters in the storage module.
[0008] Furthermore, after storing the changed power-off memory parameters in the network server through the network module, the controller is also configured to: synchronize the power-off memory parameters stored in the network server to the storage module every first preset time.
[0009] Furthermore, when the changed power-off memory parameters are stored in the network server through the network module, the controller is configured to: send a power-off memory parameter backup instruction to the network module, so that the network module sends the power-off memory parameters to the network server for storage and backup, and returns a backup success message after the storage and backup are completed; within a second preset time, if the backup success message returned by the network module is received, it is determined that the power-off memory parameters are successfully stored in the network server; if the backup success message returned by the network module is not received, the power-off memory parameter backup instruction is sent to the network module again every third preset time, and after the number of consecutive sending of the power-off memory parameter backup instruction to the network module reaches a first preset number of times and the backup success message returned by the network module is still not received, the changed power-off memory parameters are stored in the storage module.
[0010] Furthermore, the power-off memory parameters include: at least one of the on / off state, operation mode, set temperature, wind speed, filter time and operation time of the air conditioner.
[0011] Further, when storing the changed power-off memory parameter into the storage module, the controller is configured to: control the frequency of storing the corresponding power-off memory parameter into the storage module according to the type of the power-off memory parameter.
[0012] Furthermore, when storing the changed power-off memory parameter to the storage module, the controller is configured to reduce the writing frequency of the power-off memory parameter when the number of writing times of the storage module reaches a second preset number.
[0013] Furthermore, the controller is also configured to: determine whether the air conditioner is powered on; within a fourth preset time, determine whether the network module is connected to the network server; when it is determined that the network module is connected to the network server, read the power-off memory parameters stored in the network server through the network module; when it is determined that the network module is not connected to the network server, read the power-off memory parameters stored in the storage module.
[0014] Furthermore, when the power-off memory parameters stored in the network server are read through the network module, the controller is configured to: send a power-off memory parameter query instruction to the network module; within the fifth preset time, if the power-off memory parameters returned by the network module are received, update the corresponding power-off memory parameters; if the power-off memory parameters returned by the network module are not received, read the power-off memory parameters stored in the storage module, and update the corresponding power-off memory parameters.
[0015] According to an air conditioner of an embodiment of the present invention, the air conditioner includes: a casing, a refrigerant circulation loop, a refrigeration system, an indoor fan, an indoor blower, a network module, a storage module and a controller. The controller is configured to: determine that a power-off memory parameter has changed; store the power-off memory parameter in the network server or the storage module according to the connection status between the network module and the network server, which greatly reduces the number of writes to the storage module and extends the service life of the storage module. At the same time, the real-time recording of the power-off memory parameter is also guaranteed. Further, the frequency of storing the corresponding power-off memory parameter in the storage module is controlled according to the type of the power-off memory parameter, and when the number of writes to the storage module reaches a second preset number, the writing frequency of the power-off memory parameter is reduced, which can further reduce the number of writes to the storage module and extend the service life of the storage module.
[0016] In response to the above-mentioned problems, the present invention also proposes a control method for an air conditioner, comprising: determining that a power-off memory parameter has changed; and storing the power-off memory parameter in the network server or the storage module according to the connection status between the network module and the network server.
[0017] According to the control method of the air conditioner of the embodiment of the present invention, by determining that the power-off memory parameter changes, the power-off memory parameter is stored in the network server or storage module according to the connection status between the network module and the network server, which greatly reduces the number of writes to the storage module and extends the service life of the storage module. At the same time, the real-time recording of the power-off memory parameter is also guaranteed. Further, the frequency of storing the corresponding power-off memory parameter in the storage module is controlled according to the type of the power-off memory parameter, and when the number of writes to the storage module reaches a second preset number, the writing frequency of the power-off memory parameter is reduced, which can further reduce the number of writes to the storage module and extend the service life of the storage module.
[0018] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0020] Figure 1 is a structural schematic diagram of an air conditioner according to an embodiment of the present invention;
[0021] Figure 2 It is a flow chart of storing power-off memory parameters in a network server or a storage module according to a connection state between a network module and a network server according to an embodiment of the present invention;
[0022] Figure 3 is a flow chart after storing the changed power-off memory parameters in the storage module according to one embodiment of the present invention;
[0023] Figure 4 is a flow chart of storing the changed power-off memory parameters to the network server through the network module according to an embodiment of the present invention;
[0024] Figure 5 is a flow chart of reading power-off memory parameters of an air conditioner according to an embodiment of the present invention;
[0025] Figure 6 is a flow chart of reading power-off memory parameters stored in a network server through a network module according to an embodiment of the present invention;
[0026] Figure 7 is a flow chart of a method for controlling an air conditioner according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0028] In the description of the present invention, it should be understood that the terms "center", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0029] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "plurality" means two or more.
[0030] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0031] Reference below Figure 1-Figure 7 An air conditioner and a control method thereof according to an embodiment of the present invention are described.
[0032] Figure 1 FIG. 1 is a schematic diagram of the structure of an air conditioner according to an embodiment of the present invention. Figure 1As shown, an air conditioner 10 includes: a casing 11, a refrigerant circulation loop 12, a refrigeration system 13, an indoor fan 14, an indoor blower 15, a network module 16, a controller 17 and a storage module 18; wherein the refrigerant circulation loop 12 is arranged in the casing 11, so that the refrigerant circulates in a loop composed of a compressor, a condenser, an expansion valve, an evaporator, a four-way valve and a pressure reducer; the refrigeration system 13 is arranged in the casing 11, and performs heat exchange between the refrigerant and the indoor air in the compression refrigeration cycle of the refrigerant circulation loop 12, and the refrigeration system 13 includes a compressor, which is used to compress the low-temperature and low-pressure refrigerant gas into a high-temperature and high-pressure refrigerant gas The indoor fan 14 is used to drive the indoor air to pass through the indoor heat exchanger so that the refrigerant and the indoor air can exchange heat; the indoor fan 15 is used to drive the indoor fan 14 to rotate; the network module 16 is arranged in the casing 11, and is used to connect to the network server; the storage module 18 is arranged in the casing 11, and is used to store the power-off memory parameters of the air conditioner; the controller 17 is connected to the network module 16 and the storage module 18, and the controller 17 is configured to: determine whether the power-off memory parameters change; store the power-off memory parameters in the network server 16 or the storage module 18 according to the connection status between the network module 16 and the network server.
[0033] Specifically, when the air conditioner is in operation, when it is determined that the power-off memory parameter has changed, the power-off memory parameter will be written to the network server in real time for backup. For example, the changed power-off memory parameter is written to the storage module 18 once every 5 minutes, so that when the air conditioner 10 is powered off and then powered on, the power-off memory parameter before the power-off can be read from the storage module 18 and executed, and the function set before the power-off can be accurately operated. However, the number of times the storage module 18 can be burned is limited. In order to extend the service life of the storage module 18, when the power-off memory parameter changes, the embodiment of the present invention stores the power-off memory parameter in the network server or the storage module 18 according to the connection status between the network module 16 and the network server, so that when the network module 16 and the network server are in a connected state, the power-off memory parameter is stored in the network server, thereby reducing the number of writes to the storage module 18 and extending the service life of the storage module 18. At the same time, the real-time recording of the power-off memory parameter can also be guaranteed.
[0034] In one embodiment of the present invention, Figure 2As shown, when the power-off memory parameters are stored in the network server or the storage module according to the connection status between the network module and the network server, the controller is specifically configured as follows: when the network module is connected to the network server, the changed power-off memory parameters are stored in the network server through the network module; when it is determined that the network module and the network server are not connected, the changed power-off memory parameters are stored in the storage module; when it is determined that the connection between the network module and the network server changes to disconnection, the changed power-off memory parameters are stored in the storage module. Specifically, the power-off memory parameters include: at least one of the on / off status, operation mode, set temperature, wind speed, filter time and operation time of the air conditioner.
[0035] Specifically, in the air conditioner, eeprom (Electrically Erasable Programmable Read-Only Memory) is generally used as a storage module, which is a non-volatile memory technology. Eeprom can erase and write data through electronic operation, and does not require continuous power supply to keep the data. In this way, when the power-off memory parameter changes, the storage module can update the power-off memory parameter in real time. In a specific embodiment, when the power-off memory parameter changes, and it is determined that the network module and the network server are in a connected state, the network module first encapsulates the changed power-off memory parameter into a data packet, and sends it to the network server through a wide area network or a local area network, so that the changed power-off memory parameter is stored on the network server, reducing the number of write times of the storage module; and when the power-off memory parameter changes, it is determined that the network module and the network server are in a disconnected state, or when it is determined that the network module and the network server change from a connected state to a disconnected state, the changed power-off memory parameter is stored in the eeprom, so as to avoid losing the changed power-off memory parameter after the network connection is disconnected. It can be understood that, under the condition of ensuring that the network module is connected to the network server for a long time, the embodiment of the present invention can greatly reduce the number of write times of the storage module, thereby extending the service life of the storage module.
[0036] In one embodiment of the present invention, Figure 3 As shown, after storing the changed power-off memory parameters in the storage module, the controller is also configured to: determine whether the network module is reconnected to the network server; when it is determined that the network module is reconnected to the network server, synchronize the power-off memory parameters stored in the storage module to the network server; when it is determined that the network module is not reconnected to the network server, continue to store the changed power-off memory parameters in the storage module.
[0037] Specifically, when the changed power-off memory parameters are stored in the storage module, it is considered that the network module and the network server are not in a connected state, and the changed power-off memory parameters cannot be stored in the network server. When the network module and the network server are changed from a non-connected state to a connected state, if the air conditioner is powered off and then powered on, the power-off memory parameters before the power-off will be read and executed from the network server first. In order to ensure that the power-off memory parameters in the network server are the latest power-off memory parameters, after the changed power-off memory parameters are stored in the storage module, the embodiment of the present invention detects in real time whether the network module is reconnected to the network server, so that when the network module is reconnected to the network server, the power-off memory parameters stored in the storage module are synchronized to the network server, that is, the power-off memory parameters in the network server are updated, so as to ensure that when the air conditioner is powered off and then powered on, the latest power-off memory parameters can be read and executed from the network server. When it is determined that the network module is not reconnected to the network server, the changed power-off memory parameters can be stored in the storage module to ensure that the power-off memory parameters in the storage module are the latest power-off memory parameters.
[0038] In one embodiment of the present invention, after the changed power-off memory parameters are stored in the network server through the network module, the controller is further configured to: synchronize the power-off memory parameters stored in the network server to the storage module every first preset time.
[0039] Specifically, the first preset time can be preset and stored in the controller. When the changed power-off memory parameter is stored in the network server, it is considered that the network module and the network server are in a connected state, and the changed power-off memory parameter will not be stored in the storage module, and the connection state between the network module and the network server is uncertain, that is, at a certain uncertain time, the network module and the network server may suddenly change from a connected state to a non-connected state, and the air conditioner cannot read and execute the latest power-off memory parameter from the network server through the network module. Therefore, the embodiment of the present invention synchronizes the power-off memory parameter stored in the network server to the storage module every first preset time, that is, updates the power-off memory parameter in the storage module, so as to ensure that when the air conditioner is powered off and then powered on, when the network module and the network server are in a non-connected state, the latest power-off memory parameter can be read and executed from the storage module to prevent the changed power-off memory parameter from being unable to be obtained online. That is, by synchronizing the power-off memory parameter stored in the network server to the storage module every once in a while, it is ensured that even when the network module is not online, the air conditioner can read and execute the latest power-off memory parameter from the storage module. In a specific embodiment, the first preset time can be adjusted according to the network usage environment of the air conditioner. For example, when the network environment of the air conditioner is relatively good and network disconnection does not occur frequently, the first preset time can be set longer to further reduce the number of write times of the storage module. When the network environment of the air conditioner is relatively poor and network disconnection occurs frequently, the first preset time can be set shorter to ensure that when the air conditioner is powered off and then powered on, it can read and execute the latest power-off memory parameters from the storage module in time and accurately run the functions set before the power off.
[0040] In one embodiment of the present invention, Figure 4 As shown, when the changed power-off memory parameters are stored in the network server through the network module, the controller is configured to: send a power-off memory parameter backup instruction to the network module so that the network module sends the power-off memory parameters to the network server for storage and backup, and return a backup success message after the storage and backup are completed; within the second preset time, if the backup success message returned by the network module is received, it is determined that the power-off memory parameters are successfully stored in the network server; if the backup success message returned by the network module is not received, then every third preset time, the power-off memory parameter backup instruction is sent to the network module again, and after the number of consecutive sending of the power-off memory parameter backup instruction to the network module reaches the first preset number of times and the backup success message returned by the network module is still not received, the changed power-off memory parameters are stored in the storage module.
[0041] Specifically, the second preset time, the third preset time and the first preset number of times can be pre-set and stored in the controller. The second preset time can be used to know whether the network server has successfully backed up the power-off memory parameters. Since the network server may not be able to store the power-off memory parameters due to a fault, the first preset number of times is set. When the controller continuously sends the power-off memory parameter backup instruction to the network module for the first preset number of times and still has not received the backup success information returned by the network module, it is considered that the power-off memory parameters cannot be successfully backed up on the network server, that is, the power-off memory parameters cannot be backed up through the network server.
[0042] In a specific embodiment, when the changed power-off memory parameters (for example, the power-on / off state changes from off to on) are stored in the network server through the network module, the controller sends a power-off memory parameter backup instruction to the network module to transfer the power-off memory parameters to the network server for backup. After the network server is successfully backed up, within the second preset time, for example, 0.01 seconds, the controller receives the backup success information returned by the network module, and then determines that the power-off memory parameters are successfully stored in the network server. If the controller does not receive the backup success information returned by the network module within the second preset time of 0.01 seconds, the power-off memory parameter backup instruction is sent to the network module again every third preset time, for example, 1 second. After the number of consecutive power-off memory parameter backup instructions sent to the network module reaches the first preset number of times, for example, five times, the backup success information returned by the network module is still not received, and it is considered that the changed power-off memory parameters cannot be stored in the network server, and the changed power-off memory parameters are stored in the storage module to ensure the real-time recording of the power-off memory parameters.
[0043] In one embodiment of the present invention, when storing the changed power-off memory parameters in the storage module, the controller is configured to: control the frequency of storing the corresponding power-off memory parameters in the storage module according to the type of the power-off memory parameters.
[0044] Specifically, different types of power-off memory parameters have different importance to users, that is, users set different types of power-off memory parameters at different frequencies, resulting in different changing frequencies of different power-off memory parameters, so the frequencies of storing in the storage module are also different. Therefore, the embodiment of the present invention controls the frequency of storing the corresponding power-off memory parameters in the storage module according to the type of power-off memory parameters, so that the power-off memory parameters that are more important to the user are written with a high frequency, while the parameters with less importance are written with a low frequency, so as to further reduce the number of write times of the storage module and extend the service life of the storage module.
[0045] In a specific embodiment, important parameters such as power on and off are written at a high frequency, filter time and other parameters are written at a low frequency, and set temperature and other parameters are written at a medium frequency, thereby reducing the number of write times of the storage module and extending the service life of the storage module.
[0046] In one embodiment of the present invention, when storing the changed power-off memory parameters in the storage module, the controller is configured to reduce the writing frequency of the power-off memory parameters when the number of writing times of the storage module reaches a second preset number.
[0047] Specifically, the second preset number of times can be pre-set and stored in the controller. When the number of write times of the storage module reaches the second preset number of times, it is considered that the service life of the storage module has been greatly reduced. At this time, the use time of the storage module can be further extended by reducing the writing frequency of the power-off memory parameter. In a specific embodiment, the second preset number of times can be set to half of the number of times the storage module can be burned and written, so as to significantly improve the life of the storage module and increase the service life.
[0048] In a specific embodiment, the eeprom used in the air conditioner can be written 100,000 times. If the eeprom is written 50,000 times, the writing frequency of the power-off memory parameters is uniformly reduced. It should be noted that if the eeprom is written 90,000 times, the writing to the eeprom is stopped.
[0049] In one embodiment of the present invention, Figure 5 As shown, the controller is also configured to: determine whether the air conditioner is powered on; within a fourth preset time, determine whether the network module is connected to the network server; when it is determined that the network module is connected to the network server, read the power-off memory parameters stored in the network server through the network module; when it is determined that the network module is not connected to the network server, read the power-off memory parameters stored in the storage module.
[0050] Specifically, the fourth preset time can be pre-set and stored in the controller. After the air conditioner is powered off and then powered on, it first stands by, waiting for the network module to connect to the network server. The controller can determine whether the network module is successfully connected to the network server through the fourth preset time.
[0051] In a specific embodiment, after determining that the air conditioner is powered off and then powered on, within a fourth preset time, for example 1 second, it is determined whether the network module is connected to the network server. If it is determined that the network module is successfully connected to the network server, the power-off memory parameters stored in the network server are preferentially read through the network module; if it is determined that the network module is not successfully connected to the network server, the power-off memory parameters stored in the storage module are read to execute the power-off memory parameters before the power-off and accurately run the functions set before the power-off.
[0052] In one embodiment of the present invention, Figure 6 As shown, when the power-off memory parameters stored in the network server are read through the network module, the controller is configured to: send a power-off memory parameter query instruction to the network module; within the fifth preset time, if the power-off memory parameters returned by the network module are received, update the corresponding power-off memory parameters; if the power-off memory parameters returned by the network module are not received, read the power-off memory parameters stored in the storage module, and update the corresponding power-off memory parameters.
[0053] Specifically, the fifth preset time can be preset and stored in the controller. The fifth preset time can be used to determine whether the power-off memory parameter returned by the network module is successfully received.
[0054] In a specific embodiment, when reading the power-off memory parameters stored in the network server through the network module, the controller sends a power-off memory parameter query instruction to the network module, queries the power-off memory parameters stored in the network server through the network module, and within a fifth preset time, such as 1 second, the network module replies the power-off memory parameters to the control module, and the controller updates the corresponding power-off memory parameters after receiving them; if the controller does not receive the power-off memory parameters returned by the network module within the fifth preset time, such as 1 second, and it is considered that the power-off memory parameters stored in the network server cannot be queried through the network module, the power-off memory parameters stored in the storage module are read, and the corresponding power-off memory parameters are updated to accurately run the functions set before the power outage according to the latest power-off memory parameters.
[0055] According to an air conditioner of an embodiment of the present invention, the air conditioner includes: a casing, a refrigerant circulation loop, a refrigeration system, an indoor fan, an indoor blower, a network module, a storage module and a controller. The controller is configured to: determine that a power-off memory parameter has changed; store the power-off memory parameter in the network server or the storage module according to the connection status between the network module and the network server, which greatly reduces the number of writes to the storage module and extends the service life of the storage module. At the same time, the real-time recording of the power-off memory parameter is also guaranteed. Further, the frequency of storing the corresponding power-off memory parameter in the storage module is controlled according to the type of the power-off memory parameter, and when the number of writes to the storage module reaches a second preset number, the writing frequency of the power-off memory parameter is reduced, which can further reduce the number of writes to the storage module and extend the service life of the storage module.
[0056] A further embodiment of the present invention also discloses a method for controlling an air conditioner, such as Figure 7 As shown, the method comprises the following steps:
[0057] Step S1: Determine whether the power-off memory parameter has changed.
[0058] Step S2: storing the power-off memory parameters in the network server or the storage module according to the connection status between the network module and the network server.
[0059] In one embodiment of the present invention, the power-off memory parameters are stored in the network server or the storage module according to the connection status between the network module and the network server, including: when the network module is connected to the network server, the changed power-off memory parameters are stored in the network server through the network module; when it is determined that the network module and the network server are not connected, the changed power-off memory parameters are stored in the storage module; when it is determined that the connection between the network module and the network server changes to disconnection, the changed power-off memory parameters are stored in the storage module.
[0060] In one embodiment of the present invention, after storing the changed power-off memory parameters in the storage module, it also includes: judging whether the network module is reconnected to the network server; when judging that the network module is reconnected to the network server, synchronizing the power-off memory parameters stored in the storage module to the network server; when judging that the network module is not reconnected to the network server, continuing to store the changed power-off memory parameters in the storage module.
[0061] In one embodiment of the present invention, after the changed power-off memory parameters are stored in the network server through the network module, it also includes: synchronizing the power-off memory parameters stored in the network server to the storage module every first preset time.
[0062] In one embodiment of the present invention, the changed power-off memory parameters are stored in a network server through a network module, including: sending a power-off memory parameter backup instruction to the network module so that the network module sends the power-off memory parameters to the network server for storage and backup, and returning backup success information after the storage and backup are completed; within a second preset time, if the backup success information returned by the network module is received, it is determined that the power-off memory parameters are successfully stored in the network server; if the backup success information returned by the network module is not received, the power-off memory parameter backup instruction is sent to the network module again every third preset time, and after the number of consecutive sending of the power-off memory parameter backup instruction to the network module reaches a first preset number of times and the backup success information returned by the network module is still not received, the changed power-off memory parameters are stored in the storage module.
[0063] In one embodiment of the present invention, the power-off memory parameter includes at least one of the on / off state, operation mode, set temperature, wind speed, filter time and operation time of the air conditioner.
[0064] In one embodiment of the present invention, storing the changed power-off memory parameter in the storage module includes: controlling the frequency of storing the corresponding power-off memory parameter in the storage module according to the type of the power-off memory parameter.
[0065] In one embodiment of the present invention, storing the changed power-off memory parameter in the storage module includes: when the number of write times of the storage module reaches a second preset number, reducing the writing frequency of the power-off memory parameter.
[0066] In one embodiment of the present invention, the control method of the air conditioner also includes: determining that the air conditioner is powered on; within a fourth preset time, determining whether the network module is connected to a network server; when it is determined that the network module is connected to the network server, reading the power-off memory parameters stored in the network server through the network module; when it is determined that the network module is not connected to the network server, reading the power-off memory parameters stored in the storage module.
[0067] In one embodiment of the present invention, the power-off memory parameters stored in the network server are read through the network module, including: sending a power-off memory parameter query instruction to the network module; within the fifth preset time, if the power-off memory parameters returned by the network module are received, then updating the corresponding power-off memory parameters; if the power-off memory parameters returned by the network module are not received, then reading the power-off memory parameters stored in the storage module, and updating the corresponding power-off memory parameters.
[0068] It should be noted that when controlling the air conditioner, the control method of the air conditioner in the embodiment of the present invention is implemented in a specific manner similar to the specific implementation manner of the air conditioner in the embodiment of the present invention. Please refer to the description of the system part for details. In order to reduce redundancy, it will not be repeated here.
[0069] According to the control method of the air conditioner of the embodiment of the present invention, by determining that the power-off memory parameter changes, the power-off memory parameter is stored in the network server or storage module according to the connection status between the network module and the network server, which greatly reduces the number of writes to the storage module and extends the service life of the storage module. At the same time, the real-time recording of the power-off memory parameter is also guaranteed. Further, the frequency of storing the corresponding power-off memory parameter in the storage module is controlled according to the type of the power-off memory parameter, and when the number of writes to the storage module reaches a second preset number, the writing frequency of the power-off memory parameter is reduced, which can further reduce the number of writes to the storage module and extend the service life of the storage module.
[0070] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example.
[0071] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. An air conditioner, characterized in that: include: chassis; A refrigerant circulation loop is arranged in the casing, so that the refrigerant circulates in a loop composed of a compressor, a condenser, an expansion valve, an evaporator, a four-way valve and a pressure reducer; A refrigeration system is arranged in the casing, and performs heat exchange between the refrigerant and the indoor air in the compression refrigeration cycle of the refrigerant circulation loop. The refrigeration system includes the compressor, and the compressor is used to compress the low-temperature and low-pressure refrigerant gas into high-temperature and high-pressure refrigerant gas and discharge it to the condenser; An indoor fan, used to drive the indoor air to pass through the indoor heat exchanger so that the refrigerant and the indoor air perform heat exchange; An indoor fan, used to drive the indoor fan to rotate; A network module, disposed in the housing, for connecting to a network server; A storage module, disposed in the housing, for storing power-off memory parameters of the air conditioner; A controller connected to the network module and the storage module, the controller being configured to: determine that the power-off memory parameter changes; The power-off memory parameter is stored in the network server or the storage module according to the connection status between the network module and the network server.
2. The air conditioner according to claim 1, characterized in that: When the power-off memory parameter is stored in the network server or the storage module according to the connection status between the network module and the network server, the controller is specifically configured as follows: When the network module is connected to the network server, the changed power-off memory parameter is stored in the network server through the network module; When it is determined that the network module is not connected to the network server, storing the changed power-off memory parameter in the storage module; When it is determined that the connection between the network module and the network server changes to disconnection, the changed power-off memory parameter is stored in the storage module.
3. The air conditioner according to claim 2, characterized in that: After storing the changed power-off memory parameter in the storage module, the controller is further configured to: Determining whether the network module is reconnected to the network server; When it is determined that the network module is reconnected to the network server, synchronizing the power-off memory parameters stored in the storage module to the network server; When it is determined that the network module is not reconnected to the network server, the changed power-off memory parameter continues to be stored in the storage module.
4. The air conditioner according to claim 2, characterized in that: After storing the changed power-off memory parameters to the network server through the network module, the controller is further configured to: The power-off memory parameters stored in the network server are synchronized to the storage module at first preset intervals.
5. The air conditioner according to claim 2, characterized in that: When the changed power-off memory parameters are stored in the network server through the network module, the controller is configured as follows: Sending a power-off memory parameter backup instruction to the network module, so that the network module sends the power-off memory parameter to the network server for storage backup, and returns backup success information after the storage backup is completed; If the backup success information returned by the network module is received within the second preset time, it is determined that the power-off memory parameter is successfully stored in the network server; If the backup success information returned by the network module is not received, the power-off memory parameter backup instruction is sent to the network module again every third preset time, and when the number of consecutive sending of the power-off memory parameter backup instruction to the network module reaches a first preset number of times and the backup success information returned by the network module is still not received, the changed power-off memory parameters are stored in the storage module.
6. The air conditioner according to any one of claims 2 to 5, characterized in that: The power-off memory parameter includes at least one of the on / off state, operation mode, set temperature, wind speed, filter time and operation time of the air conditioner.
7. The air conditioner according to claim 6, characterized in that: When storing the changed power-off memory parameter in the storage module, the controller is configured as follows: The frequency of storing the corresponding power-off memory parameter into the storage module is controlled according to the type of the power-off memory parameter.
8. The air conditioner according to claim 6, characterized in that: When storing the changed power-off memory parameter in the storage module, the controller is configured as follows: When the number of write times of the storage module reaches a second preset number, the writing frequency of the power-off memory parameter is reduced.
9. The air conditioner according to claim 2, characterized in that: The controller is also configured to: Determining that the air conditioner is powered on; Within a fourth preset time, determining whether the network module is connected to the network server; When it is determined that the network module is connected to the network server, reading the power-off memory parameter stored in the network server through the network module; When it is determined that the network module is not connected to the network server, the power-off memory parameter stored in the storage module is read.
10. The air conditioner according to claim 9, characterized in that: When reading the power-off memory parameter stored in the network server through the network module, the controller is configured as follows: Sending a power-off memory parameter query instruction to the network module; Within the fifth preset time, if the power-off memory parameter returned by the network module is received, the corresponding power-off memory parameter is updated; if the power-off memory parameter returned by the network module is not received, the power-off memory parameter stored in the storage module is read and the corresponding power-off memory parameter is updated.
11. A method for controlling an air conditioner, characterized in that: For the air conditioner according to any one of claims 1 to 10, the method comprises the following steps: Determine if the power-off memory parameters have changed; The power-off memory parameter is stored in the network server or the storage module according to the connection status between the network module and the network server.
Citation Information
Patent Citations
Efficient storage system for Internet of Things terminal data
CN110389725A
Method for preventing unit from being incapable of working after memorizer abnormity and air conditioning system
CN113137705A
Electric energy meter data loading method, device and equipment and computer readable storage medium
CN115188400A
Circuit device of indoor unit of air conditioner, circuit device of window type air conditioner, and method for starting air conditioner after sudden power-off
CN1766447A
Data backup device and data backup system
JP2008033562A