Backup method and device for firmware upgrade package

By dynamically determining the target backup area and backing up the upgrade package of the third firmware from the shared storage area of ​​the first firmware and the second firmware, the problem of upgrade failure caused by insufficient firmware storage space is solved, and the success rate and reliability of the firmware upgrade are improved.

CN118733344APending Publication Date: 2024-10-01XIAOMI TECH (WUHAN) CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410864079.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

Technical Problem

When the firmware storage space is small, effective backup cannot be performed, causing the firmware upgrade to fail and the upgrade cannot be completed.

Method used

By determining the received data amount of the firmware upgrade package, dynamically determine the target backup area from the shared storage area of ​​the first firmware and the second firmware, realize the backup of the firmware upgrade package of the third firmware, and share the storage space to ensure a successful upgrade.

Benefits of technology

It improves the success rate of firmware upgrades, solves backup problems caused by insufficient storage space, and ensures the integrity and reliability of firmware upgrades.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733344A_ABST
    Figure CN118733344A_ABST
Patent Text Reader

Abstract

The invention provides a backup method and device for a firmware upgrade package, and relates to the technical field of air conditioners. The method comprises the following steps: receiving firmware upgrade packages of a plurality of firmware, and determining to-be-upgraded firmware corresponding to the currently received firmware upgrade package; in response to the fact that the to-be-upgraded firmware is the third firmware, determining the received data volume of the firmware upgrade package; according to the received data volume, a target backup area of the firmware upgrade package is determined, and the target backup area is at least one of shared storage areas of the first firmware and the second firmware; and backing up the firmware upgrade package in the target backup area. According to the method, the target backup area of the firmware upgrade package is dynamically determined from the shared storage area of the first firmware and the second firmware based on the received data volume of the upgrade package of the third firmware, so that the third firmware can share the shared storage area of the first firmware and / or the second firmware, backup of the firmware upgrade package of the third firmware is realized, and the backup efficiency of the firmware upgrade package of the third firmware is improved. The problem that backup cannot be carried out due to the small storage space of the third firmware is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular 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 invention provides a method and device for backing up a firmware upgrade package.

[0004] The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, a method for backing up a firmware upgrade package is provided, the method comprising:

[0006] Receiving firmware upgrade packages of multiple firmwares, and determining the firmware to be upgraded corresponding to the currently received firmware upgrade package;

[0007] In response to the firmware to be upgraded being the third firmware, determining the amount of received data of the firmware upgrade package;

[0008] Determining a target backup area of ​​the firmware upgrade package according to the amount of received data, wherein the target backup area is at least one of the shared storage areas of the first firmware and the second firmware;

[0009] Back up the firmware upgrade package to the target backup area.

[0010] According to a second aspect of an embodiment of the present disclosure, 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, configured to determine the firmware to be upgraded corresponding to the currently received firmware upgrade package, determine the amount of received data of the firmware upgrade package in response to the firmware to be upgraded being the third firmware, and determine a target backup area of ​​the firmware upgrade package according to the amount of received data, wherein the target backup area is at least one of the shared storage areas of the first firmware and the second firmware;

[0013] A backup module is used to back up the firmware upgrade package to the target backup area.

[0014] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a memory, a processor, and a computer program stored in 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 disclosure is implemented.

[0015] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When 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 disclosure.

[0016] According to a fifth aspect of an embodiment of the present disclosure, 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 disclosure.

[0017] According to the sixth aspect of an embodiment of the present disclosure, 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.

[0018] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0019] A method for backing up a firmware upgrade package in an embodiment of the present disclosure can determine a target backup area for the firmware upgrade package from the shared storage areas of the first firmware and the second firmware based on the amount of data received in the firmware upgrade package when the firmware to be upgraded is the third firmware, so that the third firmware can share the shared storage area of ​​the first firmware and / or the second firmware, thereby backing up the firmware upgrade package of the third firmware, solving the problem that the third firmware cannot be backed up when the storage space is small, thereby improving the success rate of the firmware upgrade.

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

[0021] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0022] Figure 1 The figure is a flowchart of a method for backing up a firmware upgrade package according to an exemplary embodiment.

