Upgrading data transmission method and device, electronic equipment and storage medium

By performing roll call and rate optimization on multi-split air conditioning units, determining online and offline status, and optimizing and upgrading the data transmission process, the problem of low transmission efficiency was solved, and faster data transmission was achieved.

CN117879992BActive Publication Date: 2026-07-14GREE ELECTRIC APPLIANCE INC OF ZHUHAI

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GREE ELECTRIC APPLIANCE INC OF ZHUHAI
Filing Date
2023-12-21
Publication Date
2026-07-14

AI Technical Summary

Technical Problem

The existing technology that transmits upgrade data by adding extra communication data frames results in low transmission efficiency and long transmission time.

Method used

By conducting a roll call of multi-split air conditioning units, the online and offline status of the units is identified, and the communication rate is determined based on the roll call results. This rate is then used to send upgrade data in subsequent roll call cycles, thus optimizing the data transmission process.

Benefits of technology

Without adding extra timing, the data transmission rate is increased and the transmission time is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117879992B_ABST
    Figure CN117879992B_ABST
Patent Text Reader

Abstract

The application provides an upgrading data transmission method and device, electronic equipment and storage medium. The method is applied to a multi-connected air conditioning unit, the multi-connected air conditioning unit includes multiple air conditioning units, and the method includes: in the case of receiving an upgrading instruction issued for the multi-connected air conditioning unit, obtaining upgrading data, and calling out the multiple air conditioning units in the multi-connected air conditioning unit to obtain a first calling-out result; determining a first online air conditioning unit in an online state and a first offline air conditioning unit in an offline state from the multiple air conditioning units based on the first calling-out result; determining a first communication rate corresponding to the multi-connected air conditioning unit; and in a calling-out period, sending the upgrading data to the first online air conditioning unit at the first communication rate within the calling-out time of the first offline air conditioning unit. Thus, the data transmission time is reduced, and the transmission rate is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data transmission technology, and in particular to an upgraded data transmission method, apparatus, electronic device, and storage medium. Background Technology

[0002] With the development of technology and the improvement of people's living standards, intelligent air conditioners are gradually becoming a popular trend. To meet the growing needs of users, air conditioners are becoming increasingly feature-rich and their software design is becoming more complex, requiring frequent maintenance and updates. Currently, in the upgrading of commercial air conditioning equipment, to ensure that the equipment remains usable during the upgrade process, additional communication data frames are typically needed to transmit the corresponding upgrade data.

[0003] However, this method of transmitting upgrade data by adding extra communication data frames usually results in a longer actual transmission time and lower transmission efficiency due to the added timing. Summary of the Invention

[0004] The purpose of this application is to provide an upgrade data transmission method, apparatus, electronic device, and storage medium to solve the problem of low transmission efficiency caused by transmitting upgrade data through additional communication data frames. The specific technical solution is as follows:

[0005] Firstly, this application provides an upgraded data transmission method applied to a multi-split air conditioning unit, wherein the multi-split air conditioning unit includes multiple air conditioning units, including:

[0006] Upon receiving an upgrade instruction for the multi-split air conditioning unit, upgrade data is acquired, and multiple air conditioning units in the multi-split air conditioning unit are randomly selected to obtain a first selection result.

[0007] Based on the first roll call result, the first online air conditioning unit and the first offline air conditioning unit in the offline state are determined among the multiple air conditioning units;

[0008] Determine the first communication rate corresponding to the multi-split air conditioning unit;

[0009] During the roll call period of the first offline air conditioning unit, the upgrade data is sent to the first online air conditioning unit according to the first communication rate.

[0010] In one possible implementation, determining the first communication rate corresponding to the multi-split air conditioning unit includes:

[0011] Determine the first data length and communication time interval corresponding to the multi-connected air conditioner unit, where the first data length refers to the length of the data transmitted before the multi-connected air conditioner unit receives the upgrade instruction, and the communication time interval refers to the time interval between sending two data to multiple air conditioner units;

[0012] Perform iterative processing using the following steps until the set iterative stop condition is met:

[0013] Substitute the first data length and the communication time interval into the first preset formula to obtain the second data length:

[0014] L2 = t * v1 - L1 (Equation 1);

[0015] where t is the communication time interval, L1 is the first data length, L2 is the second data length, and v1 is the communication rate. For the first value of v1, it is the highest rate that can be set;

[0016] Determine whether the communication rate and the second data length meet the iterative stop condition;

[0017] In the case where the second data length does not meet the iterative stop condition, lower the communication rate according to the preset step value, and calculate the corresponding second data length based on the lowered communication rate until the communication rate and the second data length meet the iterative stop condition, and then determine the communication rate as the first communication rate;

[0018] The iterative stop condition is: the verification error of the first communication rate by the first online air conditioner unit is less than the preset threshold, and the second data length is a multiple of the data length written into the memory at one time.

[0019] In a possible implementation, the method further includes:

[0020] Determine the naming reply situation and data reception situation corresponding to the first online air conditioner unit, where the naming reply situation is used to represent the online state of the first online air conditioner unit, and the data reception situation is used to represent the reception situation of the first online air conditioner unit for the upgrade data;

[0021] In the case where the naming reply situation is that the first online air conditioner unit is offline, or the data reception situation is abnormal data reception, suspend sending the upgrade data, and obtain the original communication rate corresponding to the multi-connected air conditioner unit, where the original communication rate refers to the rate used for data transmission before the multi-connected air conditioner unit receives the upgrade instruction;

[0022] Rename the multiple air conditioner units in the multi-connected air conditioner unit according to the original communication rate to obtain the second naming result;

