Air conditioner indoor unit remote OTA upgrade abnormality regulation method and storage medium

By setting a countdown mechanism and segmented transmission method in the air conditioning system, the problem of upgrade failure caused by abnormal exit in the air conditioning system is solved, realizing a more stable and reliable remote OTA upgrade process and ensuring the normal operation of the air conditioning system under abnormal conditions.

CN119687562BActive Publication Date: 2026-01-09ZHUHAI TUOXIN TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510003230.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-02
Publication Date
2026-01-09
Estimated Expiration
2045-01-02

AI Technical Summary

Technical Problem

In existing remote OTA upgrade methods, when one of the indoor or outdoor units malfunctions and exits the OTA upgrade mode, the other unit cannot know that the other has exited the OTA upgrade mode, resulting in the air conditioning system being unable to resume normal communication or complete the upgrade.

Method used

When the indoor unit receives data from the outdoor unit but fails to successfully parse the OTA upgrade command, a first standard countdown is set for the indoor unit, and after the countdown ends, it is forcibly switched to OTA upgrade communication mode to ensure that the indoor unit re-enters the upgrade state; at the same time, the outdoor unit requests upgrade data multiple times, and the server sends data multiple times until the upgrade is completed.

Benefits of technology

By adopting a stable OTA upgrade communication mode and segmented transmission method, the upgrade failure rate is reduced, the reliability and security of data transmission are improved, the stability and adaptability of the air conditioning system during the upgrade process are enhanced, and the risk of equipment failure due to abnormal exit is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119687562B_ABST
    Figure CN119687562B_ABST
Patent Text Reader

Abstract

The application provides an air conditioner indoor unit remote OTA upgrade abnormality regulation method and a storage medium, which are applied to an air conditioner system. The regulation method comprises the following steps: determining a current version number of an outdoor unit by a server, and judging whether the latest version is available for outdoor unit upgrade; if the latest version is available for outdoor unit upgrade, the indoor unit and the outdoor unit both enter an OTA upgrade communication mode; after entering the OTA upgrade communication mode, the outdoor unit requests upgrade data from the indoor unit for multiple times, and the server sends the upgrade data to the indoor unit for multiple times until the outdoor unit upgrade is completed; when the outdoor unit upgrade is completed, the indoor unit and the outdoor unit both exit the OTA upgrade communication mode; wherein, when the indoor unit abnormally exits the OTA upgrade communication mode while the outdoor unit is still in the OTA upgrade communication mode, if the indoor unit receives the outdoor unit data but fails to successfully analyze the OTA upgrade instruction, the indoor unit is forced to switch to the OTA upgrade communication mode after the end of the first standard countdown.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of air conditioners, in particular to an air conditioner indoor unit remote OTA upgrade abnormality regulation method and a storage medium. BACKGROUND

[0002] In an air conditioning system, remote OTA (Over-The-Air) upgrade is a method of updating device firmware or software remotely through wireless communication technology. This technology allows the air conditioning system to automatically, reliably, and securely obtain and apply updates from a remote server without the need for physical connection, to improve device performance, add new functions, or fix security vulnerabilities. Currently, the OTA upgrade method for the air conditioner outdoor unit is as follows: after determining the upgradeable version, the outdoor unit starts to continuously send upgrade requests to the indoor unit. After receiving the request from the outdoor unit, the indoor unit sends the request to the server, the server analyzes the request and sends the response data to the indoor unit, and the indoor unit transmits the response data back to the outdoor unit. The outdoor unit updates the memory data and executes according to the latest data, thereby realizing remote upgrade.

[0003] The problem is that in the current remote OTA upgrade method, when one of the indoor unit or the outdoor unit abnormally exits the OTA upgrade mode, the other party cannot know that the other party has exited the OTA upgrade mode, resulting in the air conditioning system being unable to recover to the normal communication process or unable to complete the upgrade. SUMMARY

[0004] The present application solves the technical problem that in the current remote OTA upgrade method, when one of the indoor unit or the outdoor unit abnormally exits the OTA upgrade mode, the other party cannot know that the other party has exited the OTA upgrade mode, resulting in the air conditioning system being unable to recover to the normal communication process or unable to complete the upgrade. The present application sets a first standard countdown time for the indoor unit when the indoor unit receives the outdoor unit data but fails to successfully analyze the OTA upgrade instruction, and after the first standard countdown time ends, forces the indoor unit to switch to the OTA upgrade communication mode, thereby realizing the recovery of the air conditioning system to the normal communication process or the completion of the upgrade.

