Method, device, electronic device and storage medium for controlling air conditioner

By verifying the integrity of the first storage area data of the air conditioner and switching to the backup storage area to run if it fails, the problem of operation interruption during the OTA upgrade process is solved, ensuring the normal operation of the air conditioner and the improvement of user experience.

CN115095950BActive Publication Date: 2025-04-22BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210554219.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-20
Publication Date
2025-04-22
Estimated Expiration
2042-05-20

AI Technical Summary

Technical Problem

During the OTA upgrade process of the air conditioner, it is easy to cause operation interruption, which affects the user experience.

Method used

By performing integrity verification on the data for performing a predetermined function in the first storage area of ​​the air conditioner, if the verification fails, the second storage area is determined from the alternative storage area as the storage area for performing the predetermined function, and the data of the first storage area is outputted to update the data of the first storage area.

Benefits of technology

Ensure that the air conditioner does not interrupt operation when the integrity verification fails, and can output upgrade requests to update data, thereby improving the user experience and keeping the air conditioner running normally.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115095950B_ABST
    Figure CN115095950B_ABST
Patent Text Reader

Abstract

The disclosed embodiment discloses a method, device, electronic device and storage medium for controlling an air conditioner, wherein integrity check is performed on data in a first storage area for executing a predetermined function to obtain a check result; wherein the predetermined function includes a function of controlling the air conditioner to execute cooling and / or heating; based on the check result, a storage area in which the air conditioner executes the predetermined function is determined from an alternative storage area; wherein the alternative storage area includes a first storage area and a second storage area; in response to running the predetermined function in the second storage area, an upgrade request is output; wherein the upgrade request is used to request to update the data in the first storage area for executing the predetermined function. Compared with the method of interrupting the operation of the air conditioner during the update, the normal operation of the air conditioner can continue to be ensured, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of control technology but is not limited to the field of control technology, and in particular to a method, device, electronic device and storage medium for controlling an air conditioner. Background Art

[0002] With the development of the Internet of Things, air conditioners with networking and Over the Air Technology (OTA) upgrade functions have become very common. OTA upgrades can be used for functional iteration, fault repair, and parameter optimization of air conditioners to improve the comfort of air conditioner operation and enhance user experience. To perform OTA upgrades on the air conditioner firmware, the program running space of the controller's microcontroller unit (MCU) needs to be partitioned.

[0003] In the related art, during the OTA upgrade process, the operation of the air conditioner may be interrupted, affecting the user experience. Summary of the invention

[0004] The embodiments of the present disclosure disclose a method, a device, an electronic device and a storage medium for controlling an air conditioner.

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a method for controlling an air conditioner, the method comprising:

[0006] Performing integrity check on the data in the first storage area for executing a predetermined function to obtain a check result; wherein the predetermined function includes a function of controlling the air conditioner to execute cooling and / or heating;

[0007] Based on the verification result, determining a storage area for the air conditioner to perform the predetermined function from the candidate storage areas; wherein the candidate storage areas include the first storage area and the second storage area;

[0008] In response to running the predetermined function in the second storage area, an upgrade request is output; wherein the upgrade request is used to request to update the data used to execute the predetermined function in the first storage area.

[0009] In one embodiment, performing integrity check on the data in the first storage area for executing the predetermined function to obtain the check result includes:

[0010] In response to the air conditioner operating in the third storage area, an integrity check is performed on the data in the first storage area for executing a predetermined function to obtain a check result.

[0011] In one embodiment, the method further comprises:

[0012] In response to the air conditioner operating in the third storage area, switching to operating in the second storage area;

[0013] The performing integrity check on the data used to execute the predetermined function in the first storage area to obtain the check result includes:

[0014] After switching to running in the second storage area, an integrity check is performed on the data in the first storage area for executing the predetermined function to obtain a check result.

[0015] In one embodiment, based on the verification result, determining the storage area of ​​the air conditioner for performing the predetermined function from the candidate storage area includes:

[0016] In response to the verification result being passed, determining from the candidate storage areas that the storage area for the air conditioner to perform the predetermined function is the first storage area;

[0017] or,

[0018] In response to the verification result not passing, the storage area in which the air conditioner performs the predetermined function is determined to be the second storage area from the candidate storage areas.

[0019] In one embodiment, the method further comprises:

[0020] In response to determining that the storage area of ​​the air conditioner that executes the predetermined function is the first storage area, running the predetermined function in the first storage area;

