Upgrading method and device for equipment in multi-split system, storage medium and main control end

By detecting the bus load rate and using the PID algorithm for balancing calculations, intercepting and inserting the adapted upgrade data segments, the problems of low upgrade efficiency and system performance impact caused by unbalanced bus load in multiple online systems are solved, and efficient non-stop upgrades are achieved.

CN120295660APending Publication Date: 2025-07-11GUANGDONG TCL INTELLIGENT HEATING & VENTILATING EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510264922.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-06
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

The non-stop upgrade method of existing multi-online systems can easily lead to excessive or low bus load, affecting the normal operation of the system or low upgrade efficiency.

Method used

By detecting the real-time load rate of each round of communication in the bus, using the proportional-integral-differential control algorithm for equalization calculation, the adaptive bus load rate is determined, and the upgrade data segments of each round of communication are intercepted from the upgrade data packet based on the adaptive bus load rate, and inserted into the corresponding round of communication for transmission.

Benefits of technology

It effectively improves the efficiency of equipment in multiple online systems to upgrade non-stop, avoids the impact of excessive or low bus load on the normal operation of the system, and ensures system performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120295660A_ABST
    Figure CN120295660A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a device for upgrading equipment in a multi-split system, a storage medium and a main control end, and relates to the technical field of equipment upgrading, a plurality of pieces of equipment in the multi-split system perform polling communication through a bus, the bus is connected with the main control end, and the main control end can be used for upgrading the equipment after equipment upgrading is initiated. Detecting a real-time bus load rate in the bus when each round of communication is carried out; performing balance calculation according to the real-time bus load rate of each round and a target bus load rate to obtain an adaptive bus load rate of each round; according to the adaptive bus load rate of each round, intercepting an upgrade data segment of each round from an upgrade data packet; and inserting the upgrading data segment of each round into the communication of the corresponding round so as to transmit the upgrading data packet to a target device in the plurality of devices through the bus for device upgrading. On the basis of ensuring the working performance of the multi-split system, the non-stop upgrading efficiency of the equipment in the multi-split system can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of equipment upgrading, and particularly relates to an upgrading method, device, storage medium and master control end for equipment in a multi-connected unit system. Background Art

[0002] A multi-connected unit system is an on-line system composed of multiple devices. For example, an exemplary multi-connected unit system is an air-conditioning system. The multiple devices in the air-conditioning system include at least one outdoor air conditioner (such as a main outdoor unit and a slave outdoor unit, etc.) and at least one indoor air conditioner. Multiple devices in the multi-connected unit system usually communicate through a bus (such as a CAN bus).

[0003] Currently, in order to ensure the normal operation of the multi-connected unit system, related means usually adopt a non-stop upgrade strategy, that is, splitting the upgrade data packet into multiple upgrade data segments of a fixed length, and inserting each upgrade data segment into multiple rounds of communication in the bus to be transmitted to the target device, so as to achieve equipment upgrade.

[0004] However, in the current non-stop upgrade method, when the segmented upgrade data inserted in each round of communication in the bus is superimposed on the device service data, it is easy to cause the load in the bus to be too high, affecting the normal operation of the multi-connected unit system, or the load in the bus to be too low, resulting in a low upgrade efficiency. Summary of the Invention

[0005] An embodiment of this application provides an upgrading solution for equipment in a multi-connected unit system, which can effectively improve the non-stop upgrade efficiency of equipment in the multi-connected unit system on the basis of ensuring the working performance of the multi-connected unit system.

[0006] The embodiments of this application provide the following technical solutions:

[0007] According to an embodiment of this application, an upgrading method for equipment in a multi-connected unit system, wherein multiple devices included in the multi-connected unit system perform polling communication through a bus, the bus is connected to a master control end, and the method is applied to the master control end. The method includes: after initiating equipment upgrade, detecting the real-time bus load rate during each round of communication in the bus; performing an equalization calculation based on the real-time bus load rate and the target bus load rate of each round to obtain the adapted bus load rate of each round; intercepting the upgrade data segment of each round from the upgrade data packet according to the adapted bus load rate of each round; and inserting the upgrade data segment of each round into the corresponding round of communication, so as to transmit the upgrade data packet to the target device among the multiple devices through the bus for equipment upgrade.

[0008] In some embodiments of the present application, detecting the real-time bus load rate during each round of communication in the bus includes: determining the communication limit duration during each round of communication in the bus; determining the communication interval time between each round of communication and the previous round of communication in the bus; and calculating based on the communication limit duration and the communication interval time during each round of communication to obtain the real-time bus load rate during each round of communication.