[0023] Based on the second naming result, the second online air conditioning unit and the second offline air conditioning unit in the offline state are determined among the multiple air conditioning units;

[0024] Determine the second communication rate corresponding to the multi-split air conditioning unit, wherein the second communication rate is less than the first communication rate;

[0025] During the roll call period of the second offline air conditioning unit, the upgrade data is sent to the second online air conditioning unit according to the second communication rate.

[0026] In one possible implementation, determining the first communication rate corresponding to the multi-split air conditioning unit includes:

[0027] Obtain the original communication rate corresponding to the multi-split air conditioning unit, wherein the original communication rate refers to the rate at which the multi-split air conditioning unit transmits data before receiving the upgrade command;

[0028] The original communication rate is determined as the first communication rate corresponding to the multi-split air conditioning unit.

[0029] In one possible implementation, sending the upgrade data to the first online air conditioning unit at the first communication rate includes:

[0030] The first data length and communication time interval corresponding to the multi-split air conditioning unit are determined, wherein the first data length refers to the length of data transmitted by the multi-split air conditioning unit before receiving the upgrade instruction, and the communication time interval refers to the time interval between two data transmissions by multiple air conditioning units.

[0031] Substituting the first data length, the communication time interval, and the first communication rate into the second preset formula, we obtain the third data length:

[0032] L3 = t * v2 - L1 (II);

[0033] Where t is the communication time interval, L1 is the first data length, L3 is the third data length, and v2 is the first communication rate;

[0034] The upgrade data is divided according to the third data length to obtain multiple sub-upgrade data;

[0035] The multiple sub-upgrade data are sent to the first online air conditioning unit according to the first communication rate.

[0036] In one possible implementation, sending the plurality of sub-upgrade data to the first online air conditioning unit according to the first communication rate includes:

[0037] For each sub-upgrade data, determine the order of the sub-upgrade data in the upgrade data, and number the sub-upgrade data according to the order;

[0038] The multiple sub-upgrade data and the corresponding number of each sub-upgrade data are sent to the first online air conditioning unit according to the first communication rate.

[0039] In one possible implementation, after sending the plurality of sub-upgrade data to the first online air conditioning unit according to the first communication rate, the method further includes:

[0040] For each sub-upgrade data, receive the response information from the first online air conditioning unit regarding the received sub-upgrade data;

[0041] If the received response information fails to be received, the sub-upgrade data is resent to the first online air conditioning unit.

[0042] Secondly, this application provides an upgraded data transmission device for use in multi-split air conditioning units, the multi-split air conditioning unit comprising multiple air conditioning units, including:

[0043] The acquisition module is used to acquire upgrade data and, upon receiving an upgrade instruction for the multi-split air conditioning unit, to take a name of multiple air conditioning units in the multi-split air conditioning unit and obtain a first name-taking result.

[0044] The first determining module is used to determine, based on the first naming result, a first online air conditioning unit that is in an online state and a first offline air conditioning unit that is in an offline state among the plurality of air conditioning units;

[0045] The second determining module is used to determine the first communication rate corresponding to the multi-split air conditioning unit;

[0046] The sending module is used to send the upgrade data to the first online air conditioning unit at the first communication rate during the roll call period of the first offline air conditioning unit in subsequent roll call cycles.

[0047] In one possible implementation, the second determining module is further configured to:

[0048] The first data length and communication time interval corresponding to the multi-split air conditioning unit are determined, wherein the first data length refers to the length of data transmitted by the multi-split air conditioning unit before receiving the upgrade instruction, and the communication time interval refers to the time interval between two data transmissions by multiple air conditioning units.

[0049] Perform iterative processing using the following steps until the set iteration stopping condition is met:

[0050] Substitute the first data length and the communication time interval into the first preset formula to obtain the second data length:

[0051] L2 = t * v1 - L1 (1);

[0052] where t is the communication time interval, L1 is the first data length, L2 is the second data length, and v1 is the communication rate. For the first value of v1, it is the highest rate that can be set;

[0053] Determine whether the communication rate and the second data length meet the iteration stop condition;

[0054] In the case where the second data length does not meet the iteration stop condition, lower the communication rate according to the preset step value, and calculate the corresponding second data length based on the lowered communication rate until the communication rate and the second data length meet the iteration stop condition, then determine the communication rate as the first communication rate;

[0055] where the iteration stop condition is: the verification error of the first online air conditioner unit for the communication rate is less than the preset threshold, and the second data length is a multiple of the single - write data length of the memory.

[0056] In a possible implementation, the device further includes a key - naming module, which is used for:

[0057] Determine the naming reply situation and data reception situation corresponding to the first online air conditioner unit, where the naming reply situation is used to represent the online state of the first online air conditioner unit, and the data reception situation is used to represent the reception situation of the first online air conditioner unit for the upgrade data;

[0058] In the case where the naming reply situation indicates that the first online air conditioner unit is offline, or the data reception situation indicates abnormal data reception, suspend sending the upgrade data, and obtain the original communication rate corresponding to the multi - connected air conditioner unit, where the original communication rate refers to the rate used for data transmission before the multi - connected air conditioner unit receives the upgrade instruction;

[0059] Rename the multiple air conditioner units in the multi - connected air conditioner unit according to the original communication rate to obtain a second naming result;

[0060] Based on the second naming result, determine the second online air conditioner units in the online state and the second offline air conditioner units in the offline state among the multiple air conditioner units;

[0061] Determine the second communication rate corresponding to the multi - connected air conditioner unit, where the second communication rate is less than the first communication rate;