[0021] or,

[0022] In response to determining that the storage area in which the air conditioner executes the predetermined function is the second storage area, the predetermined function is executed in the second storage area.

[0023] In one embodiment, the storage space of the first storage area is larger than the space of the second storage area.

[0024] In one embodiment, the storage space of the second storage area is determined according to the data of the predetermined function after the function is reduced; or, the size of the storage space of the second storage area is within a predetermined range.

[0025] According to a second aspect of an embodiment of the present disclosure, there is provided a device for controlling an air conditioner, the device comprising:

[0026] A verification module, used to perform integrity verification on the data in the first storage area for executing a predetermined function to obtain a verification result; wherein the predetermined function includes a function of controlling the air conditioner to perform cooling and / or heating;

[0027] A determination module, configured to determine, based on the verification result, from the candidate storage areas, a storage area in which the air conditioner performs the predetermined function; wherein the candidate storage areas include the first storage area and the second storage area;

[0028] An output module is used to output an upgrade request in response to running the predetermined function in the second storage area; wherein the upgrade request is used to request to update the data used to execute the predetermined function in the first storage area.

[0029] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, the electronic device comprising:

[0030] processor;

[0031] a memory for storing instructions executable by the processor;

[0032] The processor is configured to implement the method described in any embodiment of the present disclosure when running the executable instructions.

[0033] According to a fourth aspect of an embodiment of the present disclosure, a computer storage medium is provided, wherein the computer storage medium stores a computer executable program, and when the executable program is executed by a processor, the method described in any embodiment of the present disclosure is implemented.

[0034] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0035] In an embodiment of the present disclosure, an integrity check is performed on the data for executing a predetermined function in the first storage area to obtain a check result; wherein the predetermined function includes a function of controlling the air conditioner to execute cooling and / or heating; based on the check result, a storage area in which the air conditioner executes the predetermined function is determined from the alternative storage area; wherein the alternative storage area includes the first storage area and the second storage area; in this way, the air conditioner can determine whether the predetermined function is executed in the first storage area or the second storage area. In response to running the predetermined function in the second storage area, an upgrade request is output; wherein the upgrade request is used to request to update the data for executing the predetermined function in the first storage area. In this way, when the integrity check fails, the air conditioner can output an upgrade request without interrupting operation, requesting to update the data for executing the predetermined function in the first storage area. Compared with the method of interrupting the operation of the air conditioner during the update, the normal operation of the air conditioner can be continued to be ensured, thereby improving the user experience.

[0036] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0038] Figure 1 The figure is a flowchart of a method for controlling an air conditioner according to an exemplary embodiment.

[0039] Figure 2 The figure is a schematic diagram showing a storage area division according to an exemplary embodiment.

[0040] Figure 3 The figure is a schematic diagram showing a storage area division according to an exemplary embodiment.

[0041] Figure 4 The figure is a flowchart of a method for controlling an air conditioner according to an exemplary embodiment.

[0042] Figure 5 The figure is a flowchart of a method for controlling an air conditioner according to an exemplary embodiment.

[0043] Figure 6 is a block diagram showing a device for controlling an air conditioner according to an exemplary embodiment.

[0044] Figure 7 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0045] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0046] In order to facilitate the understanding of those skilled in the art, the embodiments of the present disclosure list multiple implementation methods to clearly illustrate the technical solutions of the embodiments of the present disclosure. Of course, those skilled in the art can understand that the multiple embodiments provided by the embodiments of the present disclosure can be executed separately, or can be executed together with the methods of other embodiments of the embodiments of the present disclosure, or can be executed together with some methods in other related technologies separately or in combination; the embodiments of the present disclosure do not limit this.

[0047] In order to better understand the embodiments of the present disclosure, the technical solutions in relevant application scenarios are described below:

[0048] In one embodiment, the air conditioner firmware needs to be upgraded OTA, and the program running space of the controller needs to be partitioned. Generally, there are two partitioning methods:

[0049] In one embodiment, the program running space is divided into three areas: boot area, user1 area and user2 area. Among them, user1 area and user2 area are mainly used to store firmware such as the functional logic and operating parameters of the air conditioner, and they serve as backup for each other; the boot area is mainly used for MCU startup boot, OTA upgrade judgment, firmware package flashing into the user area, and data copying in user1 and user2 areas. This scheme has two user areas of the same size. During OTA upgrade, the firmware package will be flashed into one of the user areas. After the flashed data is verified, the firmware upgrade effect is achieved by copying the data or switching the user running area. This scheme is hereinafter referred to as the OTA scheme with backup. In this embodiment, the advantage is that since the data is backed up, the air conditioner will not be able to run the program normally due to firmware package damage, OTA interruption, etc. The disadvantage of this embodiment is that the firmware package of the same size occupies twice the space in the MCU storage area, which increases the chip cost.

