CN115095950A - Method and device for controlling air conditioner, electronic equipment and storage medium - Google Patents

Method and device for controlling air conditioner, electronic equipment and storage medium Download PDF

Info

Publication number
CN115095950A
CN115095950A CN202210554219.0A CN202210554219A CN115095950A CN 115095950 A CN115095950 A CN 115095950A CN 202210554219 A CN202210554219 A CN 202210554219A CN 115095950 A CN115095950 A CN 115095950A
Authority
CN
China
Prior art keywords
storage area
air conditioner
predetermined function
executing
function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210554219.0A
Other languages
Chinese (zh)
Inventor
单联瑜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202210554219.0A priority Critical patent/CN115095950A/en
Publication of CN115095950A publication Critical patent/CN115095950A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/30Control or safety arrangements for purposes related to the operation of the system, e.g. for safety or monitoring
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/56Remote control
    • F24F11/58Remote control using Internet communication
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/62Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
    • F24F11/63Electronic processing
    • F24F11/64Electronic processing using pre-stored data

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Air Conditioning Control Device (AREA)

Abstract

The embodiment of the disclosure discloses a method, a device, electronic equipment and a storage medium for controlling an air conditioner, wherein integrity verification is carried out on data used for executing a preset function in a first storage area to obtain a verification result; the preset function comprises a function of controlling the air conditioner to perform cooling and/or heating; determining a storage area of the air conditioner for executing a predetermined function from the alternative storage areas based on the verification result; wherein the alternative storage areas comprise a first storage area and a second storage area; outputting an upgrade request in response to a predetermined function being executed in the second storage area; wherein the upgrade request is for requesting updating of data for executing a predetermined function in the first storage area. Compared with a mode that the operation of the air conditioner needs to be interrupted during updating, the normal operation of the air conditioner can be continuously ensured, and the user experience is improved.

Description

