CN113138788A - Air conditioner program upgrading method and air conditioner system - Google Patents

Air conditioner program upgrading method and air conditioner system Download PDF

Info

Publication number
CN113138788A
CN113138788A CN202110525133.0A CN202110525133A CN113138788A CN 113138788 A CN113138788 A CN 113138788A CN 202110525133 A CN202110525133 A CN 202110525133A CN 113138788 A CN113138788 A CN 113138788A
Authority
CN
China
Prior art keywords
mcu
external
program
unit
machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110525133.0A
Other languages
Chinese (zh)
Inventor
王菁宇
荣霞芳
郭海峰
杨德禹
李明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Hongmei Intelligent Technology Co Ltd
Original Assignee
Sichuan Hongmei Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Hongmei Intelligent Technology Co Ltd filed Critical Sichuan Hongmei Intelligent Technology Co Ltd
Priority to CN202110525133.0A priority Critical patent/CN113138788A/en
Publication of CN113138788A publication Critical patent/CN113138788A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/56Remote control
    • F24F11/58Remote control using Internet communication
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/62Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
    • F24F11/63Electronic processing

Abstract

The invention provides an air conditioner program upgrading method and an air conditioner system. The air conditioning system comprises a communication device, an internal unit and an external unit; the communication device accesses an external server to check whether an external unit upgrading file aiming at the external unit exists, if so, the external unit upgrading file is downloaded, and the external unit upgrading file comprises at least one data block; the communication device forwards the upgrading file of the external unit to a first MCU of the external unit through an internal unit micro-control unit MCU of the internal unit; the first MCU guides the data block into a first external machine program partition of the first MCU, the first MCU comprises at least two program partitions, and a second external machine program partition of the at least two program partitions is written with a current running program of the external machine; and the external machine is upgraded through the external machine upgrading file in the first external machine program partition. The scheme of the invention can upgrade the program of the air conditioner external unit under the condition of not influencing the operation of the air conditioner.

Description