[0050] In one embodiment, it is divided into two areas, namely the boot area and the user area. Among them, the user area is mainly used to store firmware such as the functional logic and operating parameters of the air conditioner; the boot area is mainly used for the startup and booting of the MCU, the judgment of OTA upgrade, and the flashing of the firmware package into the user area. In this scheme, when OTA is used, the program will first jump to the boot to execute, obtain the firmware package from the Internet of Things module in the boot, and directly flash it into the user area. This scheme is hereinafter referred to as the OTA scheme without a backup area. The advantages of this embodiment are: the user area does not require a backup area, the MCU storage area has a small space, and the chip cost is low. The disadvantage of this embodiment is: due to the lack of a backup area, in the case of damage to the firmware package, OTA interruption, etc., the air conditioner cannot execute normal functional programs, and needs to be re-OTA upgraded, and can only resume operation after success.

[0051] As the functions of air conditioners become more and more advanced driven by the market, the chip space occupied by the program is getting larger and larger. The fierce competition in the market requires cost factors to be considered when designing air conditioners. Therefore, more and more air conditioners use OTA solutions without backup areas. This technical solution combines the advantages of OTA solutions with and without backup areas, optimizes the control solution when abnormalities such as firmware package damage and OTA interruption occur, so that the air conditioner can maintain its operating ability.

[0052] like Figure 1 As shown, in an embodiment of the present disclosure, a method for controlling an air conditioner is provided, the method comprising:

[0053] Step 11, performing integrity check on the data in the first storage area for executing a predetermined function to obtain a check result; wherein the predetermined function includes a function of controlling the air conditioner to perform cooling and / or heating;

[0054] Step 12: Based on the verification result, determine the storage area of ​​the air conditioner for performing the predetermined function from the candidate storage areas; wherein the candidate storage areas include the first storage area and the second storage area;

[0055] Step 13: In response to running the predetermined function in the second storage area, output an upgrade request; wherein the upgrade request is used to request an update of the data in the first storage area for executing the predetermined function.

[0056] In one embodiment, the air conditioner may be provided with a plurality of storage areas. Exemplarily, the plurality of storage areas may include a first storage area, a second storage area, and a third storage area. Among them, the first storage area may be a user area, the second storage area may be an emergeRUN area, and the third storage area may be a boot area. The first storage area and the second storage area may be used to store running program data for executing predetermined functions. The third storage area is used to store functions such as execution of startup boot, determination of OTA upgrade, and selection of alternative storage areas. It should be noted that the storage space of the plurality of storage areas may be less than the storage space threshold.

[0057] In one embodiment, the integrity check of the data used to perform the predetermined function in the first storage area may be to check whether the data is incomplete and / or whether the data is damaged. If it is determined after the integrity check that the data is incomplete and / or the data is damaged, the check result may be that the integrity check fails; or, if it is determined after the integrity check that the data is complete and the data is not damaged, the check result may be that the integrity check passes.

[0058] In one embodiment, an integrity check is performed on data in a first storage area for executing a predetermined function to obtain a check result; wherein, the predetermined function includes a function of controlling the air conditioner to execute cooling and / or heating; based on the check result, a storage area in which the air conditioner executes the predetermined function is determined from an alternative storage area; wherein, the alternative storage area includes the first storage area and a second storage area; in response to the check result being passed, the storage area in which the air conditioner executes the predetermined function is determined from the alternative storage area to be the first storage area; in response to determining that the storage area in which the air conditioner executes the predetermined function is the first storage area, the predetermined function is run in the first storage area.

[0059] In one embodiment, the storage space of the first storage area is larger than the space of the second storage area.

[0060] In one embodiment, the storage space of the second storage area is determined according to the data of the predetermined function after function reduction.

[0061] In one embodiment, the size of the storage space of the second storage area is within a predetermined range. Exemplarily, the storage space of the second storage area is x, then a≤x≤b, a and b may be predetermined, and exemplarily, x may be 40Kbytes.