[0005] To solve the above problems, the application provides a kind of air conditioner indoor unit remote OTA upgrade abnormality regulation and control method, it is applied to air conditioning system, regulation and control method includes: by server determines the current version number of outdoor unit, and judges whether there is the latest version available for outdoor unit upgrade;If there is the latest version available for outdoor unit upgrade, then indoor unit and outdoor unit all enter OTA upgrade communication mode;After entering OTA upgrade communication mode, outdoor unit requests upgrade data to indoor unit in multiple times, server sends upgrade data to indoor unit in multiple times, until outdoor unit upgrade is completed;When outdoor unit completes upgrade, indoor unit and outdoor unit all exit OTA upgrade communication mode;Wherein, when indoor unit occurs abnormality and exits OTA upgrade communication mode, and outdoor unit is still in OTA upgrade communication mode, if there is indoor unit received outdoor unit data, but failed to successfully parse OTA upgrade instruction, then after the end of the first standard countdown, indoor unit is forced to switch to OTA upgrade communication mode.

[0006] Compared with the prior art, the technical effects achieved by adopting the technical scheme are: by establishing stable OTA upgrade communication mode between indoor unit and outdoor unit, the effective transmission of data during upgrade is ensured, and the upgrade failure rate caused by abnormal exit is reduced.For the case of abnormal exit of indoor unit, a mechanism of forced switching to OTA upgrade communication mode is designed, which ensures that indoor unit can re-enter the upgrade state after the end of the first standard countdown, thereby avoiding upgrade interruption caused by abnormal exit. Outdoor unit requests upgrade data from indoor unit in multiple times, and server also sends data in multiple times. This segmented transmission mode can effectively reduce network load and improve data transmission reliability, and adapt to upgrade requirements in different network environments. Moreover, the segmented transmission mode also reduces the risk of information loss and improves the security of data transmission. At the same time, through effective abnormal handling and communication mode management, the stability of air conditioning system during upgrade is enhanced, and the risk of equipment failure caused by upgrade failure is reduced.

[0007] In one possible design, the regulation and control method further includes: when outdoor unit occurs abnormality and exits OTA upgrade communication mode, and indoor unit is still in OTA upgrade communication mode, if there is indoor unit received outdoor unit data, but failed to successfully parse OTA upgrade instruction, then after the end of the second standard countdown, indoor unit is forced to exit OTA upgrade communication mode.

[0008] Compared with the prior art, the technical effects achieved by adopting the technical scheme are: by setting the mechanism of forcing the indoor unit to exit the OTA upgrade communication mode when the outdoor unit abnormally exits, it is ensured that the system can respond to abnormal situations in time, and the indoor unit is prevented from being in an unstable state for a long time. Meanwhile, when the outdoor unit cannot continue the OTA upgrade, forcing the indoor unit to exit the communication mode can also release system resources, avoiding network congestion or upgrade delay of other devices caused by long-time occupation of the communication channel. By setting the second standard countdown, it is ensured that the indoor unit can exit the upgrade mode within a reasonable time in the case that the OTA upgrade instruction is not successfully parsed, reducing the system instability caused by long-time waiting. Moreover, by setting different countdown standards, the system adaptability under different environments and conditions can be flexibly adjusted.

[0009] In one possible design, after entering the OTA upgrade communication mode, the outdoor unit requests upgrade data from the indoor unit in multiple times, and the server sends upgrade data to the indoor unit in multiple times until the outdoor unit completes the upgrade, including: after entering the OTA upgrade communication mode, the outdoor unit requests upgrade data from the indoor unit in multiple times; after receiving the request of the outdoor unit, the indoor unit requests upgrade data from the server; after receiving the data request, the server sends the corresponding upgrade data to the indoor unit, which then sends the upgrade data to the outdoor unit until the outdoor unit completes the upgrade.

[0010] Compared with the prior art, the technical effects achieved by adopting the technical scheme are: by requesting and sending upgrade data in multiple times, the data amount of single transmission can be effectively reduced, the network load can be reduced, the efficiency of data transmission can be improved, and the integrity of data transmission can be ensured. Batch data transmission can reduce the risk of overall upgrade failure caused by network fluctuations or transmission errors, ensuring that the upgrade can be successfully completed in an unstable network environment. Meanwhile, the indoor unit can be used as an intermediary between the outdoor unit and the server, which can optimize the network architecture, reduce the direct communication demand between the outdoor unit and the server, reduce the network load, and especially in poor network conditions, the stability of data transmission can be improved.

[0011] In one possible design, the control method further includes: in the OTA upgrade communication mode, the outdoor unit sends the same data request to the indoor unit every interval of a standard time period until receiving the upgrade data sent by the indoor unit; before responding to the data request of the outdoor unit, the indoor unit only uploads the first data request sent by the outdoor unit to the server until the server sends a response data to the indoor unit; after the indoor unit sends the response data to the outdoor unit, the indoor unit receives the data request of the outdoor unit again and uploads the data request to the server.