[0023] Figure 2The figure is a flowchart of another method for backing up a firmware upgrade package according to an exemplary embodiment.

[0024] Figure 3 The figure is a flowchart of another method for backing up a firmware upgrade package according to an exemplary embodiment.

[0025] Figure 4 The figure is a flowchart of another method for backing up a firmware upgrade package according to an exemplary embodiment.

[0026] Figure 5 The figure is a flowchart of a method for backing up a firmware upgrade package according to an exemplary embodiment.

[0027] Figure 5a The diagram is an interactive diagram of a method for backing up a firmware upgrade package according to an exemplary embodiment.

[0028] Figure 6 The present invention is a structural block diagram of an electronic device according to an exemplary embodiment.

[0029] Figure 7 It is a structural block diagram of another electronic device according to an exemplary embodiment.

[0030] Figure 8 It is a structural block diagram of a chip system according to some embodiments of the present disclosure. DETAILED DESCRIPTION

[0031] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure 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 interchanged where appropriate, so that the embodiments of the present disclosure 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 disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0033] Figure 1 A flowchart of a method for backing up a firmware upgrade package provided in an embodiment of the present disclosure.

[0034] like Figure 1 As shown, the method for backing up the firmware upgrade package includes but is not limited to the following steps:

[0035] S101, receiving firmware upgrade packages of multiple firmwares, and determining the firmware to be upgraded corresponding to the currently received firmware upgrade package.

[0036] 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.

[0037] 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.

[0038] In some embodiments, the firmware upgrade package of the firmware may be a binary (bin) file.

[0039] 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.

[0040] 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.

[0041] Optionally, the user may initiate an OTA upgrade request for a device (such as an air conditioner) on the client.

[0042] In some embodiments, the OAT upgrade request carries device information, for example, the model or serial number of the device.

[0043] 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.

[0044] In some embodiments, 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 may 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 may be obtained by parsing the header.

[0045] S102: In response to the firmware to be upgraded being the third firmware, determine the amount of received data of the firmware upgrade package.

[0046] In some embodiments, whether the firmware to be upgraded is the third firmware is determined based on the identifier of the firmware to be upgraded. Optionally, the identifier of the third firmware is predetermined and stored in the execution subject (for example, the indoor unit in the air conditioning scenario). After obtaining the identifier of the firmware to be upgraded, the identifier of the firmware to be upgraded is compared with the identifier of the third firmware to determine whether the firmware to be upgraded is the third firmware.

[0047] Optionally, if the identifier of the firmware to be upgraded is the same as the identifier of the third firmware, it can be determined that the firmware to be upgraded is the third firmware; if the identifier of the firmware to be upgraded is different from the identifier of the third firmware, it can be determined that the firmware to be upgraded is not the third firmware.

[0048] It is understandable that the third firmware can be other firmware besides the first firmware and the second firmware. The third firmware itself has a small storage space and cannot back up the firmware upgrade package. It needs to be backed up with the help of the shared storage area of ​​the first firmware and the second firmware.

[0049] In some embodiments, during the process of receiving firmware upgrade packages of multiple firmwares, the data volume of the currently received firmware upgrade package may also be monitored to obtain the received data volume of the currently received firmware upgrade package.

[0050] S103: Determine a target backup area for the firmware upgrade package according to the amount of received data.

[0051] In some embodiments, the target backup area is at least one of the shared storage areas of the first firmware and the second firmware, that is, the target backup area can be the first shared storage area of ​​the first firmware, or the second shared storage area of ​​the second firmware. For example, the data volume of the firmware upgrade package of the third firmware is small and only needs to occupy one shared storage area. Optionally, the target backup area can include the first shared storage area and the second shared storage area. For example, the data volume of the firmware upgrade package of the third firmware is large and needs to occupy two shared storage areas.

[0052] In some embodiments, a target backup area of ​​the firmware upgrade package is dynamically determined from a first common storage area of ​​the first firmware and a second common storage area of ​​the second firmware according to the amount of received data.

[0053] S104, backing up the firmware upgrade package to the target backup area.