Air conditioner program upgrading method and air conditioner system
Technical Field
The invention relates to the technical field of household appliances, in particular to an air conditioner program upgrading method and an air conditioner system.
Background
With the progress of the technology, many air conditioners use a built-in processor and a pre-installed program to control a compressor, similar to a mobile phone which upgrades software through a network, upgrade the program of the air conditioner leaving the factory through the network, are beneficial to improving the stability of products, optimize the performance of the air conditioner, and can solve the problem of BUG of the program of the air conditioner through pushing an upgrade package in time, so that the steps of maintenance and upgrade of related personnel at home are eliminated.
However, since the program of the air conditioner external unit is large, it takes a while to complete the upgrade, and the air conditioner external unit cannot normally operate during the upgrade process, the program of the air conditioner external unit cannot be upgraded.
The patent application with the application number of 202010326717.0 provides an air conditioner upgrading method and an air conditioner system, and mainly relates to a method for upgrading operation parameters of an air conditioner outdoor unit. Because the data volume of the running parameters of the outdoor unit is small, and the low communication speed of the indoor unit and the outdoor unit can meet the requirements, the technology only provides a method for upgrading the parameters of the outdoor unit of the air conditioner, and still cannot upgrade the program of the outdoor unit of the air conditioner.
Disclosure of Invention
The embodiment of the invention provides an air conditioner program upgrading method and an air conditioner system, which can upgrade the program of an air conditioner external unit under the condition of not influencing the operation of an air conditioner.
In a first aspect, an embodiment of the present invention provides an air conditioning program upgrading method, which is applied to an air conditioning system, where the air conditioning system includes a communication device, an internal unit, and an external unit, and includes:
the communication device accesses an external server to check whether an external unit upgrading file aiming at the external unit exists, if so, the external unit upgrading file is downloaded, and the external unit upgrading file comprises at least one data block;
the communication device forwards the upgrading file of the external unit to a first MCU of the external unit through an internal unit micro-control unit MCU of the internal unit;
the first MCU guides the data block into a first external machine program partition of the first MCU, the first MCU comprises at least two program partitions, and a second external machine program partition of the at least two program partitions is written with a current running program of the external machine;
and the external machine is upgraded through the external machine upgrading file in the first external machine program partition.
Preferably, the first and second electrodes are formed of a metal,
the communication device transmits the upgrading file of the external unit to the first MCU of the external unit through the internal unit micro-control unit MCU of the internal unit, and the communication device comprises:
the communication device obtains at least one block data from the upgrade file, the block data comprising: block number, offset address, data content and check code;
the communication device modifies the offset address to the first outer machine program partition;
the communication device sends the block data to the second MCU according to the sequence of the block numbers;
after receiving the confirmation information returned by the first MCU, the second MCU forwards the confirmation information to the communication device;
and when receiving the confirmation information, the communication device sends the block data of the next block number sequence to the second MCU and forwards the block data to the first MCU.
Preferably, the first and second electrodes are formed of a metal,
the first MCU upgrades the external unit through an external unit upgrade file in the first external unit program partition, and the method comprises the following steps:
the first MCU verifies each block data through a check code contained in each block data, and if the verification is passed, the block data is written into the first external machine program partition according to the offset address and confirmation information is returned to the second MCU;
determining whether each block data of the external unit upgrade file has been written into the first external unit program partition;
after each data block of the external unit upgrade file is transmitted to the first external unit program partition, the first MCU modifies the boot address of the program to the first external unit program partition so as to load the external unit upgrade file when the external unit is started next time.
Preferably, the first and second electrodes are formed of a metal,
further comprising:
when the internal machine is powered on, sending a file upgrading request to the communication device through the second MCU;
the communication device judges whether the external server has an internal machine upgrading file or not;
when the communication device determines that the internal unit upgrading file exists, the internal unit upgrading file is transmitted to the second MCU;
the internal machine leads the data block into a first internal machine program partition of the internal machine through the second MCU, the second MCU comprises at least two program partitions, and the second internal machine program partition of the at least two program partitions is written with a current running program of the external machine;
and upgrading the internal machine through an internal machine upgrading file in the first internal machine program partition.
Preferably, the first and second electrodes are formed of a metal,
when the communication device determines that the internal unit upgrading file exists, the communication device transmits the internal unit upgrading file to the second MCU, and the method comprises the following steps:
the communication device acquires at least one block data from the upgrade file;
modifying, by the communications device, the offset address of the block data to the first indoor program partition;
the communication device sends the block data to the second MCU according to the sequence of the block numbers;
when the second MCU receives the block data, feeding back confirmation information to the communication device;
and when receiving the confirmation information fed back by the second MCU, the communication device sends the block data of the next block number sequence to the second MCU.
Preferably, the first and second electrodes are formed of a metal,
the upgrading of the external unit is performed through the external unit upgrading file in the first external unit program partition, and the upgrading method comprises the following steps:
the first MCU verifies each block data through a check code contained in each block data, and if the verification is passed, the block data is written into the first external machine program partition according to the offset address and confirmation information is returned to the second MCU;
determining whether each block data of the external unit upgrade file has been written into the first external unit program partition;
and after each data block of the internal machine upgrading file is transmitted to the first internal machine program partition, the second MCU modifies the guide address of the program into the first internal machine program partition so as to load the internal machine upgrading file when the external machine is started next time.
In a second aspect, an embodiment of the present invention provides an air conditioning system according to any one of the above first aspects, including: a communication device, an internal unit and an external unit;
the communication device is used for accessing an external server to check whether an external unit upgrading file aiming at the external unit exists, and if so, the external unit upgrading file is downloaded and comprises at least one data block; forwarding the upgrading file of the external unit to a first MCU of the external unit through a second internal unit micro control unit MCU of the internal unit;
the external machine is used for guiding the data block into a first external machine program partition of the external machine through the first MCU, the first MCU comprises at least two program partitions, and a second external machine program partition of the at least two program partitions is written with a current running program of the external machine; and upgrading the program by the external machine upgrading file in the first external machine program partition.
Preferably, the first and second electrodes are formed of a metal,
the communication device, when executing the forwarding of the external unit upgrade file to the first MCU of the external unit through the internal unit micro control unit second MCU of the internal unit, includes:
the communication device is configured to obtain at least one block data from the upgrade file, where the block data includes: block number, offset address, data content and check code; modifying the offset address to the first outer machine program partition; sending the block data to the second MCU according to the block number sequence;
the external unit is used for forwarding the confirmation information to the communication device after the second MCU receives the confirmation information returned by the first MCU;
the communication device is used for sending the block data of the next block number sequence to the second MCU and forwarding the block data to the first MCU when receiving the confirmation information;
preferably, the first and second electrodes are formed of a metal,
the external machine is used for verifying each block data through a check code contained in each block data, and if the verification is passed, the block data is written into the first external machine program partition according to the offset address and confirmation information is returned to the second MCU; determining whether each block data of the external unit upgrade file has been written into the first external unit program partition; after each data block of the external unit upgrade file is transmitted to the first external unit program partition, the first MCU modifies the boot address of the program to the first external unit program partition so as to load the external unit upgrade file when the external unit is started next time.
Preferably, the first and second electrodes are formed of a metal,
further comprising:
when the internal machine is powered on, sending a file upgrading request to the communication device through the second MCU;
the communication device is used for judging whether the external server has an internal machine upgrading file or not; when the internal unit upgrading file is determined, transmitting the internal unit upgrading file to the second MCU;
the internal machine is used for guiding the data block into a first internal machine program partition of the internal machine through the second MCU, the second MCU comprises at least two program partitions, and the current running program of the external machine is written into the second internal machine program partition of the at least two program partitions; and upgrading the internal machine through an internal machine upgrading file in the first internal machine program partition.
Preferably, the first and second electrodes are formed of a metal,
when the communication device executes and determines that the internal machine upgrading file exists, the communication device specifically executes the following steps when transmitting the internal machine upgrading file to the second MCU:
acquiring at least one block data from the upgrade file;
modifying the offset address of the tile data to the first indoor machine program partition;
sending block data to the second MCU according to the block number sequence, so that the second MCU feeds back confirmation information to the communication device when receiving the block data;
when receiving the confirmation information fed back by the second MCU, sending the block data of the next block number sequence to the second MCU;
preferably, the first and second electrodes are formed of a metal,
the upgrading of the external unit is performed through the external unit upgrading file in the first external unit program partition, and the upgrading method comprises the following steps:
the first MCU verifies each block data through a check code contained in each block data, and if the verification is passed, the block data is written into the first external machine program partition according to the offset address and confirmation information is returned to the second MCU;
determining whether each block data of the external unit upgrade file has been written into the first external unit program partition;
and after each data block of the internal machine upgrading file is transmitted to the first internal machine program partition, the second MCU modifies the guide address of the program into the first internal machine program partition so as to load the internal machine upgrading file when the external machine is started next time.
The embodiment of the invention provides an air conditioner program upgrading method and an air conditioner system. The air conditioning system comprises a communication device, an internal unit and an external unit. The communication device accesses an external server to check whether an external unit upgrading file aiming at an external unit exists, if so, the program is determined to have an updated version, and the external unit upgrading file is downloaded and comprises at least one data block; because the outer machine and the communication device cannot communicate with each other and need to be forwarded through the inner machine, the communication device forwards the upgrade file of the outer machine to the first MCU of the outer machine through the second MCU of the inner machine; the first MCU guides the data block into a first external machine program partition of the first MCU, the first MCU comprises at least two program partitions, and a second external machine program partition of the at least two program partitions is written with a current running program of the external machine; the outer unit is upgraded through the outer unit upgrading file in the first outer unit program partition, when the outer unit is led in the outer unit upgrading file, the outer unit does not affect the work of the outer unit due to the fact that the outer unit is not in the same partition with the currently running program, the outer unit can be upgraded when the outer unit works, the inner unit second MCU is used for conducting time division multiplexing on an inner unit communication bus by forwarding the outer unit upgrading file partition, the outer unit program of the air conditioner can be upgraded under the condition that the outer unit of the air conditioner works normally, and even if the upgrading time is long, the use of a user is not affected. In summary, the scheme provided by the invention can upgrade the program of the air conditioner external unit without affecting the operation of the air conditioner.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of an air conditioner program upgrading method according to an embodiment of the present invention;
fig. 2 is a flowchart of an internal machine upgrading method according to an embodiment of the present invention;
fig. 3 is a flowchart of an external unit upgrading method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an air conditioning system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As described above, many air conditioners use a built-in processor and a pre-installed program to control a compressor, and similar to a mobile phone which uses network upgrade software, upgrade the program of the air conditioner leaving the factory through a network, which is beneficial to improving product stability, optimizing performance of the air conditioner, and solving BUG of the air conditioner program in time by pushing an upgrade package, and thus steps of maintenance and upgrade by relevant personnel are omitted. However, since the program of the air conditioner external unit is large, it takes a while to complete the upgrade, and the air conditioner external unit cannot normally operate during the upgrade process, the program of the air conditioner external unit cannot be upgraded.
The following describes an air conditioning program upgrading method and an air conditioning system according to various embodiments of the present invention in detail with reference to the accompanying drawings.
As shown in fig. 1, an embodiment of the present invention provides an air conditioning program upgrading method, which is applied to an air conditioning system, where the air conditioning system includes a communication device, an internal unit and an external unit, and the method includes the following steps:
step 101: the communication device accesses an external server to check whether an external unit upgrading file aiming at the external unit exists, if so, the external unit upgrading file is downloaded, and the external unit upgrading file comprises at least one data block;
step 102: the communication device forwards the upgrading file of the external unit to a first MCU of the external unit through an internal unit micro-control unit MCU of the internal unit;
step 103: the method comprises the steps that a first MCU (microprogrammed control Unit) leads a data block into a first external machine program partition of the first MCU, the first MCU comprises at least two program partitions, and a second external machine program partition of the at least two program partitions is written with a current running program of an external machine;
step 104: and the external unit is upgraded through an external unit upgrading file in the first external unit program partition.
In the embodiment of the invention, the air conditioning system comprises a communication device, an internal unit and an external unit. The communication device accesses an external server to check whether an external unit upgrading file aiming at an external unit exists, if so, the program is determined to have an updated version, and the external unit upgrading file is downloaded and comprises at least one data block; because the outer machine and the communication device cannot communicate with each other and need to be forwarded through the inner machine, the communication device forwards the upgrade file of the outer machine to the first MCU of the outer machine through the second MCU of the inner machine; the first MCU guides the data block into a first external machine program partition of the first MCU, the first MCU comprises at least two program partitions, and a second external machine program partition of the at least two program partitions is written with a current running program of the external machine; the outer unit is upgraded through the outer unit upgrading file in the first outer unit program partition, when the outer unit is led in the outer unit upgrading file, the outer unit does not affect the work of the outer unit due to the fact that the outer unit is not in the same partition with the currently running program, the outer unit can be upgraded when the outer unit works, the inner unit second MCU is used for conducting time division multiplexing on an inner unit communication bus by forwarding the outer unit upgrading file partition, the outer unit program of the air conditioner can be upgraded under the condition that the outer unit of the air conditioner works normally, and even if the upgrading time is long, the use of a user is not affected. In summary, the scheme provided by the invention can upgrade the program of the air conditioner external unit without affecting the operation of the air conditioner.
In an embodiment of the present invention, the forwarding, by the communications device, the external unit upgrade file to the first MCU of the external unit through the internal unit micro control unit MCU of the internal unit includes:
the communication device obtains at least one block data from the upgrade file, the block data comprising: block number, offset address, data content and check code;
the communication device modifies the offset address to the first outer machine program partition;
the communication device sends the block data to the second MCU according to the sequence of the block numbers;
after receiving the confirmation information returned by the first MCU, the second MCU forwards the confirmation information to the communication device;
and when receiving the confirmation information, the communication device sends the block data of the next block number sequence to the second MCU and forwards the block data to the first MCU.
Specifically, due to the fact that the communication speed of the internal machine and the external machine is low, and the data transmission time is too long, the upgrading data packet transmission command and the data confirmation command are added into the communication protocol of the internal machine and the external machine and used for transmitting the program data packets of the external machine when the internal machine and the external machine are in normal communication idle, and time division multiplexing is achieved. The block data format comprises a block number, an offset address, data content and a check code. And the external machine obtains the data packets in sequence, writes the data packets into the program partition of the external machine after verification, and can work normally in the data packet transmission process. The communication device can be a WiFi module, and the WiFi module downloads the latest internal and external machine upgrading files from the cloud platform and stores the latest internal and external machine upgrading files in the WiFi module storage partition. And the air conditioner internal unit MCU acquires the block data of the external unit program from the upgrading file of the WiFi module and forwards the block data to the idle first external unit program partition of the external unit MCU, and the external unit MCU completes verification and writes the block data. And repeatedly acquiring all the block data to the program partitions of the MCU until the upgrading is completed. The outer machine upgrading file is transmitted in a blocking mode through the inner machine MCU, the requirement for the size of the internal memory of the inner machine MCU is lowered, and the outer machine MCU verifies data of the data block and writes the data into the first outer machine program partition according to the address offset of the block data.
In an embodiment of the present invention, the upgrading, by the first MCU, the external unit by using an external unit upgrade file in the first external unit program partition includes:
the first MCU verifies each block data through a check code contained in each block data, and if the verification is passed, the block data is written into the first external machine program partition according to the offset address and confirmation information is returned to the second MCU;
determining whether each block data of the external unit upgrade file has been written into the first external unit program partition;
after each data block of the external unit upgrade file is transmitted to the first external unit program partition, the first MCU modifies the boot address of the program to the first external unit program partition so as to load the external unit upgrade file when the external unit is started next time.
Specifically, the WiFi module sends an external unit program data block to the internal unit second MCU, the internal unit second MCU forwards the data block to the external unit first MCU, the external unit first MCU verifies data of the block data and writes the data into the first external unit program partition (unguided program partition) according to address offset of the block data, and sends a confirmation message to the internal unit first MCU, and then forwards the data to the WiFi module, and the WiFi module continues to send the next data block. And if the confirmation message fails, the WiFi module retransmits the current data block until the data block transmission of all the external unit upgrading files is completed. And the second MCU of the internal machine checks all the data blocks written into the program partition of the first external machine, compares the data blocks with the check code in the upgrading program, and returns the check result to the MCU of the internal machine. And if the verification is successful, the upgrading is executed, and if the verification is failed, the first MCU of the external unit continues to load the original program of the external unit, and the upgrading is finished. And modifying the boot address of the boot program into the initial address of the memory partition of the latest program, and running the new program when starting up the computer next time.
In an embodiment of the invention, the method further comprises: when the internal machine is powered on, sending a file upgrading request to the communication device through the second MCU;
the communication device judges whether the external server has an internal machine upgrading file or not;
when the communication device determines that the internal unit upgrading file exists, the internal unit upgrading file is transmitted to the second MCU;
the internal machine leads the data block into a first internal machine program partition of the internal machine through the second MCU, the second MCU comprises at least two program partitions, and the second internal machine program partition of the at least two program partitions is written with a current running program of the external machine;
and upgrading the internal machine through an internal machine upgrading file in the first internal machine program partition.
Specifically, as described above, the WiFi module downloads the latest internal and external machine upgrade files from the cloud platform and stores the latest internal and external machine upgrade files in the WiFi module storage partition. The upgrade file includes an internal machine program portion, an external machine program portion, or both. The external machine program part comprises an external machine program and external machine operating parameters. The storage of the inner machine MCU is divided into a guide subarea and an inner machine program subarea, and the storage of the outer machine MCU is divided into a guide subarea, an outer machine program subarea A and an outer machine program subarea B. And downloading the upgrade file from the cloud platform through an HTTP (hyper text transport protocol) protocol, verifying and storing the upgrade file into the WiFi module. And the second MCU of the air conditioner indoor unit judges the indoor unit program version number and the outdoor unit program version number, downloads the indoor unit program part to an indoor unit program partition of the MCU through the XModem protocol, and restarts to finish the indoor unit program upgrading after the verification is successful. And the internal machine MCU packet acquires an internal machine program through the XModem protocol WiFi module and writes the internal machine program into the internal machine program partition. After upgrading, the internal machine upgrading process can be restarted if the guide fails.
In this embodiment of the present invention, when it is determined that the internal unit upgrade file exists, the transmitting, by the communication device, the internal unit upgrade file to the second MCU includes:
the communication device acquires at least one block data from the upgrade file;
modifying, by the communications device, the offset address of the block data to the first indoor program partition;
the communication device sends the block data to the second MCU according to the sequence of the block numbers;
when the second MCU receives the block data, feeding back confirmation information to the communication device;
and when receiving the confirmation information fed back by the second MCU, the communication device sends the block data of the next block number sequence to the second MCU.
Specifically, the internal machine first MCU bootstrap program sends a request command with an internal machine program version number to the WiFi module, and the WiFi module determines the version number, and if there is a new version, continues to execute, and if there is no new version, replies a command that does not need to be upgraded. And the internal machine first MCU continues to load the internal machine program. And the WiFi module sends a command for starting XModem transmission, and the internal MCU guides the program to enter an XModem transmission mode.
In an embodiment of the present invention, when it is determined that the internal unit upgrade file exists, the transmitting, by the communication device, the internal unit upgrade file to the second MCU includes:
the communication device acquires at least one block data from the upgrade file;
modifying, by the communications device, the offset address of the block data to the first indoor program partition;
the communication device sends the block data to the second MCU according to the sequence of the block numbers;
when the second MCU receives the block data, feeding back confirmation information to the communication device;
and when receiving the confirmation information fed back by the second MCU, the communication device sends the block data of the next block number sequence to the second MCU.
The upgrading of the external unit is performed through the external unit upgrading file in the first external unit program partition, and the upgrading method comprises the following steps:
the first MCU verifies each block data through a check code contained in each block data, and if the verification is passed, the block data is written into the first external machine program partition according to the offset address and confirmation information is returned to the second MCU;
determining whether each block data of the external unit upgrade file has been written into the first external unit program partition;
and after each data block of the internal machine upgrading file is transmitted to the first internal machine program partition, the second MCU modifies the guide address of the program into the first internal machine program partition so as to load the internal machine upgrading file when the external machine is started next time.
Specifically, the WiFi module checks whether an upgrade file exists from the server, and if yes, the upgrade file is downloaded to a WiFi module storage partition; and after the internal unit is electrified, the internal unit bootstrap program sends a file upgrading request to the WiFi module. And the internal machine MCU sends a request command of the version number of the in-band machine program to the WiFi module, the WiFi module judges the version number, and if the version number has a new version, the internal machine MCU continues to send the request command of the version number of the in-band machine program to the WiFi module. If there is no new version, the command without upgrade is replied. And the internal machine MCU continues to load the internal machine program. And the WiFi module and the first internal machine MCU start an XModem transmission protocol, the WiFi module sends 128 bytes of data each time, the first internal machine MCU receives the data, writes the data into the internal machine program storage partition in sequence from the program guide address, and sends an XModem confirmation packet until all internal machine program data block transmission is completed. And the internal machine MCU checks all the data blocks written into the storage space and compares the data blocks with the check codes in the upgrading program. If the verification is successful, the updating is completed by restarting, if the upgrading is failed, a failure message is sent to the WiFi module, and the upgrading process is repeated.
As shown in fig. 2, an embodiment of the present invention provides an upgrading method for an air conditioner internal unit, where the method includes the following steps:
step 201: and the WIFI module acquires the upgrade file from the cloud platform and stores the upgrade file in the WIFI module.
Step 202: the indoor unit MCU bootstrap program sends a request command with an indoor unit program version number to the WIFI module, and the WIFI module judges the version number and determines that a new version exists.
Step 203: the WIFI module sends a command for starting XModem transmission, the internal MCU guides the program to enter an XModem transmission mode, and the WIFI module and the XModem start data transmission.
Step 204: a bootstrap program module of the internal machine MCU receives and stores an internal machine program to an internal machine storage partition, and after transmission is completed, data is verified and restarted; and the internal machine MCU restarts and guides a new internal machine program to finish the internal machine program upgrading process.
As shown in fig. 3, an embodiment of the present invention provides an upgrading method for an external unit of an air conditioner, including the following steps:
step 301: and the WIFI module acquires the upgrade file from the cloud platform and stores the upgrade file in the WIFI module.
Step 302: and after the external unit is electrified, reporting the software version number loaded by the external unit to the internal unit MCU, and requesting the WIFI module to transmit the upgrade file part of the external unit by the internal unit MCU.
Step 303: the WIFI module judges whether the upgrade file contains the external machine program data of the new version, if not, the upgrade file is sent without an update message, the internal machine MCU forwards the message to the external machine, the external machine continues to load the external machine program, the upgrade detection is finished, and if the external machine program data of the new version exist, the upgrade is determined.
Step 304: and the WIFI module sends an outer machine program data block to the inner machine MCU, the inner machine MCU forwards the data block to the outer machine MCU, and the outer machine MCU checks and writes the data block into an outer machine program partition until all the outer machine program data blocks are transmitted.
Step 305: and the internal machine MCU checks all the data blocks written into the storage space, compares the data blocks with the check codes in the upgrading program, and returns the check result to the internal machine MCU. And if the verification is successful, executing the seventh step, and if the verification is failed, continuously loading the original external machine program to finish upgrading.
Step 306: and modifying the boot address of the boot program to be the initial address of the storage space of the latest program, and running the new program when starting up the computer next time.
As shown in fig. 4, an embodiment of the present invention provides an air conditioning system based on the air conditioning program upgrading method shown in fig. 1, including: a communication device 401, an internal unit 402, and an external unit 403;
the communication device 401 is configured to access an external server to check whether an external unit upgrade file for the external unit exists, and if so, download the external unit upgrade file, where the external unit upgrade file includes at least one data block; forwarding the external unit upgrade file to a first MCU of the external unit through a second internal unit micro control unit MCU of the internal unit 402;
the external unit 403 is configured to import the data block into a first external unit program partition of the external unit through the first MCU, where the first MCU includes at least two program partitions, and a second external unit program partition of the at least two program partitions is written with a current running program of the external unit; and upgrading the program by the external machine upgrading file in the first external machine program partition.
In an embodiment of the present invention, when the forwarding of the external unit upgrade file to the first MCU of the external unit through the second MCU of the internal unit micro control unit of the internal unit is executed, the communication device includes:
the communication device is configured to obtain at least one block data from the upgrade file, where the block data includes: block number, offset address, data content and check code; modifying the offset address to the first outer machine program partition; sending the block data to the second MCU according to the block number sequence;
the external unit is used for forwarding the confirmation information to the communication device after the second MCU receives the confirmation information returned by the first MCU;
the communication device is used for sending the block data of the next block number sequence to the second MCU and forwarding the block data to the first MCU when receiving the confirmation information;
in an embodiment of the present invention, the external unit is configured to verify each block data by using a check code included in each block data, and if the block data passes the verification, write the block data into the first external unit program partition according to the offset address and return confirmation information to the second MCU; determining whether each block data of the external unit upgrade file has been written into the first external unit program partition; after each data block of the external unit upgrade file is transmitted to the first external unit program partition, the first MCU modifies the boot address of the program to the first external unit program partition so as to load the external unit upgrade file when the external unit is started next time.
In an embodiment of the present invention, when the internal unit is powered on, the internal unit sends a file upgrading request to the communication device through the second MCU;
the communication device is used for judging whether the external server has an internal machine upgrading file or not; when the internal unit upgrading file is determined, transmitting the internal unit upgrading file to the second MCU;
the internal machine is used for guiding the data block into a first internal machine program partition of the internal machine through the second MCU, the second MCU comprises at least two program partitions, and the current running program of the external machine is written into the second internal machine program partition of the at least two program partitions; and upgrading the internal machine through an internal machine upgrading file in the first internal machine program partition.
In an embodiment of the present invention, when the communication device determines that the internal unit upgrade file exists, and transmits the internal unit upgrade file to the second MCU, the communication device specifically executes:
acquiring at least one block data from the upgrade file;
modifying the offset address of the tile data to the first indoor machine program partition;
sending block data to the second MCU according to the block number sequence, so that the second MCU feeds back confirmation information to the communication device when receiving the block data;
when receiving the confirmation information fed back by the second MCU, sending the block data of the next block number sequence to the second MCU;
in an embodiment of the present invention, the upgrading the external unit by using the external unit upgrade file in the first external unit program partition includes:
the first MCU verifies each block data through a check code contained in each block data, and if the verification is passed, the block data is written into the first external machine program partition according to the offset address and confirmation information is returned to the second MCU;
determining whether each block data of the external unit upgrade file has been written into the first external unit program partition;
and after each data block of the internal machine upgrading file is transmitted to the first internal machine program partition, the second MCU modifies the guide address of the program into the first internal machine program partition so as to load the internal machine upgrading file when the external machine is started next time.
It should be noted that not all steps and modules in the above flows and system structure diagrams are necessary, and some steps or modules may be omitted according to actual needs. The execution order of the steps is not fixed and can be adjusted as required. The system structure described in the above embodiments may be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by a plurality of physical entities, or some components in a plurality of independent devices may be implemented together.
The various embodiments of the present invention provide solutions with at least the following advantages and advances:
1. the outer machine program data packet is transmitted in blocks through the inner machine MCU, and the requirement on the size of the internal memory of the inner machine MCU is reduced.
2. And the program of the external machine is divided into A, B2 storage partitions, the boot address is modified after the upgrade file is written, the boot program is loaded from the partition address where the latest program is located and executed, and the external machine can work normally in the upgrade process.
3. And the upgrading program package obtained by the internal machine MCU is put into the idle program partition of the external machine MCU, and the old program is loaded after the upgrading fails.
4. And the internal machine MCU packet acquires an internal machine program through the XModem protocol WIFI module and writes the internal machine program into the internal machine program partition. After upgrading, the internal machine upgrading process can be restarted if the guide fails.
5. And the running parameters of the external unit are stored in the upgrading program of the external unit, and the running parameters of the external unit can be updated when the program of the external unit is updated.
In the above embodiments, the hardware unit may be implemented mechanically or electrically. For example, a hardware element may comprise permanently dedicated circuitry or logic (such as a dedicated processor, FPGA or ASIC) to perform the corresponding operations. The hardware elements may also comprise programmable logic or circuitry, such as a general purpose processor or other programmable processor, that may be temporarily configured by software to perform the corresponding operations. The specific implementation (mechanical, or dedicated permanent, or temporarily set) may be determined based on cost and time considerations.
While the invention has been shown and described in detail in the drawings and in the preferred embodiments, the invention is not limited to the embodiments disclosed, and those skilled in the art will appreciate that various combinations of code auditing means in the various embodiments described above may be employed to obtain further embodiments of the invention, which are also within the scope of the invention.