[0012] Compared with the prior art, the technical effects achieved by adopting the technical scheme are: by setting a standard time interval for sending data requests, network congestion caused by frequent requests of the outdoor unit is avoided, and the efficiency and stability of data transmission are improved. Before the indoor unit responds to the data request of the outdoor unit, only the first data request is uploaded to the server, unnecessary communication overhead is reduced, network burden is reduced, and the response speed of the system is improved. After the indoor unit receives the response data of the server, it starts to process the subsequent data request of the outdoor unit, ensuring the orderliness and accuracy of data processing, and reducing the error analysis caused by data confusion. At the same time, by separating the sending of the response data from the data request of the outdoor unit, the stability of the indoor unit in processing the request is ensured, and the risk of system crash caused by concurrent requests is reduced. The server effectively manages the data interaction between the indoor unit and the outdoor unit, enhances the overall control ability of the system, and ensures the smooth progress of the upgrade process.

[0013] In one possible design, if there is a latest version available for outdoor unit upgrade, the indoor unit and the outdoor unit enter the OTA upgrade communication mode, including: if there is a latest version available for outdoor unit upgrade, the server sends an upgrade confirmation instruction to the indoor unit, and the indoor unit sends the upgrade confirmation instruction to the outdoor unit after receiving the upgrade confirmation instruction; the outdoor unit sends an upgrade instruction to the indoor unit after receiving the upgrade confirmation instruction and confirming to upgrade; the indoor unit enters the OTA upgrade communication mode after receiving the upgrade instruction, and sends a start completion instruction to the outdoor unit; the outdoor unit also enters the OTA upgrade communication mode after receiving the start completion instruction; wherein the upgrade confirmation instruction includes file size information of the latest version.

[0014] Compared with the prior art, the technical effects achieved by adopting the technical scheme are: by introducing the upgrade confirmation instruction, the upgrade process between the indoor unit and the outdoor unit is clarified, the orderliness and logic of each link are ensured, and the risk of upgrade failure caused by process confusion is reduced. The file size information of the latest version in the upgrade confirmation instruction enables the indoor unit and the outdoor unit to know the data amount required for upgrade in advance, which helps to reasonably arrange network resources and time, and improves the efficiency of upgrade. Through the mechanism of the confirmation instruction, the confirmation step of the outdoor unit before upgrade is ensured, the failure rate caused by misoperation or unnecessary upgrade request is reduced, and the reliability of the system is improved. At the same time, the indoor unit and the outdoor unit enter the OTA upgrade communication mode after receiving the confirmation instruction, ensuring the smooth transmission of upgrade data.

[0015] In one possible design, when the outdoor unit finishes upgrading, the indoor unit and the outdoor unit both exit the OTA upgrading communication mode, including: when the outdoor unit receives all the upgrading data, the outdoor unit sends an upgrading completion instruction to the indoor unit; after receiving the upgrading completion instruction, the indoor unit exits the OTA upgrading communication mode and sends an exit instruction to the outdoor unit; after receiving the exit instruction, the outdoor unit also exits the OTA upgrading communication mode.

[0016] Compared with the prior art, the technical effects achieved by adopting the technical solution are: by introducing the upgrading completion instruction, it is ensured that the indoor unit and the outdoor unit can explicitly confirm the state of each other after the upgrading ends, and potential problems caused by inconsistent states are reduced. After the outdoor unit finishes upgrading, the indoor unit and the outdoor unit send and receive the exit instruction, so that both of them can safely exit the OTA upgrading communication mode, and system instability caused by forced exit is reduced. Through the standardized exit process, the risk of failure caused by failure to correctly exit the OTA upgrading communication mode is reduced, and the reliability and safety of the system are improved.

[0017] In one possible design, the server determines the current version number of the outdoor unit, including: the server sends a version number query instruction to the indoor unit; after receiving the version number query instruction, the indoor unit sends it to the outdoor unit; after receiving the version number query instruction, the outdoor unit sends the current version number to the indoor unit, and the indoor unit uploads the current version number to the server.

[0018] Compared with the prior art, the technical effects achieved by adopting the technical solution are: by taking the indoor unit as an intermediary, the process of querying the version number is simplified, the complexity of directly communicating with the outdoor unit is reduced, and the efficiency of information transmission is improved. The server can obtain the version number of the outdoor unit in real time, so that when performing OTA upgrading or other operations, decisions can be made based on the version information of the outdoor unit, and the response speed of the system is improved.