[0054] After determining the target backup area for the firmware upgrade package, the firmware upgrade package can be backed up in the target backup area. In an embodiment of the present application, the firmware upgrade package does not need to wait for all the data to be received before being backed up. The data in the firmware upgrade package can be backed up while being received to improve the backup efficiency of the firmware upgrade package.

[0055] In an embodiment of the present application, when the firmware to be upgraded is the third firmware, the target backup area of ​​the firmware upgrade package can be determined from the shared storage areas of the first firmware and the second firmware based on the amount of data received in the firmware upgrade package, so that the third firmware can share the shared storage area of ​​the first firmware and / or the second firmware, thereby realizing the backup of the firmware upgrade package of the third firmware, solving the problem that the third firmware cannot be backed up when the storage space is small, thereby improving the success rate of the firmware upgrade.

[0056] In some embodiments, if the firmware to be upgraded is the first firmware, the first backup storage area of ​​the first firmware is determined as the target backup area, and further, the firmware upgrade package of the first firmware is stored in the first backup storage area.

[0057] In some embodiments, if the firmware to be upgraded is the second firmware, the first running storage area of ​​the first firmware is determined as the cache storage area of ​​the firmware upgrade package, and the second backup storage area of ​​the second firmware is determined as the target backup area of ​​the firmware upgrade package; further, 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 backup storage area.

[0058] 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.

[0059] 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.

[0060] 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.

[0061] 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.

[0062] On the basis of the above embodiment, after the firmware upgrade package of the third firmware 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.

[0063] like Figure 2 As shown, the method for backing up the firmware upgrade package includes but is not limited to the following steps:

[0064] S201, receiving firmware upgrade packages of multiple firmwares, and identifying that a currently received firmware upgrade package is a firmware upgrade package of a third firmware.

[0065] S202: Monitor the current amount of received data of the firmware upgrade package.

[0066] S203, in response to the amount of received data not reaching the set threshold, determining the first shared storage area of ​​the first firmware as the first target backup area of ​​the firmware upgrade package, and backing up the first data portion currently received by the firmware upgrade package into the first shared storage area.

[0067] S204, in response to the amount of received data reaching a set threshold, determining the second shared storage area of ​​the second firmware as the second target backup area of ​​the firmware upgrade package, and backing up a second data portion subsequently received in the firmware upgrade package into the second shared storage area.

[0068] The firmware upgrade package of the third firmware is continuously received, and accordingly, the amount of data currently received by the monitored firmware upgrade package will increase. In the embodiment of the present application, in order to ensure that the remaining storage space of the first firmware can maintain the normal operation of the first firmware, after the amount of received data reaches the set threshold, the second shared storage area of ​​the second firmware can be determined as the second target backup area of ​​the firmware upgrade package, and further, the second data portion subsequently received in the firmware upgrade package is backed up in the second shared storage area. In other words, the firmware upgrade package of the third firmware shares the first shared storage area and the second shared storage area, which can avoid the loss of the firmware upgrade package. Optionally, the set threshold can be determined based on the storage capacity of the firmware as the execution subject. For example, the set threshold can be determined based on the storage capacity of the first firmware, for example, the threshold is set to a% of the storage capacity, where the value of a can be 70, 80, etc., which is not limited here.

[0069] Optionally, before backing up the firmware upgrade package of the indoor fan to the first shared storage area of ​​the first firmware, 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 portion currently received by the firmware upgrade package can be cached in the first shared storage area. If the first version information and the second version information are consistent, the first data portion 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 the version information abnormality can also be fed back to the upgrade server to re-acquire the firmware upgrade package of the third firmware.

[0070] S205, when the firmware upgrade package of the third firmware is completely downloaded and the third firmware meets the upgrade conditions, read the first data part of the firmware upgrade package from the first shared storage area, and read the second data part of the firmware upgrade package from the second shared storage area.

[0071] S206: Combine the first data portion and the second data portion to obtain a firmware upgrade package of the third firmware, and send the package to the running storage area of ​​the third firmware for upgrading.

[0072] 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 (indoor fan).