Claims (10)

1. The method for upgrading the air conditioning program is characterized by being applied to an air conditioning system, wherein the air conditioning system comprises a communication device, an internal unit and an external unit, and the method comprises the following steps:
the communication device accesses an external server to check whether an external unit upgrading file aiming at the external unit exists, if so, the external unit upgrading file is downloaded, and the external unit upgrading file comprises at least one data block;
the communication device forwards the upgrading file of the external unit to a first MCU of the external unit through an internal unit micro-control unit MCU of the internal unit;
the first MCU guides the data block into a first external machine program partition of the first MCU, the first MCU comprises at least two program partitions, and a second external machine program partition of the at least two program partitions is written with a current running program of the external machine;
and the external machine is upgraded through the external machine upgrading file in the first external machine program partition.
2. The method of claim 1,
the communication device transmits the upgrading file of the external unit to the first MCU of the external unit through the internal unit micro-control unit MCU of the internal unit, and the communication device comprises:
the communication device obtains at least one block data from the upgrade file, the block data comprising: block number, offset address, data content and check code;
the communication device modifies the offset address to the first outer machine program partition;
the communication device sends the block data to the second MCU according to the sequence of the block numbers;
after receiving the confirmation information returned by the first MCU, the second MCU forwards the confirmation information to the communication device;
and when receiving the confirmation information, the communication device sends the block data of the next block number sequence to the second MCU and forwards the block data to the first MCU.
3. The method of claim 2,
the first MCU upgrades the external unit through an external unit upgrade file in the first external unit program partition, and the method comprises the following steps:
the first MCU verifies each block data through a check code contained in each block data, and if the verification is passed, the block data is written into the first external machine program partition according to the offset address and confirmation information is returned to the second MCU;
determining whether each block data of the external unit upgrade file has been written into the first external unit program partition;
after each data block of the external unit upgrade file is transmitted to the first external unit program partition, the first MCU modifies the boot address of the program to the first external unit program partition so as to load the external unit upgrade file when the external unit is started next time.
4. The method of claim 1,
further comprising:
when the internal machine is powered on, sending a file upgrading request to the communication device through the second MCU;
the communication device judges whether the external server has an internal machine upgrading file or not;
when the communication device determines that the internal unit upgrading file exists, the internal unit upgrading file is transmitted to the second MCU;
the internal machine leads the data block into a first internal machine program partition of the internal machine through the second MCU, the second MCU comprises at least two program partitions, and the second internal machine program partition of the at least two program partitions is written with a current running program of the external machine;
and upgrading the internal machine through an internal machine upgrading file in the first internal machine program partition.
5. The method of claim 1,
when the communication device determines that the internal unit upgrading file exists, the communication device transmits the internal unit upgrading file to the second MCU, and the method comprises the following steps:
the communication device acquires at least one block data from the upgrade file;
modifying, by the communications device, the offset address of the block data to the first indoor program partition;
the communication device sends the block data to the second MCU according to the sequence of the block numbers;
when the second MCU receives the block data, feeding back confirmation information to the communication device;
and when receiving the confirmation information fed back by the second MCU, the communication device sends the block data of the next block number sequence to the second MCU.
6. The method of claim 5,
the upgrading of the external unit is performed through the external unit upgrading file in the first external unit program partition, and the upgrading method comprises the following steps:
the first MCU verifies each block data through a check code contained in each block data, and if the verification is passed, the block data is written into the first external machine program partition according to the offset address and confirmation information is returned to the second MCU;
determining whether each block data of the external unit upgrade file has been written into the first external unit program partition;
and after each data block of the internal machine upgrading file is transmitted to the first internal machine program partition, the second MCU modifies the guide address of the program into the first internal machine program partition so as to load the internal machine upgrading file when the external machine is started next time.
7. The air conditioning system of the air conditioning program upgrading method according to any one of claims 1 to 6, comprising: a communication device, an internal unit and an external unit;
the communication device is used for accessing an external server to check whether an external unit upgrading file aiming at the external unit exists, and if so, the external unit upgrading file is downloaded and comprises at least one data block; forwarding the upgrading file of the external unit to a first MCU of the external unit through a second internal unit micro control unit MCU of the internal unit;
the external machine is used for guiding the data block into a first external machine program partition of the external machine through the first MCU, the first MCU comprises at least two program partitions, and a second external machine program partition of the at least two program partitions is written with a current running program of the external machine; and upgrading the program by the external machine upgrading file in the first external machine program partition.
8. The air conditioning system of claim 7,
the communication device, when executing the forwarding of the external unit upgrade file to the first MCU of the external unit through the internal unit micro control unit second MCU of the internal unit, includes:
the communication device is configured to obtain at least one block data from the upgrade file, where the block data includes: block number, offset address, data content and check code; modifying the offset address to the first outer machine program partition; sending the block data to the second MCU according to the block number sequence;
the external unit is used for forwarding the confirmation information to the communication device after the second MCU receives the confirmation information returned by the first MCU;
the communication device is used for sending the block data of the next block number sequence to the second MCU and forwarding the block data to the first MCU when receiving the confirmation information;
and/or the presence of a gas in the gas,
the external machine is used for verifying each block data through a check code contained in each block data, and if the verification is passed, the block data is written into the first external machine program partition according to the offset address and confirmation information is returned to the second MCU; determining whether each block data of the external unit upgrade file has been written into the first external unit program partition; after each data block of the external unit upgrade file is transmitted to the first external unit program partition, the first MCU modifies the boot address of the program to the first external unit program partition so as to load the external unit upgrade file when the external unit is started next time.
9. The method of claim 7,
further comprising:
when the internal machine is powered on, sending a file upgrading request to the communication device through the second MCU;
the communication device is used for judging whether the external server has an internal machine upgrading file or not; when the internal unit upgrading file is determined, transmitting the internal unit upgrading file to the second MCU;
the internal machine is used for guiding the data block into a first internal machine program partition of the internal machine through the second MCU, the second MCU comprises at least two program partitions, and the current running program of the external machine is written into the second internal machine program partition of the at least two program partitions; and upgrading the internal machine through an internal machine upgrading file in the first internal machine program partition.
10. The air conditioning system of claim 9,
when the communication device executes and determines that the internal machine upgrading file exists, the communication device specifically executes the following steps when transmitting the internal machine upgrading file to the second MCU:
acquiring at least one block data from the upgrade file;
modifying the offset address of the tile data to the first indoor machine program partition;
sending block data to the second MCU according to the block number sequence, so that the second MCU feeds back confirmation information to the communication device when receiving the block data;
when receiving the confirmation information fed back by the second MCU, sending the block data of the next block number sequence to the second MCU;
and/or the presence of a gas in the gas,
the upgrading of the external unit is performed through the external unit upgrading file in the first external unit program partition, and the upgrading method comprises the following steps:
the first MCU verifies each block data through a check code contained in each block data, and if the verification is passed, the block data is written into the first external machine program partition according to the offset address and confirmation information is returned to the second MCU;
determining whether each block data of the external unit upgrade file has been written into the first external unit program partition;
and after each data block of the internal machine upgrading file is transmitted to the first internal machine program partition, the second MCU modifies the guide address of the program into the first internal machine program partition so as to load the internal machine upgrading file when the external machine is started next time.
CN202110525133.0A 2021-05-14 2021-05-14 Air conditioner program upgrading method and air conditioner system Pending CN113138788A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110525133.0A CN113138788A (en) 2021-05-14 2021-05-14 Air conditioner program upgrading method and air conditioner system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110525133.0A CN113138788A (en) 2021-05-14 2021-05-14 Air conditioner program upgrading method and air conditioner system