[0019] In one possible design, whether there is a latest version available for upgrading of the outdoor unit is determined, including: the server compares the latest version number in the database with the current version number, if the latest version number is higher than the current version number, there is a latest version available for upgrading of the outdoor unit; if the latest version number is equal to the current version number, the outdoor unit does not need to be upgraded.

[0020] Compared with the prior art, the technical effects achieved by adopting the technical solution are: by directly comparing the latest version number in the database with the current version number, it is quickly determined whether upgrading is needed, the time for manual intervention and judgment is reduced, and the efficiency of version management is improved. Through the explicit version comparison mechanism, unnecessary upgrading operations of the outdoor unit in the case where the current version is the latest are avoided, time and resources are saved, and the operation efficiency of the system is improved.

[0021] In one possible design, the indoor unit is forced to switch to the OTA upgrade communication mode after the end of the first standard countdown, including: when the indoor unit first receives the outdoor unit data but fails to successfully parse the OTA upgrade instruction, the indoor unit starts the first standard countdown; if the indoor unit still fails to successfully parse the OTA upgrade instruction after the end of the first standard countdown, the indoor unit is forced to switch to the OTA upgrade communication mode.

[0022] Compared with the prior art, the technical effects achieved by adopting the technical solution are: by setting the first standard countdown, the indoor unit can retry within a certain time when it fails to successfully parse the OTA upgrade instruction, thereby improving the fault tolerance of the system to abnormal conditions. After the countdown ends, the indoor unit is forced to switch to the OTA upgrade communication mode, ensuring that the system can enter the upgrade state in time, avoiding system stagnation or failure due to long-time failure to parse the instruction, and improving the stability and reliability of the system. Forced switching to the OTA upgrade communication mode after the countdown ends can ensure that the air conditioning system continues to complete the upgrade. By setting the countdown, the system can flexibly adjust the upgrade strategy according to the actual situation, thereby enhancing the flexibility and adaptability of the system.

[0023] The application also provides a storage medium, which comprises a stored computer program, wherein the computer program controls the storage medium to execute the air conditioner indoor unit remote OTA upgrade abnormality control method when the computer program is run by a processor.

[0024] Compared with the prior art, the technical effects achieved by adopting the technical solution are: the storage medium of the application implements the air conditioner indoor unit remote OTA upgrade abnormality control method of any technical solution of the application, and therefore has all the beneficial effects of the air conditioner indoor unit remote OTA upgrade abnormality control method of any technical solution of the application, which will not be described herein again. BRIEF DESCRIPTION OF DRAWINGS

[0025] Figure 1 A flowchart of the air conditioner indoor unit remote OTA upgrade abnormality control method provided for the embodiments of the application is shown in the figure.

[0026] Figure 2 A data transmission overall schematic diagram provided for the embodiments of the application is shown in the figure.

[0027] Figure 3 A multi-packet request data flowchart provided for the embodiments of the application is shown in the figure.

[0028] Figure 4 An indoor unit abnormality processing flowchart provided for the embodiments of the application is shown in the figure.

[0029] Figure 5 An outdoor unit abnormality processing flowchart provided for the embodiments of the application is shown in the figure. DETAILED DESCRIPTION

[0030] In order to make the above objectives, features and advantages of the present application more obvious and easy to understand, the specific embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0031] Referring to Figures 1 to 5 The embodiment provides a method for regulating OTA upgrade abnormality of an indoor unit of an air conditioner, applied to an air conditioning system, and the method comprises the following steps.

[0032] The server determines a current version number of the outdoor unit and judges whether the latest version exists and can be used for outdoor unit upgrade.

[0033] If the latest version exists and can be used for outdoor unit upgrade, the indoor unit and the outdoor unit both enter an OTA upgrade communication mode.

[0034] After entering the OTA upgrade communication mode, the outdoor unit requests upgrade data from the indoor unit for multiple times, and the server sends the upgrade data to the indoor unit for multiple times until the outdoor unit upgrade is completed.

[0035] When the outdoor unit upgrade is completed, the indoor unit and the outdoor unit both exit the OTA upgrade communication mode.

[0036] When the indoor unit abnormally exits the OTA upgrade communication mode while the outdoor unit is still in the OTA upgrade communication mode, if the indoor unit receives the outdoor unit data but fails to successfully parse the OTA upgrade instruction, the indoor unit is forced to switch to the OTA upgrade communication mode after the first standard countdown ends.