[0073] 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. Since the storage space of the outdoor fan is small, the indoor fan can be backed up by sharing the common storage area of ​​the indoor unit and the outdoor unit. In other words, when the amount of received data of the firmware upgrade package of the indoor fan does not reach the set threshold, the first data part of the firmware upgrade package before reaching the set threshold can be stored in the first shared storage area of ​​the indoor unit. When the amount of received data reaches the set threshold, the second data part of the firmware upgrade package after reaching the set threshold can be stored in the second shared storage area of ​​the outdoor unit.

[0074] The firmware upgrade package of the indoor fan is completely 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. Since the firmware upgrade package of the indoor fan is divided into two parts, which are stored in the first shared storage area of ​​the indoor unit and the second shared storage area of ​​the outdoor unit, in order to obtain the complete firmware upgrade package of the indoor fan, the first data part of the firmware upgrade package can be read from the first shared storage area, and the second data part of the firmware upgrade package can be read from the second shared storage area. Furthermore, the first data part and the second data part are combined to obtain the completed firmware upgrade package of the indoor fan, which is sent to the indoor fan and written into the running storage area of ​​the indoor fan to complete the upgrade process of the indoor fan based on the firmware upgrade package.

[0075] On the basis of the above embodiment, in the process of transmitting its own firmware upgrade package to the third firmware, if the transmission of the firmware upgrade package is interrupted, for example, the third firmware 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 third firmware is faulty, and the process of re-reading the firmware upgrade package is returned until the third firmware is successfully upgraded. Through the interrupt retransmission mechanism, the firmware upgrade success rate can be improved.

[0076] In the embodiment of the present application, when the amount of received data of the firmware upgrade package of the third firmware does not reach the set threshold, the current first part of the data is backed up to the first shared storage area of ​​the first firmware, and when the amount of received data reaches the set threshold, the subsequent second part of the data is backed up to the second shared storage area of ​​the second firmware, so that the third firmware can share the shared storage area of ​​the first firmware and / or the second firmware, thereby realizing the backup of the firmware upgrade package of the third firmware, solving the problem that the backup cannot be performed when the storage space of the third firmware is small. Furthermore, after the firmware upgrade package is downloaded, it can be read from the target backup area multiple times to ensure that the upgrade of the third firmware can be successfully completed, thereby improving the success rate of the firmware upgrade.

[0077] Figure 3 A flowchart of another method for backing up a firmware upgrade package provided in an embodiment of the present disclosure.

[0078] like Figure 3 As shown, the method for backing up the firmware upgrade package includes but is not limited to the following steps:

[0079] S301, receiving a plurality of firmware upgrade packages.

[0080] S302: When identifying that the currently received firmware upgrade package is a firmware upgrade package of the first firmware, determining a first backup storage area of ​​the first firmware as a target backup area of ​​the firmware upgrade package.

[0081] S303, backing up the firmware upgrade package into the first backup storage area.

[0082] 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.

[0083] In the OTA upgrade scenario of the air conditioner, the first firmware is the indoor unit of the air conditioner. The indoor unit can receive the firmware upgrade packages of the multiple firmwares in the air conditioner, and after determining that the currently received firmware upgrade package is the upgrade package of the indoor unit, the first backup storage area of ​​the indoor unit can be determined as the target backup area of ​​the firmware upgrade package, and further, the currently received firmware upgrade package of the indoor unit is stored and backed up in the first backup storage area of ​​the indoor unit.

[0084] Optionally, before backing up the firmware upgrade package of the indoor unit to the first backup 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 backup 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.

[0085] Furthermore, when the indoor unit meets the upgrade conditions, it can read the firmware upgrade package of the indoor unit from the first backup 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.

[0086] 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.

[0087] Figure 4 A flowchart of another method for backing up a firmware upgrade package provided in an embodiment of the present disclosure.

[0088] like Figure 4 As shown, the method for backing up the firmware upgrade package includes but is not limited to the following steps:

[0089] S401, receiving a plurality of firmware upgrade packages.