[0009] In some embodiments of the present application, calculating based on the communication limit duration and the communication interval time during each round of communication to obtain the real-time bus load rate during each round of communication includes: calculating according to the formula Load_current = Time_current / Time_max × 100%, where Load_current refers to the real-time bus load rate during each round of communication, Time_current refers to the communication interval time during each round of communication, and Time_max refers to the communication limit duration during each round of communication.

[0010] In some embodiments of the present application, performing an equalization calculation based on the real-time bus load rate and the target bus load rate for each round to obtain the adapted bus load rate for each round includes: performing an equalization calculation based on the real-time bus load rate and the target bus load rate for each round through a proportional-integral-derivative control algorithm to obtain the adapted bus load rate for each round.

[0011] In some embodiments of the present application, intercepting the upgrade data segment for each round from the upgrade data packet according to the adapted bus load rate for each round includes: calculating according to the adapted bus load rate, the communication limit duration, and the communication baud rate of the bus for each round to obtain the adapted data volume for each round; obtaining the inserted data volume for each round according to the adapted data volume for each round; and intercepting the upgrade data segment of the inserted data volume for each round from the upgrade data packet.

[0012] In some embodiments of the present application, calculating according to the adapted bus load rate, the communication limit duration, and the communication baud rate of the bus for each round to obtain the adapted data volume for each round includes: calculating according to the formulas Adjust_time = Time_max × Adjust_load and Adjust_size = Adjust_time × CAN_baud / 8, where Adjust_size refers to the adapted data volume for each round, Adjust_time refers to the adapted duration for each round, CAN_baud refers to the communication baud rate of the bus, Time_max refers to the communication limit duration for each round, and Adjust_load refers to the adapted bus load rate for each round.

[0013] In some embodiments of the present application, obtaining the insertion data volume for each round based on the adaptation data volume for each round includes: calculating according to the formulas Ota_size1 = Ota_size2 + Adjust_size and Ota_size1 = Limit(Ota_size_min, Ota_size_max), where Ota_size1 refers to the insertion data volume for each round, Ota_size2 refers to the predetermined standard data volume, Adjust_size refers to the adaptation data volume for each round, Ota_size_min is the lower limit of the predetermined data volume, and Ota_size_max is the upper limit of the predetermined data volume.

[0014] According to an embodiment of the present application, an upgrade device for devices in a multi-connected air conditioner system. In the multi-connected air conditioner system, multiple devices included communicate in a polling manner through a bus, and the bus is connected to a master control end. The device is applied to the master control end and includes: a detection module, configured to: after initiating device upgrade, detect the real-time bus load rate during each round of communication in the bus; a calculation module, configured to: perform an equalization calculation based on the real-time bus load rate and the target bus load rate for each round to obtain the adaptation bus load rate for each round; a truncation module, configured to: truncate the upgrade data segment for each round from the upgrade data packet according to the adaptation bus load rate for each round; an insertion module, configured to: insert the upgrade data segment for each round into the corresponding round of communication, so as to transmit the upgrade data packet to a target device among the multiple devices through the bus for device upgrade.

[0015] According to another embodiment of the present application, a storage medium stores a computer program, and when the computer program is executed by a processor of a master control end, the master control end is caused to execute the method described in the embodiments of the present application.

[0016] According to another embodiment of the present application, a master control end may include: a memory storing a computer program; a processor reading the computer program stored in the memory to execute the method described in the embodiments of the present application.

[0017] According to another embodiment of the present application, a computer program product or a computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a master control end reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the master control end executes the methods provided in various alternative implementation manners described in the embodiments of the present application.

[0018] In the embodiments of the present application, multiple devices included in a multi-connected unit system communicate in a polling manner through a bus. The bus is connected to a main control terminal, and the main control terminal can: after initiating device upgrade, detect the real-time bus load rate during each round of communication in the bus; perform an equilibrium calculation based on the real-time bus load rate and the target bus load rate of each round to obtain the adapted bus load rate of each round; intercept the upgrade data segments of each round from the upgrade data packet according to the adapted bus load rate of each round; and insert the upgrade data segments of each round into the communication of the corresponding round, so as to transmit the upgrade data packet through the bus to a target device among the multiple devices for device upgrade.