Method and device for controlling air conditioner, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of control technologies, but not limited to the field of control technologies, and in particular, to a method and an apparatus for controlling an air conditioner, an electronic device, and a storage medium.
Background
With the development of the internet of things, Air conditioners having networking and space download Technology (OTA) upgrading functions have become very popular. OTA upgrading can be used in the aspects of function iteration, fault repair, parameter optimization and the like of the air conditioner so as to improve the comfort of the operation of the air conditioner and improve the user experience. To perform OTA upgrade of air conditioner firmware, a Micro Control Unit (MCU) program operating space of a controller needs to be partitioned.
In the related art, in the OTA upgrading process, the condition of the air conditioner running interruption exists, and the user experience is influenced.
Disclosure of Invention
The embodiment of the disclosure discloses a method and a device for controlling an air conditioner, electronic equipment and a storage medium.
According to a first aspect of embodiments of the present disclosure, there is provided a method of controlling an air conditioner, the method including:
carrying out integrity check on data used for executing a preset function in the first storage area to obtain a check result; wherein the predetermined function includes a function of controlling the air conditioner to perform cooling and/or heating;
determining a storage area of the air conditioner for executing the preset function from alternative storage areas based on the verification result; wherein the alternative storage areas comprise the first storage area and a second storage area;
outputting an upgrade request in response to the predetermined function being executed in the second storage area; wherein the upgrade request is for requesting updating of data for executing a predetermined function in the first storage area.
In one embodiment, the integrity checking of the data in the first storage area for performing the predetermined function to obtain the checking result includes:
and in response to the air conditioner running in the third storage area, performing integrity verification on the data used for executing the preset function in the first storage area to obtain a verification result.
In one embodiment, the method further comprises:
responding to the operation of the air conditioner in a third storage area, and switching to the operation in the second storage area;
the integrity checking of the data in the first storage area for executing the predetermined function to obtain a checking result includes:
and after the operation is switched to the second storage area, carrying out integrity check on the data used for executing the preset function in the first storage area to obtain a check result.
In one embodiment, the determining, from the alternative storage areas, the storage area where the air conditioner performs the predetermined function based on the verification result includes:
in response to the verification result passing, determining the storage area of the air conditioner executing the preset function as the first storage area from the alternative storage areas;
or,
and in response to the verification result failing, determining the storage area of the air conditioner executing the predetermined function as the second storage area from the alternative storage area.
In one embodiment, the method further comprises:
in response to determining that the storage area where the air conditioner performs the predetermined function is the first storage area, operating the predetermined function in the first storage area;
or,
and in response to determining that the storage area where the air conditioner performs the predetermined function is the second storage area, operating the predetermined function in the second storage area.
In one embodiment, the storage space of the first storage area is larger than the space of the second storage area.
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 in a predetermined range.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for controlling an air conditioner, the apparatus including:
the verification module is used for carrying out integrity verification on the data used for executing the preset 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;
the determining module is used for determining a storage area of the air conditioner for executing the preset function from alternative storage areas based on the checking result; wherein the alternative storage areas comprise the first storage area and a second storage area;
an output module for outputting an upgrade request in response to the predetermined function being executed in the second storage area; wherein the upgrade request is for requesting updating of data for executing a predetermined function in the first storage area.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to: when the executable instructions are executed, the method of any embodiment of the disclosure is realized.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer storage medium storing a computer-executable program which, when executed by a processor, implements the method of any of the embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, integrity check is performed on data used for executing a predetermined function in a first storage area, and a check result is obtained; wherein the predetermined function includes a function of controlling the air conditioner to perform cooling and/or heating; determining a storage area of the air conditioner for executing the preset function from alternative storage areas based on the verification result; wherein the alternative storage area comprises the first storage area and a second storage area; in this manner, the air conditioner can determine whether the predetermined function is performed in the first storage area or the second storage area. Outputting an upgrade request in response to the predetermined function being executed in the second storage area; wherein the upgrade request is for requesting updating of data for executing a predetermined function in the first storage area. In this way, the air conditioner can output an upgrade request requesting updating of data for performing a predetermined function in the first storage area without interrupting the operation, when the integrity check is not passed. Compared with a mode that the operation of the air conditioner needs to be interrupted during updating, the normal operation of the air conditioner can be continuously ensured, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
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.
Fig. 1 is a flowchart illustrating a method of controlling an air conditioner according to an exemplary embodiment.
FIG. 2 is a schematic diagram illustrating one type of partitioning a memory area, according to an example embodiment.
FIG. 3 is a schematic diagram illustrating one type of partitioning a memory area, according to an example embodiment.
Fig. 4 is a flowchart illustrating a method of controlling an air conditioner according to an exemplary embodiment.
Fig. 5 is a flowchart illustrating a method of controlling an air conditioner according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating an apparatus for controlling an air conditioner according to an exemplary embodiment.
FIG. 7 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like 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. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
In order to facilitate understanding of those skilled in the art, the embodiments of the present disclosure set forth a plurality of implementations for clearly illustrating the technical solutions of the embodiments of the present disclosure. Of course, it can be understood by those skilled in the art that the embodiments provided in the present disclosure can be implemented alone, or can be implemented together with methods of other embodiments in the present disclosure, or can be implemented together with some methods in other related technologies alone or in combination; the disclosed embodiments are not limited in this regard.
For better understanding of the embodiments of the present disclosure, the following describes technical solutions in relevant application scenarios:
in one embodiment, OTA upgrades to the air conditioner firmware are required, and partitioning of the program execution space of the controller is required. There are generally two partitioning methods:
in one embodiment, the program run space is divided into 3 regions, a boot region, a user1 region, and a user2 region. The user1 area and the user2 area are mainly used for storing firmware such as functional logic, operation parameters and the like for storing the air conditioner, and play a backup role with each other; the boot area is mainly used for starting and guiding the MCU, judging OTA upgrading, brushing the firmware package into the user area, copying data of the user1 and the user2 area, and the like. This scheme has two user districts of the same size, and OTA can carry out firmware package to one of them user district and brush when upgrading, and after the data check that brushes in is accomplished, plays the effect of firmware upgrading through copying data or switching user operation district. This scheme is hereinafter referred to as a backed-up OTA scheme. In this embodiment, the advantages are: due to the fact that data are backed up, the situation that the air conditioner cannot normally run the program due to damage of the firmware package, OTA interruption and the like is avoided. The disadvantages of this embodiment are: the firmware package with the same size occupies twice the space in the MCU storage area, and the chip cost is increased.
In one embodiment, there are 2 zones divided into boot and user zones. The user area is mainly used for storing the firmware such as the functional logic, the operating parameters and the like of the air conditioner; the boot area is mainly used for starting and guiding the MCU, judging OTA upgrading and swiping the firmware package into the user area. When OTA is adopted in the scheme, the program can jump to the boot to be executed, the firmware package is obtained from the Internet of things module in the boot, and the firmware package is directly brushed into a user area. This scheme is hereinafter referred to as an OTA scheme without backup area. The advantages of this embodiment are: the user area does not need a backup area, the space of the MCU storage area is small, and the chip cost is low. The disadvantages of this embodiment are: because there is no backup area, the air conditioner can not execute normal function program under the condition of firmware package damage, OTA interruption, etc., and only after successful, the operation can be recovered.
As the functions of air conditioners are more advanced under market driving, the chip space occupied by the program is larger and larger. The strong competition in the market makes it necessary to consider cost factors in designing the air conditioner. More and more air conditioners use OTA schemes without backup areas. The technical scheme combines the advantages of the OTA scheme with a backup area and without the backup area, optimizes the control scheme when the firmware package is damaged, the OTA is interrupted and other exceptions occur, and enables the air conditioner to keep the operation capacity.
As shown in fig. 1, an embodiment of the present disclosure provides a method for controlling an air conditioner, the method including:
step 11, carrying out integrity check on the data used for executing the preset function in the first storage area to obtain a check result; wherein the predetermined function includes a function of controlling the air conditioner to perform cooling and/or heating;
step 12, determining a storage area of the air conditioner for executing the preset function from alternative storage areas based on the verification result; wherein the alternative storage areas comprise the first storage area and a second storage area;
step 13, responding to the predetermined function operated in the second storage area, and outputting an upgrading request; wherein the upgrade request is for requesting updating of data for executing a predetermined function in the first storage area.
In one embodiment, an air conditioner may be provided with a plurality of storage areas. Illustratively, the plurality of memory areas may include a first memory area, a second memory area, and a third memory area. The first storage area may be a user area, the second storage area may be an emergRUN area, and the third storage area may be a boot area. The first memory area and the second memory area may be used to store operating program data that performs a predetermined function. The third storage area is used for storing the functions of starting and guiding, determining OTA upgrading, selecting an alternative storage area and the like. It should be noted that the storage space of the plurality of storage areas may be smaller than the storage space threshold.
In one embodiment, the integrity check of the data in the first memory area for performing the predetermined function may be to check whether the data is incomplete and/or whether the data is corrupted. If it is determined after the integrity check that the data is incomplete and/or the data is corrupted, the check result may be a non-integrity check; alternatively, if the data is determined to be complete and the data is not corrupted after the integrity check, the check result may be a pass of the integrity check.
In one embodiment, integrity check is carried out on data used for executing a preset function in the first storage area, and a check result is obtained; wherein the predetermined function includes a function of controlling the air conditioner to perform cooling and/or heating; determining a storage area of the air conditioner for executing the preset function from alternative storage areas based on the verification result; wherein the alternative storage areas comprise the first storage area and a second storage area; in response to the verification result passing, determining the storage area of the air conditioner for executing the preset function as the first storage area from the alternative storage areas; and in response to determining that the storage area of the air conditioner for executing the predetermined function is the first storage area, operating the predetermined function in the first storage area.
In one embodiment, the storage space of the first storage area is larger than the space of the second storage area.
In one embodiment, the storage space of the second storage area is determined according to the data of the predetermined function after the function reduction.
In one embodiment, the size of the storage space of the second storage area is within a predetermined range, and is, for example, x, then a ≦ x ≦ b, and a and b may be predetermined, and may be, for example, 40 Kbytes.
In one embodiment, a sum of the storage spaces of the first storage area and the second storage area is smaller than a predetermined value.
In one embodiment, integrity check is carried out on data used for executing a preset function in the first storage area, and a check result is obtained; wherein the predetermined function includes a function of controlling the air conditioner to perform cooling and/or heating; determining a storage area of the air conditioner for executing the preset function from alternative storage areas based on the verification result; wherein the alternative storage areas comprise the first storage area and a second storage area; in response to the verification result passing, determining the storage area of the air conditioner executing the preset function as the first storage area from the alternative storage areas; in response to determining that the storage area where the air conditioner performs the predetermined function is the first storage area, operating the predetermined function in the first storage area; the preset function corresponding to the data for executing the preset function in the second storage area is the preset function corresponding to the data for executing the preset function in the first storage area after reduction. It is understood that the predetermined function corresponding to the data for performing the predetermined function in the second memory area is a basic function of the predetermined function corresponding to the data for performing the predetermined function in the first memory area. In one embodiment, a capacity of the data for performing the predetermined function in the second storage area is smaller than a capacity of the data for performing the predetermined function in the first storage area.
In one embodiment, integrity check is carried out on data used for executing a preset function in the first storage area, and a check result is obtained; wherein the predetermined function includes a function of controlling the air conditioner to perform cooling and/or heating; determining a storage area of the air conditioner for executing the preset function from alternative storage areas based on the verification result; wherein the alternative storage area comprises the first storage area and a second storage area; in response to the verification result failing, determining the storage area of the air conditioner executing the predetermined function as the second storage area from the alternative storage area; in response to determining that the storage area where the air conditioner performs the predetermined function is the second storage area, operating the predetermined function in the second storage area; outputting an upgrade request in response to the predetermined function being executed in the second storage area; wherein the upgrade request is for requesting updating of data for executing a predetermined function in the first storage area. For example, outputting the upgrade request may be presenting information of the upgrade request in a display area to prompt a user to perform an update. Here, the display area may be a display of the air conditioner. It should be noted that the update may be an OTA-based update.
In one embodiment, integrity check is carried out on data used for executing a preset function in the first storage area, and a check result is obtained; wherein the predetermined function includes a function of controlling the air conditioner to perform cooling and/or heating; determining a storage area of the air conditioner for executing the preset function from alternative storage areas based on the verification result; wherein the alternative storage areas comprise the first storage area and a second storage area; in response to the verification result failing, determining the storage area of the air conditioner executing the predetermined function as the second storage area from the alternative storage area; in response to determining that the storage area where the air conditioner performs the predetermined function is the second storage area, operating the predetermined function in the second storage area; in response to the predetermined function being operated in the second storage area, sending an upgrade request to a terminal; wherein the upgrade request is for requesting updating of data for executing a predetermined function in the first storage area. And after receiving the upgrading request, the terminal displays the information of the upgrading request in a display area of the terminal to prompt a user to update. Here, the display area may be a display screen of the terminal. In an embodiment, after receiving the upgrade request, the application function of the terminal may display information of the upgrade request in a display area of the terminal to prompt the user to update.
In one embodiment, in response to the air conditioner running in a third storage area, integrity checking is carried out on data used for executing a preset function in the first storage area, and a checking result is obtained; wherein the predetermined function includes a function of controlling the air conditioner to perform cooling and/or heating; determining a storage area of the air conditioner for executing the preset function from alternative storage areas based on the verification result; wherein the alternative storage areas comprise the first storage area and a second storage area; outputting an upgrade request in response to the predetermined function being executed in the second storage area; wherein the upgrade request is for requesting updating of data for executing a predetermined function in the first storage area.
Illustratively, referring to fig. 2, in response to that the air conditioner operates in a boot area, integrity verification is performed on data in a user area for executing a predetermined function, and a verification result is obtained; wherein the predetermined function includes a function of controlling the air conditioner to perform cooling and/or heating; determining a storage area of the air conditioner for executing the preset function from alternative storage areas based on the verification result; wherein the alternative storage areas comprise the user area and an emergRun area; outputting an upgrade request in response to the scheduled function being run in the emergRun area; wherein the upgrade request is for requesting updating of data in the emergRun storage area for performing a predetermined function.
In one embodiment, in response to the air conditioner operating in the third storage area, switching to operating in the first storage area; after the first storage area is switched to operate in the first storage area, carrying out integrity check on data used for executing a preset function in the first storage area to obtain a check result; wherein the predetermined function includes a function of controlling the air conditioner to perform cooling and/or heating; determining a storage area of the air conditioner for executing the preset function from alternative storage areas based on the verification result; wherein the alternative storage areas comprise the first storage area and a second storage area; outputting an upgrade request in response to the predetermined function being executed in the second storage area; wherein the upgrade request is for requesting updating of data for executing a predetermined function in the first storage area.
For example, referring to fig. 3, in response to the air conditioner operating in the boot zone, switching to operating in the user zone; after the switching operation is carried out in the emergRun area, carrying out integrity verification on data used for executing a preset function in the user area to obtain a verification result; wherein the predetermined function includes a function of controlling the air conditioner to perform cooling and/or heating; determining a storage area of the air conditioner for executing the preset function from alternative storage areas based on the verification result; wherein the alternative storage area comprises the user area and an emergRun area; outputting an upgrade request in response to the scheduled function being run in the emergRun area; wherein the upgrade request is for requesting updating of data for executing a predetermined function in the user area.
In one embodiment, integrity check is carried out on data used for executing a preset function in the first storage area, and a check result is obtained; wherein the predetermined function includes a function of controlling the air conditioner to perform cooling and/or heating; in response to the verification result passing, determining the storage area of the air conditioner executing the preset function as the first storage area from the alternative storage areas; or, in response to a failure of the verification result, determining that the storage area where the air conditioner executes the predetermined function is the second storage area from the alternative storage area; outputting an upgrade request in response to the predetermined function being executed in the second storage area; wherein the upgrade request is for requesting updating of data for executing a predetermined function in the first storage area.
In one embodiment, integrity check is carried out on data used for executing a preset function in the first storage area, and a check result is obtained; wherein the predetermined function includes a function of controlling the air conditioner to perform cooling and/or heating; in response to the verification result passing, determining the storage area of the air conditioner executing the preset function as the first storage area from the alternative storage areas; or, in response to the verification result failing, determining the storage area of the air conditioner executing the predetermined function as the second storage area from the alternative storage area; in response to determining that the storage area where the air conditioner performs the predetermined function is the first storage area, operating the predetermined function in the first storage area; or, in response to determining that the storage area where the air conditioner performs the predetermined function is the second storage area, operating the predetermined function in the second storage area.
In the embodiment of the disclosure, integrity check is performed on data used for executing a predetermined function in a first storage area, and a check result is obtained; wherein the predetermined function includes a function of controlling the air conditioner to perform cooling and/or heating; determining a storage area of the air conditioner for executing the preset function from alternative storage areas based on the verification result; wherein the alternative storage areas comprise the first storage area and a second storage area; in this manner, the air conditioner can determine whether the predetermined function is performed in the first storage area or the second storage area. Outputting an upgrade request in response to the predetermined function being executed in the second storage area; wherein the upgrade request is for requesting updating of data for executing a predetermined function in the first storage area. In this way, the air conditioner can output an upgrade request requesting updating of data for performing a predetermined function in the first storage area without interrupting the operation, when the integrity check is not passed. Compared with a mode that the operation of the air conditioner needs to be interrupted during updating, the normal operation of the air conditioner can be continuously ensured, and the user experience is improved.
For a better understanding of the embodiments of the present disclosure, the following further illustrates the technical disclosure by means of two exemplary embodiments:
example 1:
as shown in fig. 4, a method for controlling an air conditioner is provided in an embodiment of the present disclosure, the method including:
step 41, powering on the air conditioner, wherein the air conditioner runs in a boot area;
step 42, carrying out integrity check on the data used for executing the preset function in the user area to obtain a check result; wherein the predetermined function includes a function of controlling the air conditioner to perform cooling and/or heating;
and 43, judging whether the integrity check is passed or not. Determining a storage area where the air conditioner performs the predetermined function from alternative storage areas based on the verification result; wherein the alternative storage areas comprise the first storage area and a second storage area; if the integrity check is passed, go to step 44, otherwise, go to step 46;
step 44, jumping to the user area to operate;
and step 45, operating the preset function in the user area.
Step 46, jumping to an emergRun area for operation;
step 47, executing the predetermined function in the emergRun region; it should be noted that the predetermined function in step 47 may be a reduced function of the predetermined function in step 42 or step 45;
and 48, outputting the upgrading request to an application function, and displaying the information of the upgrading request through the application function.
Example 2:
as shown in fig. 5, a method for controlling an air conditioner is provided in an embodiment of the present disclosure, the method including:
step 51, powering on the air conditioner, wherein the air conditioner runs in a boot area;
step 52, jumping to an emergRun area;
step 53, after the jump is performed to the region where the emergRun runs, performing integrity check on data used for executing a predetermined function in the user region to obtain a check result;
and step 54, judging whether the integrity check is passed. Determining a storage area where the air conditioner performs the predetermined function from alternative storage areas based on the verification result; wherein the alternative storage area comprises the emergRun area and a user area; if the integrity check is passed, go to step 55, otherwise, go to step 57;
step 55, jumping to a user area for operation;
56, operating the preset function in the user area;
step 57, executing the predetermined function in the emergRun area; it should be noted that the predetermined function in step 57 may be a reduced function of the predetermined function in step 53 or step 56;
and step 58, outputting the upgrading request to an application function, and displaying the information of the upgrading request through the application function.
As shown in fig. 6, the present embodiment provides an apparatus for controlling an air conditioner, the apparatus including:
the checking module 61 is configured to perform integrity checking on data used for executing a predetermined function in the first storage area to obtain a checking result; wherein the predetermined function includes a function of controlling the air conditioner to perform cooling and/or heating;
a determining module 62, configured to determine, based on the verification result, a storage area where the air conditioner performs the predetermined function from alternative storage areas; wherein the alternative storage areas comprise the first storage area and a second storage area;
an output module 63, configured to output an upgrade request in response to the predetermined function being executed in the second storage area; wherein the upgrade request is for requesting updating of data for executing a predetermined function in the first storage area.
In one embodiment, the verification module 61 is further configured to:
and in response to the air conditioner running in the third storage area, performing integrity verification on the data used for executing the preset function in the first storage area to obtain a verification result.
In one embodiment, the apparatus further comprises a switching module 64:
the switching module 64 is used for responding to the operation of the air conditioner in the third storage area and switching to the operation in the second storage area;
the checking module 61 is further configured to perform integrity checking on the data in the first storage area for executing the predetermined function after switching to operate in the second storage area, so as to obtain a checking result.
In one embodiment, the determination module 62 is further configured to:
in response to the verification result passing, determining the storage area of the air conditioner executing the preset function as the first storage area from the alternative storage areas;
or,
and in response to the verification result failing, determining the storage area of the air conditioner executing the predetermined function as the second storage area from the alternative storage area.
In one embodiment, the apparatus further comprises:
an operation module 65, configured to, in response to determining that the storage area where the air conditioner performs the predetermined function is the first storage area, operate the predetermined function in the first storage area;
or,
and in response to determining that the storage area where the air conditioner performs the predetermined function is the second storage area, operating the predetermined function in the second storage area.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
An embodiment of the present disclosure further provides a communication device, including:
an antenna;
a memory;
and the processor is respectively connected with the antenna and the memory and used for controlling the antenna to transmit and receive wireless signals by executing the executable program stored in the memory, and can execute the steps of the wireless network access method provided by any of the foregoing embodiments.
The communication device provided in this embodiment may be the aforementioned terminal or base station. The terminal can be various human-borne terminals or vehicle-borne terminals. The base stations may be various types of base stations, such as 4G base stations or 5G base stations, and so on.
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 further include: a WiFi antenna or a wireless charging antenna, etc.
The memory may include various types of storage media, which are non-transitory computer storage media capable of continuing to remember the information stored thereon after a power loss to the communication device.
The processor may be connected to the antenna and the memory via a bus or the like for reading an executable program stored on the memory, e.g. at least one of the methods shown in any of the embodiments of the present disclosure.
The embodiments of the present disclosure further provide a non-transitory computer-readable storage medium, where an executable program is stored in the non-transitory computer-readable storage medium, where the executable program is executed by a processor to implement the steps of the wireless network access method provided in any of the foregoing embodiments, for example, at least one of the methods shown in any of the embodiments of the present disclosure.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating an electronic device 600 according to an example 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, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, electronic device 600 may include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and communication component 616.
The processing component 602 generally controls overall operation of the electronic device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile and non-volatile memory devices 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 or optical disks.
The power supply component 606 provides power to the various components of the electronic device 600. The power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 600.
The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and a 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 an input signal from a 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 boundary of a 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 facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 600 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be 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.
The sensor component 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor component 614 may detect an open/closed state of the device 600, the relative positioning of components, such as a display and keypad of the electronic device 600, the sensor component 614 may also detect a change in the position of the electronic device 600 or a component of the electronic device 600, the presence or absence of user contact with the electronic device 600, orientation or acceleration/deceleration of the electronic device 600, and a change in the temperature of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 614 may also include a light 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.
The communication component 616 is configured to facilitate communications between the electronic device 600 and other devices in a wired or wireless manner. The electronic device 600 may 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 broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
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, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 820 of the electronic device 600 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. A method of controlling an air conditioner, the method comprising:
carrying out integrity check on data used for executing a preset function in the first storage area to obtain a check result; wherein the predetermined function includes a function of controlling the air conditioner to perform cooling and/or heating;
determining a storage area of the air conditioner for executing the preset function from alternative storage areas based on the verification result; wherein the alternative storage areas comprise the first storage area and a second storage area;
in response to the predetermined function being executed in the second storage area, outputting an upgrade request; wherein the upgrade request is for requesting updating of data for executing a predetermined function in the first storage area.
2. The method according to claim 1, wherein the integrity checking the data in the first storage area for executing the predetermined function to obtain the checking result comprises:
and in response to the air conditioner running in the third storage area, performing integrity verification on the data used for executing the preset function in the first storage area to obtain a verification result.
3. The method of claim 1, further comprising:
responding to the operation of the air conditioner in a third storage area, and switching to the operation in the second storage area;
the integrity checking of the data in the first storage area for executing the predetermined function to obtain a checking result includes:
and after the operation is switched to the second storage area, carrying out integrity check on the data used for executing the preset function in the first storage area to obtain a check result.
4. The method of claim 1, wherein the determining the storage area of the air conditioner performing the predetermined function from the alternative storage areas based on the verification result comprises:
in response to the verification result passing, determining the storage area of the air conditioner executing the preset function as the first storage area from the alternative storage areas;
or,
and in response to the verification result failing, determining the storage area of the air conditioner executing the predetermined function as the second storage area from the alternative storage area.
5. The method of claim 4, further comprising:
in response to determining that the storage area where the air conditioner performs the predetermined function is the first storage area, operating the predetermined function in the first storage area;
or,
and in response to determining that the storage area where the air conditioner performs the predetermined function is the second storage area, operating the predetermined function in the second storage area.
6. The method of claim 1, wherein the storage space of the first storage area is larger than the space of the second storage area.
7. The method according to claim 1, wherein the storage space of the second storage area is determined according to the data of the predetermined function after the function reduction;
or,
the size of the storage space of the second storage area is within a predetermined range.
8. An apparatus for controlling an air conditioner, characterized by performing the control method of any one of claims 1 to 7, the apparatus comprising:
the verification module is used for carrying out integrity verification on the data used for executing the preset 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;
the determining module is used for determining a storage area of the air conditioner for executing the preset function from alternative storage areas based on the checking result; wherein the alternative storage areas comprise the first storage area and a second storage area;
an output module for outputting an upgrade request in response to the predetermined function being executed in the second storage area; wherein the upgrade request is for requesting updating of data for executing a predetermined function in the first storage area.
9. An electronic device, characterized in that the electronic device comprises: a processor and a memory for storing a computer service capable of running on the processor, wherein the processor when running the computer service implements the method of any one of claims 1 to 7.
10. A storage medium having computer-executable instructions embodied therein, the computer-executable instructions being executable by a processor to implement the method of any one of claims 1 to 7.
CN202210554219.0A 2022-05-20 2022-05-20 Method and device for controlling air conditioner, electronic equipment and storage medium Pending CN115095950A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210554219.0A CN115095950A (en) 2022-05-20 2022-05-20 Method and device for controlling air conditioner, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210554219.0A CN115095950A (en) 2022-05-20 2022-05-20 Method and device for controlling air conditioner, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115095950A true CN115095950A (en) 2022-09-23