[0090] S402: When identifying that the currently received firmware upgrade package is a firmware upgrade package of the second firmware, determining a first running storage area of ​​the first firmware as a cache storage area of ​​the firmware upgrade package.

[0091] S403: Determine the second backup storage area of ​​the second firmware as the target backup area of ​​the firmware upgrade package.

[0092] S404, first cache the firmware upgrade package in the first running storage area, and then transparently transmit the firmware upgrade package to the second backup storage area.

[0093] 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.

[0094] 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. The indoor unit receives firmware upgrade packages of multiple firmwares, and after determining 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 the cache storage area of ​​the firmware upgrade package, and the second backup storage area of ​​the outdoor unit can be determined as the target backup area of ​​the firmware upgrade package.

[0095] 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 transparently transmits the data currently received by the firmware upgrade package cached in the first running storage to the second backup storage area of ​​the outdoor unit for storage backup.

[0096] 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.

[0097] 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 portion 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 first data portion 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 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.

[0098] 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.

[0099] Figure 5 A flowchart of another method for backing up a firmware upgrade package provided in an embodiment of the present disclosure.

[0100] like Figure 5 As shown, the method for backing up the firmware upgrade package includes but is not limited to the following steps:

[0101] S501, the indoor unit receives a firmware upgrade package from the outdoor unit.

[0102] 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.

[0103] 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.

[0104] S502: Cache the firmware upgrade package in the first running storage area of ​​the indoor unit, and synchronously and transparently transmit it to the second backup storage area of ​​the outdoor unit for backup.

[0105] S5021: The outdoor unit reads the firmware upgrade package of the outdoor unit from the second backup storage area and writes it into the second running backup area.

[0106] S5022: The outdoor unit is upgraded based on its own firmware upgrade package.

[0107] S503, the indoor unit receives its own firmware upgrade package.

[0108] S504, backing up to the first backup storage area of ​​the indoor unit.

[0109] S5041, the indoor unit reads the firmware upgrade package of the outdoor unit from the first backup storage area and writes it into the first running backup area.

[0110] S5042: The indoor unit is upgraded based on its own firmware upgrade package.

[0111] S505, the indoor unit receives the firmware upgrade package of the indoor fan.

[0112] S506: The indoor unit determines the amount of received data of the firmware upgrade package of the indoor fan.

[0113] S507: Before the amount of received data reaches a set threshold, back up the first data portion of the firmware upgrade package currently received in the first shared storage area of ​​the indoor unit.

[0114] S508: After the amount of received data does not reach the set threshold, back up the second data portion of the firmware upgrade package subsequently received in the second shared storage area of ​​the outdoor unit.

[0115] S5081: The indoor unit reads the first data portion from the first shared storage area, and reads the second data portion from the second shared storage area.

[0116] S5082: The indoor unit combines the first data portion and the second data portion to obtain a firmware upgrade package for the indoor fan.

[0117] S5083, the indoor unit sends a firmware upgrade package of the indoor fan to the indoor fan.

[0118] S5084, the indoor fan is upgraded based on its own firmware fan package.

[0119] In an embodiment of the present application, the air conditioner may include three firmwares: an indoor unit, an outdoor unit, and an outdoor fan. Since the storage space of the indoor fan is relatively small, it is not suitable for double backup. After the storage space of the indoor unit and the outdoor unit meets their own backup, some space may remain to store upgrade data of other firmware. Figure 5a The interactive schematic diagram of the method for backing up the firmware upgrade package provided by the embodiment of the present disclosure is as follows: Figure 5a 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 the wireless communication module. Optionally, the wireless communication module may be a product developed in a WebAssembly (WASM for short) environment.

[0120] 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.

[0121] In some embodiments, the storage space of the indoor unit includes a first operating storage area, a first backup storage area and a first shared storage area, the storage space of the outdoor unit includes a second operating storage area, a second backup storage area and a second shared storage area, and the indoor fan only includes a third operating storage area due to its smaller storage space.

[0122] 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.

[0123] 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 5a As shown, the firmware upgrade package of the outdoor unit can be backed up to the second backup storage area of ​​the outdoor unit through the first running storage area.