[0062] During the roll call period of the second offline air conditioning unit, the upgrade data is sent to the second online air conditioning unit according to the second communication rate.

[0063] In one possible implementation, the second determining module is further configured to:

[0064] Obtain the original communication rate corresponding to the multi-split air conditioning unit, wherein the original communication rate refers to the rate at which the multi-split air conditioning unit transmits data before receiving the upgrade command;

[0065] The original communication rate is determined as the first communication rate corresponding to the multi-split air conditioning unit.

[0066] In one possible implementation, the sending module is further configured to:

[0067] The first data length and communication time interval corresponding to the multi-split air conditioning unit are determined, wherein the first data length refers to the length of data transmitted by the multi-split air conditioning unit before receiving the upgrade instruction, and the communication time interval refers to the time interval between two data transmissions by multiple air conditioning units.

[0068] Substituting the first data length, the communication time interval, and the first communication rate into the second preset formula, we obtain the third data length:

[0069] L3 = t * v2 - L1 (II);

[0070] Where t is the communication time interval, L1 is the first data length, L3 is the third data length, and v2 is the first communication rate;

[0071] The upgrade data is divided according to the third data length to obtain multiple sub-upgrade data;

[0072] The multiple sub-upgrade data are sent to the first online air conditioning unit according to the first communication rate.

[0073] In one possible implementation, the sending module is further configured to:

[0074] For each sub-upgrade data, determine the order of the sub-upgrade data in the upgrade data, and number the sub-upgrade data according to the order;

[0075] The multiple sub-upgrade data and the corresponding number of each sub-upgrade data are sent to the first online air conditioning unit according to the first communication rate.

[0076] In one possible implementation, the apparatus further includes a retransmission module for:

[0077] For each sub-upgrade data, receive the response information from the first online air conditioning unit regarding the received sub-upgrade data;

[0078] If the received response information fails to be received, the sub-upgrade data is resent to the first online air conditioning unit.

[0079] Thirdly, an electronic device is provided, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0080] Memory, used to store computer programs;

[0081] When a processor executes a program stored in memory, it implements any of the steps described in the first aspect.

[0082] Fourthly, a computer-readable storage medium is provided, characterized in that the computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of any of the methods described in the first aspect.

[0083] Fifthly, a computer program product containing instructions is provided, which, when run on a computer, causes the computer to execute any of the upgrade data transmission methods described above.

[0084] Beneficial effects of the embodiments in this application:

[0085] This application provides an upgrade data transmission method, apparatus, electronic device, and storage medium, applied to a multi-split air conditioning unit, which includes multiple air conditioning units. In this embodiment, upon receiving an upgrade command for the multi-split air conditioning unit, firstly, upgrade data is acquired, and then a first roll call is performed on the multiple air conditioning units in the multi-split air conditioning unit to obtain a first roll call result. Then, based on the first roll call result, a first online air conditioning unit and a first offline air conditioning unit are determined, and a first communication rate corresponding to the multi-split air conditioning unit is determined. Finally, during the roll call time of the first offline air conditioning unit in a subsequent roll call cycle, the upgrade data is sent to the first online air conditioning unit according to the first communication rate. This solution utilizes the communication time of offline air conditioning units to transmit upgrade data, thus enabling upgrade data transmission without adding extra timing, thereby reducing data transmission time and increasing transmission rate.

[0086] Of course, implementing any product or method of this application does not necessarily require achieving all of the advantages described above at the same time. Attached Figure Description

[0087] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0088] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0089] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.

[0090] Figure 1 A flowchart illustrating an upgrade data transmission method provided in this application embodiment;

[0091] Figure 2 A timing diagram showing the control device taking attendance of each air conditioning unit before receiving an upgrade command;

[0092] Figure 3 A timing diagram illustrating the control device sending upgrade data to each online air conditioning unit during the roll call cycle;

[0093] Figure 4 A flowchart illustrating another upgrade data transmission method provided in this application embodiment;

[0094] Figure 5 This is a schematic diagram of the structure of an upgraded data transmission device provided in an embodiment of this application;

[0095] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0096] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0097] The following disclosure provides numerous different embodiments or examples for implementing various structures of the invention. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of the invention. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.

[0098] Figure 1 This is a flowchart illustrating an upgrade data transmission method provided in an embodiment of this application. This method can be applied to one or more electronic devices such as multi-split air conditioning units, smartphones, laptops, desktop computers, portable computers, and servers. Furthermore, the executing entity of this method can be hardware or software. When the executing entity is hardware, it can be one or more of the aforementioned electronic devices. For example, a single electronic device can execute this method, or multiple electronic devices can cooperate with each other to execute this method. When the executing entity is software, this method can be implemented as multiple software programs or software modules, or as a single software program or software module. No specific limitations are made here.

[0099] like Figure 1 As shown, the method specifically includes:

[0100] S101, upon receiving an upgrade instruction for the multi-split air conditioning unit, acquire upgrade data and, by name, take a first name-taking result for the multiple air conditioning units in the multi-split air conditioning unit.

[0101] The upgrade data transmission method provided in this application embodiment can be applied to multi-split air conditioning units, which include a control device and multiple air conditioning units.

[0102] An upgrade command is a user-issued instruction to upgrade a multi-split air conditioning unit. In practice, upgrade commands are typically received through a control device.

[0103] Upgrade data refers to data used for upgrading multi-split air conditioning units.

[0104] In one embodiment, the control device can receive upgrade data uploaded by the user.

[0105] In another embodiment, the control device can download upgrade data from the cloud.