Publications (1)

Publication Number Publication Date
CN113138788A true CN113138788A (en) 2021-07-20

Family

ID=76817766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110525133.0A Pending CN113138788A (en) 2021-05-14 2021-05-14 Air conditioner program upgrading method and air conditioner system

Country Status (1)

Country Link
CN (1) CN113138788A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113551363A (en) * 2021-07-30 2021-10-26 佛山市顺德区美的电子科技有限公司 Upgrading method of main program of air conditioner external unit, operation control device and air conditioner
CN115277276A (en) * 2022-06-27 2022-11-01 北京小米移动软件有限公司 Program upgrading method and device for air conditioner, air conditioning system and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760200A (en) * 2016-02-26 2016-07-13 晨星半导体股份有限公司 Terminal device and system updating method thereof
CN109408093A (en) * 2018-10-26 2019-03-01 珠海格力电器股份有限公司 A kind of firmware upgrade method and household appliance
WO2020082641A1 (en) * 2018-10-26 2020-04-30 广东美的制冷设备有限公司 Online upgrade control method for home appliance system, and home appliance system
CN111309362A (en) * 2020-02-28 2020-06-19 四川长虹空调有限公司 Variable frequency air conditioner internal unit, variable frequency air conditioner external unit, variable frequency air conditioner system and variable frequency air conditioner external unit parameter remote upgrading method
CN111562933A (en) * 2020-04-23 2020-08-21 Tcl空调器(中山)有限公司 Air conditioner upgrading method and air conditioner system
CN111623476A (en) * 2020-04-27 2020-09-04 海信(山东)空调有限公司 Data updating method and device in outdoor EEPROM of air conditioner and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760200A (en) * 2016-02-26 2016-07-13 晨星半导体股份有限公司 Terminal device and system updating method thereof
CN109408093A (en) * 2018-10-26 2019-03-01 珠海格力电器股份有限公司 A kind of firmware upgrade method and household appliance
WO2020082641A1 (en) * 2018-10-26 2020-04-30 广东美的制冷设备有限公司 Online upgrade control method for home appliance system, and home appliance system
CN111309362A (en) * 2020-02-28 2020-06-19 四川长虹空调有限公司 Variable frequency air conditioner internal unit, variable frequency air conditioner external unit, variable frequency air conditioner system and variable frequency air conditioner external unit parameter remote upgrading method
CN111562933A (en) * 2020-04-23 2020-08-21 Tcl空调器(中山)有限公司 Air conditioner upgrading method and air conditioner system
CN111623476A (en) * 2020-04-27 2020-09-04 海信(山东)空调有限公司 Data updating method and device in outdoor EEPROM of air conditioner and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈风梅 等: "海尔空调互联工厂", 《中国质量》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113551363A (en) * 2021-07-30 2021-10-26 佛山市顺德区美的电子科技有限公司 Upgrading method of main program of air conditioner external unit, operation control device and air conditioner
CN115277276A (en) * 2022-06-27 2022-11-01 北京小米移动软件有限公司 Program upgrading method and device for air conditioner, air conditioning system and storage medium