[0124] When the outdoor unit meets the upgrade conditions, its own firmware upgrade package can be read from the second backup storage area and written into the second running storage area to implement the upgrade of the outdoor unit.

[0125] Furthermore, the indoor unit receives its own firmware upgrade package and stores it in its own first backup storage area. When the indoor unit meets the upgrade conditions, it reads its own firmware upgrade package from the first backup storage area and writes it to 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.

[0126] Furthermore, the firmware upgrade package of the indoor fan is received, and the program package of the indoor fan is dynamically stored. The starting data of the indoor fan firmware package is first determined, and then the received data is stored in the indoor unit. The size of the received data is determined. If it is less than 80% of the first shared storage area of ​​the indoor unit, the backup is continued to be stored in the first shared area of ​​the indoor unit. If it exceeds 80% of the first shared storage area, the indoor unit forwards the subsequently received data packets to the outdoor unit, and the outdoor unit stores them in its own second shared storage area until the indoor fan firmware package is completely stored, and feedback is given to the cloud that the upgrade is complete.

[0127] Furthermore, the indoor unit can work with the outdoor unit to upgrade the indoor fan. The indoor unit first reads part of the upgrade data of the outdoor fan in the first shared storage area, and can request the outdoor unit to send the remaining upgrade data of the firmware upgrade package of the indoor fan to the indoor unit. The indoor unit can merge the two parts of data and then forward them to the indoor fan until the firmware upgrade package of the indoor fan is sent and the upgrade process is completed, and then it starts and runs normally.

[0128] 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.

[0129] 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. In particular, 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 and / or the second common storage area of ​​the outdoor unit, that is, it can be backed up in the first common storage area and / or the second 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.

[0130] 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.

[0131] 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.

[0132] Figure 6 6 is a structural block diagram of a backup device for a firmware upgrade package according to an exemplary embodiment. The backup device 600 for a firmware upgrade package may include a transceiver module 601 , a determination module 602 and a backup module 603 .

[0133] The transceiver module 601 is used to receive firmware upgrade packages of multiple firmwares;

[0134] The determination module 602 is used to determine the firmware to be upgraded corresponding to the currently received firmware upgrade package, and in response to the firmware to be upgraded being the third firmware, determine the amount of received data of the firmware upgrade package, and determine the target backup area of ​​the firmware upgrade package according to the amount of received data, wherein the target backup area is at least one of the shared storage areas of the first firmware and the second firmware;

[0135] The backup module 603 is used to back up the firmware upgrade package to the target backup area.

[0136] In some embodiments, the determination module 602 is further configured to:

[0137] According to the amount of received data, 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.

[0138] In some embodiments, the determination module 602 is further configured to:

[0139] In response to the received data amount not reaching the set threshold, the first common storage area is determined as the first target backup area of ​​the firmware upgrade package, and the first data portion currently received by the firmware upgrade package is backed up in the first target backup area.

[0140] In some embodiments, the determination module 602 is further configured to:

[0141] In response to the amount of received data reaching a set threshold, the second shared storage area is determined as a second target backup area for the firmware upgrade package, and a second data portion subsequently received in the firmware upgrade package is backed up in the second target backup area.

[0142] In some embodiments, the backup module 603 is further configured to:

[0143] In response to the firmware upgrade package of the third firmware being completely downloaded and the third firmware meeting the upgrade condition, reading the first data portion of the firmware upgrade package from the first target backup area, and reading the second data portion of the firmware upgrade package from the second target backup area;

[0144] The first data portion and the second data portion are combined to obtain a firmware upgrade package of the third firmware, and the package is sent to the third firmware for upgrading.

[0145] In some embodiments, the determination module 602 is further configured to:

[0146] In response to the firmware to be upgraded being the first firmware, the first backup storage area of ​​the first firmware is determined as the target backup area, and the firmware upgrade package is backed up in the first backup storage area.

[0147] In some embodiments, the determination module 602 is further configured to:

[0148] In response to the firmware to be upgraded being the second firmware, determining the first running storage area of ​​the first firmware as the cache storage area of ​​the firmware upgrade package, and the second backup storage area of ​​the second firmware as the target backup area of ​​the firmware upgrade package;