[0106] The first ranking result is used to characterize the status (including online and offline status) of each air conditioning unit in a multi-split air conditioning unit.

[0107] In the embodiment of the present application, the control device periodically polls multiple air-conditioning units included in a multi-connected air-conditioning unit, and determines the status of each air-conditioning unit according to the results replied by each air-conditioning unit, so as to obtain a first polling result.

[0108] S102. Determine a first online air-conditioning unit in an online state and a first offline air-conditioning unit in an offline state among the multiple air-conditioning units based on the first polling result.

[0109] In the embodiment of the present application, since the first polling result is used to represent the status of each air-conditioning unit in the multi-connected air-conditioning unit, therefore, the status of each air-conditioning unit can be directly determined according to the record of the first polling result, and the air-conditioning units in the online state are determined as the first online air-conditioning units, and the air-conditioning units in the offline state are determined as the first offline air-conditioning units.

[0110] For example, a multi-connected air-conditioning unit includes 10 air-conditioning units numbered 1-10 in sequence. During the polling process of these 10 air-conditioning units, 7 air-conditioning units numbered 1-7 reply "online", and 3 air-conditioning units numbered 8-10 do not reply. Then the corresponding first polling result is: the status of 7 air-conditioning units numbered 1-7 is the online state, and the status of 3 air-conditioning units numbered 8-10 is the offline state. Therefore, 7 air-conditioning units numbered 1-7 are determined as the first online air-conditioning units, and 3 air-conditioning units numbered 8-10 are determined as the first offline air-conditioning units.

[0111] S103. Determine a first communication rate corresponding to the multi-connected air-conditioning unit.

[0112] The first communication rate refers to the rate at which the subsequent control device sends data to multiple air-conditioning units, that is, the baud rate.

[0113] In one embodiment, the specific implementation of determining the first communication rate corresponding to the multi-connected air-conditioning unit may include the following steps:

[0114] Determine a first data length and a communication time interval corresponding to the multi-connected air-conditioning unit, where the first data length refers to the length of data transmitted before the multi-connected air-conditioning unit receives an upgrade instruction, and the communication time interval refers to the time interval between sending two data to multiple air-conditioning units;

[0115] Perform iterative processing using the following steps until a set iterative stop condition is met:

[0116] Substitute the first data length and the communication time interval into a first preset formula to obtain a second data length: L2 = t * v1 - L1 (1);

[0117] Where t is the communication time interval, L1 is the first data length, L2 is the second data length, and v1 is the communication rate, where the initial value of v1 is the highest settable rate.

[0118] Determine whether the communication rate and the second data length meet the iteration stopping condition;

[0119] If the second data length does not meet the iteration stop condition, the communication rate is reduced by a preset step value, and the corresponding second data length is calculated based on the reduced communication rate until the communication rate and the second data length meet the iteration stop condition, at which point the communication rate is determined as the first communication rate.

[0120] The iteration stopping condition is as follows: the verification error of the communication rate by the first online air conditioning unit is less than a preset threshold, and the second data length is a multiple of the data length written to the memory in a single operation.

[0121] The first data length refers to the length of data normally transmitted by the multi-split air conditioning unit, that is, the length of data transmitted before receiving the upgrade command. The communication time interval refers to the time interval between the control device sending two data packets to multiple air conditioning units.

[0122] In this embodiment, firstly, the first data length, communication time interval, and the network's maximum configurable communication rate are substituted into Formula 1 to calculate the second data length L2. It is then determined whether L2 satisfies the requirement for a single write operation to the memory. If not, the communication rate is reduced, and L2 is recalculated until L2 meets the above conditions. The communication rate at this point is then determined as the candidate rate. This ensures that subsequent transmissions of upgrade data maintain a data length that is a multiple of the memory's single write operation, thereby reducing data splicing and improving data transfer efficiency.

[0123] Next, the candidate rate is transmitted to each of the first online units in a normal communication data frame. Each first online unit verifies the candidate rate and returns the verification result. If all verification results returned by the first online units show an error less than a preset threshold (e.g., 1%), the candidate rate is determined as the first communication rate. Otherwise, the rate is reduced by a factor, and the above steps are repeated until a satisfactory communication rate is achieved.

[0124] As an example, let's illustrate the verification process of a first online unit with a candidate rate of 80000bps: First, calculate the division value = clock frequency / (division factor * set baud rate). For example, if the clock frequency used by unit 1 is 40MHz and the division factor is 16, the division value to adjust to a baud rate of 80000 needs to be set to 40MHz / (16*80000) = 31.25. The division value is generally rounded down to 31. The baud rate calculated with 31 is 40MHz / (16*31) = 80645bps. The bit error rate at this time is about 0.8%, which meets the condition that the baud rate (i.e., candidate rate) error is less than 1%. This proves that unit 1 meets the usage conditions, so unit 1 returns the usable flag.

[0125] This solution can improve the communication rate at which the control device sends data to each air conditioning unit, thereby further improving data transmission efficiency.

[0126] In another embodiment, determining the first communication rate corresponding to the multi-split air conditioning unit may further include the following steps: obtaining the original communication rate corresponding to the multi-split air conditioning unit, wherein the original communication rate refers to the rate at which the multi-split air conditioning unit transmits data before receiving the upgrade command, and determining the original communication rate as the first communication rate corresponding to the multi-split air conditioning unit. In this way, the original communication rate corresponding to the multi-split air conditioning unit can be directly determined as the first communication rate, thereby reducing the calculation process and saving computing resources.