Family

ID=83288599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210554219.0A Pending CN115095950A (en) 2022-05-20 2022-05-20 Method and device for controlling air conditioner, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115095950A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636574A (en) * 2013-11-08 2015-05-20 成都鼎桥通信技术有限公司 Terminal device upgrade method and terminal device
CN105808390A (en) * 2016-04-29 2016-07-27 合肥美的电冰箱有限公司 Home appliance information self-checking and self-recovery method and system and home appliances
CN107273160A (en) * 2017-06-09 2017-10-20 青岛海信电器股份有限公司 A kind of method and device of edition upgrading
CN107643882A (en) * 2017-09-29 2018-01-30 昂纳信息技术(深圳)有限公司 The storage and restoration methods of a kind of data reliability, system and storage device
KR20180101812A (en) * 2017-03-06 2018-09-14 엘지전자 주식회사 Air conditioner and method for controlling the same
CN110086885A (en) * 2019-05-10 2019-08-02 上海擎感智能科技有限公司 The upgrade package method for down loading and device of space download technology, storage medium and terminal
CN112395130A (en) * 2019-08-13 2021-02-23 高新兴科技集团股份有限公司 System backup method and device
CN113204366A (en) * 2021-06-02 2021-08-03 上海酒贝乐信息技术有限公司 Remote upgrading method for intelligent wine selling machine system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636574A (en) * 2013-11-08 2015-05-20 成都鼎桥通信技术有限公司 Terminal device upgrade method and terminal device
CN105808390A (en) * 2016-04-29 2016-07-27 合肥美的电冰箱有限公司 Home appliance information self-checking and self-recovery method and system and home appliances
KR20180101812A (en) * 2017-03-06 2018-09-14 엘지전자 주식회사 Air conditioner and method for controlling the same
CN107273160A (en) * 2017-06-09 2017-10-20 青岛海信电器股份有限公司 A kind of method and device of edition upgrading
CN107643882A (en) * 2017-09-29 2018-01-30 昂纳信息技术(深圳)有限公司 The storage and restoration methods of a kind of data reliability, system and storage device
CN110086885A (en) * 2019-05-10 2019-08-02 上海擎感智能科技有限公司 The upgrade package method for down loading and device of space download technology, storage medium and terminal
CN112395130A (en) * 2019-08-13 2021-02-23 高新兴科技集团股份有限公司 System backup method and device
CN113204366A (en) * 2021-06-02 2021-08-03 上海酒贝乐信息技术有限公司 Remote upgrading method for intelligent wine selling machine system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王莉丽: "《计算机网络与云计算技术及应用》", 31 March 2019, 中国原子能出版社, pages: 141 *