[0062] In one embodiment, the sum of the storage spaces of the first storage area and the second storage area is less than a predetermined value.

[0063] In one embodiment, the data in the first storage area for executing the predetermined function is checked for integrity to obtain a check result; wherein the predetermined function includes the function of controlling the air conditioner to execute cooling and / or heating; based on the check result, the storage area in which the air conditioner executes the predetermined function is determined from the alternative storage area; wherein the alternative storage area includes the first storage area and the second storage area; in response to the check result being passed, the storage area in which the air conditioner executes the predetermined function is determined from the alternative storage area to be the first storage area; in response to determining that the storage area in which the air conditioner executes the predetermined function is the first storage area, the predetermined function is run in the first storage area; wherein the predetermined function corresponding to the data in the second storage area for executing the predetermined function is the predetermined function corresponding to the data in the first storage area for executing the predetermined function after being reduced. It can be understood that the predetermined function corresponding to the data in the second storage area for executing the predetermined function is the basic function of the predetermined function corresponding to the data in the first storage area for executing the predetermined function. In one embodiment, the capacity of the data in the second storage area for executing the predetermined function is less than the capacity of the data in the first storage area for executing the predetermined function.

[0064] In one embodiment, the data in the first storage area for executing the predetermined function is checked for integrity to obtain a check result; wherein the predetermined function includes the function of controlling the air conditioner to perform cooling and / or heating; based on the check result, the storage area in which the air conditioner executes the predetermined function is determined from the alternative storage area; wherein the alternative storage area includes the first storage area and the second storage area; in response to the check result not passing, the storage area in which the air conditioner executes the predetermined function is determined from the alternative storage area to be the second storage area; in response to determining that the storage area in which the air conditioner executes the predetermined function is the second storage area, the predetermined function is run in the second storage area; in response to running the predetermined function in the second storage area, an upgrade request is output; wherein the upgrade request is used to request to update the data in the first storage area for executing the predetermined function. Exemplarily, outputting the upgrade request may be displaying the information of the upgrade request in the display area to prompt the user to update. Here, the display area may be the display of the air conditioner. It should be noted that the update may be an OTA-based update.

[0065] In one embodiment, the data for executing the predetermined function in the first storage area is checked for integrity to obtain a check result; wherein the predetermined function includes the function of controlling the air conditioner to perform cooling and / or heating; based on the check result, the storage area for the air conditioner to execute the predetermined function is determined from the alternative storage area; wherein the alternative storage area includes the first storage area and the second storage area; in response to the check result not passing, the storage area for the air conditioner to execute the predetermined function is determined from the alternative storage area to be the second storage area; in response to determining that the storage area for the air conditioner to execute the predetermined function is the second storage area, the predetermined function is executed in the second storage area; in response to executing the predetermined function in the second storage area, an upgrade request is sent to the terminal; wherein the upgrade request is used to request to update the data for executing the predetermined function in the first storage area. After receiving the upgrade request, the terminal displays the upgrade request information in the display area of ​​the terminal to prompt the user to update. Here, the display area can be the display screen of the terminal. In one embodiment, it can be that after receiving the upgrade request, the application function of the terminal displays the upgrade request information in the display area of ​​the terminal to prompt the user to update.

[0066] In one embodiment, in response to the air conditioner running in the third storage area, the data in the first storage area for executing the predetermined function is integrity checked to obtain a check result; wherein the predetermined function includes the function of controlling the air conditioner to perform cooling and / or heating; based on the check result, the storage area in which the air conditioner executes the predetermined function is determined from the alternative storage area; wherein the alternative storage area includes the first storage area and the second storage area; in response to running the predetermined function in the second storage area, an upgrade request is output; wherein the upgrade request is used to request an update of the data in the first storage area for executing the predetermined function.

[0067] For example, see Figure 2 , in response to the air conditioner running in the boot area, performing integrity check on the data in the user area for executing the predetermined function to obtain a check result; wherein the predetermined function includes the function of controlling the air conditioner to perform cooling and / or heating; based on the check result, determining the storage area in which the air conditioner executes the predetermined function from the alternative storage area; wherein the alternative storage area includes the user area and the emergRun area; in response to running the predetermined function in the emergRun area, outputting an upgrade request; wherein the upgrade request is used to request to update the data in the emergRun storage area for executing the predetermined function.