[0037] Specifically, in the embodiment, remote OTA upgrade is selected because remote OTA upgrade can quickly push the latest functions and security patches to ensure that the air conditioning equipment always runs on the latest version. This is crucial for improving the performance and security of the equipment. The reason why the indoor unit and the outdoor unit both enter the OTA upgrade communication mode before requesting and transmitting upgrade data is that entering the OTA communication mode can ensure that stable connections can be established between the outdoor unit, the indoor unit and the server, so as to smoothly download the update file and ensure the stability and security of data transmission. The version upgrade of the outdoor unit includes two stages, namely, an upgrade confirmation stage and a data transmission stage. The upgrade confirmation stage mainly determines whether the latest version exists and can be used for upgrade through the server, and makes the outdoor unit and the indoor unit enter the OTA upgrade communication mode after confirming the upgrade. The data transmission stage mainly includes that the outdoor unit requests upgrade data from the server through the indoor unit, and the server transmits the upgrade data to the outdoor unit through the indoor unit.

[0038] Specifically, as Figure 2 The overall schematic diagram of data transmission and as Figure 4The abnormality processing flowchart of the indoor unit is shown. In the current air conditioning system upgrading process, in the data transmission stage, the power grid may be unstable, causing the indoor unit and the outdoor unit to be powered off for a short time. The outdoor unit uses large capacitor devices, and the power supply provides the outdoor controller to run for a short time to maintain the OTA upgrade communication mode. The indoor unit stops working immediately after the power supply is disconnected, and runs in the normal air conditioning communication mode after being powered on again. The indoor unit and the outdoor unit are in different working modes, which may cause the air conditioner to malfunction or even cause the air conditioner to malfunction. In some cases, the firmware upgrade of the device involves security and functionality. If the upgrade fails to complete correctly, it may leave a security risk and affect the normal operation of the device and the safety of the user. The regulation method provided in the embodiment sets a first standard countdown time for the indoor unit when the indoor unit receives the outdoor unit data but fails to successfully parse the OTA upgrade instruction. If the OTA upgrade instruction is not successfully parsed before the first standard countdown time ends, it means that the outdoor unit sends the OTA upgrade instruction, and the outdoor unit is in the OTA upgrade mode. The indoor unit and the outdoor unit are in different working modes, and the system will forcibly switch the indoor unit to the OTA upgrade communication mode to continue the system upgrade. The instructions sent by the indoor unit and the outdoor unit in the OTA upgrade communication mode are OTA upgrade instructions, and the instructions sent by the indoor unit and the outdoor unit in the normal communication mode are normal communication instructions.

[0039] In an embodiment of the present application, the regulation method further comprises: when the outdoor unit abnormally exits the OTA upgrade communication mode, and the indoor unit is still in the OTA upgrade communication mode, if there is indoor unit receiving outdoor unit data, but fails to successfully parse the OTA upgrade instruction, then after the second standard countdown time ends, the indoor unit is forcibly exited from the OTA upgrade communication mode.

[0040] Specifically, as Figure 5 The abnormality processing flowchart of the outdoor unit is shown. In the embodiment, in the data transmission stage, the outdoor unit may exit the OTA upgrade communication mode and run in the normal air conditioning communication mode after the controller chip is reset and the OTA upgrade is completed, and the indoor unit cannot know the abnormal exit of the outdoor unit and is still in the OTA upgrade communication mode. Similarly, the indoor unit and the outdoor unit in different working modes may cause the air conditioner to malfunction. The regulation method provided in the embodiment sets a second standard countdown time for the indoor unit when the indoor unit receives the outdoor unit data but fails to successfully parse the OTA upgrade instruction. If the OTA upgrade instruction is not successfully parsed before the second standard countdown time ends, it means that the outdoor unit sends the normal communication instruction, not the OTA upgrade instruction, and the outdoor unit is in the normal communication mode. The system will forcibly exit the indoor unit from the OTA upgrade communication mode.

[0041] In one embodiment of the present invention, after entering the OTA upgrade communication mode, the outdoor unit requests upgrade data from the indoor unit multiple times, and the server sends upgrade data to the indoor unit multiple times until the outdoor unit upgrade is completed. This includes: after entering the OTA upgrade communication mode, the outdoor unit requests upgrade data from the indoor unit multiple times; after receiving the request from the outdoor unit, the indoor unit requests upgrade data from the server; after receiving the data request, the server sends the corresponding upgrade data to the indoor unit, which then sends it to the outdoor unit, until the outdoor unit upgrade is completed.