Similar Documents

Publication Publication Date Title
US9860844B2 (en) Method and apparatus of temperature control
EP2991275B1 (en) Making router management application compatible with router firmware
CN104050035B (en) The processing method and processing device of application program
US8631328B2 (en) System and method for controlling interaction between a mobile terminal and a digital picture frame
CN104951335B (en) The processing method and processing device of application program installation kit
CN106020893B (en) Using the method and device of installation
CN105511852A (en) Screen display processing method, and device and equipment
CN114885322B (en) Switch module, terminal control method and device, equipment and storage medium
CN110941321A (en) Power supply method and device for electronic equipment and intelligent equipment
CN106990984B (en) Method and device for updating system
CN107070707B (en) Method and device for determining initialization mode of router
CN105677428A (en) Upgrading method and device for terminal and terminal
CN106201738B (en) System broadcast calling method and device
CN112214254A (en) Method and device for accelerating starting of application program and electronic equipment
CN114416127A (en) Terminal software upgrading method, terminal software upgrading device and storage medium
CN108829532B (en) Fingerprint detection method, device and readable storage medium
CN107039054B (en) The way of recording and device
CN115095950A (en) Method and device for controlling air conditioner, electronic equipment and storage medium
CN111722919B (en) Method and device for running background application program, storage medium and electronic equipment
CN107819871B (en) Application state determination method and device
CN112187326A (en) Antenna control method, device, equipment and storage medium
CN113727248A (en) Method, device and medium for playing audio by loudspeaker
CN105893146B (en) Memory processing method and device
CN115277276B (en) Program upgrading method and device for air conditioner, air conditioning system and storage medium
CN114595003B (en) Application starting method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination