Firmware upgrading method and device, air conditioner and medium
By splitting the air conditioner firmware upgrade into multiple data blocks and receiving operating data alternately, the shutdown and safety issues during air conditioner upgrades are solved, and the invisible upgrade and data transmission security are improved.
Patent Information
- Application Number
- CN202311004858.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-10
- Publication Date
- 2025-02-18
AI Technical Summary
The existing air conditioner firmware upgrade method requires the air conditioner to be in a down state for a long time, which makes it impossible for users to use the air conditioner. At the same time, the upgraded firmware package is easily cracked, reducing the security of data transmission.
Split the upgraded firmware into multiple data blocks, and alternately receive the operating data of the air conditioner while receiving these data blocks. After verification, the firmware upgrade is carried out to achieve an upgrade process without downtime and improve the security of data transmission.
It realizes that the air conditioner upgrades without shutdown during firmware upgrade, improves the user experience, and improves the security of data transmission by alternately receiving data blocks and running data.
Smart Images

Figure CN119473336A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of air conditioners, and specifically provides a firmware upgrade method, equipment, air conditioner and medium. Background Art
[0002] With the rapid development of technology, various new functions are constantly being developed for air conditioners to improve user experience. After purchasing an air conditioner, users generally use it for a long time before replacing it. In order to allow users to experience the latest functions without replacing the air conditioner, the air conditioner is usually upgraded to obtain the latest functions.
[0003] In the related art, usually when the air conditioner is stopped, an upgrade firmware package is downloaded from a cloud server through Over-the-Air Technology (OTA), and after the upgrade firmware package is verified, the firmware in the air conditioner is upgraded using the upgrade firmware package.
[0004] However, this upgrade method causes the air conditioner to be shut down for a long time, resulting in users being unable to use the air conditioner, and the upgrade firmware package is easily cracked, reducing the security of data transmission. Summary of the invention
[0005] In order to overcome the above-mentioned defects, the present invention is proposed to provide a firmware upgrade method, device, air conditioner and medium that solve or at least partially solve the technical problems that the air conditioner is in a shutdown state for a long time when upgrading the firmware, resulting in the user being unable to use the air conditioner, and the upgraded firmware package is easily cracked, thereby reducing the security of data transmission.
[0006] In a first aspect, the present invention provides a firmware upgrade method, which is applied to an air conditioner indoor unit, wherein the upgrade firmware for upgrading the air conditioner indoor unit is split into multiple upgrade firmware data blocks; the method comprises:
[0007] If a firmware upgrade instruction is detected, alternately receiving the upgrade firmware data block sent by the air conditioner outdoor unit and the operation data of the air conditioner indoor unit;
[0008] If it is detected that the last frame of the upgrade firmware data block has been received and all the upgrade firmware data blocks have passed the verification, the firmware upgrade is performed using all the upgrade firmware data blocks.
[0009] Furthermore, in the above-mentioned firmware upgrade method, before using all the upgrade firmware data blocks to perform firmware upgrade, it also includes:
[0010] Storing the operation data of the air conditioner indoor unit at the time of entering the firmware upgrade;
[0011] After the firmware upgrade is performed using all the upgrade firmware data blocks, it also includes:
[0012] If it is detected that the firmware upgrade has been completed, the operation of the air-conditioning indoor unit is restored based on the operation data of the air-conditioning indoor unit at the time of entering the firmware upgrade.
[0013] Furthermore, the firmware upgrade method described above further includes:
[0014] During the time of receiving the operation data of the air conditioner indoor unit, verifying the received upgrade firmware data block to obtain a verification result;
[0015] If the verification result indicates failure, the firmware identifier of the upgrade firmware data block that failed the verification is sent to the outdoor unit so that the air conditioner outdoor unit can send the upgrade firmware data block that failed the verification again.
[0016] Furthermore, in the firmware upgrade method described above, verifying the received upgrade firmware data block to obtain the verification result includes:
[0017] Detecting whether the firmware identifier and the program version number in the upgrade firmware data block meet the upgrade requirements of the air conditioner indoor unit;
[0018] If the component identifier and the version number meet the upgrade requirements of the air conditioner indoor unit, determining that the verification result indicates a pass;
[0019] If the component identifier and / or the version number does not meet the upgrade requirement of the air conditioner indoor unit, it is determined that the verification result indicates failure.
[0020] Furthermore, in the above-mentioned firmware upgrade method, the firmware upgrade is performed using all the upgrade firmware data blocks, including:
[0021] Merge all the upgrade firmware data blocks to obtain a merged firmware package;
[0022] Firmware upgrade is performed based on the merged firmware package.
[0023] In a second aspect, the present invention provides a firmware upgrade method, which is applied to an air conditioner outdoor unit, and the method comprises:
[0024] Splitting the upgrade firmware package of the air conditioner indoor unit to obtain multiple upgrade firmware data blocks;
[0025] The multiple upgrade firmware data blocks and the operation data of the air-conditioning indoor unit are transmitted to the air-conditioning indoor unit alternately and time-divided, so that when the air-conditioning indoor unit receives the last frame of upgrade firmware data blocks and all the upgrade firmware data blocks pass the verification, it uses all the upgrade firmware data blocks to perform firmware upgrade.
[0026] Furthermore, in the firmware upgrade method described above, the upgrade firmware package of the air conditioner indoor unit is split to obtain multiple upgrade firmware data blocks, including:
[0027] Determining the maximum allowable length of the upgrade firmware data block according to the transmission interval of the operation data of the air conditioner indoor unit;
[0028] According to the maximum allowed length, the upgrade firmware package of the air conditioner indoor unit is split to obtain multiple upgrade firmware data blocks.
[0029] In a third aspect, the present invention provides a firmware upgrade device, which includes a processor and a storage device, wherein the storage device is suitable for storing multiple program codes, and the program codes are suitable for being loaded and run by the processor to execute any of the firmware upgrade methods described above.
[0030] In a fourth aspect, an air conditioner is provided, the air conditioner comprising an outdoor unit and an indoor unit;
[0031] The outdoor unit is used to execute a firmware upgrade method applied to an outdoor unit of an air conditioner;
[0032] The indoor unit is used to execute a firmware upgrade method applied to an indoor unit of an air conditioner.
[0033] In a fifth aspect, a computer-readable storage medium is provided, in which a plurality of program codes are stored, wherein the program codes are suitable for being loaded and run by a processor to execute any of the firmware upgrade methods described above.
[0034] The above one or more technical solutions of the present invention have at least one or more of the following beneficial effects:
[0035] In the technical solution of the present invention, the upgrade firmware is split into multiple upgrade firmware data blocks, so that after the firmware upgrade instruction is detected, the upgrade firmware data blocks sent by the air conditioner outdoor unit and the operating data of the air conditioner indoor unit are alternately received, and after detecting that the last frame of the upgrade firmware data block has been received and all the upgrade firmware data blocks have passed the verification, all the upgrade firmware data blocks are used to perform the firmware upgrade, so that when the air conditioner is upgraded, the upgrade firmware package is received and the upgrade is completed without stopping the air conditioner, so that the air conditioner can be upgraded without being sensed. At the same time, due to the alternate reception of the upgrade firmware data blocks and the operating data of the air conditioner indoor unit, the upgrade firmware package is not easy to be cracked during the data transmission process, which improves the security of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The disclosure of the present invention will become more easily understood with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present invention. In addition, similar numbers in the figures are used to represent similar components, among which:
[0037] Figure 1 is a flowchart of main steps of a firmware upgrade method according to an embodiment of the present invention;
[0038] Figure 2 is a flowchart of main steps of a firmware upgrade method according to another embodiment of the present invention;
[0039] Figure 3 is a flowchart of main steps of a firmware upgrade method according to another embodiment of the present invention;
[0040] Figure 4 is a main structural block diagram of a firmware upgrade device according to an embodiment of the present invention;
[0041] Figure 5 1 is a main structural block diagram of an air conditioner according to an embodiment of the present invention. DETAILED DESCRIPTION
[0042] Some embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.
[0043] In the description of the present invention, "module" and "processor" may include hardware, software or a combination of the two. A module may include hardware circuits, various suitable sensors, communication ports, and memories, and may also include software parts, such as program codes, or a combination of software and hardware. The processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor, or any other suitable processor. The processor has data and / or signal processing functions. The processor may be implemented in software, hardware, or a combination of the two. Non-temporary computer-readable storage media include any suitable medium that can store program codes, such as a magnetic disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, and the like. The term "A and / or B" means all possible combinations of A and B, such as only A, only B, or A and B. The term "at least one A or B" or "at least one of A and B" has a similar meaning to "A and / or B", and may include only A, only B, or A and B. The singular terms "one" and "the" may also include plural forms.
[0044] When the air conditioner is in the shutdown state, the upgrade firmware package is downloaded from the cloud server through Over-the-Air Technology (OTA). After the upgrade firmware package is verified and passed, the firmware in the air conditioner is upgraded using the upgrade firmware package. This will cause the air conditioner to be in the shutdown state for a long time, resulting in the user being unable to use the air conditioner. In addition, the upgrade firmware package is easily cracked, reducing the security of data transmission.
[0045] Therefore, in order to solve the above technical problems, the present invention provides the following technical solutions:
[0046] See attached Figure 1 , Figure 1 The present invention is a flowchart of the main steps of a firmware upgrade method according to an embodiment of the present invention. The firmware upgrade method is applied to an air conditioner indoor unit. The upgrade firmware for upgrading the air conditioner indoor unit is split into multiple upgrade firmware data blocks. Specifically, the maximum allowable length of the upgrade firmware data block can be determined according to the transmission interval of the operating data of the air conditioner indoor unit; according to the maximum allowable length, the upgrade firmware package of the air conditioner indoor unit is split to obtain multiple upgrade firmware data blocks.
[0047] like Figure 1 As shown, the firmware upgrade method in the embodiment of the present invention mainly includes the following steps 101 to 102.
[0048] Step 101: if a firmware upgrade instruction is detected, alternately receiving the upgrade firmware data block sent by the air conditioner outdoor unit and the operation data of the air conditioner indoor unit;
[0049] In a specific implementation process, after the user initiates a request to upgrade the air-conditioning indoor unit, the air-conditioning outdoor unit detects the firmware upgrade instruction, and the air-conditioning outdoor unit can send the firmware upgrade instruction to the cloud server. The cloud server will query the firmware identifier S and program version number V corresponding to the type of the air-conditioning indoor unit, and retrieve all the upgradeable firmware identifiers S' and program version numbers V' in the cloud system, select the latest program version number V' in the cloud system that meets the firmware identifier S' requirements, and send the upgraded firmware package of the air-conditioning indoor unit to the air-conditioning outdoor unit.
[0050] After the air-conditioning outdoor unit receives the upgrade firmware package of the air-conditioning indoor unit sent by the cloud server, the upgrade firmware package of the air-conditioning indoor unit can be split to obtain multiple upgrade firmware data blocks; and then the multiple upgrade firmware data blocks and the operating data of the air-conditioning indoor unit are transmitted to the air-conditioning indoor unit alternately in a time-sharing manner.
[0051] In a specific implementation process, the air-conditioning outdoor unit can transmit multiple upgrade firmware data blocks and operating data of the air-conditioning indoor unit to the air-conditioning indoor unit in a time-sharing and alternating manner through but not limited to the homebus bus. Among them, 1 frame of operating data of the air-conditioning indoor unit and 1 frame of upgrade firmware data block can be transmitted, and data transmission is performed alternately. Among them, the frame header of the upgrade firmware data block is different from the frame header of the operating data of the air-conditioning indoor unit, so that the indoor unit can distinguish the upgrade firmware data block and the operating data of the air-conditioning indoor unit according to the frame header. For example: the operating data of the air-conditioning indoor unit is in the form of: Ai+data+checksum; the upgrade firmware data block is in the form of: Cj+data+checksum. Among them, Ai is the frame header of the operating data of the i-th air-conditioning indoor unit, and Cj is the frame header of the i-th upgrade firmware data block.
[0052] In a specific implementation process, an alternating reception method is adopted to receive the upgrade firmware data blocks sent by the air-conditioning outdoor unit and the operating data of the air-conditioning indoor unit. When the outdoor unit and the indoor unit interact with each other, even if the interaction data is intercepted, the existence of the operating data of the air-conditioning indoor unit increases the difficulty of cracking the upgrade firmware package, thereby improving the security of data transmission.
[0053] Step 102: If it is detected that the last frame of the upgrade firmware data block has been received and all the upgrade firmware data blocks have passed verification, all the upgrade firmware data blocks are used to perform firmware upgrade.
[0054] In a specific implementation process, the air conditioner outdoor unit can send the total number of upgrade firmware data blocks to the air conditioner indoor unit. The air conditioner indoor unit can detect whether the last frame of upgrade firmware data blocks has been received based on the frame header of the upgrade firmware data block. If it is detected that the last frame of upgrade firmware data blocks has been received and all upgrade firmware data blocks have passed the verification, all upgrade firmware data blocks are used to perform firmware upgrade. Specifically, all upgrade firmware data blocks can be merged to obtain a merged firmware package; firmware upgrade is performed based on the merged firmware package. Among them, the firmware upgrade is performed locally, and its time is relatively short. Before the upgrade, it is always in normal operation. Therefore, the entire firmware upgrade process of the air conditioner only needs to be upgraded again, and the indoor unit will be briefly shut down. For users, the feeling of using the air conditioner will not be very obvious, so that the air conditioner indoor unit can be upgraded without feeling.
[0055] In a specific implementation process, the received upgrade firmware data block can be verified during the time of receiving the operation data of the air conditioner indoor unit to obtain the verification result. Among them, only one frame of upgrade firmware data block before the current operation data of the air conditioner indoor unit can be verified. That is, each time a frame of upgrade firmware data block is sent, verification can be performed once when the operation data of the air conditioner indoor unit is subsequently received.
[0056] Specifically, it is possible to detect whether the firmware identifier and the program version number in the upgrade firmware data block meet the upgrade requirements of the air conditioner indoor unit; if the firmware identifier and the version number meet the upgrade requirements of the air conditioner indoor unit, it is determined that the verification result indicates that it is passed; if the firmware identifier and / or the version number do not meet the upgrade requirements of the air conditioner indoor unit, it is determined that the verification result indicates that it is not passed. Wherein, if the firmware identifier and the program version number in the upgrade firmware data block correspond to the type of the air conditioner indoor unit, it means that the firmware identifier and the program version number in the upgrade firmware data block meet the upgrade requirements of the air conditioner indoor unit; otherwise, it means that the firmware identifier and the program version number in the upgrade firmware data block meet the upgrade requirements of the air conditioner indoor unit. For example, if the air conditioner indoor unit is a wall mounted type, and the firmware identifier and the program version number in the upgrade firmware data block are both the firmware identifier and the program version number of the wall mounted type, then the firmware identifier and the program version number in the upgrade firmware data block meet the upgrade requirements of the air conditioner indoor unit. If the firmware identifier and the program version number in the upgrade firmware data block are both the firmware identifier and the program version number of the cabinet type, then the firmware identifier and the program version number in the upgrade firmware data block do not meet the upgrade requirements of the air conditioner indoor unit.
[0057] In a specific implementation process, if the verification result indicates that it has not passed, the firmware identifier of the upgrade firmware data block that has not passed the verification is sent to the outdoor unit, so that the air conditioner outdoor unit can send the upgrade firmware data block that has not passed the verification again. If the verification result indicates that it has passed, the next upgrade firmware data block can be sent.
[0058] The firmware upgrade method of this embodiment is to split the upgrade firmware into multiple upgrade firmware data blocks, so that after detecting the firmware upgrade instruction, the upgrade firmware data blocks sent by the air conditioner outdoor unit and the operating data of the air conditioner indoor unit are alternately received, and after detecting that the last frame of the upgrade firmware data block has been received and all the upgrade firmware data blocks have passed the verification, all the upgrade firmware data blocks are used to perform the firmware upgrade, so that when the air conditioner is upgraded, the upgrade firmware package is received and upgraded without stopping, thereby realizing the non-sensing upgrade of the air conditioner. At the same time, since the upgrade firmware data blocks and the operating data of the air conditioner indoor unit are alternately received, the upgrade firmware package is not easy to be cracked during the data transmission process, thereby improving the security of data transmission.
[0059] Figure 2 FIG. 1 is a flow chart of the main steps of a firmware upgrade method according to another embodiment of the present invention. The firmware upgrade method is applied to an indoor unit of an air conditioner. Figure 2 As shown, the firmware upgrade method in the embodiment of the present invention mainly includes the following steps 201 to 204.
[0060] Step 201: if a firmware upgrade instruction is detected, alternately receiving the upgrade firmware data block sent by the air conditioner outdoor unit and the operation data of the air conditioner indoor unit;
[0061] Step 202: If it is detected that the last frame of the upgrade firmware data block has been received and all the upgrade firmware data blocks have passed verification, the operation data of the air conditioner indoor unit at the time of entering the firmware upgrade is stored;
[0062] In a specific implementation process, if it is detected that the last frame of upgrade firmware data block has been received and all upgrade firmware data blocks have passed the verification, it means that the conditions for entering the firmware upgrade are met. At this time, the operating data of the air-conditioning indoor unit at the moment of entering the firmware upgrade can be stored so that after the firmware upgrade is completed, the indoor unit can continue to operate according to the operating data of the air-conditioning indoor unit at the moment of entering the firmware upgrade.
[0063] Step 203: Use all the upgrade firmware data blocks to perform firmware upgrade;
[0064] Step 204: If it is detected that the firmware upgrade has been completed, the operation of the air-conditioning indoor unit is restored based on the operation data of the air-conditioning indoor unit at the time of the firmware upgrade.
[0065] When the firmware upgrade is completed using all the upgraded firmware data blocks, the operation of the air-conditioning indoor unit is restored based on the operating data of the air-conditioning indoor unit at the time of entering the firmware upgrade. In this way, the user does not need to control the air-conditioning indoor unit again, further realizing a seamless upgrade of the air-conditioning indoor unit.
[0066] See attached Figure 3 , Figure 3 FIG. 1 is a flow chart of the main steps of a firmware upgrade method according to another embodiment of the present invention. The firmware upgrade method is applied to an air conditioner outdoor unit. Figure 3 As shown, the firmware upgrade method in the embodiment of the present invention mainly includes the following steps 301-302.
[0067] Step 301: split the upgrade firmware package of the air conditioner indoor unit to obtain multiple upgrade firmware data blocks;
[0068] In a specific implementation process, the maximum allowable length of the upgrade firmware data block can be determined based on the transmission interval time of the operating data of the air-conditioning indoor unit; based on the maximum allowable length, the upgrade firmware package of the air-conditioning indoor unit is split to obtain multiple upgrade firmware data blocks.
[0069] Specifically, during the operation of the air-conditioning indoor unit, the transmission interval time for data transmission between the air-conditioning outdoor unit and the air-conditioning indoor unit is usually known. Therefore, the maximum allowable length of the upgrade firmware data block can be determined based on the transmission interval time and the data transmission speed. Then, according to the maximum allowable length, the upgrade firmware package of the air-conditioning indoor unit can be split to obtain multiple upgrade firmware data blocks.
[0070] Step 302: Transmit the plurality of upgrade firmware data blocks and the operation data of the air conditioner indoor unit to the air conditioner indoor unit in a time-sharing and alternating manner, so that when the air conditioner indoor unit receives the last frame of upgrade firmware data blocks and all upgrade firmware data blocks pass verification, it can use all upgrade firmware data blocks to perform firmware upgrade.
[0071] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effects of the present invention, different steps do not have to be performed in such an order. They can be performed simultaneously (in parallel) or in other orders. These changes are within the scope of protection of the present invention.
[0072] It is understood by those skilled in the art that the present invention implements all or part of the processes in the method of the above embodiment, and can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device, medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium that can carry the computer program code. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.
[0073] Furthermore, the present invention also provides a firmware upgrade device.
[0074] See attached Figure 4 , Figure 4 FIG. 1 is a main structural block diagram of a firmware upgrade device according to an embodiment of the present invention. Figure 4 As shown, the firmware upgrade device in the embodiment of the present invention may include a processor 41 and a storage device 42.
[0075] The storage device 42 may be configured to store a program for executing the firmware upgrade method of the above method embodiment, and the processor 41 may be configured to execute the program in the storage device 42, which includes but is not limited to the program for executing the firmware upgrade method of the above method embodiment. For ease of explanation, only the part related to the embodiment of the present invention is shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The firmware upgrade device may be a control device formed by various electronic devices.
[0076] In a specific implementation process, the number of the storage device 42 and the processor 41 can be multiple. The program for executing the firmware upgrade method of the above method embodiment can be divided into multiple subprograms, and each subprogram can be loaded and run by the processor 41 to execute different steps of the firmware upgrade method of the above method embodiment. Specifically, each subprogram can be stored in different storage devices 42 respectively, and each processor 41 can be configured to execute the program in one or more storage devices 42 to jointly implement the firmware upgrade method of the above method embodiment, that is, each processor 41 executes different steps of the firmware upgrade method of the above method embodiment respectively to jointly implement the firmware upgrade method of the above method embodiment.
[0077] The above-mentioned multiple processors 41 may be processors deployed on the same device. For example, the above-mentioned device may be a high-performance device composed of multiple processors, and the above-mentioned multiple processors 41 may be processors configured on the high-performance device. In addition, the above-mentioned multiple processors 41 may also be processors deployed on different devices. For example, the above-mentioned device may be a server cluster, and the above-mentioned multiple processors 41 may be processors on different servers in the server cluster.
[0078] Furthermore, the present invention also provides an air conditioner.
[0079] See attached Figure 5 , Figure 5 1 is a main structural block diagram of an air conditioner according to an embodiment of the present invention. Figure 5 As shown, the air conditioner in the embodiment of the present invention may include an outdoor unit 51 and an indoor unit 52 .
[0080] In a specific implementation process, the outdoor unit 51 is used to perform Figure 3 The firmware upgrade method of the illustrated embodiment;
[0081] The indoor unit 52 is used to perform Figure 1 and Figure 2 The firmware upgrade method of the illustrated embodiment.
[0082] Furthermore, the present invention also provides a computer-readable storage medium. In a computer-readable storage medium embodiment according to the present invention, the computer-readable storage medium can be configured to store a program for executing the firmware upgrade method of the above method embodiment, and the program can be loaded and run by the processor to implement the above firmware upgrade method. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The computer-readable storage medium can be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present invention is a non-temporary computer-readable storage medium.
[0083] Further, it should be understood that since the setting of each module is only for illustrating the functional units of the device of the present invention, the physical devices corresponding to these modules may be the processor itself, or a part of the software in the processor, a part of the hardware, or a part of the combination of software and hardware. Therefore, the number of each module in the figure is only schematic.
[0084] Those skilled in the art will appreciate that the modules in the device can be adaptively split or merged. Such splitting or merging of specific modules will not cause the technical solution to deviate from the principle of the present invention, and therefore, the technical solutions after splitting or merging will fall within the protection scope of the present invention.
[0085] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
Claims
1. A firmware upgrade method, characterized in that: Applied to an air conditioner indoor unit, wherein the upgrade firmware for upgrading the air conditioner indoor unit is split into multiple upgrade firmware data blocks; the method comprises: If a firmware upgrade instruction is detected, alternately receiving the upgrade firmware data block sent by the air conditioner outdoor unit and the operation data of the air conditioner indoor unit; If it is detected that the last frame of the upgrade firmware data block has been received and all the upgrade firmware data blocks have passed the verification, the firmware upgrade is performed using all the upgrade firmware data blocks.
2. The firmware upgrade method according to claim 1, characterized in that: Before using all the upgrade firmware data blocks to upgrade the firmware, it also includes: Storing the operation data of the air conditioner indoor unit at the time of entering the firmware upgrade; After the firmware upgrade is performed using all the upgrade firmware data blocks, it also includes: If it is detected that the firmware upgrade has been completed, the operation of the air-conditioning indoor unit is restored based on the operation data of the air-conditioning indoor unit at the time of entering the firmware upgrade.
3. The firmware upgrade method according to claim 1, characterized in that: Also includes: During the time of receiving the operation data of the air conditioner indoor unit, verifying the received upgrade firmware data block to obtain a verification result; If the verification result indicates failure, the firmware identifier of the upgrade firmware data block that failed the verification is sent to the outdoor unit so that the air conditioner outdoor unit can send the upgrade firmware data block that failed the verification again.
4. The firmware upgrade method according to claim 3, characterized in that: The received upgrade firmware data block is verified, and the verification results include: Detecting whether the firmware identifier and the program version number in the upgrade firmware data block meet the upgrade requirements of the air conditioner indoor unit; If the component identifier and the version number meet the upgrade requirements of the air conditioner indoor unit, determining that the verification result indicates a pass; If the component identifier and / or the version number does not meet the upgrade requirement of the air conditioner indoor unit, it is determined that the verification result indicates failure.
5. The firmware upgrade method according to claim 1, characterized in that: Perform firmware upgrades using all upgrade firmware data blocks, including: Merge all the upgrade firmware data blocks to obtain a merged firmware package; Firmware upgrade is performed based on the merged firmware package.
6. A firmware upgrade method, characterized in that: Applied to an outdoor unit of an air conditioner, the method comprises: Splitting the upgrade firmware package of the air conditioner indoor unit to obtain multiple upgrade firmware data blocks; The multiple upgrade firmware data blocks and the operation data of the air-conditioning indoor unit are transmitted to the air-conditioning indoor unit alternately and time-divided, so that when the air-conditioning indoor unit receives the last frame of upgrade firmware data blocks and all the upgrade firmware data blocks pass the verification, it uses all the upgrade firmware data blocks to perform firmware upgrade.
7. The firmware upgrade method according to claim 6, characterized in that: The upgrade firmware package of the air conditioner indoor unit is split to obtain multiple upgrade firmware data blocks, including: Determining the maximum allowable length of the upgrade firmware data block according to the transmission interval of the operation data of the air conditioner indoor unit; According to the maximum allowed length, the upgrade firmware package of the air conditioner indoor unit is split to obtain multiple upgrade firmware data blocks.
8. A firmware upgrade device, characterized in that: The method comprises a processor and a storage device, wherein the storage device is suitable for storing a plurality of program codes, and the program codes are suitable for being loaded and run by the processor to execute the firmware upgrade method according to any one of claims 1 to 7.
9. An air conditioner, characterized in that: Includes outdoor unit and indoor unit; The outdoor unit is used to execute the firmware upgrade method according to claim 6 or 7; The indoor unit is used to execute the firmware upgrade method according to any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that: A plurality of program codes are stored therein, and the program codes are suitable for being loaded and run by a processor to execute the firmware upgrade method according to any one of claims 1 to 7.