Multi-connected air conditioning system, upgrading method and device thereof and air conditioning equipmentTechnical Field
The invention relates to the field of multi-connected air conditioners, in particular to a multi-connected air conditioner, an upgrading method and an upgrading device thereof and air conditioning equipment.
Background
The multi-connected air conditioner usually comprises an external unit and a plurality of internal units, the external unit can also comprise a plurality of sub-external units, and the multi-connected air conditioner is usually realized by replacing a main board when a system upgrading program is needed, so that the problems of high difficulty, high cost, poor timeliness and the like exist. The components of the multi-connected air conditioner can communicate with each other, so that programs can be upgraded through a network, and the problem of replacing the mainboard can be solved. However, the multi-connected air conditioner has a large network load and a complex engineering environment, and when the downloading and upgrading are performed in an ascending sequence, if the network condition is not good, the downloading may be interrupted when the whole upgrading program is not completely downloaded, which may cause downloading failure and upgrading reliability is not high.
Disclosure of Invention
The invention aims to solve the problems in the prior art and provides a multi-connected air conditioner with high upgrading reliability in a complex environment, an upgrading method, an upgrading device and air conditioning equipment thereof.
In an embodiment of the present invention, an upgrade method for a multi-connected air conditioning system is provided, where the multi-connected air conditioning system includes an upgrade program source device and at least one online air conditioning device that maintain communication connection through a multi-connected air conditioning communication network, and the method includes:
the upgrading program source equipment downloads the upgrading program from the server through the wireless communication network;
and the online air-conditioning equipment downloads the upgrading program from the upgrading program source equipment in a plurality of times through the multi-connected air-conditioning communication network, and controls the size of the file downloaded from the upgrading program source equipment in a single time according to the communication quality of the multi-connected air-conditioning communication network.
In the embodiment of the invention, the communication quality of the multi-connected air conditioner communication network is judged by the following method:
the online air-conditioning equipment counts the number N1 of data frames and the number N2 of error frames of the multi-connected air-conditioning communication network to obtain a communication error rate P = N2/N1, and compares the error rate P with a set quality grade to judge the communication quality of the multi-connected air-conditioning communication network.
In the embodiment of the present invention, the higher the communication quality level of the multi-connected air-conditioning communication network is, the larger the file downloaded from the upgrade program source device at a single time is, and the lower the communication quality level of the multi-connected air-conditioning communication network is, the smaller the file downloaded from the upgrade program source device at a single time is.
In the embodiment of the invention, the online air conditioning equipment is an air conditioner internal unit or an air conditioner external unit.
In the embodiment of the invention, when the online air-conditioning equipment downloads the upgrading program from the upgrading program source equipment through the multi-connected air-conditioning communication network in a plurality of times, whether the online air-conditioning equipment is in a control state is further judged, if the online air-conditioning equipment is in the control state, the interval time of each file transmission is increased, and the single transmission is rapidly completed by small files, otherwise, the interval time of the single file transmission is reduced.
In an embodiment of the present invention, there is also provided a multi-connected air conditioning system including an upgrade program source device and at least one online air conditioning device that maintain communication connection through a multi-connected air conditioning communication network,
the upgrade program source device is used for storing an upgrade program of the online air conditioning equipment;
the online air-conditioning equipment is used for downloading the upgrading program from the upgrading program source equipment in multiple times through the multi-connected air-conditioning communication network, and controlling the size of the file downloaded from the upgrading program source equipment in a single time according to the communication quality of the multi-connected air-conditioning communication network.
In an embodiment of the present invention, an upgrade apparatus for a multi-connected air conditioning system is further provided, where the upgrade apparatus is disposed in an air conditioning device in the multi-connected air conditioning system, and includes:
the communication quality detection module is used for detecting the communication quality of a multi-connected air conditioner communication network of the multi-connected air conditioner system;
and the downloading module is used for downloading the upgrading program from the upgrading program source equipment in the multi-connected air-conditioning system in a grading manner through the multi-connected air-conditioning communication network and controlling the size of the file downloaded from the upgrading program source equipment at a time according to the communication quality of the multi-connected air-conditioning communication network.
In the embodiment of the invention, the communication quality detection module counts the number N1 of data frames and the number N2 of error frames of the multi-connected air-conditioning communication network to obtain a communication error rate P = N2/N1, and compares the error rate P with a set quality grade to judge the communication quality of the multi-connected air-conditioning communication network.
In the embodiment of the present invention, the higher the communication quality level of the multi-connected air-conditioning communication network is, the larger the file downloaded by the download module from the upgrade program source device at a single time is, and the lower the communication quality level of the multi-connected air-conditioning communication network is, the smaller the file downloaded by the download module from the upgrade program source device at a single time is.
In the embodiment of the invention, the upgrading device of the multi-connected air conditioning system further comprises a control state detection module, wherein the control state detection module is used for judging whether the air conditioning equipment is in a control state, if the air conditioning equipment is in the control state, the downloading module increases the interval time of each file transmission and rapidly completes single transmission by small files, otherwise, the downloading module reduces the interval time of single file transmission.
The embodiment of the invention also provides air conditioning equipment which comprises the upgrading device of the multi-connected air conditioning system.
Compared with the prior art, the method for upgrading the multi-connected air conditioning system has the advantages that the size of single program file transmission is dynamically adjusted according to the communication quality of different multi-connected air conditioning communication networks by detecting the communication quality of the multi-connected air conditioning communication networks, the problem of large file transmission failure is avoided, and the problems that the unit operation is influenced by the remote upgrading of the unit program and the environmental adaptability is poor are solved; the transmission interval time is dynamically adjusted according to the control state of the multi-connected air-conditioning system, so that the program is prevented from being upgraded in the control state, and the normal communication of the air-conditioning system is prevented from being influenced.
Drawings
Fig. 1 is a schematic structural diagram of a multi-connected air conditioning system according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart illustrating an upgrading method of a multi-connected air conditioning system according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of an upgrading apparatus of a multi-connected air conditioning system according to an embodiment of the present invention.
Detailed Description
As shown in fig. 1, in an embodiment of the present invention, a multi-connected air conditioning system is provided, and the multi-connected air conditioning system includes an upgrade program source device 1, a plurality of externalair conditioner units 2, and a plurality of internal air conditioner units 3. The upgrade program source device 1, the plurality of air conditionerexternal units 2 and the plurality of air conditioner internal units 3 are in communication connection through a multi-connected air conditioner communication network 4.
The upgrade program source device 1 is configured to store upgrade programs of the air conditionerexternal unit 2 and the air conditioner internal unit 3. It should be noted that the upgrade program source device 1 may download the upgrade program from a server through a network (a wired network or a wireless network), or may directly download the upgrade program from an external storage device through a data interface (e.g., a USB interface).
The plurality of air conditionerexternal units 2 and the plurality of air conditioner internal units 3 are all online air conditioning equipment in a multi-connected air conditioning system, work cooperatively, and jointly form the multi-connected air conditioning system. The multi-connected air conditioner communication network 4 may be a multi-connected air conditioner communication network composed of a CAN bus, a network composed of other data lines, or a network composed of wireless modes.
As shown in fig. 2, the process of upgrading the multi-connected air conditioning system will be described as the process of upgrading theoutdoor unit 2.
After the system is powered on and started, the upgrading program source device 1 downloads the upgrading program from an external database or a storage device, and after the program is downloaded, the air conditionerexternal unit 2 is informed to enter an upgrading state and a program version is published;
the air conditionerexternal unit 2 judges whether the upgrade program version is higher than the version of the air conditioner external unit according to the upgrade program version published by the upgrade program source device 1, if so, the upgrade program is downloaded from the upgrade program source device through the multi-connected air conditioner communication network 4, otherwise, the air conditioner external unit continues to wait;
the air conditionerexternal unit 2 downloads the upgrading program from the upgrading program source device 1 in multiple times through the multi-connected air conditioner communication network 4, controls the size of a file downloaded from the upgrading program source device 1 in a single time according to the communication quality of the multi-connected air conditioner communication network 4, and can download the upgrading program in one time or multiple times by the air conditionerexternal unit 2, specifically according to the network quality of the multi-connected air conditioner communication network 4, when the communication quality of the multi-connected air conditioner communication network 4 is not good, the air conditionerexternal unit 2 divides the upgrading program into a plurality of small files and downloads the small files in multiple times, and when the communication quality of the multi-connected air conditioner communication network 4 is good, the air conditionerexternal unit 2 can download the whole upgrading program from the upgrading program source device 1 in one time;
and after the program file is transmitted, the air conditionerexternal unit 2 backs up the state of the air conditioner external unit and updates the state.
In the upgrading process of the air conditionerexternal unit 2, the communication quality of the multi-connected air conditioner communication network 4 is judged in the following manner:
the air conditionerexternal unit 2 counts the number N1 of data frames and the number N2 of error frames of the multi-connected air conditioner communication network 4 to obtain a communication error rate P = N2/N1, and compares the error rate P with a set quality level to judge the communication quality of the multi-connected air conditioner communication network 4. For example, the communication quality of the multi-connected air-conditioning communication network 4 may be set to 10 levels according to the value of the communication error rate P, and the quality level of the multi-connected air-conditioning communication network may be determined according to the range of the value of the communication error rate P, where a smaller value of P indicates better communication quality, and a smaller value of P indicates worse communication quality.
Due to the problem of network communication quality, in the process of upgrading the air-conditioningoutdoor unit 2, if the downloaded file is too large, the network may be interrupted and the file cannot be downloaded, so the air-conditioningoutdoor unit 2 downloads the upgrading program from the upgrading program source device 1 in multiple times, and controls the size of the file downloaded from the upgrading program source device 1 in a single time according to the communication quality of the multi-connected air-conditioning communication network 4. The air conditionerexternal unit 2 may download the upgrade program from the upgrade program source device 1 once or multiple times, where the specific times are determined according to the communication quality of the multi-connected air conditioner communication network 4. The communication quality grade of the multi-connected air-conditioning communication network 4 is low, the network quality is poor, if the multi-connected air-conditioning communication network 4 is jammed, the files are split into multiple transmissions, and the smaller the files downloaded by the air conditionerexternal unit 2 from the upgrade program source device 1 at a time are, the occupation of the multi-connected air-conditioning communication network 4 is reduced. The higher the communication quality grade of the multi-connected air-conditioning communication network 4 is, the better the network quality is, the larger the file downloaded by the air conditionerexternal unit 2 from the upgrade program source device 1 at a time is, the more the upgrade program can be downloaded even at one time, the transmission can be completed as fast as possible, and the influence on the multi-connected air-conditioning communication network 4 is reduced.
In the upgrading process of the air conditionerexternal unit 2, the air conditionerexternal unit 2 further determines whether the air conditioner external unit is in a control state. When theoutdoor unit 2 is in the control state, it indicates that it is communicating with other air conditioners, and therefore, the download time is controlled so as not to interfere with the communication between theoutdoor unit 2 and other air conditioners. If the air conditionerexternal unit 2 is in the control state, the interval time of each file transmission is increased, the interval time is staggered with the normal control data frames as much as possible, and the single transmission is rapidly completed by small files, otherwise, the interval time of the single file transmission can be reduced when the air conditionerexternal unit 2 is in the idle state, and the normal communication requirement of the unit is not influenced in the whole process.
As shown in fig. 3, an embodiment of the present invention further provides an upgrading apparatus for a multi-connected air conditioning system, where the upgrading apparatus is disposed in air conditioning equipment that forms the multi-connected air conditioning system. The air conditioning equipment can be an air conditioner indoor unit or an air conditioner outdoor unit, and comprises a communicationquality detection module 31, adownload module 32 and a controlstate detection module 33. The following description will be made separately.
The communicationquality detection module 31 is configured to detect the communication quality of a multi-connected air conditioner communication network of the multi-connected air conditioning system. The communicationquality detection module 31 counts the number N1 of data frames and the number N2 of error frames of the multi-connected air-conditioning communication network to obtain a communication error rate P = N2/N1, and compares the error rate P with a set quality level to determine the communication quality of the multi-connected air-conditioning communication network.
Thedownload module 32 is configured to download the upgrade program from the upgrade program source device in the multi-connected air conditioning system through the multi-connected air conditioning communication network in multiple times, and control the size of the file downloaded from the upgrade program source device at a time according to the communication quality of the multi-connected air conditioning communication network. It should be noted that, due to the problem of network communication quality, if too many files are downloaded by thedownload module 32, thedownload module 32 may cause a network interruption and cannot download the files, so that thedownload module 32 downloads the upgrade programs from the upgrade program source device in the multi-connected air conditioning system in a time-by-time manner, and controls the size of the files downloaded from the upgrade program source device in a time-by-time manner according to the communication quality of the multi-connected air conditioning communication network. The higher the communication quality level of the multi-connected air-conditioning communication network is, the larger the file downloaded by thedownload module 32 from the upgrade program source device at a single time is, and the lower the communication quality level of the multi-connected air-conditioning communication network is, the smaller the file downloaded by thedownload module 32 from the upgrade program source device at a single time is.
The controlstate detection module 33 is configured to determine whether the air conditioning equipment is in a control state. It should be noted that when the air conditioner is in the control state, it is indicated that the air conditioner is communicating with other air conditioners, and therefore, the download time is controlled so as not to interfere with the communication between the air conditioner and other air conditioners. If the air conditioner is in the control state, thedownloading module 32 increases the interval time of each file transmission, and completes the single transmission rapidly with the small file, otherwise, thedownloading module 32 decreases the interval time of the single file transmission.
In summary, by adopting the method for upgrading the multi-connected air conditioning system, the communication quality of the multi-connected air conditioning communication network is detected, the size of single program file transmission is dynamically adjusted according to the communication quality of different multi-connected air conditioning communication networks, the problem of large file transmission failure is avoided, and the problems that the unit operation is influenced by the remote upgrading of the unit program and the environmental adaptability is poor are solved; the transmission interval time is dynamically adjusted according to the control state of the multi-connected air-conditioning system, so that the program is prevented from being upgraded in the control state, and the normal communication of the air-conditioning system is prevented from being influenced.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.