[0019] In the manner of the embodiments of the present application, by performing an equilibrium calculation based on the real-time bus load rate and the target bus load rate during each round of communication in the bus to obtain the adapted bus load rate of each round, intercepting the upgrade data segments of each round from the upgrade data packet according to the adapted bus load rate of each round, and then inserting the upgrade data segments of each round into the communication of the corresponding round and transmitting them to the target device, it is possible to reliably transmit the upgrade data packet in segments according to the bus load, and it is possible to reliably avoid the situation that the excessive load in the bus affects the normal operation of the multi-connected unit system or the low load in the bus results in low upgrade efficiency. Thus, on the basis of ensuring the working performance of the multi-connected unit system, the non-stop upgrade efficiency of the devices in the multi-connected unit system is effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, without creative efforts, other drawings can be obtained according to these drawings.

[0021] Figure 1 The flowchart of the method for upgrading a device in a multi-connected unit system according to an embodiment of the present application is shown.

[0022] Figure 2 The schematic diagram of segmenting an upgrade package according to an embodiment of the present application is shown.

[0023] Figure 3 The flowchart of calculating the load rate according to an embodiment of the present application is shown.

[0024] Figure 4 The flowchart of intercepting the upgrade data segment according to an embodiment of the present application is shown.

[0025] Figure 5 The block diagram of the device for upgrading a device in a multi-connected unit system according to an embodiment of the present application is shown.

[0026] Figure 6 The block diagram of the master control terminal according to an embodiment of the present application is shown. Detailed implementation manners

[0027] The present disclosure will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments provided herein are only used to explain the present disclosure and are not used to limit the present disclosure. In addition, the embodiments provided below are partial embodiments for implementing the present disclosure, rather than all embodiments for implementing the present disclosure. Without conflict, the technical solutions described in the embodiments of the present disclosure can be implemented in any combined manner.

[0028] It should be noted that in the embodiments of the present disclosure, the term "comprising", "including" or any other variant thereof is intended to cover a non-exclusive inclusion, so that a method or device including a series of elements not only includes the clearly recited elements, but also includes other elements not explicitly listed, or further includes elements inherent to the implementation of the method or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of other related elements in the method or device including the element (such as steps in a method or units in a device, for example, the unit can be a part of a circuit, a part of a processor, a part of a program or software, etc.).

[0029] For example, the method for upgrading devices in the multi-connected air-conditioning system provided by the embodiments of the present disclosure includes a series of steps, but the method for upgrading devices in the multi-connected air-conditioning system provided by the embodiments of the present disclosure is not limited to the recited steps. Similarly, the device for upgrading devices in the multi-connected air-conditioning system provided by the embodiments of the present disclosure includes a series of units, but the device provided by the embodiments of the present disclosure is not limited to including the clearly recited units, and may further include units required for obtaining relevant information or processing based on the information.

[0030] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this disclosure belongs. The terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this disclosure.

[0031] It can be understood that in the specific implementation manners of the present application, when related data is involved and the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of the related data need to comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0032] Figure 1A flowchart of a method for upgrading devices in a multi-connected unit system according to an embodiment of the present application is schematically shown. Multiple devices included in the multi-connected unit system perform polling communication through a bus (such as a CAN bus) (polling communication means communicating in rounds, and each round of communication starts from a polling command initiated by one device and ends when the remaining other devices have reported their respective device information). The bus is connected to a master control end. The execution subject of the method for upgrading devices in this multi-connected unit system can be any master control end with processing capabilities and connected to the bus. The master control end can be a preset networked device or any device with processing capabilities in the multi-connected unit system, etc. The multi-connected unit system can be an air-conditioning system or other on-line systems that communicate through a bus.

[0033] In a scenario of the present application, the multi-connected unit system is specifically an air-conditioning system. Multiple devices in the air-conditioning system include at least one outdoor air conditioner (specifically including a main outdoor unit and a slave outdoor unit) and at least one indoor air conditioner. A preset networked device is connected to the bus as the master control end, or the main outdoor unit can be used as the master control end. In this air-conditioning system, the "main outdoor unit" and the "slave outdoor unit and the at least one indoor air conditioner" perform polling communication through the bus. Specifically, the specific process of each round of communication in the polling communication is as follows: (1) The main outdoor unit initiates a polling command (such as a start command) through the bus; (2) After the "slave outdoor unit and the at least one indoor air conditioner" receive this polling command, the "slave outdoor unit and the at least one indoor air conditioner" will report their respective status information, control information, and other device information according to the IP address competition. After the "slave outdoor unit and the at least one indoor air conditioner" have all reported, they will not report actively again; (3) The main outdoor unit determines that the bus is idle for a predetermined idle duration (such as 100 ms) and initiates a newly initiated polling command in the bus to trigger a new round of communication.

[0034] The master control end can execute the steps of the method for upgrading devices in the multi-connected unit system as Figure 1 shown. The method for upgrading devices in this multi-connected unit system can specifically include step S110 to step S140.

[0035] Step S110, after initiating device upgrade, detect the real-time bus load rate during each round of communication in the bus;

[0036] Step S120, perform an equalization calculation based on the real-time bus load rate of each round and the target bus load rate to obtain the adapted bus load rate of each round;

[0037] Step S130, according to the adapted bus load rate of each round, intercept the upgrade data segment of each round from the upgrade data packet;

[0038] Step S140, insert the upgrade data segments of each round into the communication of the corresponding round, so as to transmit the upgrade data packet to the target device among the multiple devices through the bus for device upgrade.

[0039] In response to the upgrade instruction, the master control end initiates device upgrade. After initiating the device upgrade, it detects the real-time bus load rate (load_current) during each round of communication in the bus. For example, after initiating the device upgrade at time A, it can detect the real-time bus load rate (load_current1) during the first round of communication in the bus after time A, and can further detect the real-time bus load rate (load_current2) during the second round of communication after time A.

[0040] In an embodiment of the present application, a target bus load rate (Load_Target) is predetermined, and an equilibrium calculation is performed based on the real-time bus load rate of each round and the target bus load rate to obtain the adapted bus load rate (Adjust_load) of each round. For example, an equilibrium calculation is performed based on load_current1 and Load_Target to obtain the adapted bus load rate (Adjust_load1) of the first round, and an equilibrium calculation is performed based on load_current2 and Load_Target to obtain the adapted bus load rate (Adjust_load2) of the second round.

[0041] Furthermore, according to the adapted bus load rate of each round, the upgrade data segments of each round are intercepted from the upgrade data packet. For example, refer to Figure 2 , intercept the data segment 201 from S1 to S2 from the upgrade data packet (S) according to Adjust_load1 to obtain the upgrade data segment 1 of the first round, and intercept the data segment 202 from S2 to S3 from the upgrade data packet (S) according to Adjust_load2 to obtain the upgrade data segment 2 of the second round. Among them, the lengths of the segments from S1 to S2 and from S2 to S3 may be the same or different.

[0042] Furthermore, insert the upgrade data segments of each round into the communication of the corresponding round. For example, insert the upgrade data segment 1 into the first round of communication in the bus, and transmit the upgrade data segment 1 to the target device among the multiple devices through the bus; insert the upgrade data segment 2 into the second round of communication in the bus, and transmit the upgrade data segment 2 to the target device among the multiple devices through the bus. When the upgrade data packet is completely transmitted to the target device, the target device can combine all the upgrade data segments into the upgrade data packet to perform device upgrade. Among them, the target device is one or several devices among the multiple devices in the multi-connected system.

[0043] In this way of the embodiment of the present application, when performing communication in each round according to the bus, an adaptive bus load rate for each round is calculated by balancing the real-time bus load rate during each round of communication with the target bus load rate. Then, according to the adaptive bus load rate for each round, the upgrade data segment for each round is intercepted from the upgrade data packet. Subsequently, the upgrade data segment for each round is inserted into the communication of the corresponding round and transmitted to the target device. In this way, the upgrade data packet can be reliably segmented and transmitted according to the bus load, and it can reliably avoid the situation that the excessive load in the bus affects the normal operation of the multi-connected system or the low load in the bus leads to low upgrade efficiency. Thus, on the basis of ensuring the working performance of the multi-connected system, the non-stop upgrade efficiency of the devices in the multi-connected system is effectively improved.

[0044] The following describes Figure 1 When upgrading the devices in the multi-connected system in the embodiment, specific embodiments that are further optional under each step.

[0045] In one embodiment, referring to Figure 3 , detecting the real-time bus load rate during each round of communication in the bus includes: step S310, determining the communication limit duration during each round of communication in the bus; step S320, determining the communication interval time between each round of communication in the bus and the previous round of communication; step S330, calculating according to the communication limit duration and the communication interval time during each round of communication to obtain the real-time bus load rate during each round of communication.

[0046] The communication limit duration (Time_max) during each round of communication is the maximum duration for completing communication in each round, that is, the maximum polling time that does not affect the normal operation of the multi-connected system, which means that all devices in the bus can send and complete their respective device information within the communication limit duration of one round. For example, within the communication limit duration of one round, it is required that both the outdoor unit and the at least one air-conditioning indoor unit can complete reporting their respective status information and control information and other device information to the main outdoor unit. The communication limit duration during each round of communication can be preset according to the actual situation, and the present application does not make special limitations on this.

[0047] The communication interval time between each round of communication and the previous round of communication. For example, after the main outdoor unit initiates a polling command 1 for one round through the bus, the main outdoor unit determines that the bus is idle for a predetermined idle duration (such as 100 ms) and then initiates a new round of polling command 2 in the bus. The communication interval time between the new round of communication and the previous round of communication is the "interval time between the moment of initiating polling command 1 and the moment of initiating polling command 2".

[0048] In this way of calculating the real-time bus load rate during each round of communication based on the communication limit duration and communication interval time during each round of communication, by considering the communication limit duration and communication interval time during each round of communication to calculate the real-time bus load rate, the accuracy of the real-time bus load rate can be effectively guaranteed.

[0049] Specifically, in one implementation manner, the calculation of the real-time bus load rate during each round of communication according to the communication limit duration and the communication interval time during each round of communication may include: calculating according to the formula Load_current = Time_current / Time_max × 100%, where Load_current refers to the real-time bus load rate during each round of communication, Time_current refers to the communication interval time during each round of communication, and Time_max refers to the communication limit duration during each round of communication.

[0050] Calculating the real-time bus load rate during each round of communication according to the formula Load_current = Time_current / Time_max × 100%, and the real-time bus load rate calculated in this way is used in the solution of this application. The applicant finds that the reliability of inserting data during each round of communication can be reliably improved.

[0051] In one embodiment, the balanced calculation of the real-time bus load rate and the target bus load rate for each round to obtain the adapted bus load rate for each round may include: performing a balanced calculation of the real-time bus load rate and the target bus load rate for each round through a proportional-integral-derivative control algorithm to obtain the adapted bus load rate for each round.

[0052] The proportional-integral-derivative control algorithm is the PID algorithm. By performing a balanced calculation of the real-time bus load rate and the target bus load rate for each round through the PID algorithm, the real-time bus load rate approaches the target bus load rate, and the adapted bus load rate for each round is obtained (i.e., Adjust_load = PID(Load_Target, Load_current)). Among them, the control effect can be optimized by adjusting the PID parameters (proportional, integral, derivative) in the PID algorithm, and the PID parameters (proportional, integral, derivative) in the PID algorithm can be pre-adjusted. The adapted bus load rate for each round is obtained through a balanced calculation by the PID algorithm. Based on the adapted bus load rate calculated in this way, the amount of data in the reasonable upgrade data segment for each round can be reliably determined.

[0053] Optionally, in other embodiments, the step of performing an equalization calculation based on the real-time bus load rate and the target bus load rate for each round to obtain the adapted bus load rate for each round may be: performing an average calculation or other calculations on the real-time bus load rate and the target bus load rate. Optionally, in other embodiments, the step of performing an equalization calculation based on the real-time bus load rate and the target bus load rate for each round to obtain the adapted bus load rate for each round may be: performing an equalization calculation based on the real-time bus load rate and the target bus load rate for each round through a proportional-integral control algorithm (i.e., PI algorithm) or a proportional-derivative control algorithm (i.e., PD algorithm) to obtain the adapted bus load rate for each round.

[0054] In one embodiment, referring to Figure 4 , the step of intercepting the upgrade data segment for each round from the upgrade data packet according to the adapted bus load rate for each round may include: Step S410, calculating according to the adapted bus load rate, the communication limit duration, and the communication baud rate of the bus for each round to obtain the adapted data volume for each round; Step S420, obtaining the inserted data volume for each round according to the adapted data volume for each round; Step S430, intercepting the upgrade data segment of the inserted data volume for each round from the upgrade data packet.

[0055] The communication baud rate (Baud) of the bus is the data transmission rate on the bus. For example, 125 kbps, 250 kbps, 500 kbps, or 1 Mbps, etc. By calculating according to the adapted bus load rate, the communication limit duration, and the communication baud rate of the bus for each round, the reasonably adapted data volume (Adjust_size) for each round can be obtained. For example, the adapted data volume Adjust_size1 for the first round is calculated according to the adapted bus load rate Adjust_load1, the communication limit duration Time_max, and the communication baud rate Baud of the bus for the first round; the adapted data volume Adjust_size2 for the first round is calculated according to the adapted bus load rate Adjust_load2, the communication limit duration Time_max, and the communication baud rate Baud of the bus for the second round.

[0056] Then, based on the adaptation data volume of each round, the inserted data volume of each round is obtained, and the upgrade data segment of the inserted data volume of each round is intercepted from the upgrade data packet. For example, based on the adaptation data volume Adjust_size1 of the first round, the inserted data volume Ota_size1-1 of the first round (i.e., the length of the segment from S1 to S2) is obtained. Based on the adaptation data volume Adjust_size2 of the second round, the inserted data volume Ota_size1-2 of the second round (i.e., the length of the segment from S2 to S3) is obtained. Further, the upgrade data segment 1 of the first round can be intercepted from the upgrade data packet (S) for the data from S1 to S2, and the upgrade data segment 2 of the second round can be intercepted from the upgrade data packet (S) for the data from S2 to S3. Calculating and determining the inserted data volume of each round in the manner of this embodiment can further reasonably intercept the upgrade data segment of each round.

[0057] Further, in an embodiment, the calculation based on the adaptation bus load rate, communication limit duration, and communication baud rate of the bus for each round to obtain the adaptation data volume of each round may specifically include: calculating according to the formulas Adjust_time = Time_max × Adjust_load and Adjust_size = Adjust_time × CAN_baud / 8. Here, Adjust_size refers to the adaptation data volume of each round, Adjust_time refers to the adaptation duration of each round, CAN_baud refers to the communication baud rate of the bus, Time_max refers to the communication limit duration of each round, and Adjust_load refers to the adaptation bus load rate of each round.

[0058] The applicant found that calculating according to the formulas Adjust_time = Time_max × Adjust_load and Adjust_size = Adjust_time × CAN_baud / 8 can extremely reasonably obtain the adaptation data volume of each round.

[0059] Further, in an embodiment, the obtaining of the inserted data volume of each round based on the adaptation data volume of each round may include: calculating according to the formulas Ota_size1 = Ota_size2 + Adjust_size and Ota_size1 = Limit(Ota_size_min, Ota_size_max), where Ota_size1 refers to the inserted data volume of each round, Ota_size2 refers to the predetermined standard data volume, Adjust_size refers to the adaptation data volume of each round, Ota_size_min is the predetermined data volume lower limit, and Ota_size_max is the predetermined data volume upper limit.

[0060] The specific meaning of this formula is as follows: After calculating the initial Ota_size1 according to the formula Ota_size1 = Ota_size2 + Adjust_size, if the initial Ota_size1 is between Ota_size_min and Ota_size_max, then this initial Ota_size1 is the final inserted data volume; if the initial Ota_size1 is less than Ota_size_min, then the final inserted data volume is equal to Ota_size_min; if the initial Ota_size1 is greater than Ota_size_max, then the final inserted data volume is equal to Ota_size_max.

[0061] After calculating the adaptation data volume Adjust_size for each round, calculate according to the formula Ota_size1 = Ota_size2 + Adjust_size and Ota_size1 = Limit(Ota_size_min, Ota_size_max) to determine the final inserted data volume. The applicant finds that using the inserted data volume calculated in this way to intercept the upgrade data segment can effectively ensure the rationality of the load in the bus.

[0062] To facilitate better implementation of the device upgrade method in the multi-connected air conditioner system provided in the embodiments of the present application, the embodiments of the present application further provide a device upgrade device for the multi-connected air conditioner system based on the above-mentioned device upgrade method in the multi-connected air conditioner system. The meanings of the nouns are the same as those in the above-mentioned device upgrade method in the multi-connected air conditioner system, and the specific implementation details can refer to the descriptions in the method embodiments.

[0063] Figure 5 The block diagram of the device upgrade device for the multi-connected air conditioner system according to an embodiment of the present application is shown. Multiple devices included in the multi-connected air conditioner system perform polling communication through a bus, and the bus is connected to the master control end. The device is applied to the master control end.

[0064] As Figure 5 shown, the device upgrade device 500 for the multi-connected air conditioner system may include: The detection module 510 can be used to: after initiating device upgrade, detect the real-time bus load rate during each round of communication in the bus; The calculation module 520 can be used to: perform an equalization calculation based on the real-time bus load rate and the target bus load rate for each round to obtain the adaptation bus load rate for each round; The interception module 530 can be used to: intercept the upgrade data segments for each round from the upgrade data packet according to the adaptation bus load rate for each round; The insertion module 540 can be used to: insert the upgrade data segments for each round into the corresponding round of communication, so as to transmit the upgrade data packet to the target device among the multiple devices through the bus for device upgrade.

[0065] In some embodiments of the present application, the detection module 510 may be configured to: determine the communication limit duration for each round of communication in the bus; determine the communication interval time between each round of communication and the previous round of communication in the bus; calculate based on the communication limit duration and the communication interval time for each round of communication to obtain the real-time bus load rate for each round of communication.