[0127] S104, during the roll call period of the first offline air conditioning unit, the upgrade data is sent to the first online air conditioning unit according to the first communication rate.

[0128] In this embodiment of the application, after the first offline air conditioning unit is determined, the control device may not call the first offline air conditioning unit in the subsequent roll call cycle, and broadcast the upgrade data to each first online air conditioning unit according to the first communication rate during the time originally used to call the first offline air conditioning unit, thereby realizing the transmission of upgrade data.

[0129] Figure 2 This is a timing diagram showing the control device's roll call of each air conditioning unit before receiving the upgrade command, as shown below. Figure 2 As shown, the control device sequentially sends communication data for roll call to each air conditioning unit to achieve roll call for all air conditioning units.

[0130] Figure 3 This is a timing diagram illustrating how the control device sends upgrade data to each online air conditioning unit during the roll call cycle, such as... Figure 3As shown, Unit 1, Unit 2, and Unit n are online air conditioning units, while Unit 3 is an offline air conditioning unit. The control device broadcasts upgrade data during the time that would normally be used to send communication data to Unit 3 for roll call. In this way, the time that would normally be used to send data to Unit 3 can be saved to transmit upgrade data.

[0131] Specifically, sending the upgrade data to the first online air conditioning unit according to the first communication rate may include the following steps:

[0132] Step A1: Determine the first data length and communication time interval corresponding to the multi-split air conditioning unit, wherein the first data length refers to the length of data transmitted by the multi-split air conditioning unit before receiving the upgrade instruction, and the communication time interval refers to the time interval between the multiple air conditioning units sending two data.

[0133] Step A2: Substitute the first data length, the communication time interval, and the first communication rate into the second preset formula to obtain the third data length:

[0134] L3 = t * v2 - L1 (II);

[0135] Where t is the communication time interval, L1 is the first data length, L3 is the third data length, and v2 is the first communication rate;

[0136] Step A3: Divide the upgrade data according to the third data length to obtain multiple sub-upgrade data;

[0137] Step A4: Send the multiple sub-upgrade data to the first online air conditioning unit according to the first communication rate.

[0138] In this scheme, the length of each sub-upgrade data transmission can be dynamically allocated based on the final set first communication rate and the normal communication time interval, thereby ensuring that no additional communication time is generated when transmitting sub-upgrade data.

[0139] As one possible implementation, sending multiple sub-upgrade data to the first online air conditioning unit according to the first communication rate may include the following steps:

[0140] For each sub-upgrade data, the order of the sub-upgrade data in the upgrade data is determined, and the sub-upgrade data is numbered according to the order. The multiple sub-upgrade data and the number corresponding to each sub-upgrade data are sent to the first online air conditioning unit according to the first communication rate.

[0141] In this scheme, a data bit can be placed before the data bits of each frame of upgrade data to store the upgrade package number. When the upgrade data is divided into multiple sub-upgrade data, the upgrade number is assigned to each sub-upgrade data in sequence. This number allows each first online air conditioning unit to easily record the received sub-upgrade data, and after each first online air conditioning unit successfully receives all the sub-upgrade data, it can combine all the sub-upgrade data according to the corresponding number to obtain the complete upgrade data.

[0142] In the application, after the control device completes the transmission of all upgrade data, each first online air conditioning unit can, based on the corresponding number of each sub-upgrade data, count the sub-upgrade data it failed to receive, and request the control device to retransmit the corresponding data according to the count. At this time, the control device can retransmit the corresponding sub-upgrade data according to the request of the first online air conditioning unit, thereby ensuring the integrity of the data received by each first online air conditioning unit.

[0143] Furthermore, in another embodiment, after sending the plurality of sub-upgrade data to the first online air conditioning unit according to the first communication rate, the following steps may also be included:

[0144] For each sub-upgrade data, the system receives a response from the first online air conditioning unit regarding the sub-upgrade data. If the response indicates a reception failure, the system resends the sub-upgrade data to the first online air conditioning unit.

[0145] In this scheme, after the control device broadcasts each sub-upgrade data, it can receive the reception response information (including reception success and reception failure) from each first online air conditioning unit for each sub-upgrade data. When the control device receives a message from a first online air conditioning unit indicating that the reception of a certain sub-upgrade data has failed, it can resend the sub-upgrade data to the first online air conditioning unit, thereby ensuring the integrity of the data received by each first online air conditioning unit.

[0146] In this embodiment, upon receiving an upgrade command for the multi-split air conditioning unit, the process first involves acquiring upgrade data and then performing a roll call on multiple air conditioning units within the multi-split air conditioning unit to obtain a first roll call result. Based on the first roll call result, the first online air conditioning unit and the first offline air conditioning unit are identified, and a first communication rate corresponding to each multi-split air conditioning unit is determined. Finally, during the roll call period for the first offline air conditioning unit in subsequent roll call cycles, the upgrade data is sent to the first online air conditioning unit according to the first communication rate. This solution utilizes the communication time of offline air conditioning units for transmitting upgrade data, thus enabling upgrade data transmission without adding extra timing, thereby reducing data transmission time and increasing transmission speed.

[0147] See Figure 4 This is a flowchart illustrating another embodiment of the upgraded data transmission method provided in this application. Figure 4 As shown, the process may include the following steps:

[0148] S401, determine the roll call response status and data reception status of the first online air conditioning unit, wherein the roll call response status is used to characterize the online status of the first online air conditioning unit, and the data reception status is used to characterize the reception status of the first online air conditioning unit for upgrade data;