[0068] In one embodiment, in response to the air conditioner running in the third storage area, it switches to running in the first storage area; after switching to running in the first storage area, the data in the first storage area for executing the predetermined function is checked for integrity to obtain a check result; wherein the predetermined function includes the function of controlling the air conditioner to execute cooling and / or heating; based on the check result, the storage area in which the air conditioner executes the predetermined function is determined from the alternative storage area; wherein the alternative storage area includes the first storage area and the second storage area; in response to running the predetermined function in the second storage area, an upgrade request is output; wherein the upgrade request is used to request to update the data in the first storage area for executing the predetermined function.

[0069] For example, see Figure 3, in response to the air conditioner running in the boot area, switching to running in the user area; after switching to running in the emergeRun area, performing integrity check on the data in the user area for executing the predetermined function to obtain a check result; wherein the predetermined function includes the function of controlling the air conditioner to perform cooling and / or heating; based on the check result, determining the storage area in which the air conditioner executes the predetermined function from the alternative storage area; wherein the alternative storage area includes the user area and the emergRun area; in response to running the predetermined function in the emergRun area, outputting an upgrade request; wherein the upgrade request is used to request to update the data in the user area for executing the predetermined function.

[0070] In one embodiment, an integrity check is performed on data in a first storage area for executing a predetermined function to obtain a check result; wherein, the predetermined function includes a function of controlling the air conditioner to execute cooling and / or heating; in response to the check result passing, the storage area in which the air conditioner executes the predetermined function is determined from the alternative storage area to be the first storage area; or, in response to the check result failing, the storage area in which the air conditioner executes the predetermined function is determined from the alternative storage area to be the second storage area; in response to running the predetermined function in the second storage area, an upgrade request is output; wherein, the upgrade request is used to request an update of the data in the first storage area for executing the predetermined function.

[0071] In one embodiment, an integrity check is performed on data in a first storage area for executing a predetermined function to obtain a check result; wherein the predetermined function includes a function of controlling the air conditioner to execute cooling and / or heating; in response to the check result passing, determining from the alternative storage area that the air conditioner executes the predetermined function is the first storage area; or, in response to the check result failing, determining from the alternative storage area that the air conditioner executes the predetermined function is the second storage area; in response to determining that the storage area where the air conditioner executes the predetermined function is the first storage area, running the predetermined function in the first storage area; or, in response to determining that the storage area where the air conditioner executes the predetermined function is the second storage area, running the predetermined function in the second storage area.

[0072] In an embodiment of the present disclosure, an integrity check is performed on the data for executing a predetermined function in the first storage area to obtain a check result; wherein the predetermined function includes a function of controlling the air conditioner to execute cooling and / or heating; based on the check result, a storage area in which the air conditioner executes the predetermined function is determined from the alternative storage area; wherein the alternative storage area includes the first storage area and the second storage area; in this way, the air conditioner can determine whether the predetermined function is executed in the first storage area or the second storage area. In response to running the predetermined function in the second storage area, an upgrade request is output; wherein the upgrade request is used to request to update the data for executing the predetermined function in the first storage area. In this way, when the integrity check fails, the air conditioner can output an upgrade request without interrupting operation, requesting to update the data for executing the predetermined function in the first storage area. Compared with the method of interrupting the operation of the air conditioner during the update, the normal operation of the air conditioner can be continued to be ensured, thereby improving the user experience.

[0073] In order to better understand the embodiments of the present disclosure, the technical solution of the present disclosure is further described below through two exemplary embodiments:

[0074] Example 1:

[0075] like Figure 4 As shown, in an embodiment of the present disclosure, a method for controlling an air conditioner is provided, the method comprising:

[0076] Step 41, the air conditioner is powered on, and the air conditioner runs in the boot area;

[0077] Step 42: Perform integrity check on the data in the user area for executing a predetermined function to obtain a check result; wherein the predetermined function includes a function of controlling the air conditioner to perform cooling and / or heating;

[0078] Step 43, judging whether the integrity check is passed. Based on the check result, the storage area of ​​the air conditioner for executing the predetermined function is determined from the candidate storage area; wherein the candidate storage area includes the first storage area and the second storage area; if the integrity check is passed, step 44 is executed, otherwise, step 46 is executed;

[0079] Step 44, jump to run in the user area;

[0080] Step 45: Run the predetermined function in the user area.

[0081] Step 46: Jump to the emergRun area to run;

