Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art. Therefore, the invention aims to provide an air conditioner upgrading method which can improve the upgrading and maintenance efficiency of the air conditioner.
The invention also provides an air conditioner applying the air conditioner upgrading method.
The invention also provides computer equipment.
The invention also proposes a computer readable storage medium.
According to an air conditioner upgrade method of a first aspect of the present invention, the air conditioner includes an indoor unit adapted to communicate with a user terminal, a server, and an outdoor unit, respectively, the indoor unit being adapted to download an upgrade package including running programs of a plurality of functional modules of the indoor unit and the outdoor unit from the server after receiving an upgrade instruction transmitted from the user terminal, the upgrade method comprising the steps of: making an upgrade package and deploying the upgrade package to a server, wherein the upgrade package comprises a father bin file formed by combining a plurality of child bin files, and the child bin files are in one-to-one correspondence with the running programs; the air conditioner control app of the user terminal respectively acquires a local version and a server version of the parent bin file; after the air conditioner control app determines that the local version is lower than the server version, upgrading prompt information is sent to a user; the user controls the app to send an upgrade instruction to the indoor unit through the air conditioner; the indoor unit is connected with the server to execute upgrading operation.
According to the air conditioner upgrading method, the child bin files corresponding to the running programs of the plurality of functional modules of the air conditioner are combined into the parent bin file, so that when the firmware of the air conditioner is upgraded, the running programs of all the functional modules which need to be upgraded can be upgraded at one time.
According to some embodiments of the invention, the plurality of running programs comprises: indoor unit control program, outdoor unit control program, indoor unit EEPROM parameter and outdoor unit EEPROM parameter.
According to some embodiments of the invention, the making of the upgrade package comprises the steps of: adding header information to the parent bin file, wherein the header information comprises: the file size, the starting address, the program name identification and the program upgrading identification of each sub-bin file.
In some embodiments, the indoor unit is connected to the server to perform an upgrade operation, including the steps of: the indoor unit sends a connection request instruction to the server; the server sends a response instruction to the indoor unit and establishes data transmission connection with the indoor unit; and the server transmits an upgrade package to the indoor unit.
According to some embodiments of the invention, the indoor unit is connected to the server to perform an upgrade operation, and further includes the steps of: the indoor unit analyzes the received upgrade package to obtain header information of the father bin file; determining an operation program to be upgraded according to the header information; storing the sub bin files corresponding to the running program to be upgraded into a guide area of a corresponding functional module; and after the upgrade package transmission is completed and the verification is successful, importing the sub-bin files from the guide area to an operation area of the functional module.
In some embodiments, after the upgrade package transmission is completed, the air conditioner upgrade method further includes: acquiring version numbers of running programs of the plurality of updated functional modules; merging the acquired version numbers of the running programs of the plurality of functional modules to generate an overall version number; judging whether the overall version number is consistent with the version number of the server version; if the two types are consistent, the upgrading is completed.
According to a second aspect of the present invention, the air conditioner applies the air conditioner upgrading method according to the first aspect of the present invention, the air conditioner includes an indoor unit and an outdoor unit, and a functional module of the indoor unit includes: the indoor unit MCU module and indoor unit EEPROM, the functional module of off-premises station includes: the indoor unit MCU module is suitable for being respectively communicated with the server and the user terminal, and is suitable for downloading an upgrade package containing running programs of a plurality of functional modules of the indoor unit and the outdoor unit from the server after receiving an upgrade instruction sent by the user terminal, wherein the upgrade package comprises a father bin file combined by a plurality of child bin files, and the child bin files are in one-to-one correspondence with the running programs.
According to the air conditioner, by applying the air conditioner upgrading method, when the firmware of the air conditioner is upgraded, the running programs of all the functional modules which need to be upgraded can be upgraded at one time, and compared with the running programs of a plurality of functional modules which are respectively upgraded, the operation is simpler, the upgrading efficiency is higher, and the maintenance efficiency is improved.
Further, each of the plurality of functional modules includes a boot zone and an operating zone, and the indoor unit MCU module is further adapted to: analyzing the received upgrade package to obtain header information of the father bin file; determining an operation program to be upgraded according to the header information; storing the sub bin files corresponding to the running program to be upgraded into a guide area of a corresponding functional module; after the upgrade package transmission is completed and the verification is successful, the sub-bin files are imported from the guide area to the operation area of the corresponding functional module.
The computer device according to the third aspect of the present invention comprises a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor is adapted to perform the steps of the air conditioner upgrade method according to the first aspect of the present invention.
According to the computer device of the present invention, the processor is included to execute the steps of the air conditioner upgrade method in any of the above embodiments, so that the computer device can realize all the beneficial effects of the air conditioner upgrade method, which is not described herein.
A computer readable storage medium according to a fourth aspect of the present invention, on which an air conditioner upgrade program is stored, which when executed by a processor, implements the steps of the method according to the first aspect of the present invention.
The computer readable storage medium according to the present invention, when the computer program stored thereon is executed by the processor, implements the steps of the air conditioner upgrade method according to any of the above embodiments, so that the computer readable storage medium can implement all the advantages of the air conditioner upgrade method, which will not be described herein.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative and intended to explain the present invention and should not be construed as limiting the invention.
An upgrading method of an air conditioner according to an embodiment of the first aspect of the present invention will be described with reference to fig. 1 to 5.
As shown in fig. 1, according to an embodiment of the first aspect of the present invention, an air conditioner 100 includes an indoor unit 10 and an outdoor unit 20, wherein the indoor unit 10 is adapted to communicate with a user terminal, a server, and the outdoor unit 20, respectively, and the indoor unit 10 is adapted to download an upgrade package including running programs of a plurality of functional modules of the indoor unit 10 and the outdoor unit 20 from the server after receiving an upgrade instruction transmitted from the user terminal.
When the firmware of each functional module of the indoor unit 10 and the outdoor unit 20 of the air conditioner 100 is updated, the indoor unit 10 is used as a client to perform data transmission with a server, at this time, a plurality of upgrade files corresponding to running programs of a plurality of functional modules of the outdoor unit 20 and the indoor unit 10 may be combined into one upgrade package and deployed to the server, then the combined upgrade package is downloaded from the server to the indoor unit 10, and then the upgrade files of other functional modules, such as the outdoor unit MCU module 201, the outdoor unit EEPROM 202 (charged erasable programmable read only memory), and the indoor unit EEPROM 102, are respectively transmitted to the corresponding functional modules by the indoor unit 10. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud storage, basic cloud computing services such as big data and an artificial intelligence platform.
The upgrading method of the air conditioner of the embodiment comprises the following steps:
S1, making an upgrade package and deploying the upgrade package to a server, wherein the upgrade package comprises a father bin file formed by combining a plurality of child bin files, and the child bin files are in one-to-one correspondence with running programs of a plurality of functional modules of the air conditioner 100;
S2, the air conditioner 100 of the user terminal controls the app to respectively acquire the local version and the server version of the parent bin file
S3, after the air conditioner 100 controls the app to determine that the local version is lower than the server version, upgrade prompt information is sent to the user;
S4, a user controls the app to send an upgrade instruction to the indoor unit 10 through the air conditioner 100;
S5, the indoor unit 10 is connected with the server to execute upgrading operation.
Specifically, the air conditioner 100 system includes a plurality of functional modules, for example, the indoor unit 10 may include: the outdoor unit 20 may include functional modules such as an outdoor unit MCU module 101 and an indoor unit EEPROM 102, and the outdoor unit MCU module 201 and an outdoor unit EEPROM 202. Each function module has a corresponding operation program and/or control parameter, each operation program corresponds to a sub-bin file, when an upgrade package is manufactured, in order to download the operation program of all the function modules to be upgraded of the air conditioner 100 at one time, the sub-bin files corresponding to all the function modules to be upgraded can be combined into a parent bin file by using the PC software, and the parent bin file is manufactured into an upgrade package and deployed to a server, so that the simultaneous transmission of a plurality of upgrade files is realized. Optionally, when the upgrade package is manufactured, only the new version of the sub-bin file corresponding to the functional module to be upgraded may be combined, or the new version of the sub-bin file of the functional module to be upgraded and the old board of the functional module not to be upgraded may be combined, and the program upgrade identifier not to be upgraded may be set for the sub-bin file of the functional module not to be upgraded.
After the upgrade package is uploaded to the server, the server may push an upgrade prompt message including a new version number to the air conditioner 100 control app of the user terminal, or the air conditioner 100 control app may actively query the server for whether a new version of the firmware upgrade program is available at regular time or periodically, and at the same time, the air conditioner 100 control app may communicate with the indoor unit MCU module 101 to obtain a local version of the parent bin file stored in the indoor unit 10. Then, the air conditioner 100 of the user terminal controls the app to compare the local version of the parent bin file with the server version, and when it is determined that the local version is lower than the server version, a prompt message is sent to the user, an upgrade key is displayed on an interactive interface of the app, the user sends an upgrade instruction to the indoor unit 10 by clicking the upgrade key on the app, the indoor unit 10 starts to handshake with the server to establish a data transmission connection after receiving the upgrade instruction sent from the user terminal, and then the server transmits an upgrade package containing the parent bin file to the indoor unit 10.
According to the air conditioner upgrading method provided by the embodiment of the invention, the child bin files corresponding to the running programs of the plurality of functional modules of the air conditioner 100 are combined into one parent bin file, so that when the firmware of the air conditioner 100 is upgraded, the running programs of all the functional modules needing to be upgraded can be upgraded at one time.
According to some embodiments of the invention, the plurality of operating programs includes at least: the indoor unit 10 control program, the outdoor unit 20 control program, the indoor unit EEPROM 102 parameters and the outdoor unit EEPROM 202 parameters, wherein the indoor unit 10 control program may be a control program of the indoor unit 10 indoor unit MCU module 101, for example, the indoor unit MCU module 101, the outdoor unit 20 control program may be a control program of the outdoor unit 20 indoor unit MCU module 101, for example, the outdoor unit MCU module 201, the indoor unit EEPROM 102 parameters are control parameters stored in the indoor unit EEPROM 102 and the outdoor unit EEPROM 202, and the outdoor unit EEPROM 202 parameters are control parameters stored in the outdoor unit EEPROM 202, although the present invention is not limited thereto, and the plurality of operation programs may also include operation programs of other function modules of the air conditioner 100.
In some embodiments, the indoor unit 10 is connected to a server to perform an upgrade operation, including the steps of: the indoor unit 10 sends a request connection instruction to the server, and the server sends a response instruction to the indoor unit 10 and establishes data transmission connection with the indoor unit 10; the server transmits an upgrade package including the parent bin file to the indoor unit 10.
Specifically, after the user starts the indoor unit 10 to perform an upgrade operation, that is, after the indoor unit 10 receives an upgrade instruction, the indoor unit 10 and the server start a handshake, that is, the indoor unit 10 first sends a connection request instruction for data transmission to the server, after the server receives the connection request instruction sent by the indoor unit 10, sends a response instruction to the indoor unit 10, the server establishes a data transmission connection with the indoor unit 10, and then the server transmits an upgrade package including a parent bin file to the indoor unit 10, and the indoor unit 10 may save the upgrade package in a storage space of the indoor unit MCU module 101.
Alternatively, the server and the indoor unit 10 perform data transmission through the xmodem protocol, and it will be understood that, when the server transmits the upgrade packet including the parent bin file to the indoor unit 10, the upgrade packet may be divided into a plurality of data packets for transmission in sequence.
Further, the indoor unit 10 is connected to a server to perform an upgrade operation, including the steps of: the indoor unit 10 analyzes the received upgrade package to obtain header information of the father bin file; determining an operation program to be upgraded according to the header information; storing the sub bin files corresponding to the running programs to be upgraded into the guide areas of the corresponding functional modules; after the transmission of the upgrade package is completed and the verification is completed, the sub-bin file is imported from the boot area to the operation area of the functional module.
Specifically, each functional module may be opened up with a boot area and an operation area, where the boot area is used to temporarily store an upgrade file during an upgrade process, and the operation area is used to provide a storage space for an operation program during an operation process of the functional module. In the transmission process of the upgrade package, the indoor unit 10 analyzes the received data package to obtain header information of the parent bin file, where the header information is added to the header of the parent bin file by the PC software when making the upgrade package, and the header information may include: manufacturer information, a version number, a file size of each sub-bin file, a start address, a program name identifier and a program upgrade identifier, wherein a functional module which needs to be upgraded in a plurality of functional modules of the air conditioner 100 can be determined through a program upgrade identifier field in header information.
For example, if it is determined that the program upgrade identifier of the sub-bin file corresponding to the running program of the indoor unit MCU module 101 expresses a certain upgrade, the sub-bin file is written into the boot area of the indoor unit MCU module 101, if it is determined that the program upgrade identifier of the sub-bin file corresponding to the running program of the indoor unit MCU module 101 expresses no upgrade, the sub-bin file is directly discarded, and then the next sub-bin file writing boot area or discarding judgment and operation are performed, and so on until all the plurality of functional modules corresponding to the plurality of sub-bin files included in the upgrade package are upgraded.
After the complete transmission of the upgrade package, the indoor unit MCU module 101 of the indoor unit 10 may verify all the received data packages, and in case of correct verification, write the sub-bin files in the boot area of each functional module into the operation areas of each functional module, thereby completing the upgrade of each functional module.
In some embodiments, after the upgrade package transmission is completed, the air conditioner upgrade method further includes: acquiring version numbers of running programs of the plurality of updated functional modules; merging the acquired version numbers of the running programs of the functional modules to generate an overall version number; judging whether the overall version number is consistent with the version number of the server version of the upgrade package; if the two types are consistent, the upgrading is completed.
Specifically, after the transmission of the upgrade package is completed, the indoor unit MCU module 101 of the indoor unit 10 communicates with the outdoor unit MCU module 201, the indoor unit EEPROM 102 and the outdoor unit EEPROM 202 respectively, so as to obtain version numbers updated by running programs of each functional module respectively, combine the obtained version numbers to generate a new overall version number, and then determine whether the overall version number is consistent with the version number of the server version of the upgrade package; if the function modules are consistent, the function modules to be upgraded are all updated, if the function modules are inconsistent, the function modules are not updated successfully, and the upgrading can be carried out again.
According to some embodiments of the present invention, it may be appreciated that, to enhance the upgrade experience of the indoor unit 10, a breakpoint resume mechanism may be added to the indoor unit 10. Specifically, in the upgrading process of the indoor unit 10, the control module of the indoor unit 10, that is, the indoor unit MCU module 101 may suspend transmission of the parent bin file as required, until the specific operation is completed, and then continue to perform transmission, for example, after the indoor unit MCU module 101 receives an upgrade instruction sent by the user through the control app of the air conditioner 100, it is first determined whether the air conditioner 100 is in an operating state, if so, the indoor unit MCU module waits for the air conditioner 100 to perform handshake and data transmission with the server after stopping operation, and if so, the indoor unit MCU module may directly perform handshake with the server; or in the transmission process of the upgrade package, when the user regulates and controls the wind speed, the blowing angle, the timing and the operation mode of the air conditioner 100, the indoor unit MCU module 101 waits for the end of the current operation process and then continues to transmit, so that the upgrade package downloading efficiency and the stability of the indoor unit 10 can be improved.
An air conditioner 100 according to an embodiment of the second aspect of the present invention is described below with reference to fig. 1 to 5.
The air conditioner 100 according to the embodiment of the second aspect of the present invention is suitable for applying the air conditioner upgrade method according to the above-described embodiment of the present invention.
Specifically, the air conditioner 100 may include an indoor unit 10 and an outdoor unit 20, and functional modules of the indoor unit 10 include: the indoor unit MCU module 101 and the indoor unit EEPROM 102, and the functional modules of the outdoor unit 20 include: an outdoor unit MCU module 201 and an outdoor unit EEPROM 202.
The indoor unit MCU module 101 is adapted to communicate with a server and a user terminal, respectively, and the indoor unit MCU module 101 is adapted to download an upgrade package including running programs of a plurality of functional modules of the indoor unit 10 and the outdoor unit 20 from the server after receiving an upgrade instruction sent by the user terminal, where the upgrade package includes a parent bin file formed by combining a plurality of child bin files, and the plurality of child bin files are respectively in one-to-one correspondence with the running programs of the plurality of functional modules of the indoor unit MCU module 101, the indoor unit EEPROM 102, the outdoor unit MCU module 201, the outdoor unit EEPROM 202, and the like.
According to the air conditioner 100 of the embodiment of the invention, by applying the air conditioner upgrading method, when the air conditioner 100 is subjected to firmware upgrading, the running programs of all the functional modules to be upgraded can be upgraded at one time, and compared with the running programs of a plurality of functional modules, the air conditioner is simpler to operate, has higher upgrading efficiency and is beneficial to improving maintenance efficiency.
Further, the storage module includes a boot area and an operation area, and the indoor unit MCU module 101 is further adapted to: in the transmission process of the upgrade package, analyzing the upgrade package and acquiring header information of the father bin file; determining an operation program to be upgraded according to the header information; storing the sub-bin files corresponding to the running programs to be upgraded into a guide area; after the upgrade package transmission is completed, the sub-bin files are imported from the boot area to the running area.
Specifically, each of the plurality of functional modules, such as the indoor unit MCU module 101, the indoor unit EEPROM 102, the outdoor unit MCU module 201, and the outdoor unit EEPROM 202, may open up a boot area for temporarily storing an upgrade file during an upgrade process, and an operation area for providing a storage space for an operation program during the operation of the functional modules. In the transmission process of the upgrade package, the indoor unit MCU module 101 analyzes the received data package to obtain header information of the parent bin file, where the header information is added to a header of the parent bin file by PC software when making the upgrade package, and the header information may include: the manufacturer information, version number, file size of each sub-bin file, start address, program name identifier and program upgrade identifier, wherein the functional module needing upgrade operation in the plurality of functional modules of the air conditioner 100 can be determined through the program upgrade identifier field in the header information, and the header information can be reasonably selected and added according to actual needs.
For example, if it is determined that the program upgrade identifier of the sub-bin file corresponding to the running program of the indoor unit MCU module 101 expresses a certain upgrade, the sub-bin file is written into the boot area of the indoor unit MCU module 101, if it is determined that the program upgrade identifier of the sub-bin file corresponding to the running program of the indoor unit MCU module 101 expresses no upgrade, the sub-bin file is directly discarded, and then the next sub-bin file writing boot area or discarding judgment and operation are performed, and so on until all the plurality of functional modules corresponding to the plurality of sub-bin files included in the upgrade package are upgraded.
After the complete transmission of the upgrade package, the indoor unit MCU module 101 of the indoor unit 10 may verify all the received data packages, and in case of correct verification, write the sub-bin files in the boot area of each functional module into the operation areas of each functional module, thereby completing the upgrade of each functional module.
According to some embodiments of the present invention, it may be appreciated that, to enhance the upgrade experience of the indoor unit 10, a breakpoint resume mechanism may be added to the indoor unit 10. Specifically, in the upgrading process of the indoor unit 10, the control module of the indoor unit 10, that is, the indoor unit MCU module 101 may suspend transmission of the parent bin file as required, until the specific operation is completed, and then continue to perform transmission, for example, after the indoor unit MCU module 101 receives an upgrade instruction sent by the user through the control app of the air conditioner 100, it is first determined whether the air conditioner 100 is in an operating state, if so, the indoor unit MCU module waits for the air conditioner 100 to perform handshake and data transmission with the server after stopping operation, and if so, the indoor unit MCU module may directly perform handshake with the server; or in the transmission process of the upgrade package, when the user regulates and controls the wind speed, the blowing angle, the timing and the operation mode of the air conditioner 100, the indoor unit MCU module 101 waits for the end of the current operation process and then continues to transmit, so that the upgrade package downloading efficiency and the stability of the indoor unit 10 can be improved.
A computer device according to an embodiment of the third aspect of the present invention is described below.
The computer device according to the third aspect of the present invention comprises a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor is adapted to perform the steps of the air conditioner upgrade method according to the above-described embodiments of the present invention.
According to the computer device of the present invention, the processor is included to execute the steps of the air conditioner upgrade method in any of the above embodiments, so that the computer device can realize all the beneficial effects of the air conditioner upgrade method, which is not described herein.
A computer-readable storage medium according to an embodiment of the fourth aspect of the present invention is described below.
A computer-readable storage medium according to an embodiment of the fourth aspect of the present invention stores thereon an air conditioner 100 upgrade program, which when executed by a processor, implements the steps of the air conditioner upgrade method according to the above-described embodiment of the present invention.
The computer readable storage medium according to the embodiment of the present invention implements the steps of the air conditioner upgrade method according to any of the above embodiments when the computer program stored thereon is executed by the processor, so that the computer readable storage medium can implement all the advantages of the air conditioner upgrade method, which will not be described herein.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present invention, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
In the present invention, unless explicitly specified and limited otherwise, the terms "mounted," "connected," "secured," and the like are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally formed; the device can be mechanically connected, electrically connected and communicated; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two elements or the interaction relationship of the two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
While embodiments of the present invention have been shown and described, it will be understood by those of ordinary skill in the art that: many changes, modifications, substitutions and variations may be made to the embodiments without departing from the spirit and principles of the invention, the scope of which is defined by the claims and their equivalents.