[0149] S402, if the roll call response indicates that the first online air conditioning unit is offline, or if the data reception status indicates abnormal data reception, the transmission of the upgrade data is paused, and the original communication rate corresponding to the multi-split air conditioning unit is obtained, wherein the original communication rate refers to the rate at which the multi-split air conditioning unit transmits data before receiving the upgrade instruction.

[0150] S403, re-name the multiple air conditioning units in the multi-split air conditioning unit according to the original communication rate to obtain the second naming result;

[0151] S404, based on the second naming result, determine the second online air conditioning unit and the second offline air conditioning unit that are in an online state among the plurality of air conditioning units;

[0152] S405, determine the second communication rate corresponding to the multi-split air conditioning unit, wherein the second communication rate is less than the first communication rate;

[0153] S406, during the roll call period of the second offline air conditioning unit, the upgrade data is sent to the second online air conditioning unit according to the second communication rate.

[0154] The following provides a unified explanation of S401-S406:

[0155] The roll call response status indicates the online status of the first online air conditioning unit. The data reception status indicates the reception status of the first online air conditioning unit for upgrade data.

[0156] In the application, when the first communication rate is calculated based on the first data length, communication time interval, single write data length of the memory, and Formula 1, when data is subsequently transmitted according to the first communication rate, it is possible that the first communication rate is incompatible with the multi-split air conditioning unit, causing the air conditioning unit that was originally online to go offline or to experience abnormalities in receiving upgrade data.

[0157] Based on this, in the embodiments of this application, when the first online air conditioning unit is offline in the roll call response, or when the data reception is abnormal, it is considered that the current first communication rate is not compatible with the multi-split air conditioning unit, causing the air conditioning unit that was originally online to go offline or to experience abnormal reception of upgrade data.

[0158] For example, if the number of upgrade data received by a first-line online air conditioning unit remains unchanged for more than five consecutive monitoring periods (i.e., it has not successfully received upgrade data for more than five consecutive monitoring periods), then the data reception of this first-line online air conditioning unit is considered abnormal. As another example, if a first-line online air conditioning unit fails to respond normally to indicating that it is online for more than three consecutive monitoring periods, then this first-line online air conditioning unit is considered abnormally offline.

[0159] After the above anomaly occurs, the transmission of upgrade data is paused, and the original communication rate corresponding to the multi-split air conditioning unit (i.e., the rate used to transmit data before receiving the upgrade command) is obtained. Then, the multiple air conditioning units in the multi-split air conditioning unit are re-ranked according to the original communication rate to obtain a second ranking result. In this way, the re-ranking of multiple air conditioning units in the multi-split air conditioning unit can be achieved based on the communication rate that the multi-split air conditioning unit can normally use (i.e., the original communication rate), thus ensuring the accuracy of the second ranking result.

[0160] Next, based on the results of the second point-of-sale, the second online air conditioning unit and the second offline air conditioning unit in the offline state are determined among the multiple air conditioning units. The second communication rate is recalculated according to the first data length, communication time interval, memory single write data length and Formula 1. In this calculation process, the iteration stopping conditions include the first online air conditioning unit's verification error of the communication rate being less than a preset threshold, and the second data length being a multiple of the memory single write data length, as well as the second communication rate being less than the first communication rate. Thus, a second communication rate that is less than the first communication rate can be obtained.

[0161] Finally, during the roll call period for the second offline air conditioning unit, the upgrade data is sent to the second online air conditioning unit at the second communication rate. This allows for the transmission of upgrade data at a second communication rate, lower than the first, thus avoiding a recurrence of communication rate mismatch with the multi-split air conditioning unit.

[0162] Based on the same technical concept, embodiments of this application also provide an upgraded data transmission device, such as... Figure 5 As shown, the device includes:

[0163] An acquisition module 501, configured to acquire upgrade data when receiving an upgrade instruction issued for the multi-connected air conditioner unit, and to perform naming on multiple air conditioner units in the multi-connected air conditioner unit to obtain a first naming result;

[0164] A first determination module 502, configured to determine a first online air conditioner unit in an online state and a first offline air conditioner unit in an offline state among the multiple air conditioner units based on the first naming result;

[0165] A second determination module 503, configured to determine a first communication rate corresponding to the multi-connected air conditioner unit;

[0166] A sending module 504, configured to send the upgrade data to the first online air conditioner unit at the first communication rate during the naming time of the first offline air conditioner unit in a subsequent naming cycle.

[0167] In a possible implementation manner, the second determination module is further configured to:

[0168] Determine a first data length and a communication time interval corresponding to the multi-connected air conditioner unit, where the first data length refers to the length of data transmitted before the multi-connected air conditioner unit receives the upgrade instruction, and the communication time interval refers to the time interval between sending two pieces of data to multiple air conditioner units;

[0169] Perform iterative processing using the following steps until a set iterative stop condition is met:

[0170] Substitute the first data length and the communication time interval into a first preset formula to obtain a second data length:

[0171] L2 = t * v1 - L1 (1);

[0172] Where t is the communication time interval, L1 is the first data length, L2 is the second data length, and v1 is the communication rate, where the first value of v1 is the highest rate that can be set;

[0173] Determine whether the communication rate and the second data length meet the iterative stop condition;

[0174] In the case where the second data length does not meet the iterative stop condition, lower the communication rate according to a preset step value, and calculate the corresponding second data length based on the lowered communication rate until the communication rate and the second data length meet the iterative stop condition, and then determine the communication rate as the first communication rate;

[0175] The iteration stopping condition is as follows: the verification error of the communication rate by the first online air conditioning unit is less than a preset threshold, and the second data length is a multiple of the data length written to the memory in a single operation.