[0042] Specifically, such as Figure 3 As shown in the multi-packet request data flow diagram, in this embodiment, the reason why the outdoor unit requests upgrade data from the indoor unit multiple times, and the server sends upgrade data to the indoor unit multiple times, is that during OTA upgrades, the network environment may be affected by various factors, such as signal interference and bandwidth limitations. If the amount of data requested at once is too large, it may cause packet loss or delay during transmission, thereby affecting the integrity and reliability of the data. By making multiple requests, a smaller amount of data can be transmitted in each request, reducing the risk of information loss due to network instability. If a large amount of data is transmitted in a single request, and the data is corrupted or lost, the entire data packet needs to be downloaded again, which is time-consuming and wastes bandwidth. With multiple requests, if a request fails, only the failed data portion needs to be re-requested, which can more quickly restore the upgrade process and improve efficiency. The device's memory and cache resources are limited. If too much data is requested at once, it may lead to insufficient device memory, affecting normal operation and other functions. Multiple requests can effectively manage memory usage and ensure that the device can continue to operate normally during the upgrade process. Multiple requests can also allow the device to receive and process feedback information in a timely manner after each request, ensuring that every step of data transmission is confirmed. This approach helps to identify and address problems promptly, further reducing the risk of information loss.

[0043] In one embodiment of the present invention, the control method further includes: in OTA upgrade communication mode, the outdoor unit sends the same data request to the indoor unit at standard intervals until it receives upgrade data from the indoor unit; before responding to the data request from the outdoor unit, the indoor unit only uploads the first data request sent by the outdoor unit to the server until the server sends response data to the indoor unit, and the indoor unit sends the response data to the outdoor unit before receiving the data request from the outdoor unit again and uploading the data request to the server.

[0044] Specifically, in the present embodiment, in the data transmission phase, after the indoor unit and the outdoor unit both enter the OTA upgrade communication mode, because the outdoor unit requests the response speed to the indoor unit is faster than the response speed of the indoor unit to the server, the indoor unit cannot obtain the response data issued by the server in time and send to the outdoor unit; at the same time, in order to avoid that the indoor unit does not receive the data request, the outdoor unit sends the same data request to the indoor unit every interval standard time until the upgrade data issued by the indoor unit is received. In order to prevent the indoor unit and the server from receiving the same data request sent by the outdoor unit multiple times, the indoor unit only uploads the first data request of the outdoor unit to the server for analysis before responding to the data request of the outdoor unit, until the server analyzes and issues the response data to the indoor unit, and after the indoor unit successfully sends the response data to the outdoor unit, the indoor unit accepts the data request again and uploads it to the server, and this mode is used until the outdoor unit upgrade is completed.

[0045] In an embodiment of the present application, if the latest version is available for outdoor unit upgrade, the indoor unit and the outdoor unit both enter the OTA upgrade communication mode, including: if the latest version is available for outdoor unit upgrade, the server sends an upgrade confirmation instruction to the indoor unit, the indoor unit receives the upgrade confirmation instruction and sends it to the outdoor unit; the outdoor unit receives the upgrade confirmation instruction, and if it is confirmed to upgrade, sends an upgrade instruction to the indoor unit; the indoor unit receives the upgrade instruction, then enters the OTA upgrade communication mode, and sends a start completion instruction to the outdoor unit; the outdoor unit receives the start completion instruction, and the outdoor unit also enters the OTA upgrade communication mode; wherein the upgrade confirmation instruction includes the file size information of the latest version.

[0046] Specifically, in the present embodiment, by sending the upgrade confirmation instruction, the server can ensure that the indoor unit has received the upgrade notification and is ready. This can avoid upgrading in the case where the indoor unit is not ready, and reduce the possibility of upgrade failure. The server realizes the coordination between the indoor unit and the outdoor unit through the upgrade confirmation instruction. The indoor unit receives the upgrade confirmation instruction and sends it to the outdoor unit, and the outdoor unit decides whether to send the upgrade instruction according to the confirmation information. This can ensure that the indoor and outdoor units remain synchronized during the upgrade process, and avoid inconsistent situations. The file size information can be used to verify the integrity of the upgrade file. After receiving the file size information in the upgrade confirmation instruction, the indoor unit can compare it with the actual received upgrade file to ensure that the file is not damaged or tampered with. The file size information can help the device to manage resources. The device can reserve enough storage space according to the file size information to ensure that the upgrade file can be successfully received and stored.

[0047] In one embodiment of the present application, when the outdoor unit finishes upgrading, both the indoor unit and the outdoor unit exit the OTA upgrading communication mode, including: when the outdoor unit receives all the upgrading data, the outdoor unit sends an upgrading completion instruction to the indoor unit; after the indoor unit receives the upgrading completion instruction, the indoor unit exits the OTA upgrading communication mode and sends an exit instruction to the outdoor unit; after the outdoor unit receives the exit instruction, the outdoor unit also exits the OTA upgrading communication mode.