[0149] The firmware upgrade package is first cached in the first running storage area, and then transparently transmitted to the second backup storage area.

[0150] In some embodiments, the determination module 602 is further configured to:

[0151] Before backing up the fixed upgrade package to the target backup area, determining the first version information of the firmware upgrade package and the current second version information of the firmware to be upgraded;

[0152] In response to the first version information being inconsistent with the second version information, backing up a currently received data portion of the firmware upgrade package in a target backup area;

[0153] In response to the first version information being consistent with the second version information, the currently received data portion is discarded, and / or further reception of the firmware upgrade package is stopped.

[0154] In some embodiments, the plurality of firmwares include at least an indoor unit, an outdoor unit, and an indoor fan, wherein the indoor unit is a first firmware, the outdoor unit is a second firmware, the outdoor unit is a third firmware, and the indoor fan is a third firmware;

[0155] The transceiver module 601 is further configured to receive firmware upgrade packages of multiple firmwares in a set order when at least two types of firmware from the first firmware to the third firmware need to be upgraded.

[0156] 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. In particular, 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 and / or the second common storage area of ​​the outdoor unit, that is, it can be backed up in the first common storage area and / or the second 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.

[0157] Figure 7 : is a schematic diagram of the structure of the electronic device 700 proposed in the embodiment of the present disclosure. The electronic device 700 may be a backup device of the firmware upgrade package in the above embodiment, or may be a chip, chip system, or processor that supports the implementation of any of the above methods. The electronic device 700 may be used to implement the method described in the above method embodiment, and the details may refer to the description in the above method embodiment.

[0158] like Figure 7 As shown, the electronic device 700 includes one or more processors 701. The processor 701 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 700 is used to execute any of the above methods. Optionally, one or more processors 701 are used to call instructions so that the electronic device 700 executes any of the above methods.

[0159] In some embodiments, the electronic device 700 further includes one or more transceivers 702. When the electronic device 700 includes one or more transceivers 702, the transceiver 702 performs at least one of the communication steps such as sending and / or receiving in the above method, and the processor 701 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, transmitting unit, transmitter, transmitting 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.

[0160] In some embodiments, the electronic device 700 further includes one or more memories 703 for storing data. Optionally, all or part of the memories 703 may also be outside the electronic device 700. In an optional embodiment, the electronic device 700 may include one or more interface circuits 704. Optionally, the interface circuit 704 is connected to the memory 702, and the interface circuit 704 may be used to receive data from the memory 702 or other devices, and may be used to send data to the memory 702 or other devices. For example, the interface circuit 704 may read the data stored in the memory 702 and send the data to the processor 701.

[0161] The electronic device 700 described in the above embodiments may be a network device or a terminal, but the scope of the electronic device 700 described in the present disclosure is not limited thereto, and the structure of the electronic device 700 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.

[0162] Figure 8 800 is a schematic diagram of the structure of the chip system 800 proposed in the embodiment of the present disclosure. For the case where the electronic device can be a chip or a chip system, please refer to Figure 8 The structure of the chip system 800 is shown, but is not limited to this.

[0163] The chip system 800 includes one or more processors 801. The chip system 800 is used to execute any of the above methods.

[0164] In some embodiments, the chip system 800 further includes one or more interface circuits 802. Optionally, the terms such as interface circuit, interface, transceiver pin, etc. can be interchangeable. In some embodiments, the chip system 800 further includes one or more memories 803 for storing data. Optionally, all or part of the memory 803 can be outside the chip system 800. Optionally, the interface circuit 802 is connected to the memory 803, and the interface circuit 802 can be used to receive data from the memory 803 or other devices, and the interface circuit 802 can be used to send data to the memory 803 or other devices. For example, the interface circuit 802 can read the data stored in the memory 803 and send the data to the processor 801.

[0165] In some embodiments, the interface circuit 802 performs at least one of the communication steps such as sending and / or receiving in the above method. The interface circuit 802 performs the communication steps such as sending and / or receiving in the above method, for example, means that the interface circuit 802 performs data interaction between the processor 801, the chip system 800, the memory 803 or the transceiver device. In some embodiments, the processor 801 performs at least one of the other steps.

