Backup method and device for firmware upgrade package
By judging and managing the occupancy status of the shared storage area in the firmware upgrade package backup method, the problem of upgrade failure caused by insufficient firmware storage space is solved, and the success rate of firmware upgrade and backup efficiency are improved.
Patent Information
- Application Number
- CN202410868362.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-01
AI Technical Summary
When the firmware storage space is small, when upgrading via over-the-air technology (OTA), failure to perform backup and direct upgrade may cause the chip to crash, causing the firmware upgrade to fail and the upgrade to fail.
Provide a method and device for backing up a firmware upgrade package. By judging whether the shared storage area has been occupied, if it is not occupied, it will be backed up directly. If it is occupied, the occupied status will be cleared and backed up to ensure that the firmware upgrade package is in the first shared storage. Make backups within the zone.
It improves the success rate of firmware upgrades, solves the problem of backup failures caused by insufficient storage space, ensures that other firmwares can share the storage area for backup, and avoids failures caused by skipping backups and directly upgrading.
Smart Images

Figure CN118733345A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more particularly to a method and device for backing up a firmware upgrade package. Background Art
[0002] The device can perform Over-the-Air Technology (OTA) upgrades on one or more internal firmwares. Taking air conditioners as an example, an air conditioner may contain multiple firmwares, such as an indoor unit, an outdoor unit, an indoor fan, etc. When the storage space of the firmware chip is small, it is often upgraded directly without backup. If the upgrade fails, the chip may freeze, resulting in the inability to complete the firmware upgrade. Summary of the invention
[0003] The present application provides a method and device for backing up a firmware upgrade package.
[0004] The technical solution of this application is as follows:
[0005] According to a first aspect of an embodiment of the present application, a method for backing up a firmware upgrade package is provided, the method comprising:
[0006] Receiving firmware upgrade packages of multiple firmwares, and determining a target backup area of the currently received firmware upgrade package;
[0007] In response to the target backup area being a first shared storage area of the first firmware, determining whether the first shared storage area has been occupied;
[0008] In response to the first shared storage area being unoccupied, backing up the firmware upgrade package to the first shared storage area;
[0009] In response to the first shared storage area being occupied, the first shared storage area is cleared and the firmware upgrade package is backed up in the first shared storage area.
[0010] According to a second aspect of an embodiment of the present application, a device for backing up a firmware upgrade package is provided, the device comprising:
[0011] A transceiver module, used for receiving firmware upgrade packages of multiple firmwares;
[0012] A determination module, used to determine a target backup area of a currently received firmware upgrade package;
[0013] A judging module, configured to judge whether the first shared storage area is occupied when the target backup area is the first shared storage area of the first firmware;
[0014] A backup module is used to back up the firmware upgrade package to the first shared storage area when the first shared storage area is not occupied; or to clear the first shared storage area and back up the firmware upgrade package to the first shared storage area when the first shared storage area is occupied.
[0015] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the program, a method for backing up a firmware upgrade package as provided in the first aspect of the present application is implemented.
[0016] According to the fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute the firmware upgrade package backup method provided in the first aspect of the present application.
[0017] According to a fifth aspect of an embodiment of the present application, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method for backing up a firmware upgrade package as provided in the first aspect of the present application.
[0018] According to the sixth aspect of an embodiment of the present application, a chip system is provided, comprising a processing unit and an interface circuit, wherein the processing unit obtains program instructions through the interface circuit, and the program instructions are executed by the processing unit, and the processing unit is used to execute the firmware upgrade package backup method provided in the first aspect.
[0019] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0020] In a method for backing up a firmware upgrade package of an embodiment of the present application, when the target backup area of the firmware upgrade package is the first shared storage area that shares the first firmware, it is possible to first determine whether the first shared storage area has been occupied, and when the first shared storage area is not occupied, directly back up the firmware upgrade package to the first shared storage area; or, when the first shared storage area has been occupied, clear the first shared storage area and back up the firmware upgrade package to the first shared storage area. In the present application, other firmware can share the first shared storage area of the first firmware, that is, can be backed up in the first shared storage area, which can solve the problem that other firmware cannot be backed up when the storage space is small, thereby improving the success rate of firmware upgrade.
[0021] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.
[0023] Figure 1 The figure is a flowchart of a method for backing up a firmware upgrade package according to an exemplary embodiment.
[0024] Figure 2 The figure is a flowchart of another method for backing up a firmware upgrade package according to an exemplary embodiment.
[0025] Figure 3 The figure is a flowchart of another method for backing up a firmware upgrade package according to an exemplary embodiment.
[0026] Figure 4 The figure is a flowchart of another method for backing up a firmware upgrade package according to an exemplary embodiment.
[0027] Figure 5 The figure is a flowchart of another method for backing up a firmware upgrade package according to an exemplary embodiment.
[0028] Figure 6 The figure is a flowchart of another method for backing up a firmware upgrade package according to an exemplary embodiment.
[0029] Figure 6a The diagram is an interactive diagram of a method for backing up a firmware upgrade package according to an exemplary embodiment.
[0030] Figure 7 The present invention is a structural block diagram of an electronic device according to an exemplary embodiment.
[0031] Figure 8 It is a structural block diagram of another electronic device according to an exemplary embodiment.
[0032] Fig. 9 It is a structural block diagram of a chip system according to some embodiments of the present application. DETAILED DESCRIPTION
[0033] In order to enable ordinary persons in the art to better understand the technical solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0035] Figure 1 A flowchart of a method for backing up a firmware upgrade package provided in an embodiment of the present application.
[0036] like Figure 1 As shown, the method for backing up the firmware upgrade package includes but is not limited to the following steps:
[0037] S101, receiving firmware upgrade packages of multiple firmwares, and determining a target backup area of the currently received firmware upgrade package.
[0038] In an embodiment of the present application, multiple firmwares are firmwares of the same device, and the device may be an Internet of Things device, an Internet of Vehicles device, a terminal device, or other electronic device.
[0039] In some embodiments, one of the multiple firmwares with a larger storage space can be used as the execution subject to execute the backup method of the firmware upgrade package provided in the embodiments of the present application. For example, the firmware with the largest storage space among the multiple firmwares can be selected as the execution subject. For another example, the firmware with a storage space larger than the set capacity can be determined, and one of these firmwares can be selected as the execution subject. In the embodiments of the present application, the firmware of the indoor unit is selected as the execution subject of the backup method of the firmware upgrade package.
[0040] In some embodiments, the firmware upgrade package of the firmware may be a binary (bin) file.
[0041] In some embodiments, firmware upgrade packages of multiple firmware can be received in a set order. For example, taking the air conditioner as an example, the firmware upgrade package of the outdoor unit can be received first, and then the firmware upgrade package of the indoor unit can be received, and then the firmware upgrade package of the indoor fan can be received. This can also be understood as downloading the firmware upgrade packages of multiple firmware in a set order.
[0042] Optionally, the user may initiate an Over-the-Air Technology (OTA) upgrade request for a device (such as an air conditioner) through a remote control or voice control.
[0043] Optionally, the user may initiate an OTA upgrade request for a device (such as an air conditioner) on the client.
[0044] In some embodiments, the OAT upgrade request carries device information, for example, the model or serial number of the device.
[0045] Furthermore, the wireless communication module (WiFi module) of the device may receive an upgrade data set matching the model. Optionally, the upgrade data set may include firmware upgrade packages of multiple firmware of the air conditioner.
[0046] In some embodiments, the firmware to be upgraded corresponding to the firmware upgrade package can be determined according to the firmware upgrade package. The firmware upgrade package may include the IP address of the firmware to be upgraded and / or the identifier of the firmware to be upgraded. Optionally, the IP address of the firmware to be upgraded and / or the identifier of the firmware to be upgraded can be carried in the header of the firmware upgrade package, so that the IP address of the firmware to be upgraded and / or the identifier of the firmware to be upgraded can be obtained by parsing the header. Further, based on the IP address of the firmware to be upgraded and / or the identifier of the firmware to be upgraded, the firmware type of the firmware to be upgraded can be determined.
[0047] Furthermore, according to the firmware to be upgraded, a target backup area of the firmware upgrade package is determined from the first common storage area of the first firmware and the second common storage area of the second firmware.
[0048] Optionally, if the firmware to be upgraded is one of the first firmware and the third firmware, the first shared storage area of the first firmware is determined as the target backup area of the firmware upgrade package.
[0049] Optionally, if the firmware to be upgraded is the second firmware, the second shared storage area of the second firmware is determined as the target backup area of the firmware upgrade package.
[0050] It is understandable that in the embodiment of the present application, the storage space of the first firmware and the second firmware is divided into: a first operation storage area and a first shared storage area. The storage space of the second firmware is divided into: a second operation storage area and a second shared storage area.
[0051] S102: In response to the target backup area being the first shared storage area of the first firmware, determining whether the first shared storage area is occupied.
[0052] In some embodiments, the occupation status of the target backup area can be marked by a status flag. For example, if the value of the status flag is "0", it can be determined that the target backup area is in an idle state, that is, the target backup area is not occupied. For example, if the value of the status flag is "1", it can be determined that the target backup area is in a used state, that is, the target backup area is occupied.
[0053] In some embodiments, it is possible to determine whether the target backup area is in an occupied state by the current remaining available capacity of the target backup area. For example, if the remaining available capacity of the target backup is greater than the set capacity, it can be determined that the target backup area is in an idle state, that is, the target backup area is not occupied. For example, if the remaining available capacity of the target backup is less than or equal to the set capacity, it can be determined that the target backup area is in a used state, that is, the target backup area is occupied.
[0054] After receiving the current firmware upgrade package, it can be determined whether the target backup area is in an occupied state based on the state flag bit or the remaining available capacity of the target backup area.
[0055] S103: In response to the first shared storage area being unoccupied, backing up the firmware upgrade package to the first shared storage area.
[0056] S104, in response to the first shared storage area being occupied, clearing the first shared storage area and backing up the firmware upgrade package in the first shared storage area.
[0057] In some embodiments, if it is determined that the first shared storage area is occupied, in order to enable the currently received firmware upgrade package to be backed up in the first shared storage area, the first shared storage area needs to be cleared and further, the firmware upgrade package needs to be backed up in the first shared storage area.
[0058] Optionally, the historical firmware upgrade package currently occupying the first shared storage area may be determined. Further, if the firmware corresponding to the historical firmware upgrade package has been upgraded, the historical firmware upgrade package may be deleted from the first shared storage area to release space in the first shared storage area.
[0059] After the occupation of the first shared storage area is cleared, the currently received firmware upgrade package can be backed up in the first shared storage area. In the embodiment of the present application, the firmware upgrade package does not need to wait for all reception to be completed before backing up, and the data in the firmware upgrade package can be backed up while receiving to improve the backup efficiency of the firmware upgrade package.
[0060] In the embodiment of the present application, when the target backup area of the firmware upgrade package is the first shared storage area that shares the first firmware, it is possible to first determine whether the first shared storage area has been occupied. If the first shared storage area is not occupied, the firmware upgrade package is directly backed up to the first shared storage area; or, if the first shared storage area is occupied, the first shared storage area is cleared and the firmware upgrade package is backed up to the first shared storage area. In the present application, other firmware can share the first shared storage area of the first firmware, that is, it can be backed up in the first shared storage area, which can solve the problem that other firmware cannot be backed up when the storage space is small, thereby avoiding the problem of skipping the backup and directly upgrading, and improving the success rate of the firmware upgrade.
[0061] On the basis of the above embodiment, after the firmware upgrade package is backed up, the firmware can also be upgraded based on the backed-up firmware upgrade package. Figure 2 A flowchart of a method for backing up a firmware upgrade package provided in an embodiment of the present application.
[0062] like Figure 2 As shown, the method for backing up the firmware upgrade package includes but is not limited to the following steps:
[0063] S201, receiving firmware upgrade packages of multiple firmwares, and determining a target backup area of the currently received firmware upgrade package.
[0064] S202: In response to the target backup area being the first shared storage area of the first firmware, determine whether the first shared storage area is occupied.
[0065] S203: In response to the first shared storage area being not occupied, back up the firmware upgrade package to the first shared storage area.
[0066] S204: In response to the first shared storage area being occupied, clearing the first shared storage area and backing up the firmware upgrade package in the first shared storage area.
[0067] For a detailed introduction to steps S201 to S204, please refer to the implementation methods in the embodiments of the present application, which will not be repeated here.
[0068] S205: Configure the upgrade flag of the firmware to be upgraded.
[0069] In the embodiment of the present application, an upgrade flag can be set for the firmware, and the value of the upgrade flag can indicate whether the firmware has been upgraded. For example, the value of the upgrade flag is "1", which can indicate that the firmware is in a non-upgraded state. For another example, the value of the upgrade flag is "0", which can indicate that the firmware is in an upgraded state.
[0070] After completing the backup of the firmware upgrade package, you can configure the upgrade flag of the firmware to be upgraded that is associated with the firmware upgrade package. For example, you can configure the value of the upgrade flag to be "1", thereby indicating that the firmware to be upgraded is in a non-upgraded state, so that you can read the firmware upgrade package later to upgrade it.
[0071] S206, when it is detected that the upgrade condition of the firmware to be upgraded is met, the upgrade flag bit of the firmware to be upgraded is read.
[0072] Optionally, in order to ensure that the upgrade process of the firmware to be upgraded does not affect the user experience, the firmware to be upgraded can be upgraded and the upgrade flag of the firmware to be upgraded can be read each time the firmware to be upgraded is powered on again or the firmware upgrade packages of all the firmware are received. In other words, the upgrade condition of the firmware to be upgraded can be that the firmware to be upgraded is powered on again or the firmware upgrade packages of all the firmware are received.
[0073] S207: Determine whether to send a firmware upgrade package to the running storage area of the firmware to be upgraded according to the upgrade flag.
[0074] In an embodiment of the present application, based on the value of the upgrade flag, it is determined whether to send a firmware upgrade package to the running storage area of the firmware to be upgraded. That is, based on the value of the upgrade flag, it is determined whether the firmware to be upgraded can be upgraded based on the firmware upgrade package.
[0075] S208: In response to the value of the upgrade flag being a set value, sending a firmware upgrade package to the running storage area of the firmware to be upgraded.
[0076] In the embodiment of the present application, other firmware can share the first shared storage area of the first firmware, that is, can be backed up in the first shared storage area, which can solve the problem that other firmware cannot be backed up when the storage space is small. Furthermore, when the upgrade conditions are met and the upgrade flag indicates that the firmware can be upgraded, the firmware upgrade package can be obtained from the target backup area and then upgraded, which can avoid the problem of skipping the backup and upgrading directly, and can improve the success rate of the firmware upgrade.
[0077] Based on the above embodiment, for each firmware to be upgraded, before the firmware upgrade package of the firmware to be upgraded is stored and backed up in the corresponding target backup area, the first version information can be obtained from the firmware upgrade package and the current second version information of the firmware to be upgraded can be determined.
[0078] Further, it is determined whether the first version information and the second version information are consistent. If the first version information and the second version information are inconsistent, the currently received firmware upgrade package can be backed up in the first shared storage area. If the first version information and the second version information are consistent, the currently received firmware upgrade package can be discarded to avoid resource waste caused by backup.
[0079] Optionally, when the first version information and the second version information are consistent, indication information of version information abnormality may be fed back to the upgrade server to re-acquire the firmware upgrade package of the firmware to be upgraded, thereby enabling the firmware to be upgraded to complete the upgrade.
[0080] On the basis of the above embodiments, for each firmware to be upgraded, after the firmware to be upgraded meets the upgrade conditions, the firmware upgrade package can be read from the target backup area and stored in the running storage area of the firmware to be upgraded itself. Furthermore, based on the firmware upgrade package stored in the running storage area, the firmware to be upgraded is upgraded.
[0081] On the basis of the above embodiment, during the process of transmitting the firmware upgrade package of the firmware to be upgraded, if the transmission of the firmware upgrade package is interrupted, for example, the firmware to be upgraded will have a response message during the transmission process. If the response message is not received for a long time, it can be determined that the firmware to be upgraded is faulty, and the process of re-reading the firmware upgrade package is returned until the firmware to be upgraded is successfully upgraded. Through the interrupt retransmission mechanism, the firmware upgrade success rate can be improved.
[0082] On the basis of the above embodiment, for each firmware to be upgraded, after the firmware upgrade package of the firmware to be upgraded is backed up, an upgrade completion indication of the firmware to be upgraded can be fed back to the upgrade server, which can indicate to disconnect the links between the two parties to save network resources.
[0083] It is understandable that the second shared storage area of the second firmware can also be used as a backup area that can be shared by other firmware, and can be transparently transmitted to the second shared storage area through the first running storage area of the first firmware. It should be noted that when executing the upgrade process, it is necessary to read the upgrade package of other firmware from the second shared storage area and store it in the running storage area of other firmware itself.
[0084] Figure 3 A flowchart of another method for backing up a firmware upgrade package provided in an embodiment of the present application.
[0085] like Figure 3 As shown, the method for backing up the firmware upgrade package includes but is not limited to the following steps:
[0086] S301, receiving a plurality of firmware upgrade packages.
[0087] S302: After identifying that the currently received firmware upgrade package is a firmware upgrade package of the first firmware, determine the first common storage area of the first firmware as a target backup area of the firmware upgrade package.
[0088] In the embodiment of the present application, the storage space of the first firmware is divided into: a first running storage area and a first shared storage area. Since both the first firmware and the third firmware need to occupy the first shared storage area of the first firmware, when the currently received firmware upgrade package is identified as a firmware upgrade package of the first firmware, the first shared storage area of the first firmware can be determined as the target backup area of the firmware upgrade package.
[0089] For a detailed description of steps S301 to S302, please refer to the implementation methods in the embodiments of the present application, which will not be repeated here.
[0090] S303, determining whether the first shared storage area is occupied.
[0091] For a detailed introduction to step S303, please refer to the implementation methods in each embodiment of the present application, which will not be repeated here.
[0092] In response to the first shared storage area being unoccupied, step S304 is executed; in response to the first shared storage area being occupied, step S305 is executed.
[0093] S304: Back up the firmware upgrade package of the first firmware to the first shared storage area.
[0094] S305: clear the first shared storage area and back up the firmware upgrade package of the first firmware into the first shared storage area.
[0095] In some embodiments, the multiple firmwares may include a first firmware, a second firmware, and a third firmware, and the firmware upgrade packages of the multiple firmwares may be received in a set order. In the embodiment of the present application, the order of receiving the firmware upgrade package of the first firmware is earlier than the order of receiving the firmware upgrade package of the third firmware. For example, the order of receiving the multiple firmwares may be the first firmware, the second firmware, and the third firmware. For another example, the order of receiving the multiple firmwares may be the second firmware, the first firmware, and the third firmware.
[0096] It can be understood that the third firmware can be other firmware except the first firmware and the second firmware, and the number can be multiple.
[0097] Since the first firmware is received earlier than the third firmware, when it is determined that the currently received firmware upgrade package is the first firmware, the first shared storage area of the current first firmware is in an unoccupied state, step 203 can be skipped and the firmware upgrade package of the first firmware can be directly backed up in the first shared storage area.
[0098] Taking a smart air conditioner as an example, the multiple firmwares may include at least: an indoor unit, an outdoor unit, an indoor fan, etc. The embodiments of the present application take a smart air conditioner as an example to explain the backup method of the firmware upgrade package of the first firmware.
[0099] In the OTA upgrade scenario of the air conditioner, in the OTA upgrade scenario of the air conditioner, the first firmware is the indoor unit of the air conditioner, and the firmware upgrade packages of multiple firmwares of the air conditioner can be received. When it is determined that the currently received firmware upgrade package is the upgrade package of the indoor unit, the first shared storage area of the indoor unit can be determined as the target backup area of the firmware upgrade package. Furthermore, when the first shared storage area is not occupied, the currently received firmware upgrade package of the indoor unit is stored and backed up in the first shared storage area of the indoor unit.
[0100] Optionally, before backing up the firmware upgrade package of the indoor unit to the first shared storage area of the indoor unit, it is also necessary to determine whether the first version information of the firmware upgrade package is consistent with the current second version information of the indoor unit. If the first version information and the second version information are inconsistent, the first data part currently received by the firmware upgrade package can be backed up in the first shared storage area. If the first version information and the second version information are consistent, the first data part currently received by the firmware upgrade package can be discarded. Optionally, when the first version information and the second version information are consistent, an indication of version information abnormality can also be fed back to the upgrade server to re-acquire the firmware upgrade package of the indoor unit, so that the indoor unit can complete the upgrade.
[0101] Furthermore, when the indoor unit meets the upgrade conditions, it can read the firmware upgrade package of the indoor unit from the first shared storage area and write the firmware upgrade package of the indoor unit into the first running storage area to perform an upgrade process for the indoor unit based on the firmware upgrade package of the indoor unit.
[0102] In the embodiment of the present application, the first firmware can back up the firmware upgrade package in its own first shared storage area, thereby realizing double backup of the upgrade package of the first firmware. When the upgrade fails, the firmware upgrade package can be retrieved, thereby improving the success rate of the firmware upgrade.
[0103] Figure 4 A flowchart of another method for backing up a firmware upgrade package provided in an embodiment of the present application.
[0104] like Figure 4 As shown, the method for backing up the firmware upgrade package includes but is not limited to the following steps:
[0105] S401, receiving a plurality of firmware upgrade packages.
[0106] S402: When identifying that the currently received firmware upgrade package is a firmware upgrade package of the second firmware, determining the second shared storage area of the second firmware as a target backup area of the firmware upgrade package.
[0107] S403: Determine that the first running storage area of the first firmware is a cache storage area of the firmware upgrade package.
[0108] S404, first cache the firmware upgrade package in the first running storage area, and then transparently transmit the firmware upgrade package to the second shared storage area.
[0109] Taking a smart air conditioner as an example, the multiple firmwares may include at least: an indoor unit, an outdoor unit, an indoor fan, etc. The embodiments of the present application take a smart air conditioner as an example to explain the backup method of the firmware upgrade package of the second firmware.
[0110] In the OTA upgrade scenario of the air conditioner, the first firmware is for the indoor unit of the air conditioner, and the second firmware is for the outdoor unit of the air conditioner.
[0111] Optionally, when it is determined that the currently received firmware upgrade package is an upgrade package for the outdoor unit, the first running storage area of the indoor unit can be determined as a cache storage area for the firmware upgrade package, and the second shared storage area of the outdoor unit can also be determined as a target backup area for the firmware upgrade package.
[0112] In an embodiment of the present application, the indoor unit can receive a firmware upgrade package of the outdoor unit from an upgrade server, and cache the data currently received by the firmware upgrade package in the first running storage area. Furthermore, the indoor unit caches the currently received firmware upgrade package in the first running storage, and transparently transmits it to the second shared storage area of the outdoor unit for storage backup.
[0113] It is understandable that, after the indoor unit transparently transmits part of the data in the firmware upgrade package to the outdoor unit each time, the part of the data that has been transparently transmitted can be deleted from the first operation storage area to release the first operation storage area of the indoor unit.
[0114] Optionally, before caching the firmware upgrade package of the outdoor unit in the first operation storage area of the indoor unit, it is also necessary to determine whether the first version information of the firmware upgrade package is consistent with the current second version information of the outdoor unit. If the first version information and the second version information are inconsistent, the first data part currently received by the firmware upgrade package can be cached in the first operation storage area. If the first version information and the second version information are consistent, the firmware upgrade package of the outdoor unit can be discarded. Optionally, when the first version information and the second version information are consistent, the indication information of the version information abnormality can also be fed back to the upgrade server to re-acquire the firmware upgrade package of the outdoor unit, thereby ensuring that the outdoor unit can complete the upgrade.
[0115] In an embodiment of the present application, the firmware upgrade package of the second firmware can be transparently transmitted to the second shared storage area through the first running storage area, thereby realizing a double backup of the upgrade package of the second firmware. When the upgrade fails, the firmware upgrade package can be retrieved, thereby improving the success rate of the firmware upgrade.
[0116] Figure 5 A flowchart of another method for backing up a firmware upgrade package provided in an embodiment of the present application.
[0117] like Figure 5 As shown, the method for backing up the firmware upgrade package includes but is not limited to the following steps:
[0118] S501, receiving a plurality of firmware upgrade packages.
[0119] S502: When identifying that the currently received firmware upgrade package is a firmware upgrade package of the third firmware, determining that the target backup area of the firmware upgrade package is the first shared storage area of the first firmware.
[0120] S503: Determine whether the first shared storage area is occupied.
[0121] For a detailed introduction to step S503, please refer to the implementation methods in each embodiment of the present application, which will not be repeated here.
[0122] In response to the first shared storage area being unoccupied, step S504 is executed; in response to the first shared storage area being occupied, step S505 is executed.
[0123] S504: Back up the firmware upgrade package of the third firmware to the first shared storage area.
[0124] S505: clear the first shared storage area and back up the firmware upgrade package of the first firmware to the third shared storage area.
[0125] Taking a smart air conditioner as an example, the multiple firmwares may include at least: an indoor unit, an outdoor unit, an indoor fan, etc. The embodiments of the present application take a smart air conditioner as an example to explain the backup method of the firmware upgrade package of the third firmware.
[0126] In the OTA upgrade scenario of the air conditioner, the first firmware is for the indoor unit, the second firmware is for the outdoor unit, and the third firmware can be for the indoor fan. The indoor unit receives a firmware upgrade package, and when the firmware upgrade package is identified as an upgrade package for the indoor fan, the first shared storage area of the indoor unit can be determined as the target backup area for the firmware upgrade package for the indoor fan.
[0127] Optionally, before the firmware upgrade package of the indoor fan is downloaded, firmware upgrade packages of other firmware may be backed up in the first shared storage area. Since the storage capacity of the first shared storage area is limited, after receiving the firmware upgrade package of the indoor fan, it can be determined whether the first shared storage area is occupied. If the first shared storage area is occupied, in order to store the firmware upgrade package of the indoor fan, the first shared storage area can be cleared and then the firmware upgrade package of the indoor fan can be backed up to the first shared storage area.
[0128] When all firmware upgrade packages of the indoor fan are downloaded and the indoor fan meets the upgrade conditions, for example, the indoor fan is turned off, or the air conditioner is powered on again, the firmware upgrade package of the indoor fan can be read from the first shared storage area, sent to the indoor fan, and written into the running storage area of the indoor fan, so that the indoor fan completes its own upgrade based on the firmware upgrade package.
[0129] In the embodiment of the present application, other firmware can share the first shared storage area of the first firmware, that is, can be backed up in the first shared storage area, which can solve the problem that other firmware cannot be backed up when the storage space is small. Furthermore, when the upgrade conditions are met and the upgrade flag indicates that the firmware can be upgraded, the firmware upgrade package can be obtained from the target backup area and then upgraded, which can avoid the problem of skipping the backup and upgrading directly, and can improve the success rate of the firmware upgrade.
[0130] Figure 6 A flowchart of another method for backing up a firmware upgrade package provided in an embodiment of the present application.
[0131] like Figure 6 As shown, the method for backing up the firmware upgrade package includes but is not limited to the following steps:
[0132] S601, the indoor unit receives the firmware upgrade package of the outdoor unit.
[0133] In some embodiments, a firmware upgrade package of each of the multiple firmwares of the air conditioner can be received. One of the multiple firmwares with a larger storage space can be used as the execution subject to execute the method for backing up the firmware upgrade package provided in the embodiment of the present application. For example, the firmware with the largest storage space among the multiple firmwares can be selected as the execution subject. For another example, the firmware with a storage space larger than the set capacity can be determined, and one of these firmwares can be selected as the execution subject. In the embodiment of the present application, the firmware of the indoor unit is selected as the execution subject of the method for backing up the firmware upgrade package.
[0134] Optionally, firmware upgrade packages of multiple firmware can be received in a set order. For example, the firmware upgrade package of the outdoor unit can be received first, and then the firmware upgrade package of the indoor unit can be received, and then the firmware upgrade package of the indoor fan can be received. This can also be understood as downloading the firmware upgrade packages of multiple firmware in a set order.
[0135] S602: Cache the firmware upgrade package in the first running storage area of the indoor unit, and synchronously and transparently transmit it to the second shared storage area of the outdoor unit for backup.
[0136] S6021, the outdoor unit reads the firmware upgrade package of the outdoor unit from the second shared storage area, and stores it in the second running backup area of the outdoor unit.
[0137] S6022, the outdoor unit is upgraded based on its own firmware upgrade package.
[0138] S603: The indoor unit receives the firmware upgrade package of the indoor unit and backs it up in the first shared storage area of the indoor unit.
[0139] S6031, the indoor unit reads the firmware upgrade package of the outdoor unit from the first shared storage area and stores it in the first running backup area.
[0140] S6032, the indoor unit is upgraded based on its own firmware upgrade package.
[0141] S604: The indoor unit receives the firmware upgrade package of the indoor fan and determines whether the first shared storage area is occupied.
[0142] S605: If the first shared storage area is not occupied, back up the firmware upgrade package of the indoor fan in the first shared storage area.
[0143] S606: If the first shared storage area is occupied, clear the first shared storage area and back up the firmware upgrade package of the indoor fan in the first shared storage area.
[0144] S607, configure the upgrade flag of the indoor fan.
[0145] S6071: When the indoor fan meets the upgrade conditions, read the upgrade flag.
[0146] S6072: Determine whether to send a firmware upgrade package to the running storage area of the indoor fan according to the upgrade flag.
[0147] S6073: In response to the upgrade flag bit taking a set value, a firmware upgrade package is sent to the operation storage area of the indoor fan.
[0148] S6074, the indoor fan is upgraded based on its own firmware fan package.
[0149] The air conditioner can include three firmwares: indoor unit, outdoor unit and outdoor fan. Since the storage space of the indoor fan is small, it is not suitable for double backup. After the storage space of the indoor unit and outdoor unit meets its own backup, there is still some space left to store the upgrade data of other firmware. Figure 6a The interactive schematic diagram of the method for backing up the firmware upgrade package provided in the embodiment of the present application is as follows: Figure 6a As shown, the upgrade server may include firmware upgrade packages for the indoor unit, outdoor unit and outdoor fan, and further, may also include firmware upgrade packages for wireless communication firmware. Optionally, the wireless communication firmware may be a product developed in a WebAssembly (WASM for short) environment.
[0150] Optionally, the upgrade server may integrate multiple firmware upgrade packages into one data packet. Furthermore, the data packet may include a master terminal, and the master terminal may carry version information.
[0151] The storage space of the indoor unit includes a first operation storage area and a first common storage area, the storage space of the outdoor unit includes a second operation storage area and a second common storage area, and the indoor fan only includes a third operation storage area due to its small storage space.
[0152] After the user initiates an OTA upgrade of the air conditioner on the client, the air conditioner's wifi module can download the corresponding complete upgrade data package according to the corresponding air conditioner model number (model), that is, the complete upgrade data package can include the respective firmware upgrade packages of the indoor unit, outdoor unit and indoor fan. Furthermore, in an embodiment of the present application, the firmware upgrade package of each firmware can be downloaded to the indoor unit. The indoor unit allocates the firmware upgrade package to the backup area corresponding to the firmware according to the firmware package address.
[0153] After initiating an OTA upgrade request to the upgrade server, the indoor unit communicates with the outdoor unit and the indoor fan at the same time. When the wifi module starts to send the firmware upgrade package to the indoor unit, the indoor unit determines the address of the currently received firmware upgrade package to receive the firmware upgrade package of the outdoor unit first. The indoor unit can send the received data to the outdoor unit while receiving it. Figure 6a As shown, the firmware upgrade package of the outdoor unit can be backed up to the second shared storage area of the outdoor unit through the first running storage area.
[0154] When the outdoor unit meets the upgrade conditions, its own firmware upgrade package can be read from the second common storage area and written into the second operation storage area to implement the upgrade of the outdoor unit.
[0155] Furthermore, the indoor unit receives its own firmware upgrade package and stores it in its own first shared storage area. When the indoor unit meets the upgrade conditions, it reads its own firmware upgrade package from the first shared storage area and writes it into the first running storage area to upgrade the indoor unit. Optionally, after receiving the firmware upgrade package of the indoor unit, an upgrade completion indication can be fed back to the upgrade server.
[0156] Furthermore, when receiving the firmware upgrade package of the indoor fan, since the upgrade package of the indoor unit is backed up in the first shared storage area, the first shared storage area may be cleared first, and then the upgrade package of the indoor fan may be backed up in the first shared storage area.
[0157] Optionally, the upgrade flag position of the indoor fan is set to "1" in the data flash to indicate that the indoor fan can be upgraded.
[0158] Furthermore, the user can turn on the machine to upgrade the indoor fan. Considering the time it takes for the indoor unit to send a firmware upgrade package to the indoor fan, in order to ensure that the upgrade of the indoor fan does not affect the user's experience, the upgrade flag of the indoor fan in the dataflash can be read each time the indoor unit is powered on again, or after receiving each firmware upgrade package. If the flag is judged to be 1, a program package is sent to the indoor fan. If a power outage occurs during this period, the transmission is interrupted and the indoor fan fault is displayed after the power is turned on again. At the same time, the indoor unit initiates the upgrade again until the indoor fan is successfully upgraded and starts running normally.
[0159] Optionally, after the firmware upgrade package of each firmware is received, an upgrade completion indication of the firmware can be sent to the upgrade server. Optionally, for each firmware, before backing up its own firmware upgrade package, it is also necessary to determine whether the first version information of the firmware upgrade package and the current second version information of the firmware are consistent. If the first version information and the second version information are inconsistent, the currently received firmware upgrade package can be backed up in the first shared storage area. If the first version information and the second version information are consistent, the currently received firmware upgrade package can be discarded. Optionally, when the first version information and the second version information are consistent, an indication of the version information abnormality can also be fed back to the upgrade server to re-acquire the firmware upgrade package, so that the firmware can complete the upgrade.
[0160] In the embodiment of the present application, the firmware upgrade packages of the outdoor unit, the indoor unit and the indoor fan can be received in sequence, and can be backed up to their respective target backup areas to achieve a dual backup function. When the upgrade fails, the firmware upgrade package can be re-read, thereby improving the success rate of the firmware upgrade. Especially for the indoor fan, since the indoor fan has a small storage space, it can share the first common storage area of the indoor unit, that is, it can be backed up in the first common storage area, which can solve the problem that the indoor fan cannot be backed up when the storage space is small. Furthermore, when the upgrade conditions are met and the upgrade flag indicates that the firmware can be upgraded, the firmware upgrade package can be obtained from the target backup area and then upgraded, which can avoid the problem of skipping the backup and upgrading directly, and can improve the success rate of the firmware upgrade.
[0161] The embodiments of the present disclosure also propose a device for implementing any of the above methods. For example, a device is proposed, and the above device includes units or modules for implementing each step performed in any of the above methods.
[0162] It should be understood that the division of the units or modules in the above devices is only a division of logical functions, and in actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. In addition, the units or modules in the device can be implemented in the form of a processor calling software: for example, the device includes a processor, the processor is connected to a memory, the memory stores instructions, and the processor calls the instructions stored in the memory to implement any of the above methods or implement the functions of the units or modules of the above devices.
[0163] Figure 7 The backup device 700 of the firmware upgrade package may include a transceiver module 701 , a determination module 702 , a judgment module 703 and a backup module 704 .
[0164] The transceiver module 701 is used to receive firmware upgrade packages of multiple firmwares;
[0165] A determination module 702 is used to determine a target backup area of a currently received firmware upgrade package;
[0166] A determination module 703, configured to determine whether the first shared storage area is occupied when the target backup area is the first shared storage area of the first firmware;
[0167] The backup module 704 is used to back up the firmware upgrade package to the first shared storage area when the first shared storage area is not occupied; or to clear the first shared storage area and back up the firmware upgrade package to the first shared storage area when the first shared storage area is occupied.
[0168] In some embodiments, the determination module 702 is further configured to:
[0169] Determine the firmware to be upgraded corresponding to the firmware upgrade package;
[0170] According to the firmware to be upgraded, a target backup area of the firmware upgrade package is determined from a first common storage area of the first firmware and a second common storage area of the second firmware.
[0171] In some embodiments, the determination module 702 is further configured to:
[0172] In response to the firmware to be upgraded being one of the first firmware and the third firmware, determining the first shared storage area as a target backup area of the firmware upgrade package;
[0173] In response to the firmware to be upgraded being the second firmware, the second shared storage area is determined as a target backup area of the firmware upgrade package.
[0174] In some embodiments, the firmware to be upgraded is the second firmware, and the determination module 702 is further configured to:
[0175] Determine a first running storage area of the first firmware as a cache storage area of the firmware upgrade package;
[0176] The firmware upgrade package is first cached in the first running storage area, and then the firmware upgrade package is transparently transmitted to the second shared storage area of the second firmware for backup.
[0177] In some embodiments, the backup module 704 is further configured to:
[0178] Determine the historical firmware upgrade package currently occupying the first shared storage area;
[0179] In response to the firmware corresponding to the historical firmware upgrade package having been upgraded, the historical firmware upgrade package is deleted from the first shared storage area.
[0180] In some embodiments, the backup module 704 is further configured to:
[0181] Determine first version information of the firmware upgrade package and current second version information of the firmware to be upgraded corresponding to the firmware upgrade package;
[0182] In response to the first version information being inconsistent with the second version information, backing up the firmware upgrade package into the target backup area.
[0183] In response to the first version information being consistent with the second version information, the firmware upgrade package is discarded.
[0184] In some embodiments, the backup module 704 is further configured to:
[0185] After the firmware upgrade package is backed up, configure the upgrade flag of the firmware to be upgraded;
[0186] When the upgrade conditions of the firmware to be upgraded are detected, the upgrade flag is read;
[0187] According to the upgrade flag bit, determine whether to send a firmware upgrade package to the running storage area of the firmware to be upgraded;
[0188] In response to the value of the upgrade flag being a set value, a firmware upgrade package is sent to the running storage area of the firmware to be upgraded.
[0189] In some embodiments, the backup module 704 is further configured to:
[0190] In response to the transmission interruption of the firmware upgrade package, it is determined that the firmware to be upgraded is faulty, and the process returns to read the upgrade flag bit and subsequent operations until the firmware to be upgraded is successfully upgraded.
[0191] In some embodiments, the backup module 704 is further configured to:
[0192] After the firmware upgrade package is received, an upgrade completion indication of the firmware to be upgraded corresponding to the firmware upgrade package is sent to the upgrade server.
[0193] In some embodiments, multiple firmwares include at least the indoor unit, outdoor unit and indoor fan of the air conditioner, wherein the indoor unit is the first firmware, the outdoor unit is the second firmware, and the indoor fan is the third firmware; the receiving order of the firmware upgrade package of the indoor unit is earlier than the receiving order of the firmware upgrade package of the indoor fan.
[0194] In the embodiment of the present application, backup can be performed to respective target backup areas to realize a dual backup function, and the firmware upgrade package can be re-read when the upgrade fails, thereby improving the success rate of the firmware upgrade. In particular, for firmware with a small storage space, the first shared storage area can be shared, that is, the backup can be performed in the first shared storage area, which can solve the problem that the firmware cannot be backed up when the storage space is small. Furthermore, when the upgrade conditions are met and the upgrade flag indicates that the firmware can be upgraded, the firmware upgrade package can be obtained from the target backup area and then upgraded, which can avoid the problem of skipping the backup and upgrading directly, and can improve the success rate of the firmware upgrade.
[0195] Figure 8 800 is a schematic diagram of the structure of the electronic device 800 proposed in the embodiment of the present application. The electronic device 800 can be a backup device of the firmware upgrade package in the above embodiment, or a chip, chip system, or processor that supports the implementation of any of the above methods. The electronic device 800 can be used to implement the method described in the above method embodiment, and the details can be referred to the description in the above method embodiment.
[0196] like Figure 8 As shown, the electronic device 800 includes one or more processors 801. The processor 801 can be a general-purpose processor or a dedicated processor, for example, a baseband processor or a central processing unit. The baseband processor can be used to process the communication protocol and the communication data, and the central processing unit can be used to control the communication device (such as a base station, a baseband chip, a terminal device, a terminal device chip, a DU or a CU, etc.), execute the program, and process the data of the program. Optionally, the electronic device 800 is used to execute any of the above methods. Optionally, one or more processors 801 are used to call instructions so that the electronic device 800 executes any of the above methods.
[0197] In some embodiments, the electronic device 800 further includes one or more transceivers 802. When the electronic device 800 includes one or more transceivers 802, the transceiver 802 performs at least one of the communication steps such as sending and / or receiving in the above method, and the processor 801 performs at least one of the other steps. In an optional embodiment, the transceiver may include a receiver and / or a transmitter, and the receiver and the transmitter may be separated or integrated. Optionally, the terms such as transceiver, transceiver unit, transceiver, transceiver circuit, interface circuit, interface, etc. may be replaced with each other, the terms such as transmitter, transmission unit, transmitter, transmission circuit, etc. may be replaced with each other, and the terms such as receiver, receiving unit, receiver, receiving circuit, etc. may be replaced with each other.
[0198] In some embodiments, the electronic device 800 further includes one or more memories 803 for storing data. Optionally, all or part of the memories 803 may also be outside the electronic device 800. In an optional embodiment, the electronic device 800 may include one or more interface circuits 804. Optionally, the interface circuit 804 is connected to the memory 802, and the interface circuit 804 may be used to receive data from the memory 802 or other devices, and may be used to send data to the memory 802 or other devices. For example, the interface circuit 804 may read the data stored in the memory 802 and send the data to the processor 801.
[0199] The electronic device 800 described in the above embodiment may be a network device or a terminal, but the scope of the electronic device 800 described in the present application is not limited thereto, and the structure of the electronic device 800 may not be limited thereto. Figure 7 The electronic device may be an independent device or may be a part of a larger device. For example, the electronic device may be: 1) an independent integrated circuit IC, or a chip, or a chip system or subsystem; (2) a collection of one or more ICs, optionally, the above IC collection may also include a storage component for storing data and programs; (3) an ASIC, such as a modem; (4) a module that can be embedded in other devices; (5) a receiver, a terminal device, an intelligent terminal device, a cellular phone, a wireless device, a handheld device, a mobile unit, a vehicle-mounted device, a network device, a cloud device, an artificial intelligence device, etc.; (6) others, etc.
[0200] Fig. 9 900 is a schematic diagram of the structure of the chip system 900 proposed in the embodiment of the present application. For the case where the electronic device can be a chip or a chip system, please refer to Fig. 9 The structure of the chip system 900 is shown, but it is not limited to this.
[0201] The chip system 900 includes one or more processors 901. The chip system 900 is used to execute any of the above methods.
[0202] In some embodiments, the chip system 900 further includes one or more interface circuits 902. Optionally, the terms such as interface circuit, interface, transceiver pin, etc. can be interchangeable. In some embodiments, the chip system 900 further includes one or more memories 903 for storing data. Optionally, all or part of the memory 903 can be outside the chip system 900. Optionally, the interface circuit 902 is connected to the memory 903, and the interface circuit 902 can be used to receive data from the memory 903 or other devices, and the interface circuit 902 can be used to send data to the memory 903 or other devices. For example, the interface circuit 902 can read the data stored in the memory 903 and send the data to the processor 901.
[0203] In some embodiments, the interface circuit 902 performs at least one of the communication steps such as sending and / or receiving in the above method. The interface circuit 902 performs the communication steps such as sending and / or receiving in the above method, for example, means that the interface circuit 902 performs data interaction between the processor 901, the chip system 900, the memory 903 or the transceiver device. In some embodiments, the processor 901 performs at least one of the other steps.
[0204] The modules and / or devices described in the embodiments such as virtual devices, physical devices, chips, etc. can be combined or separated as needed. Optionally, some or all steps can also be performed by multiple modules and / or devices in collaboration, which is not limited here.
[0205] The present application also proposes a storage medium, on which instructions are stored, and when the instructions are executed on the electronic device 800, the electronic device 800 executes any of the above methods. Optionally, the storage medium is an electronic storage medium. Optionally, the storage medium is a computer-readable storage medium, but is not limited thereto, and it may also be a storage medium readable by other devices. Optionally, the storage medium may be a non-transitory storage medium, but is not limited thereto, and it may also be a temporary storage medium.
[0206] The present application also proposes a program product, and when the program product is executed by the electronic device 800, the electronic device 800 executes any of the above methods. Optionally, the program product is a computer program product.
[0207] The present application also proposes a computer program, which, when running on a computer, enables the computer to perform any of the above methods. Those skilled in the art may also understand that the various illustrative logical blocks and steps listed in the embodiments of the present application can be implemented by electronic hardware, computer software, or a combination of the two. Whether such a function is implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art can use various methods to implement the described functions for each specific application, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present application.
[0208] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0209] It should be understood that the present application is not limited to the precise structures that have 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 application is limited only by the appended claims.
Claims
1. A method for backing up a firmware upgrade package, characterized in that: The method further comprises: Receiving firmware upgrade packages of multiple firmwares, and determining a target backup area of the currently received firmware upgrade package; In response to the target backup area being a first shared storage area of the first firmware, determining whether the first shared storage area has been occupied; In response to the first shared storage area being unoccupied, backing up the firmware upgrade package to the first shared storage area; In response to the first shared storage area being occupied, the first shared storage area is cleared and the firmware upgrade package is backed up in the first shared storage area.
2. The method according to claim 1, characterized in that: The step of determining a target backup area of the currently received firmware upgrade package includes: Determine the firmware to be upgraded corresponding to the firmware upgrade package; According to the firmware to be upgraded, a target backup area of the firmware upgrade package is determined from a first common storage area of the first firmware and a second common storage area of the second firmware.
3. The method according to claim 2, characterized in that The step of determining a target backup area of the firmware upgrade package from a first shared storage area and a second shared storage area of the first firmware according to the firmware to be upgraded includes: In response to the firmware to be upgraded being one of the first firmware and the third firmware, determining the first shared storage area as a target backup area of the firmware upgrade package; In response to the firmware to be upgraded being the second firmware, the second shared storage area is determined as a target backup area of the firmware upgrade package.
4. The method according to claim 3, characterized in that The firmware to be upgraded is the second firmware, and the method further includes: Determining a first running storage area of the first firmware as a cache storage area of the firmware upgrade package; The firmware upgrade package is first cached in the first running storage area, and then transparently transmitted to the second shared storage area of the second firmware for backup.
5. The method according to any one of claims 1 to 4, characterized in that The clearing the first shared storage area includes: Determine the historical firmware upgrade package currently occupying the first shared storage area; In response to the firmware corresponding to the historical firmware upgrade package having been upgraded, the historical firmware upgrade package is deleted from the first shared storage area.
6. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Determine the first version information of the firmware upgrade package and the current second version information of the firmware to be upgraded corresponding to the firmware upgrade package; In response to the first version information being inconsistent with the second version information, backing up the firmware upgrade package into the target backup area. In response to the first version information being consistent with the second version information, the firmware upgrade package is discarded.
7. The method according to claim 3, characterized in that After the firmware upgrade package is backed up, the following steps are also included: Configuring the upgrade flag of the firmware to be upgraded; When it is detected that the upgrade condition of the firmware to be upgraded is met, the upgrade flag is read; According to the upgrade flag, determining whether to send the firmware upgrade package to the running storage area of the firmware to be upgraded; In response to the value of the upgrade flag being a set value, the firmware upgrade package is sent to the running storage area of the firmware to be upgraded.
8. The method according to claim 7, characterized in that The method further comprises: In response to the transmission interruption of the firmware upgrade package, it is determined that the firmware to be upgraded is faulty, and the process of reading the upgrade flag and subsequent operations thereof is returned to execution until the firmware to be upgraded is successfully upgraded.
9. The method according to claim 1, characterized in that: The method further comprises: After the firmware upgrade package is received, an upgrade completion indication of the firmware to be upgraded corresponding to the firmware upgrade package is sent to the upgrade server.
10. The method according to claim 1, characterized in that The multiple firmwares include at least an indoor unit, an outdoor unit and an indoor fan of the air conditioner, wherein the indoor unit is a first firmware, the outdoor unit is a second firmware, and the indoor fan is a third firmware; the receiving order of the firmware upgrade package of the indoor unit is earlier than the receiving order of the firmware upgrade package of the indoor fan.
11. A backup device for a firmware upgrade package, characterized in that: include: A transceiver module, used for receiving firmware upgrade packages of multiple firmwares; A determination module, used to determine a target backup area of a currently received firmware upgrade package; A judging module, configured to judge whether the first shared storage area is occupied when the target backup area is the first shared storage area of the first firmware; A backup module, configured to back up the firmware upgrade package to the first shared storage area when the first shared storage area is not occupied; Alternatively, when the first shared storage area is occupied, the first shared storage area is cleared and the firmware upgrade package is backed up in the first shared storage area.
12. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for backing up the firmware upgrade package according to any one of claims 1 to 10 is implemented.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for backing up the firmware upgrade package according to any one of claims 1 to 10 is implemented.
14. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for backing up a firmware upgrade package according to any one of claims 1 to 10 is implemented.
