Regulation and control method for remote OTA upgrading abnormity of air conditioner indoor unit and storage medium
By setting a countdown for the indoor unit and forcibly switch to the OTA upgrade communication mode when the indoor unit receives outdoor unit data but fails to successfully resolve the OTA upgrade command, the problem of the air conditioning system being unable to resume normal communication or completing upgrades due to abnormal exit is solved, and the stability and reliability of the system are improved.
Patent Information
- Application Number
- CN202510003230.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-02
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2045-01-02
AI Technical Summary
In the existing remote OTA upgrade method, after the indoor unit or outdoor unit abnormally exits the OTA upgrade mode, the other party cannot know that the other party has exited, resulting in the air conditioning system being unable to resume normal communication or the upgrade cannot be completed.
When the indoor unit receives outdoor unit data but fails to successfully resolve the OTA upgrade instruction, set the first standard countdown for the indoor unit and force switch to the OTA upgrade communication mode after the countdown is over to ensure that the system returns to normal communication status or completes the upgrade.
By force switching to OTA upgrade communication mode, the air conditioning system can be restored to normal communication status under abnormal conditions, reduce the upgrade failure rate, and improve the stability and reliability of the system.
Smart Images

Figure CN119687562A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of air conditioners, and in particular to a control method and storage medium for abnormal remote OTA upgrade of an indoor unit of an air conditioner. Background Art
[0002] In air conditioning systems, remote OTA (Over-The-Air) upgrade is a method of remotely updating device firmware or software through wireless communication technology. This technology allows air conditioning systems to automatically, reliably, and securely obtain and apply updates from remote servers without the need for physical connection to improve device performance, add new features, or fix security vulnerabilities. The current OTA upgrade method for air conditioning outdoor units is that after determining the upgradeable version, the outdoor unit begins to continuously send upgrade requests to the indoor unit. After the indoor unit receives the outdoor unit request, it will send the outdoor unit request to the server. The server parses the request and sends the response data to the indoor unit. The indoor unit then 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 upgrades.
[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 unit cannot know that the other unit has exited the OTA upgrade mode, resulting in the air-conditioning system being unable to resume normal communication or unable to complete the upgrade. Summary of the invention
[0004] The present invention solves the technical problem in the current remote OTA upgrade method that 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 restore to a normal communication process or being unable to complete the upgrade. The present invention sets a first standard countdown for the indoor unit when the indoor unit receives data from the outdoor unit but fails to successfully parse the OTA upgrade command, and forces the indoor unit to switch to the OTA upgrade communication mode after the first standard countdown ends, thereby restoring the air-conditioning system to a normal communication process or completing the upgrade.
[0005] To solve the above problems, the present invention provides a control method for abnormal remote OTA upgrade of an air-conditioning indoor unit, which is applied to an air-conditioning system, and the control method comprises: determining the current version number of the outdoor unit through a server, and judging whether there is a latest version available for upgrading the outdoor unit; if there is a latest version available for upgrading the outdoor unit, both the indoor unit and the outdoor unit enter the OTA upgrade communication mode; after entering the OTA upgrade communication mode, the outdoor unit requests upgrade data from the indoor unit multiple times, and the server sends the upgrade data to the indoor unit multiple times until the upgrade of the outdoor unit is completed; when the outdoor unit completes the upgrade, both the indoor unit and the outdoor unit exit the OTA upgrade communication mode; wherein, when the indoor unit abnormally exits the OTA upgrade communication mode, and 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 command, then after the first standard countdown ends, the indoor unit is forced to switch to the OTA upgrade communication mode.
[0006] Compared with the prior art, the technical effect achieved by adopting this technical solution is as follows: by establishing a stable OTA upgrade communication mode between the indoor unit and the outdoor unit, the effective transmission of data during the upgrade process is ensured, and the upgrade failure rate caused by abnormal exit is reduced. In view of the abnormal exit of the indoor unit, a mechanism for forcibly switching to the OTA upgrade communication mode is designed to ensure that the indoor unit can re-enter the upgrade state after the first standard countdown ends, thereby avoiding upgrade interruptions caused by abnormal exits. The outdoor unit requests upgrade data from the indoor unit multiple times, and the server also sends data multiple times. This segmented transmission method can effectively reduce the network load, improve the reliability of data transmission, and adapt to the upgrade requirements under different network environments. In addition, the segmented transmission method also reduces the risk of information loss and improves the security of data transmission. At the same time, through effective exception handling and communication mode management, the stability of the air-conditioning system during the upgrade process is enhanced, and the risk of equipment failure due to upgrade failure is reduced.
[0007] In a possible design, the control method also includes: when the outdoor unit abnormally exits the OTA upgrade communication mode, and the indoor 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 command, then after the second standard countdown ends, the indoor unit is forced to exit the OTA upgrade communication mode.
[0008] Compared with the prior art, the technical effect achieved by adopting this technical solution is as follows: by setting a mechanism to force the indoor unit to exit the OTA upgrade communication mode when the outdoor unit exits abnormally, it is ensured that the system can respond to abnormal situations in a timely manner and avoid the indoor unit being in an unstable state for a long time. At the same time, 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 delays of other devices caused by long-term 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 if the OTA upgrade command is not successfully parsed, reducing the system instability caused by long waiting. In addition, by setting different countdown standards, it can be flexibly adjusted according to actual conditions, thereby enhancing the adaptability of the system in different environments and conditions.
[0009] In a possible design, after entering the OTA upgrade communication mode, the outdoor unit requests the upgrade data from the indoor unit multiple times, and the server sends the upgrade data to the indoor unit multiple times until the upgrade of the outdoor unit is completed, including: after entering the OTA upgrade communication mode, the outdoor unit requests the upgrade data from the indoor unit multiple times; after the indoor unit receives the request from the outdoor unit, it requests the upgrade data from the server; after receiving the data request, the server sends the corresponding upgrade data to the indoor unit, and the indoor unit sends it to the outdoor unit until the upgrade of the outdoor unit is completed.
[0010] Compared with the prior art, the technical effect achieved by adopting this technical solution is as follows: by requesting and sending upgrade data in multiple times, the amount of data transmitted in a single time 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. Data transmission in batches can reduce the risk of overall upgrade failure caused by network fluctuations or transmission errors, and ensure that the upgrade can be successfully completed in an unstable network environment. At the same time, the outdoor unit and the server use the indoor unit as an intermediary to optimize the network architecture, reduce the need for direct communication between the outdoor unit and the server, reduce the network load, and improve the stability of data transmission, especially when the network conditions are poor.
[0011] In a possible design, the control method also includes: in the OTA upgrade communication mode, the outdoor unit sends the same data request to the indoor unit at standard intervals until the upgrade data sent by the indoor unit is received; before the indoor unit responds to the data request of the outdoor unit, it only uploads the first data request sent by the outdoor unit to the server until the server sends the 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 from the outdoor unit again and uploads the data request to the server.
[0012] Compared with the prior art, the technical effect achieved by adopting this technical solution is as follows: by setting a standard time interval to send data requests, network congestion caused by frequent requests from the outdoor unit is avoided, and the efficiency and stability of data transmission are improved. Before the indoor unit responds to the data request from the outdoor unit, it only uploads the first data request to the server, which reduces unnecessary communication overhead, reduces the network burden, and improves the response speed of the system. After receiving the response data from the server, the indoor unit starts to process subsequent data requests from the outdoor unit, ensuring the order and accuracy of data processing and reducing erroneous parsing caused by data confusion. At the same time, by processing the sending of response data separately from the data request from the outdoor unit, the stability of the indoor unit in processing requests 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 capability of the system, and ensures the smooth progress of the upgrade process.
[0013] In a possible design, if the latest version exists that can be used to upgrade the outdoor unit, both the indoor unit and the outdoor unit enter the OTA upgrade communication mode, including: if the latest version exists that can be used to upgrade the outdoor unit, the server sends an upgrade confirmation instruction to the indoor unit, and after receiving the upgrade confirmation instruction, the indoor unit sends it to the outdoor unit; after the outdoor unit receives the upgrade confirmation instruction, if it confirms to upgrade, it sends the upgrade instruction to the indoor unit; after the indoor unit receives the upgrade instruction, it enters the OTA upgrade communication mode and sends a startup completion instruction to the outdoor unit; after the outdoor unit receives the startup completion instruction, the outdoor unit also enters the OTA upgrade communication mode; wherein, the upgrade confirmation instruction includes the file size information of the latest version.
[0014] Compared with the prior art, the technical effect achieved by adopting this technical solution is as follows: by introducing the upgrade confirmation instruction, the upgrade process between the indoor unit and the outdoor unit is clarified, the order and logic of each link are ensured, and the risk of upgrade failure caused by process confusion is reduced. The upgrade confirmation instruction contains the file size information of the latest version, so that the indoor unit and the outdoor unit can understand the amount of data required for the upgrade in advance, which helps to reasonably arrange network resources and time and improve the efficiency of the upgrade. Through the mechanism of confirming the instruction, the confirmation step of the outdoor unit before the upgrade is ensured, the failure rate caused by misoperation or unnecessary upgrade requests is reduced, and the reliability of the system is improved. At the same time, after receiving the confirmation instruction, the indoor unit and the outdoor unit enter the OTA upgrade communication mode to ensure the smooth transmission of the upgrade data.
[0015] In a possible design, when the outdoor unit completes the upgrade, both the indoor unit and the outdoor unit exit the OTA upgrade communication mode, including: when the outdoor unit receives all the upgrade data, the outdoor unit sends an upgrade completion instruction to the indoor unit; after the indoor unit receives the upgrade completion instruction, it exits the OTA upgrade communication mode and sends an exit instruction to the outdoor unit; after the outdoor unit receives the exit instruction, it also exits the OTA upgrade communication mode.
[0016] Compared with the existing technology, the technical effect achieved by adopting this technical solution is as follows: by introducing the upgrade completion instruction, it is ensured that the indoor unit and the outdoor unit can clearly confirm each other's status after the upgrade is completed, reducing the potential problems caused by inconsistent status. After the outdoor unit completes the upgrade, the indoor unit and the outdoor unit send and receive exit instructions to ensure that both parties can safely exit the OTA upgrade communication mode, reducing the system instability that may be caused by forced exit. Through the standardized exit process, the risk of failure caused by failure to correctly exit the OTA upgrade communication mode is reduced, and the reliability and security of the system are improved.
[0017] In a possible design, the current version number of the outdoor unit is determined through the server, including: the server sends a version number query instruction to the indoor unit; after the indoor unit receives the version number query instruction, it sends it to the outdoor unit; after the outdoor unit receives the version number query instruction, it 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 existing technology, the technical effect achieved by adopting this technical solution is as follows: by using the indoor unit as an intermediary, the process of version number query is simplified, the complexity of direct communication 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, ensuring that when performing OTA upgrades or other operations, decisions can be made based on the version information of the outdoor unit, thereby improving the response speed of the system.
[0019] In a possible design, 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. If the latest version number is higher than the current version number, then the latest version exists and can be used 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.
[0020] Compared with the existing technology, the technical effect achieved by adopting this technical solution is: the server directly compares the latest version number in the database with the current version number to quickly determine whether an upgrade is needed, reducing the time for manual intervention and judgment, and improving the efficiency of version management. Through a clear version comparison mechanism, unnecessary upgrade operations of the outdoor unit are avoided when the current version is already the latest, saving time and resources and improving the operating efficiency of the system.
[0021] In one possible design, after the first standard countdown ends, the indoor unit is forced to switch to the OTA upgrade communication mode, including: when the indoor unit receives the outdoor unit data 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 the OTA upgrade communication mode.
[0022] Compared with the prior art, the technical effect achieved by adopting this technical solution is as follows: by setting the first standard countdown, the indoor unit can retry within a certain period of time when the OTA upgrade command fails to be successfully parsed, thereby improving the system's fault tolerance for abnormal situations. After the countdown is over, it is forced to switch to the OTA upgrade communication mode to ensure that the system can enter the upgrade state in time, avoiding system stagnation or failure caused by long-term failure to parse the command, and improving the stability and reliability of the system. After the countdown is over, it is forced to switch to the OTA upgrade communication mode to 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 actual conditions, enhancing the flexibility and adaptability of the system.
[0023] The present invention also provides a storage medium, the storage medium includes a stored computer program, wherein when the computer program is executed by a processor, the storage medium is controlled to execute a method for regulating abnormal remote OTA upgrade of an air conditioner indoor unit in its device.
[0024] Compared with the prior art, the technical effect achieved by adopting this technical scheme is as follows: the storage medium of the present invention realizes the method for controlling the abnormal remote OTA upgrade of the indoor unit of the air conditioner of any technical scheme of the present invention. Therefore, it has all the beneficial effects of the method for controlling the abnormal remote OTA upgrade of the indoor unit of the air conditioner of any technical scheme of the present invention, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 A flow chart of a method for controlling abnormal remote OTA upgrade of an air conditioner indoor unit provided by an embodiment of the present invention; Figure 2 An overall schematic diagram of data transmission provided by an embodiment of the present invention; Figure 3 A multi-packet request data flow chart provided by an embodiment of the present invention; Figure 4 A flowchart of an abnormality handling process of an internal machine provided by an embodiment of the present invention; Figure 5 A flowchart of an external machine abnormality processing provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0027] See also Figures 1 to 5 This embodiment provides a control method for abnormal remote OTA upgrade of an air conditioner indoor unit, which is applied to an air conditioning system. The control method includes: Determine the current version number of the outdoor unit through the server, and determine whether there is a latest version available for upgrading the outdoor unit; If the latest version is available for outdoor unit upgrade, both indoor and outdoor units enter OTA upgrade communication mode; After entering the OTA upgrade communication mode, the outdoor unit requests the upgrade data from the indoor unit multiple times, and the server sends the upgrade data to the indoor unit multiple times until the outdoor unit upgrade is completed; When the outdoor unit completes the upgrade, both the indoor and outdoor units exit the OTA upgrade communication mode; Among them, when the indoor unit abnormally exits the OTA upgrade communication mode and 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 command, then after the first standard countdown ends, the indoor unit is forced to switch to the OTA upgrade communication mode.
[0028] Specifically, in this 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 is always running on the latest version. This is crucial to improving the performance and safety of the equipment. The reason why the upgrade data is requested and transmitted only after both the indoor unit and the outdoor unit enter the OTA upgrade communication mode is that entering the OTA communication mode can ensure that a stable connection 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. Among them, the version upgrade of the outdoor unit includes two stages, namely the upgrade confirmation stage and the data transmission stage. The lifting and lowering confirmation stage is mainly to determine whether the latest version of the outdoor unit is available for upgrade through the server, and to make the outdoor unit and the indoor unit enter the OTA upgrade communication mode after confirming the upgrade. The data transmission stage is mainly for the outdoor unit to request upgrade data from the server through the indoor unit, and the server to transmit upgrade data to the outdoor unit through the indoor unit.
[0029] Specifically, Figure 2 The overall diagram of data transmission and Figure 4As shown in the flowchart of the indoor unit abnormality processing, during the current air-conditioning system upgrade process, during the data transmission stage, the power grid may be unstable, causing the indoor and outdoor units to be powered off for a short time. Since the outdoor unit uses a large capacitor device, it has power to provide the outdoor unit controller for operation in a short time, maintaining the OTA upgrade communication mode; the indoor unit stops working immediately after the power is disconnected, and runs the ordinary air-conditioning communication mode after power is restored. The indoor unit and the outdoor unit are in different working modes, which may cause the air conditioner to fail to work properly or even cause a fault code. In addition, in some cases, the firmware upgrade of the device involves security and functionality. If the upgrade is not completed correctly, it may leave safety hazards, affecting the normal operation of the device and the safety of the user. The control method provided in this embodiment will set a first standard countdown 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 has not been successfully parsed before the end of the first standard countdown, it means that the outdoor unit sent an OTA upgrade instruction, which means that the outdoor unit is in OTA upgrade mode, and the indoor unit and the outdoor unit are in different working modes. The system will force the indoor unit to switch to OTA upgrade communication mode to continue to complete the system upgrade. Among them, the command sent when the indoor unit and the outdoor unit are in the OTA upgrade communication mode is an OTA upgrade command, and the command sent when the indoor unit and the outdoor unit are in the normal communication mode is a normal communication command.
[0030] In one embodiment of the present invention, the control method also includes: when the outdoor unit abnormally exits the OTA upgrade communication mode, and the indoor 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, then after the second standard countdown ends, the indoor unit is forced to exit the OTA upgrade communication mode.
[0031] Specifically, Figure 5 As shown in the flowchart of the outdoor unit abnormality processing, in this embodiment, during the data transmission stage, the outdoor unit may terminate the OTA upgrade after the controller chip is reset, thereby exiting the OTA upgrade communication mode and running the normal air conditioning communication mode, while the indoor unit cannot know that the outdoor unit has abnormally exited and is still in the OTA upgrade communication mode. Similarly, the indoor unit and outdoor unit in different working modes may cause the air conditioner to not work properly. The control method provided in this embodiment will set a second standard countdown for the indoor unit when the indoor unit receives the outdoor unit data but fails to successfully parse the OTA upgrade command. If the OTA upgrade command is not successfully parsed before the end of the second standard countdown, it means that the outdoor unit did not send an OTA upgrade command, but a normal communication command, which means that the outdoor unit is in the normal communication mode, and the system will force the indoor unit to exit the OTA upgrade communication mode.
[0032] In one embodiment of the present invention, after entering the OTA upgrade communication mode, the outdoor unit requests the indoor unit for upgrade data multiple times, and the server sends the upgrade data to the indoor unit multiple times until the upgrade of the outdoor unit is completed, including: after entering the OTA upgrade communication mode, the outdoor unit requests the indoor unit for upgrade data multiple times; after the indoor unit receives the request from the outdoor unit, it requests the server for upgrade data; after receiving the data request, the server sends the corresponding upgrade data to the indoor unit, and the indoor unit sends it to the outdoor unit until the upgrade of the outdoor unit is completed.
[0033] Specifically, Figure 3 As shown in the multi-packet request data flow chart, in this embodiment, the reason why the outdoor unit requests the upgrade data from the indoor unit multiple times and the server sends the upgrade data to the indoor unit multiple times is that when performing OTA upgrade, the network environment may be affected by various factors, such as signal interference, bandwidth limitation, etc. If the amount of data requested at one time is too large, it may cause packet loss or delay during the transmission process, 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 the amount of data transmitted in a request is large, if the data is damaged or lost, the entire data packet needs to be downloaded again, which takes a long time and wastes bandwidth. After making multiple requests, if a request fails, only the failed data part needs to be re-requested, which can restore the upgrade process more quickly and improve efficiency. The memory and cache resources of the device are limited. If too much data is requested at one time, it may cause insufficient memory of the device, affecting normal operation and other functions. Making multiple requests can effectively manage memory usage and ensure that the device can still operate normally during the upgrade process. Making multiple requests allows the device to receive and process feedback information in a timely manner after each request, ensuring that every step of data transmission can be confirmed. This approach helps to identify problems and make adjustments in a timely manner, further reducing the risk of information loss.
[0034] In one embodiment of the present invention, the control method also includes: in the OTA upgrade communication mode, the outdoor unit sends the same data request to the indoor unit at standard intervals until the upgrade data sent by the indoor unit is received; before the indoor unit responds to the data request of the outdoor unit, it only uploads the first data request sent by the outdoor unit to the server until the server sends the 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 from the outdoor unit again and uploads the data request to the server.
[0035] Specifically, in this embodiment, during the data transmission stage, after both the indoor unit and the outdoor unit enter the OTA upgrade communication mode, the indoor unit cannot obtain the response data sent by the server on time and send it to the outdoor unit because the outdoor unit's response speed to the indoor unit is faster than the indoor unit's response speed to the server. At the same time, in order to avoid the indoor unit not receiving the data request, the outdoor unit sends the same data request to the indoor unit at standard intervals until the upgrade data sent by the indoor unit is received. In this embodiment, 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 outdoor unit's first data request to the server for parsing before responding to the outdoor unit's data request, until the server parses and sends the response data to the indoor unit, and the indoor unit successfully sends the response data to the outdoor unit, the indoor unit will accept the data request again and upload it to the server, and this mode will be used until the outdoor unit upgrade is completed.
[0036] In one embodiment of the present invention, if there is a latest version available for upgrading the outdoor unit, both the indoor unit and the outdoor unit enter the OTA upgrade communication mode, including: if there is a latest version available for upgrading the outdoor unit, the server sends an upgrade confirmation instruction to the indoor unit, and after receiving the upgrade confirmation instruction, the indoor unit sends it to the outdoor unit; after the outdoor unit receives the upgrade confirmation instruction, if it confirms to upgrade, it sends the upgrade instruction to the indoor unit; after the indoor unit receives the upgrade instruction, it enters the OTA upgrade communication mode and sends a startup completion instruction to the outdoor unit; after the outdoor unit receives the startup completion instruction, the outdoor unit also enters the OTA upgrade communication mode; wherein, the upgrade confirmation instruction includes the file size information of the latest version.
[0037] Specifically, in this embodiment, by sending an upgrade confirmation instruction, the server can ensure that the indoor unit has received the upgrade notification and is ready. This can avoid upgrading when the indoor unit is not ready and reduce the possibility of upgrade failure. The server realizes coordination between the indoor unit and the outdoor unit through the upgrade confirmation instruction. After receiving the upgrade confirmation instruction, the indoor unit sends it to the outdoor unit, and the outdoor unit decides whether to send the upgrade instruction based on the confirmation information. This can ensure that the indoor and outdoor units remain synchronized during the upgrade process to avoid inconsistencies. File size information can be used to verify the integrity of the upgrade file. After the indoor unit receives the file size information in the upgrade confirmation instruction, it can compare it with the actual received upgrade file to ensure that the file is not damaged or tampered with. File size information can help the device manage resources. The device can reserve sufficient storage space based on the file size information to ensure that the upgrade file can be successfully received and stored.
[0038] In one embodiment of the present invention, when the outdoor unit completes the upgrade, both the indoor unit and the outdoor unit exit the OTA upgrade communication mode, including: when the outdoor unit receives all the upgrade data, the outdoor unit sends an upgrade completion instruction to the indoor unit; after the indoor unit receives the upgrade completion instruction, it exits the OTA upgrade communication mode and sends an exit instruction to the outdoor unit; after the outdoor unit receives the exit instruction, it also exits the OTA upgrade communication mode.
[0039] Specifically, in this embodiment, after receiving the upgrade completion instruction, the indoor unit first exits the OTA upgrade communication mode, which means that it has completed the processing and application of the upgrade data. This ensures that the state of the indoor unit is consistent with the outdoor unit, avoiding the indoor unit being in the upgrade state when the outdoor unit exits the OTA mode, resulting in potential communication inconsistency or functional failure. During the OTA upgrade process, the indoor unit is usually responsible for receiving and processing instructions and data from the outdoor unit. Exiting the indoor unit from the OTA mode first ensures that it switches states after completing all necessary operations, avoiding failures caused by improper state switching.
[0040] In one embodiment of the present invention, the current version number of the outdoor unit is determined through a server, including: the server sends a version number query instruction to the indoor unit; after the indoor unit receives the version number query instruction, it sends it to the outdoor unit; after the outdoor unit receives the version number query instruction, it sends the current version number to the indoor unit, and the indoor unit uploads the current version number to the server.
[0041] 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, the server can avoid unnecessary upgrade operations, thus saving time and resources. In addition, there may be compatibility issues 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 run normally after the upgrade and avoiding failures caused by version mismatch.
[0042] In one embodiment of the present invention, 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, if there is a latest version number higher than the current version number, then there is a latest version 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.
[0043] Specifically, directly comparing version numbers is a simple and effective method that can quickly draw conclusions on 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. By comparing version numbers, 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.
[0044] In one embodiment of the present invention, after the first standard countdown ends, the indoor unit is forced to switch to the OTA upgrade communication mode, including: when the indoor unit receives the outdoor unit data 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 the OTA upgrade communication mode.
[0045] Specifically, when an OTA upgrade command that cannot be parsed is received for the first time, the first standard countdown is started. This ensures that the system can take prompt measures when encountering problems to avoid long periods of unresponsiveness. If the indoor unit waits for successful parsing after receiving the data without taking any action, the system may enter a deadlock state. By setting a countdown, you can force a switch to OTA upgrade communication mode after a certain period of time to avoid long-term system stagnation.
[0046] The present invention also provides a storage medium, the storage medium includes a stored computer program, wherein when the computer program is executed by a processor, the storage medium is controlled to execute a method for regulating abnormal remote OTA upgrade of an air conditioner indoor unit in its device.
[0047] Specifically, the storage medium of the present invention implements the method for controlling abnormal remote OTA upgrade of an air-conditioning indoor unit of any technical solution of the present invention. Therefore, it has all the beneficial effects of the method for controlling abnormal remote OTA upgrade of an air-conditioning indoor unit of any technical solution of the present invention, which will not be repeated here.
[0048] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined by the claims.
Claims
1. A method for controlling abnormal remote OTA upgrade of an air conditioner indoor unit, applied to an air conditioning system, characterized in that: The control method comprises: Determine the current version number of the outdoor unit through the server, and judge whether there is a latest version available for upgrading the outdoor unit; If there is a latest version available for upgrading the outdoor unit, both the indoor unit and the outdoor unit enter the OTA upgrade communication mode; After entering the OTA upgrade communication mode, the outdoor unit requests the upgrade data from the indoor unit multiple times, and the server sends the upgrade data to the indoor unit multiple times until the upgrade of the outdoor unit is completed; When the outdoor unit completes the upgrade, both the indoor unit and the outdoor unit exit the OTA upgrade communication mode; Among them, when the indoor unit abnormally exits the OTA upgrade communication mode and 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 command, then after the first standard countdown ends, the indoor unit is forced to switch to the OTA upgrade communication mode.
2. The method for controlling abnormal remote OTA upgrade of an air conditioner indoor unit according to claim 1, characterized in that: The control 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 the indoor unit receives the outdoor unit data but fails to successfully parse the OTA upgrade instruction, the indoor unit is forced to exit the OTA upgrade communication mode after the second standard countdown ends.
3. The method for controlling abnormal remote OTA upgrade of an air conditioner indoor unit according to claim 1, characterized in that: After entering the OTA upgrade communication mode, the outdoor unit requests the indoor unit for upgrade data multiple times, and the server sends the upgrade data to the indoor unit multiple times until the upgrade of the outdoor unit is completed, including: After entering the OTA upgrade communication mode, the outdoor unit requests the indoor unit for upgrade data in multiple times; after the indoor unit receives the request from the outdoor unit, it requests the server for upgrade data; 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 upgrade of the outdoor unit is completed.
4. The method for controlling abnormal remote OTA upgrade of an air conditioner indoor unit according to claim 3, characterized in that: The control method further comprises: In the OTA upgrade communication mode, the outdoor unit sends the same data request to the indoor unit at standard intervals until the upgrade data sent by the indoor unit is received; 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 the 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.
5. The method for controlling abnormal remote OTA upgrade of an air conditioner indoor unit according to claim 1, characterized in that: If the latest version exists and can be used for upgrading the outdoor unit, both the indoor unit and the outdoor unit enter the OTA upgrading communication mode, including: If there is a latest version available for upgrading the outdoor unit, the server sends an upgrade confirmation instruction to the indoor unit, and after receiving the upgrade confirmation instruction, the indoor unit sends it to the outdoor unit; After receiving the upgrade confirmation instruction, if the outdoor unit confirms to upgrade, it sends the upgrade instruction to the indoor unit; After receiving the upgrade instruction, the indoor unit enters the OTA upgrade communication mode and sends a startup completion instruction to the outdoor unit; After the outdoor unit receives the startup completion instruction, the outdoor unit also enters the OTA upgrade communication mode; The upgrade confirmation instruction includes the file size information of the latest version.
6. The method for controlling abnormal remote OTA upgrade 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: When the outdoor unit receives all the upgrade data, the outdoor unit sends an upgrade completion instruction to the indoor unit; After receiving the upgrade completion instruction, the indoor unit exits the OTA upgrade communication mode and sends an exit instruction to the outdoor unit; After receiving the exit instruction, the outdoor unit also exits the OTA upgrade communication mode.
7. The method for controlling abnormal remote OTA upgrade of an air conditioner indoor unit according to claim 1, characterized in that: Determining the current version number of the outdoor unit through the server includes: 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.
8. The method for controlling abnormal remote OTA upgrade of an air conditioner indoor unit according to claim 7, characterized in that: The determining whether there is a latest version 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, the latest version exists and can be used to upgrade the outdoor unit. If the latest version number is equal to the current version number, the outdoor unit does not need to be upgraded.
9. The method for controlling abnormal remote OTA upgrade of an air conditioner indoor unit according to claim 1, characterized in that: After the first standard countdown ends, forcing the indoor unit to switch to the OTA upgrade communication mode includes: When the indoor unit receives the outdoor unit data 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 the OTA upgrade communication mode.
10. A storage medium, characterized in that: The storage medium includes a stored computer program, wherein when the computer program is executed by the processor, the storage medium is controlled to execute the method for controlling the abnormal remote OTA upgrade of the indoor unit of the air conditioner as described in any one of claims 1 to 9 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
Cited By
Differential version upgrading method for indoor unit and outdoor unit of air conditioner
CN120232120A
Full-link rapid OTA upgrading method based on central air conditioner RS485 bus
CN120499642A