Similar Documents

Publication Publication Date Title
CN109460245B (en) Remote upgrading method for embedded system
CN107979493B (en) Platform is construction method, server and the storage medium for servicing PAAS container platform
CN110471692B (en) Over-the-air upgrading method, device, equipment and storage medium of terminal program
RU2419839C2 (en) Software update system and method for portable ota supporting mobile terminal
CN110597542B (en) Software automatic OTA (over the air) upgrading method and device and electronic equipment
CN110730104A (en) Method for upgrading multi-device batch firmware of mesh network device
JP5838527B2 (en) Method, apparatus and communication device for updating firmware
US20070294685A1 (en) Program upgrade system and method for ota-capable portable device
CN113138788A (en) Air conditioner program upgrading method and air conditioner system
KR101541112B1 (en) FOTA system and the method
CN105517015A (en) Upgrading method, device of wifi product by over the air OTA and terminal
CN111813428A (en) Method and device for upgrading terminal firmware, electronic equipment and storage medium
CN113746892B (en) Remote upgrading method and wireless terminal equipment
CN112152846B (en) Metering instrument remote upgrading method based on Internet of things
CN110597545A (en) Hot patch intelligent upgrading method and system based on OTA component
CN110580167A (en) system upgrading method, intelligent device and server
CN107015829B (en) Audio system upgrading method and device
CN114440389A (en) Air conditioner, method of upgrading the same, computer device, and computer-readable storage medium
CN114153484A (en) Operation method and device for updating program, electronic device and storage medium
CN114531431A (en) Bluetooth-based multi-device OTA (over the air) upgrading method, electronic device, storage medium and program product
CN109358872A (en) Remote firmware updating method, device and computer readable storage medium
CN108874410B (en) Patch management method and device
CN113094064A (en) Gateway software module upgrading method, device, equipment and storage medium
CN115335803A (en) Equipment upgrading method, intelligent equipment and computer readable storage medium
CN114745740B (en) Intelligent household appliance upgrading system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210720