[0082] Step 47, executing the predetermined function in the emergeRun area; it should be noted that the predetermined function in step 47 may be a function after the predetermined function in step 42 or step 45 is reduced;

[0083] Step 48: Output the upgrade request to the application function, and display the upgrade request information through the application function.

[0084] Example 2:

[0085] like Figure 5 As shown, in an embodiment of the present disclosure, a method for controlling an air conditioner is provided, the method comprising:

[0086] Step 51, the air conditioner is powered on, and the air conditioner runs in the boot area;

[0087] Step 52, jump to the emergeRun area;

[0088] Step 53: after jumping to the operation in the emergeRun area, perform integrity check on the data in the user area for executing the predetermined function to obtain a check result;

[0089] Step 54, judging whether the integrity check is passed. Based on the check result, the storage area for the air conditioner to perform the predetermined function can be determined from the candidate storage area; wherein the candidate storage area includes the emergerRun area and the user area; if the integrity check is passed, executing step 55, otherwise, executing step 57;

[0090] Step 55, jump to the user area to run;

[0091] Step 56: Run the predetermined function in the user area;

[0092] Step 57, executing the predetermined function in the emergeRun area; it should be noted that the predetermined function in step 57 may be a function after the predetermined function in step 53 or step 56 is reduced;

[0093] Step 58: Output the upgrade request to the application function, and display the upgrade request information through the application function.

[0094] like Figure 6 As shown, in this embodiment, a device for controlling an air conditioner is provided, and the device includes:

[0095] The verification module 61 is used to perform integrity verification on the data used to perform a predetermined function in the first storage area to obtain a verification result; wherein the predetermined function includes a function of controlling the air conditioner to perform cooling and / or heating;

[0096] A determination module 62, configured to determine, based on the verification result, from the candidate storage areas, a storage area in which the air conditioner performs the predetermined function; wherein the candidate storage areas include the first storage area and the second storage area;

[0097] The output module 63 is used to output an upgrade request in response to running the predetermined function in the second storage area; wherein the upgrade request is used to request to update the data used to execute the predetermined function in the first storage area.

[0098] In one embodiment, the verification module 61 is further used for:

[0099] In response to the air conditioner operating in the third storage area, an integrity check is performed on the data in the first storage area for executing a predetermined function to obtain a check result.

[0100] In one embodiment, the apparatus further comprises a switching module 64:

[0101] The switching module 64 is used for switching to operating in the second storage area in response to the air conditioner operating in the third storage area;

[0102] The verification module 61 is further used to perform integrity verification on the data used to execute the predetermined function in the first storage area after switching to run in the second storage area to obtain a verification result.

[0103] In one embodiment, the determining module 62 is further configured to:

[0104] In response to the verification result being passed, determining from the candidate storage areas that the storage area for the air conditioner to perform the predetermined function is the first storage area;

[0105] or,

[0106] In response to the verification result not passing, the storage area in which the air conditioner performs the predetermined function is determined to be the second storage area from the candidate storage areas.

[0107] In one embodiment, the apparatus further comprises:

[0108] An operating module 65, configured to operate the predetermined function in the first storage area in response to determining that the storage area in which the air conditioner executes the predetermined function is the first storage area;

[0109] or,

[0110] In response to determining that the storage area in which the air conditioner executes the predetermined function is the second storage area, the predetermined function is executed in the second storage area.

[0111] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0112] The present disclosure also provides a communication device, including:

[0113] antenna;

[0114] Memory;

[0115] The processor is connected to the antenna and the memory respectively, and is used to control the antenna to receive and send wireless signals by executing an executable program stored in the memory, and can execute the steps of the wireless network access method provided in any of the above embodiments.

[0116] The communication device provided in this embodiment may be the aforementioned terminal or base station. The terminal may be various types of person-mounted terminals or vehicle-mounted terminals. The base station may be various types of base stations, for example, a 4G base station or a 5G base station.

[0117] The antenna may be various types of antennas, for example, a mobile antenna such as a 3G antenna, a 4G antenna or a 5G antenna; the antenna may also include: a WiFi antenna or a wireless charging antenna, etc.

[0118] The memory may include various types of storage media, which are non-transitory computer storage media that can continue to remember information stored thereon after the communication device loses power.

[0119] The processor can be connected to the antenna and the memory through a bus, etc., and is used to read the executable program stored in the memory, for example, at least one of the methods shown in any embodiment of the present disclosure.