[0166] 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.

[0167] The present disclosure also proposes a storage medium, on which instructions are stored, and when the instructions are executed on the electronic device 700, the electronic device 700 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.

[0168] The present disclosure also proposes a program product, which, when executed by the electronic device 700, enables the electronic device 700 to execute any of the above methods. Optionally, the program product is a computer program product.

[0169] The present disclosure also proposes a computer program, which, when running on a computer, enables the computer to execute 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. Such functions are implemented by hardware or software depending on the specific application and the design requirements of the entire system. Those skilled in the art may use various methods to implement the functions described for each specific application, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present application.

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

[0171] It should be understood that the present disclosure is not limited to the exact 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 disclosure 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 the firmware to be upgraded corresponding to the currently received firmware upgrade package; In response to the firmware to be upgraded being the third firmware, determining the amount of received data of the firmware upgrade package; Determining a target backup area of ​​the firmware upgrade package according to the amount of received data, wherein the target backup area is at least one of the shared storage areas of the first firmware and the second firmware; Back up the firmware upgrade package to the target backup area.

2. The method according to claim 1, characterized in that The step of determining a target backup area of ​​the firmware upgrade package according to the amount of received data includes: According to the received data amount, 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 method further comprises: In response to the received data amount not reaching a set threshold, the first shared storage area is determined as a first target backup area for the firmware upgrade package, and the first data portion currently received by the firmware upgrade package is backed up in the first target backup area.

4. The method according to claim 2 or 3, characterized in that: The method further comprises: In response to the amount of received data reaching a set threshold, the second shared storage area is determined as a second target backup area for the firmware upgrade package, and a second data portion subsequently received in the firmware upgrade package is backed up in the second target backup area.

5. The method according to claim 4, characterized in that The method further comprises: In response to the firmware upgrade package of the third firmware being completely downloaded and the third firmware meeting the upgrade condition, reading the first data portion of the firmware upgrade package from the first target backup area, and reading the second data portion of the firmware upgrade package from the second target backup area; The first data portion and the second data portion are combined to obtain a firmware upgrade package of the third firmware, and the firmware upgrade package is sent to the third firmware for upgrading.

6. The method according to claim 1, characterized in that The method further comprises: In response to the firmware to be upgraded being the first firmware, a first backup storage area of ​​the first firmware is determined as the target backup area, and the firmware upgrade package is backed up in the first backup storage area.

7. The method according to claim 1, characterized in that The method further comprises: In response to the firmware to be upgraded being the second firmware, determining the first running storage area of ​​the first firmware as the cache storage area of ​​the firmware upgrade package, and the second backup storage area of ​​the second firmware as the target backup 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 backup storage area.

8. The method according to claim 1, 6 or 7, characterized in that: Before backing up the fixed upgrade package to the target backup area, the method further includes: Determine the first version information of the firmware upgrade package and the current second version information of the firmware to be upgraded; In response to the first version information being inconsistent with the second version information, backing up the data portion currently received by the firmware upgrade package to the target backup area; In response to the first version information being consistent with the second version information, the currently received data portion is discarded, and / or further reception of the firmware upgrade package is stopped.

9. 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, wherein the indoor unit is a first firmware, the outdoor unit is a second firmware, and the indoor fan is a third firmware; the method also includes: in response to at least two types of firmware from the first firmware to the third firmware needing to be upgraded, receiving firmware upgrade packages of the multiple firmwares in a set order.

10. 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, configured to determine the firmware to be upgraded corresponding to the currently received firmware upgrade package, and in response to the firmware to be upgraded being the third firmware, determine the amount of received data of the firmware upgrade package, and determine a target backup area of ​​the firmware upgrade package according to the amount of received data, wherein the target backup area is at least one of the shared storage areas of the first firmware and the second firmware; A backup module is used to back up the firmware upgrade package to the target backup area.

11. 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 9 is implemented.

12. 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 9 is implemented.

13. 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 9 is implemented.