[0066] In some embodiments of the present application, the detection module 510 may be configured to: calculate according to the formula Load_current = Time_current / Time_max × 100%, where Load_current refers to the real-time bus load rate for each round of communication, Time_current refers to the communication interval time for each round of communication, and Time_max refers to the communication limit duration for each round of communication.

[0067] In some embodiments of the present application, the calculation module 520 may be configured to: perform an equilibrium calculation based on the real-time bus load rate and the target bus load rate for each round through a proportional-integral-derivative control algorithm to obtain the adapted bus load rate for each round.

[0068] In some embodiments of the present application, the intercepting module 530 may be configured to: calculate according to the adapted bus load rate, the communication limit duration, and the communication baud rate of the bus for each round to obtain the adapted data volume for each round; obtain the inserted data volume for each round based on the adapted data volume for each round; intercept the upgrade data segment of the inserted data volume for each round from the upgrade data packet.

[0069] In some embodiments of the present application, the intercepting module 530 may be configured to: calculate according to the formulas Adjust_time = Time_max × Adjust_load and Adjust_size = Adjust_time × CAN_baud / 8, where Adjust_size refers to the adapted data volume for each round, Adjust_time refers to the adapted duration for each round, CAN_baud refers to the communication baud rate of the bus, Time_max refers to the communication limit duration for each round, and Adjust_load refers to the adapted bus load rate for each round.

[0070] In some embodiments of the present application, the interception module 530 may be configured to calculate according to the formulas Ota_size1 = Ota_size2 + Adjust_size and Ota_size1 = Limit(Ota_size_min, Ota_size_max), where Ota_size1 refers to the amount of inserted data in each round, Ota_size2 refers to the predetermined standard data amount, Adjust_size refers to the adapted data amount in each round, Ota_size_min is the lower limit of the predetermined data amount, and Ota_size_max is the upper limit of the predetermined data amount.

[0071] It should be noted that although several modules or units of a device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of the two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided and embodied by multiple modules or units.

[0072] In addition, an embodiment of the present application further provides a master control end, as Figure 6 shown, Figure 6 FIG. shows a block diagram of the master control end according to an embodiment of the present application. Specifically:

[0073] The master control end may include components such as a processor 601 with one or more processing cores and a memory 602 with one or more computer-readable storage media. Those skilled in the art can understand that Figure 6 the master control end structure shown in does not constitute a limitation on the master control end, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0074] The processor 601 is the control center of the master control end, connecting various parts of the entire computer device through various interfaces and lines. By running or executing software programs and / or modules stored in the memory 602, and calling data stored in the memory 602, it executes various functions of the computer device and processes data, thereby monitoring the master control end as a whole. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interfaces, and application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above modem processor may not be integrated into the processor 601.

[0075] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the computer device. In addition, the memory 602 may include high-speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. Correspondingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.

[0076] Although not shown, the master control terminal may also include components such as a power supply, a networking module, etc., which will not be elaborated here. Specifically, in this embodiment, the processor 601 in the master control terminal can load the executable files corresponding to the processes of one or more computer programs into the memory 602 according to instructions, and the processor 601 runs the computer programs stored in the memory 602 to implement various functions in the foregoing embodiments of the present application.

[0077] For example, the processor 601 can execute the following steps:

[0078] After initiating device upgrade, detect the real-time bus load rate during each round of communication in the bus; perform an equalization calculation based on the real-time bus load rate of each round and the target bus load rate to obtain the adapted bus load rate of each round; intercept the upgrade data segments of each round from the upgrade data packet according to the adapted bus load rate of each round; insert the upgrade data segments of each round into the corresponding round of communication to transmit the upgrade data packet to the target device among the multiple devices through the bus for device upgrade.

[0079] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by a computer program or by controlling related hardware through a computer program. The computer program can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0080] Therefore, the embodiments of the present application also provide a storage medium, in which a computer program is stored, and the computer program can be loaded by a processor to execute the steps in any one of the methods provided by the embodiments of the present application.

[0081] Among them, the storage medium may be a computer-readable storage medium, and the storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.

[0082] Since the computer program stored in the storage medium can execute the steps in any of the methods provided in the embodiments of the present application, the beneficial effects achievable by the methods provided in the embodiments of the present application can be realized. For details, refer to the previous embodiments and will not be elaborated here.

[0083] After considering the specification and practicing the disclosed embodiments herein, those skilled in the art will readily conceive of other embodiments of the present application. The present application is intended to cover any variations, uses, or adaptations of the present application, which follow the general principles of the present application and include known common knowledge or conventional technical means in the technical field not disclosed in the present application.