[0120] An embodiment of the present disclosure also provides a non-temporary computer-readable storage medium, which stores an executable program, wherein when the executable program is executed by a processor, the steps of the wireless network access method provided in any of the aforementioned embodiments are implemented, for example, at least one of the methods shown in any embodiment of the present disclosure.

[0121] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0122] Figure 7 is a block diagram of an electronic device 600 according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0123] Reference Figure 7, the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .

[0124] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.

[0125] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0126] The power supply component 606 provides power to the various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.

[0127] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0128] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.

[0129] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0130] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the device 600, the relative positioning of components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of contact between the user and the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0131] The communication component 616 is configured to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0132] In an exemplary embodiment, the electronic device 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0133] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by the processor 820 of the electronic device 600 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0134] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0135] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A method for controlling an air conditioner, characterized in that: The method comprises: In response to the air conditioner operating in the third storage area, switching to operating in the second storage area; After switching to the second storage area, performing integrity check on the data used to execute the predetermined function in the first storage area to obtain a check result; or, In response to the air conditioner operating in the third storage area, performing integrity check on the data in the first storage area for executing the predetermined function to obtain a check result; Wherein, the predetermined function includes controlling the air conditioner to perform cooling and / or heating; Based on the verification result, a storage area for the air conditioner to perform the predetermined function is determined from the candidate storage area; wherein the candidate storage area includes the first storage area and the second storage area; the predetermined function corresponding to the data for performing the predetermined function in the second storage area is the predetermined function corresponding to the data for performing the predetermined function in the first storage area after being reduced; and the storage space of the second storage area is determined according to the data of the predetermined function after the function is reduced; The step of determining the storage area for the air conditioner to perform the predetermined function from the candidate storage area based on the verification result includes: In response to the verification result being passed, determining from the candidate storage areas that the storage area for the air conditioner to perform the predetermined function is the first storage area; In response to the verification result not being passed, determining from the candidate storage areas that the storage area for the air conditioner to perform the predetermined function is the second storage area; In response to running the predetermined function in the second storage area, an upgrade request is output; wherein the upgrade request is used to request to update the data used to execute the predetermined function in the first storage area.

2. The method according to claim 1, characterized in that The method further comprises: In response to determining that the storage area of ​​the air conditioner that executes the predetermined function is the first storage area, running the predetermined function in the first storage area; In response to determining that the storage area in which the air conditioner executes the predetermined function is the second storage area, the predetermined function is executed in the second storage area.

3. The method according to claim 1, characterized in that: The storage space of the first storage area is larger than the storage space of the second storage area.

4. The method according to claim 1, characterized in that The size of the storage space of the second storage area is within a predetermined range.

5. A device for controlling an air conditioner, characterized in that: Execute the control method according to any one of claims 1 to 4, wherein the device comprises: a verification module, in response to the air conditioner operating in the third storage area, switching to operating in the second storage area; after switching to operating in the second storage area, performing integrity verification on the data used to perform the predetermined function in the first storage area to obtain a verification result; or In response to the air conditioner operating in the third storage area, performing integrity check on the data in the first storage area for executing the predetermined function to obtain a check result; Wherein, the predetermined function includes controlling the air conditioner to perform cooling and / or heating; A determination module, configured to determine, based on the verification result, a storage area of ​​the air conditioner for executing the predetermined function from the candidate storage area; wherein the candidate storage area includes the first storage area and the second storage area; the predetermined function corresponding to the data for executing the predetermined function in the second storage area is the predetermined function corresponding to the data for executing the predetermined function in the first storage area after being reduced; and the storage space of the second storage area is determined according to the data of the predetermined function after the function is reduced; The determination module is further configured to, in response to the verification result being passed, determine from the candidate storage area that the air conditioner performs the predetermined function as the first storage area; in response to the verification result being not passed, determine from the candidate storage area that the air conditioner performs the predetermined function as the second storage area; An output module is used to output an upgrade request in response to running the predetermined function in the second storage area; wherein the upgrade request is used to request to update the data used to execute the predetermined function in the first storage area.

6. An electronic device, characterized in that: The electronic device comprises: a processor and a memory for storing a computer service that can be run on the processor, wherein the processor implements the method according to any one of claims 1 to 4 when being used to run the computer service.

7. A storage medium, characterized in that: The storage medium contains computer executable instructions, and the computer executable instructions are executed by a processor to implement the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Home appliance information self-checking and self-recovery method and system and home appliances

    CN105808390A