[0176] In one possible implementation, the device further includes a key name module for:

[0177] The roll call response status and data reception status of the first online air conditioning unit are determined, wherein the roll call response status is used to characterize the online status of the first online air conditioning unit, and the data reception status is used to characterize the reception status of the first online air conditioning unit for upgrade data;

[0178] If the roll call response indicates that the first online air conditioning unit is offline, or if the data reception status indicates abnormal data reception, the transmission of the upgrade data is paused, and the original communication rate corresponding to the multi-split air conditioning unit is obtained, wherein the original communication rate refers to the rate at which the multi-split air conditioning unit transmits data before receiving the upgrade instruction.

[0179] The multiple air conditioning units in the multi-split air conditioning unit are re-ranked according to the original communication rate to obtain the second ranking result;

[0180] Based on the second naming result, the second online air conditioning unit and the second offline air conditioning unit in the offline state are determined among the multiple air conditioning units;

[0181] Determine the second communication rate corresponding to the multi-split air conditioning unit, wherein the second communication rate is less than the first communication rate;

[0182] During the roll call period of the second offline air conditioning unit, the upgrade data is sent to the second online air conditioning unit according to the second communication rate.

[0183] In one possible implementation, the second determining module is further configured to:

[0184] Obtain the original communication rate corresponding to the multi-split air conditioning unit, wherein the original communication rate refers to the rate at which the multi-split air conditioning unit transmits data before receiving the upgrade command;

[0185] The original communication rate is determined as the first communication rate corresponding to the multi-split air conditioning unit.

[0186] In one possible implementation, the sending module is further configured to:

[0187] The first data length and communication time interval corresponding to the multi-split air conditioning unit are determined, wherein the first data length refers to the length of data transmitted by the multi-split air conditioning unit before receiving the upgrade instruction, and the communication time interval refers to the time interval between two data transmissions by multiple air conditioning units.

[0188] Substituting the first data length, the communication time interval, and the first communication rate into the second preset formula, we obtain the third data length:

[0189] L3 = t * v2 - L1 (II);

[0190] Where t is the communication time interval, L1 is the first data length, L3 is the third data length, and v2 is the first communication rate;

[0191] The upgrade data is divided according to the third data length to obtain multiple sub-upgrade data;

[0192] The multiple sub-upgrade data are sent to the first online air conditioning unit according to the first communication rate.

[0193] In one possible implementation, the sending module is further configured to:

[0194] For each sub-upgrade data, determine the order of the sub-upgrade data in the upgrade data, and number the sub-upgrade data according to the order;

[0195] The multiple sub-upgrade data and the corresponding number of each sub-upgrade data are sent to the first online air conditioning unit according to the first communication rate.

[0196] In one possible implementation, the apparatus further includes a retransmission module for:

[0197] For each sub-upgrade data, receive the response information from the first online air conditioning unit regarding the received sub-upgrade data;

[0198] If the received response information fails to be received, the sub-upgrade data is resent to the first online air conditioning unit.

[0199] In this embodiment, upon receiving an upgrade command for the multi-split air conditioning unit, the process first involves acquiring upgrade data and then performing a roll call on multiple air conditioning units within the multi-split air conditioning unit to obtain a first roll call result. Based on the first roll call result, the first online air conditioning unit and the first offline air conditioning unit are identified, and a first communication rate corresponding to each multi-split air conditioning unit is determined. Finally, during the roll call period for the first offline air conditioning unit in subsequent roll call cycles, the upgrade data is sent to the first online air conditioning unit according to the first communication rate. This solution utilizes the communication time of offline air conditioning units for transmitting upgrade data, thus enabling upgrade data transmission without adding extra timing, thereby reducing data transmission time and increasing transmission speed.

[0200] Based on the same technical concept, embodiments of this application also provide an electronic device, such as... Figure 6 As shown, it includes a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.

[0201] Memory 113 is used to store computer programs;

[0202] When processor 111 executes a program stored in memory 113, it performs the following steps:

[0203] Upon receiving an upgrade instruction for the multi-split air conditioning unit, upgrade data is acquired, and multiple air conditioning units in the multi-split air conditioning unit are randomly selected to obtain a first selection result.

[0204] Based on the first roll call result, the first online air conditioning unit and the first offline air conditioning unit in the offline state are determined among the multiple air conditioning units;

[0205] Determine the first communication rate corresponding to the multi-split air conditioning unit;

[0206] During the roll call period of the first offline air conditioning unit, the upgrade data is sent to the first online air conditioning unit according to the first communication rate.

[0207] The communication bus mentioned in the above electronic devices can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.

[0208] The communication interface is used for communication between the aforementioned electronic devices and other devices.

[0209] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0210] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0211] In another embodiment provided in this application, a computer-readable storage medium is also provided, which stores a computer program that, when executed by a processor, implements the steps of any of the above-described upgrade data transmission methods.

[0212] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute any of the upgrade data transmission methods described above.

[0213] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0214] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software plus a general-purpose hardware platform, or of course, using hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0215] It should be understood that the terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “described” as used herein may also include the plural forms. The terms “comprising,” “including,” “containing,” and “having” are inclusive and therefore indicate the presence of the stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not construed as requiring them to be performed in a particular order described or illustrated unless the order of performance is explicitly indicated. It should also be understood that additional or alternative steps may be used.