[0084] It should be understood that the present application is not limited to the embodiments described above and illustrated in the drawings, and various modifications and changes can be made without departing from its scope.

Claims

1. A method for upgrading devices in a multi-connected air-conditioning system, characterized in that In the multi-connected unit system, multiple devices included communicate in a polling manner through a bus. The bus is connected to a master control end. The method is applied to the master control end and includes: After initiating device upgrade, detect the real-time bus load rate during each round of communication in the bus; Perform an equalization calculation based on the real-time bus load rate and the target bus load rate of each round to obtain the adapted bus load rate of each round; Intercept the upgrade data segments of each round from the upgrade data packet according to the adapted bus load rate of each round; Insert the upgrade data segments of each round into the corresponding round of communication, so as to transmit the upgrade data packet through the bus to the target device among the multiple devices for device upgrade.

2. The method according to claim 1, wherein The detecting the real-time bus load rate during each round of communication in the bus includes: Determine the communication limit duration during each round of communication in the bus; Determine the communication interval time between each round of communication and the previous round of communication in the bus; Perform a calculation based on the communication limit duration and the communication interval time during each round of communication to obtain the real-time bus load rate during each round of communication.

3. The method according to claim 2, characterized in that The performing a calculation based on the communication limit duration and the communication interval time during each round of communication to obtain the real-time bus load rate during each round of communication includes: Perform a calculation according to the formula Load_current = Time_current / Time_max × 100%, where Load_current refers to the real-time bus load rate during each round of communication, Time_current refers to the communication interval time during each round of communication, and Time_max refers to the communication limit duration during each round of communication.

4. The method according to claim 1, characterized in that, The performing an equalization calculation based on the real-time bus load rate and the target bus load rate of each round to obtain the adapted bus load rate of each round includes: Perform an equalization calculation based on the real-time bus load rate and the target bus load rate of each round through a proportional-integral-derivative control algorithm to obtain the adapted bus load rate of each round.

5. The method according to claim 1, wherein The intercepting the upgrade data segments of each round from the upgrade data packet according to the adapted bus load rate of each round includes: Perform a calculation based on the adapted bus load rate, communication limit duration, and communication baud rate of the bus of each round to obtain the adapted data volume of each round; Obtain the inserted data volume of each round according to the adapted data volume of each round; Intercept the upgrade data segments of the inserted data volume of each round from the upgrade data packet.

6. The method according to claim 5, wherein The performing a calculation based on the adapted bus load rate, communication limit duration, and communication baud rate of the bus of each round to obtain the adapted data volume of each round includes: Calculate according to the formulas Adjust_time = Time_max × Adjust_load and Adjust_size = Adjust_time × CAN_baud / 8. Adjust_size refers to the adapted data volume of each round, Adjust_time refers to the adapted duration of each round, CAN_baud refers to the communication baud rate of the bus, Time_max refers to the communication limit duration of each round, and Adjust_load refers to the adapted bus load rate of each round.

7. The method according to claim 5, characterized in that, Obtaining the inserted data volume of each round according to the adapted data volume of each round includes: Calculate according to the formulas Ota_size1 = Ota_size2 + Adjust_size and Ota_size1 = Limit(Ota_size_min, Ota_size_max), where Ota_size1 refers to the inserted data volume of each round, Ota_size2 refers to the predetermined standard data volume, Adjust_size refers to the adapted data volume of each round, Ota_size_min is the lower limit of the predetermined data volume, and Ota_size_max is the upper limit of the predetermined data volume.

8. An upgrading device for equipment in a multi-connected air conditioner system, characterized in that, Multiple devices included in the multi-connected system communicate in a polling manner through a bus. The bus is connected to the master control end. The device is applied to the master control end and includes: A detection module for: after initiating device upgrade, detecting the real-time bus load rate during each round of communication in the bus; A calculation module for: performing an equalization calculation based on the real-time bus load rate and the target bus load rate of each round to obtain the adapted bus load rate of each round; A truncation module for: truncating the upgrade data segment of each round from the upgrade data packet according to the adapted bus load rate of each round; An insertion module for: inserting the upgrade data segment of each round into the communication of the corresponding round to transmit the upgrade data packet to the target device among the multiple devices through the bus for device upgrade.

9. A storage medium, characterized in that, It stores a computer program, and when the computer program is executed by the processor of the master control end, the master control end executes the method according to any one of claims 1 to 7.

10. A master control terminal, characterized in that, Including: A memory storing a computer program; A processor reading the computer program stored in the memory to execute the method according to any one of claims 1 to 7.