[0048] Specifically, in the present embodiment, after receiving the upgrading completion instruction, the indoor unit first exits the OTA upgrading communication mode, meaning that it has completed the processing and application of the upgrading data. This can ensure that the state of the indoor unit is consistent with that of the outdoor unit, avoiding the situation that when the outdoor unit exits the OTA mode, the indoor unit is still in the upgrading state, leading to potential communication inconsistency or function failure. During the OTA upgrading process, the indoor unit is usually responsible for receiving and processing instructions and data from the outdoor unit. Letting the indoor unit exit the OTA mode first can ensure that it switches the state after completing all necessary operations, avoiding faults caused by improper state switching.

[0049] In one embodiment of the present application, the current version number of the outdoor unit is determined by the server, including: the server sends a version number query instruction to the indoor unit; after receiving the version number query instruction, the indoor unit sends it to the outdoor unit; after receiving the version number query instruction, the outdoor unit sends the current version number to the indoor unit, and the indoor unit uploads the current version number to the server.

[0050] Specifically, by confirming the current version number, the server can determine whether the outdoor unit needs to be upgraded. If the current version is already the latest one, the server can avoid unnecessary upgrading operations, thereby saving time and resources. Moreover, there may be compatibility problems between different versions. Confirming the current version number can help the server evaluate the compatibility between the new version and the existing version, ensuring that the system can operate normally after upgrading and avoiding faults caused by version mismatch.

[0051] In one embodiment of the present application, it is determined whether there is a latest version available for upgrading the outdoor unit, including: the server compares the latest version number in the database with the current version number, and if there is a latest version number higher than the current version number, there is a latest version available for upgrading the outdoor unit; if the latest version number is equal to the current version number, the outdoor unit does not need to be upgraded.

[0052] Specifically, directly comparing version numbers is a simple and effective method that can quickly determine whether an upgrade is needed. In this way, the server can quickly determine whether the outdoor unit needs to be upgraded, avoiding complex logical judgments. Through version number comparison, the server can avoid unnecessary upgrade operations, saving network bandwidth and computing resources. If the current version is already the latest, the server can directly return the result, avoiding subsequent upgrade data transmission and processing.

[0053] In an embodiment of the present application, the indoor unit is forced to switch to the OTA upgrade communication mode after the end of the first standard countdown, including: when the indoor unit first receives the outdoor unit data but fails to successfully parse the OTA upgrade instruction, the indoor unit starts the first standard countdown; if the indoor unit still fails to successfully parse the OTA upgrade instruction after the end of the first standard countdown, the indoor unit is forced to switch to the OTA upgrade communication mode.

[0054] Specifically, the first standard countdown is started when the OTA upgrade instruction that cannot be parsed is first received, which can ensure that the system takes measures quickly when problems are encountered, avoiding a long period of unresponsive state. If the indoor unit waits for successful parsing after receiving the data without taking any action, it may cause the system to enter a deadlock state. By setting the countdown, the system can be forced to switch to the OTA upgrade communication mode after a certain period of time, avoiding long-term stagnation of the system.

[0055] The present application also provides a storage medium, the storage medium comprising a stored computer program, wherein the computer program is executed by a processor to control the storage medium to perform the air conditioner indoor unit remote OTA upgrade exception control method.

[0056] Specifically, the storage medium of the present application implements the air conditioner indoor unit remote OTA upgrade exception control method of any technical solution of the present application, and therefore has all the beneficial effects of the air conditioner indoor unit remote OTA upgrade exception control method of any technical solution of the present application, which will not be repeated here.

[0057] Although the present application is disclosed as above, the present application is not limited thereto. Any person skilled in the art, without departing from the spirit and scope of the present application, can make various changes and modifications, therefore the protection scope of the present application should be subject to the scope defined by the claims.

Claims

1. A method for controlling abnormal remote OTA upgrades of an air conditioner indoor unit, applied to an air conditioning system, characterized in that, The control method includes: The server determines the current version number of the outdoor unit and checks whether a newer version is available for upgrading the outdoor unit. If a new version is available for upgrading the outdoor unit, both the indoor unit and the outdoor unit will enter OTA upgrade communication mode. After entering OTA upgrade communication mode, the outdoor unit requests upgrade data from the indoor unit multiple times, and the server sends upgrade data to the indoor unit multiple times until the outdoor unit completes the upgrade; After the outdoor unit completes the upgrade, both the indoor unit and the outdoor unit exit the OTA upgrade communication mode. When the indoor unit malfunctions and exits the OTA upgrade communication mode, while the outdoor unit remains in the OTA upgrade communication mode, if the indoor unit receives data from the outdoor unit but fails to successfully parse the OTA upgrade command, the indoor unit will be forced to switch to the OTA upgrade communication mode after the first standard countdown ends. When the outdoor unit malfunctions and exits the OTA upgrade communication mode, while the indoor unit remains in the OTA upgrade communication mode, if the indoor unit receives data from the outdoor unit but fails to successfully parse the OTA upgrade command, the indoor unit will be forced to exit the OTA upgrade communication mode after the second standard countdown ends.