[0216] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for upgrading data transmission, characterized in that, Applied to a multi-connected air conditioner unit, the multi-connected air conditioner unit includes a plurality of air conditioner units, and the method includes: When receiving an upgrade instruction issued for the multi-connected air conditioner unit, obtaining upgrade data, and paging the plurality of air conditioner units in the multi-connected air conditioner unit to obtain a first paging result; Based on the first paging result, determining a first online air conditioner unit in an online state and a first offline air conditioner unit in an offline state among the plurality of air conditioner units; Determining a first communication rate corresponding to the multi-connected air conditioner unit; During the paging time of the first offline air conditioner unit in a subsequent paging cycle, sending the upgrade data to the first online air conditioner unit at the first communication rate.

2. The method according to claim 1, characterized in that, The determining the first communication rate corresponding to the multi-connected air conditioner unit includes: Determining a first data length and a communication time interval corresponding to the multi-connected air conditioner unit, where the first data length refers to the length of data transmitted before the multi-connected air conditioner unit receives the upgrade instruction, and the communication time interval refers to the time interval between sending two data to the plurality of air conditioner units; Performing iterative processing using the following steps until a set iterative stop condition is met: Substituting the first data length and the communication time interval into a first preset formula to obtain a second data length: L2 = t * v1 - L1 (1); Where t is the communication time interval, L1 is the first data length, L2 is the second data length, and v1 is the communication rate, where the first value of v1 is the highest rate that can be set; Determining whether the communication rate and the second data length meet the iterative stop condition; When the second data length does not meet the iterative stop condition, reducing the communication rate according to a preset step value, and calculating the corresponding second data length based on the reduced communication rate until the communication rate and the second data length meet the iterative stop condition, and determining the communication rate as the first communication rate; Where the iterative stop condition is: the verification error of the communication rate by the first online air conditioner unit is less than a preset threshold, and the second data length is a multiple of the data length written into the memory once.

3. The method according to claim 2, characterized in that, The method further includes: Determining the paging reply situation and data reception situation corresponding to the first online air conditioner unit, where the paging reply situation is used to represent the online state of the first online air conditioner unit, and the data reception situation is used to represent the reception situation of the first online air conditioner unit for the upgrade data; When the paging reply situation is that the first online air conditioner unit is offline, or the data reception situation is abnormal data reception, suspending the sending of the upgrade data, and obtaining the original communication rate corresponding to the multi-connected air conditioner unit, where the original communication rate refers to the rate used for transmitting data before the multi-connected air conditioner unit receives the upgrade instruction; Paging the plurality of air conditioner units in the multi-connected air conditioner unit again at the original communication rate to obtain a second paging result; Based on the second naming result, the second online air conditioning unit and the second offline air conditioning unit in the offline state are determined among the multiple air conditioning units; Determine the second communication rate corresponding to the multi-split air conditioning unit, wherein the second communication rate is less than the first communication rate; During the roll call period of the second offline air conditioning unit, the upgrade data is sent to the second online air conditioning unit according to the second communication rate.

4. The method according to claim 2, characterized in that, Determining the first communication rate corresponding to the multi-split air conditioning unit includes: Obtain the original communication rate corresponding to the multi-split air conditioning unit, wherein the original communication rate refers to the rate at which the multi-split air conditioning unit transmits data before receiving the upgrade command; The original communication rate is determined as the first communication rate corresponding to the multi-split air conditioning unit.

5. The method according to claim 1, characterized in that, Sending the upgrade data to the first online air conditioning unit according to the first communication rate includes: The first data length and communication time interval corresponding to the multi-split air conditioning unit are determined, wherein the first data length refers to the length of data transmitted by the multi-split air conditioning unit before receiving the upgrade instruction, and the communication time interval refers to the time interval between two data transmissions by multiple air conditioning units. Substituting the first data length, the communication time interval, and the first communication rate into the second preset formula, we obtain the third data length: L3 = t * v2 - L1 (II); Where t is the communication time interval, L1 is the first data length, L3 is the third data length, and v2 is the first communication rate; The upgrade data is divided according to the third data length to obtain multiple sub-upgrade data; The multiple sub-upgrade data are sent to the first online air conditioning unit according to the first communication rate.

6. The method according to claim 5, characterized in that, The step of sending multiple sub-upgrade data to the first online air conditioning unit according to the first communication rate includes: For each sub-upgrade data, determine the order of the sub-upgrade data in the upgrade data, and number the sub-upgrade data according to the order; The multiple sub-upgrade data and the corresponding number of each sub-upgrade data are sent to the first online air conditioning unit according to the first communication rate.

7. The method according to claim 5, characterized in that, After sending the multiple sub-upgrade data to the first online air conditioning unit according to the first communication rate, the method further includes: For each sub-upgrade data, receive the response information from the first online air conditioning unit regarding the received sub-upgrade data; If the received response information fails to be received, the sub-upgrade data is resent to the first online air conditioning unit.

8. An upgraded data transmission device, characterized in that, Applied to multi-split air conditioning units, wherein the multi-split air conditioning unit comprises multiple air conditioning units, the device includes: The acquisition module is used to acquire upgrade data and, upon receiving an upgrade instruction for the multi-split air conditioning unit, to take a name of multiple air conditioning units in the multi-split air conditioning unit and obtain a first name-taking result. The first determining module is used to determine, based on the first naming result, a first online air conditioning unit that is in an online state and a first offline air conditioning unit that is in an offline state among the plurality of air conditioning units; The second determining module is used to determine the first communication rate corresponding to the multi-split air conditioning unit; The sending module is used to send the upgrade data to the first online air conditioning unit at the first communication rate during the roll call period of the first offline air conditioning unit in subsequent roll call cycles.

9. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the upgrade data transfer method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the upgrade data transmission method according to any one of claims 1-7.