2. The method for controlling abnormal remote OTA upgrades of an air conditioner indoor unit according to claim 1, characterized in that, After entering OTA upgrade communication mode, the outdoor unit requests upgrade data from the indoor unit multiple times, and the server sends upgrade data to the indoor unit multiple times until the outdoor unit upgrade is completed, including: After entering OTA upgrade communication mode, the outdoor unit requests upgrade data from the indoor unit multiple times; after receiving the request from the outdoor unit, the indoor unit requests upgrade data from the server; after receiving the data request, the server sends the corresponding upgrade data to the indoor unit, which then sends it to the outdoor unit, until the outdoor unit completes the upgrade.

3. The method for controlling abnormal remote OTA upgrades of air conditioner indoor units according to claim 2, characterized in that, The control method also includes: In OTA upgrade communication mode, the outdoor unit sends the same data request to the indoor unit at standard time intervals until it receives the upgrade data sent by the indoor unit. Before responding to the data request from the outdoor unit, the indoor unit only uploads the first data request sent by the outdoor unit to the server. Only after the server sends response data to the indoor unit and the indoor unit sends the response data to the outdoor unit will the indoor unit receive the data request from the outdoor unit again and upload the data request to the server.

4. The method for controlling abnormal remote OTA upgrades of an air conditioner indoor unit according to claim 1, characterized in that, If a new version is available for upgrading the outdoor unit, both the indoor unit and the outdoor unit will enter OTA upgrade communication mode, including: If a new version is available for upgrading the outdoor unit, the server sends an upgrade confirmation command to the indoor unit, and the indoor unit sends the upgrade confirmation command to the outdoor unit after receiving it. After receiving the upgrade confirmation instruction, if the outdoor unit confirms the upgrade, it sends an upgrade instruction to the indoor unit. After receiving the upgrade command, the indoor unit enters the OTA upgrade communication mode and sends a start-up completion command to the outdoor unit. After receiving the start-up completion command, the outdoor unit also enters OTA upgrade communication mode. The upgrade confirmation instruction includes the file size information of the latest version.

5. The method for controlling abnormal remote OTA upgrades of an air conditioner indoor unit according to claim 1, characterized in that, When the outdoor unit completes the upgrade, both the indoor unit and the outdoor unit exit the OTA upgrade communication mode, including: After the outdoor unit has received all the upgrade data, the outdoor unit sends an upgrade completion command to the indoor unit; After receiving the upgrade completion command, the indoor unit exits the OTA upgrade communication mode and sends an exit command to the outdoor unit. After receiving the exit command, the outdoor unit also exits the OTA upgrade communication mode.

6. The method for controlling abnormal remote OTA upgrades of an air conditioner indoor unit according to claim 1, characterized in that, The step of determining the current version number of the outdoor unit via the server includes: The server sends a version number query command to the indoor unit; After receiving the version number query command, the indoor unit sends it to the outdoor unit; After receiving the version number query command, the outdoor unit sends the current version number to the indoor unit, which then uploads the current version number to the server.

7. The method for controlling abnormal remote OTA upgrades of an air conditioner indoor unit according to claim 6, characterized in that, The process of determining whether a new version is available for upgrading the outdoor unit includes: The server compares the latest version number in the database with the current version number. If the latest version number is higher than the current version number, then a new version is available for upgrading the outdoor unit; if the latest version number is equal to the current version number, then the outdoor unit does not need to be upgraded.

8. The method for controlling abnormal remote OTA upgrades of an air conditioner indoor unit according to claim 1, characterized in that, The process then proceeds after the first standard countdown ends, forcing the indoor unit to switch to OTA upgrade communication mode, including: When the indoor unit receives data from the outdoor unit for the first time but fails to successfully parse the OTA upgrade command, the indoor unit starts the first standard countdown. If the indoor unit still fails to successfully parse the OTA upgrade command after the first standard countdown ends, the indoor unit is forced to switch to OTA upgrade communication mode.

9. A storage medium, characterized in that, The storage medium includes a stored computer program, wherein the computer program, when executed by a processor, controls the storage medium to perform the control method for abnormal remote OTA upgrade of an air conditioner indoor unit as described in any one of claims 1-8 on its device.

Citation Information

Patent Citations

  • Air conditioner firmware upgrading method and device, air conditioner and computer equipment

    CN107957880A

  • Control System With Mobile Sensors

    US20150204561A1