Communication control method, device, medium and system

By selecting the host unit with the host unit identifier as the relay group in the multi-unit system, and caching and comparing the data length in each communication cycle, the problems of main host unit RAM limitation and data integrity judgment are solved, thereby improving data transmission reliability and system stability.

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

Patent Information

Application Number
CN202511124642.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-11
Publication Date
2025-11-21

AI Technical Summary

Technical Problem

In multi-unit systems, due to the limited RAM capacity of the master unit, it is difficult to cache all slave unit data at once. Furthermore, when the function of the slave unit is upgraded or its status changes, it is difficult to determine whether the cached data is complete, especially in scenarios where the number of data frames differs significantly between old and new slave units.

Method used

By selecting internal units carrying internal unit identifiers to form relay groups, the information of the relay groups is cached in each communication cycle, and their actual total length is determined and compared with the baseline total length of the corresponding internal unit identifier. If they match, a forwarding operation is performed, thus introducing an internal unit identifier and length verification mechanism.

Benefits of technology

Accurately distinguish and verify the data integrity of relayed intranet information to avoid forwarding errors caused by incomplete data, thereby improving the data transmission reliability and system stability of multi-unit systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121000784A_ABST
    Figure CN121000784A_ABST
Patent Text Reader

Abstract

The invention discloses a communication control method, device, medium and system, and the method comprises the steps: selecting a plurality of slave indoor units carrying indoor unit identifiers by a master indoor unit to form a transfer group, caching the transfer indoor unit information sent by the transfer group in each communication period, and determining the actual total length of the transfer indoor unit information; and comparing the length with the reference total length of the corresponding indoor unit identifier, and if the length is consistent with the reference total length, executing a forwarding operation. Visibly, by introducing the inner unit identifier and the length verification mechanism, the scheme can accurately distinguish and verify the data integrity of the transferred inner unit information, and effectively avoid forwarding errors caused by incomplete data, thereby significantly improving the data transmission reliability and the system stability of the multi-split air conditioning system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a communication control method, apparatus, medium, and system. Background Technology

[0002] In a multi-split air conditioning system, when centralized control is performed, such as Figure 1 As shown, device information from the indoor and outdoor units is first transmitted to the main indoor unit via the Controller Area Network (CAN) bus, and then forwarded to the centralized control device by the main indoor unit via RS-485 communication. However, due to the limited capacity of the random access memory (RAM) of the main indoor unit's microcontroller and the generally large number of slave indoor units, there is a problem that the main indoor unit cannot cache all the slave indoor unit data at once.

[0003] To address this issue, existing methods solve it by caching only a portion of the device information from the slave unit each time. While this method alleviates RAM caching limitations to some extent, the need to transmit device information increases due to continuous upgrades to slave unit functions or changes in slave unit status, potentially resulting in an increase in the number of data frames sent by some slave units. Furthermore, when the system contains a mix of old and new slave units, the difference in the number of data frames between the old and new units makes it difficult for the microcontroller of the master slave unit to determine the completeness of the cached data when only caching a portion of the slave unit's data. Summary of the Invention

[0004] Therefore, it is necessary to provide communication control methods, devices, media, and systems to solve the problem that existing technologies have difficulty in determining whether cached internal data is complete.

[0005] In a first aspect, embodiments of this application provide a communication control method applied to a main unit, the method comprising:

[0006] Select multiple slave units as relay groups; each slave unit has a corresponding slave unit identifier;

[0007] Within the current communication cycle, cache the relay internal information sent by the relay group and determine the actual total length of the relay internal information;

[0008] If the actual total length is consistent with the baseline total length of the corresponding in-unit identifier, then the transit in-unit information is forwarded.

[0009] In some embodiments of this application, the number of slave units in the relay group is a preset number, and selecting multiple slave units as the relay group includes:

[0010] Based on the internal unit identifier, all internal units are divided into a first internal unit and a second internal unit; wherein, the first internal unit has a higher priority than the second internal unit.

[0011] Among all currently unforwarded slave units, the relay group is determined based on the number of the first slave units; wherein, if the number of the first slave units is greater than a preset number, then the preset number of first slave units are used as the relay group;

[0012] If the number of first slave units is less than the preset number, then all combinations of first slave units and second slave units are used as the transfer group;

[0013] If the first slave unit does not exist, a preset number of second slave units will be used as the relay group.

[0014] In some embodiments of this application, the internal unit identifier includes an operating status code and a device manufacturing batch code. The step of classifying all slave internal units into first slave internal units and second slave internal units based on the internal unit identifier includes:

[0015] Based on the operating status codes, all internal machines are divided into faulty internal machines and non-faulty internal machines, with the faulty internal machine designated as the first internal machine and the non-faulty internal machine designated as the second internal machine; and / or,

[0016] Based on the batch number of the equipment, all internal units are divided into new internal units and old internal units, with the new internal units designated as the first internal unit and the old internal units designated as the second internal unit.

[0017] In some embodiments of this application, the transit inn information includes the slave inn information of each slave inn in the transit group, the actual total length of the transit inn information includes the unit total length of each slave inn information, and if the actual total length is consistent with the reference total length of the corresponding inn identifier, then the transit inn information is forwarded, including:

[0018] If the total length of each unit of internal information is consistent with the base total length of the corresponding internal identifier, then the internal information is forwarded.

[0019] In some embodiments of this application, the transit inn information includes the slave inn information of each slave inn in the transit group, the actual total length of the transit inn information includes the sum of the unit total lengths of all slave inn information, and if the actual total length is consistent with the reference total length of the corresponding inn identifier, then the transit inn information is forwarded, including:

[0020] Add up the base total lengths of all the interior unit identifiers corresponding to the transfer group to obtain the total base length.

[0021] If the total length of the units is consistent with the total length of the baseline, then the transit internal information is forwarded.

[0022] In some embodiments of this application, the internal machine identifier includes the internal machine address, and the method for obtaining the baseline total length includes:

[0023] If the total unit length of the slave information sent by the target slave device remains consistent for a preset number of consecutive times, then the total unit length is taken as the reference total length of the target slave device; wherein, the target slave device is any one of all slave devices.

[0024] In some embodiments of this application, the main internal unit includes a first buffer and a second buffer. The first buffer is used to cache relay internal unit information sent by the relay group in the current communication cycle, and the second buffer is used to cache relay internal unit information sent by the relay group in the next communication cycle. The method further includes:

[0025] If the actual total length is inconsistent with the baseline total length of the corresponding internal unit identifier, the transit internal unit information in the first buffer area is cleared, and the consistency between the actual total length of the transit internal unit information in the second buffer area and the baseline total length of the corresponding internal unit identifier is verified.

[0026] Secondly, embodiments of this application also provide a communication control device, the communication control device comprising:

[0027] The relay group module is used to select multiple slave units as relay groups; each slave unit has a corresponding slave unit identifier.

[0028] The actual total length determination module is used to cache the relay internal information sent by the relay group within the current communication cycle and determine the actual total length of the relay internal information;

[0029] The forwarding module is used to forward the transit in-house information if the actual total length is consistent with the baseline total length of the corresponding in-house identifier.

[0030] Thirdly, embodiments of this application also provide a multi-unit system, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps in the communication control method described above.

[0031] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in the communication control method described above.

[0032] Fifthly, embodiments of this application also provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations described in embodiments of this application.

[0033] This invention provides a communication control method, apparatus, medium, and system. It involves a master internal unit selecting multiple slave internal units carrying internal unit identifiers to form a relay group. During each communication cycle, the relay group's transmitted internal unit information is cached, and its actual total length is determined. This length is then compared with the baseline total length of the corresponding internal unit identifier. If they match, a forwarding operation is performed. Therefore, by introducing internal unit identifiers and a length verification mechanism, this solution can accurately distinguish and verify the data integrity of relay internal unit information, effectively avoiding forwarding errors caused by incomplete data, thereby significantly improving the data transmission reliability and system stability of multi-connector systems. Attached Figure Description

[0034] 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, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0035] in:

[0036] Figure 1 This is a schematic diagram of a multi-split air conditioning system;

[0037] Figure 2 A flowchart illustrating the communication control method provided in the first embodiment of this application;

[0038] Figure 3 A flowchart illustrating the communication control method provided in the second embodiment of this application;

[0039] Figure 4 This is a schematic diagram of the communication control device.

[0040] Figure 5 This is a block diagram of a multi-split air conditioning system. Detailed Implementation

[0041] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0042] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0043] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0044] Please see Figure 2 , Figure 2 This is a flowchart illustrating the communication control method provided in the first embodiment of this application. Although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown in the figures. Specifically, the communication control method provided in the first embodiment of this application is applied to the main internal unit, and the specific flow of the communication control method provided in the first embodiment of this application is as follows:

[0045] S201, select multiple internal units as relay groups.

[0046] Each slave internal unit has a corresponding internal unit identifier. This identifier is a unique identifier assigned to each slave internal unit, which can be a number, character code, or a combination of number and character codes, used to distinguish different slave internal units or represent internal unit information. Internal unit identifiers include, but are not limited to, the IP address, operating status code, and device batch code. The relay group is a subset of internal units selected from multiple slave internal units, used to prioritize buffering and forwarding device information to the master internal unit during the current communication cycle, thereby alleviating the RAM capacity limitations of the master internal unit.

[0047] Optionally, a relay group can be selected from all slave units in the system based on a preset order. For example, the slave units with the smallest IP addresses or numbers can be selected as the relay group.

[0048] Alternatively, the relay group can be dynamically determined based on the real-time operating status of the slave units. For example, the master slave unit first collects the operating status information (current operating load, communication frequency, or amount of data to be transmitted) of all slave units via the CAN bus. Then, slave units with active operating status (such as high data transmission demand or heavy operating load) are selected to form a relay group. This ensures that critical data is transmitted preferentially. Of course, other methods are also possible, and no specific limitations are made here.

[0049] S202, within the current communication cycle, buffer the relay internal information sent by the relay group and determine the actual total length of the relay internal information.

[0050] The current communication cycle refers to a fixed time period during which the master and slave units in a multi-split air conditioning system exchange data via the CAN bus. The relay unit information refers to the set of device information sent by each slave unit in the relay group to the master unit via the CAN bus, including the operating status, temperature, and fault codes of each slave unit. The actual total length refers to the actual data length occupied by the relay unit information.

[0051] Optionally, the relay internal unit information includes the slave internal unit information of each slave internal unit in the relay group, and the actual total length of the relay internal unit information includes the unit total length TotalLen of each slave internal unit information. Here, slave internal unit information refers to the independent device information sent by a single slave internal unit.

[0052] Specifically, in CAN communication, data is transmitted in frames, each containing a fixed-length data field, typically with a maximum payload of 8 bytes per frame. However, a slave device's information often includes multiple parameters or status data, which a single frame cannot contain. Therefore, multiple CAN data frames are needed for complete transmission. For example, a slave device's information might include temperature information (1 frame), operating mode (1 frame), and fault code (1 frame), totaling 3 frames. Therefore, for each slave device, the system collects all CAN data frames it sends and calculates the payload length of each frame (in bytes, e.g., frame 1 is 8 bytes, frame 2 is 6 bytes, and frame 3 is 4 bytes). By adding the lengths of these frames, the total length of the slave device's information can be obtained; for example, the total length of the 3 frames mentioned above is 8 + 6 + 4 = 18 bytes.

[0053] Alternatively, the relay internal information includes the internal information of each slave internal unit in the relay group, and the actual total length of the relay internal information includes the sum of the unit total lengths of all slave internal unit information. For example, if there are three slave internal units in the relay group, with corresponding unit total lengths of 18 bytes, 12 bytes, and 10 bytes respectively, then the actual total length of the relay internal information is 18 + 12 + 10 = 40 bytes.

[0054] The above-mentioned individual and group statistics can provide a valid basis for the system to subsequently determine whether the information received is complete.

[0055] S203 If the actual total length is consistent with the baseline total length of the corresponding intranet identifier, then the transit intranet information will be forwarded.

[0056] The reference total length, VerifyTotalLen, refers to the expected data length of the relayed insider information corresponding to a specific insider identifier. It is used to compare with the actual total length to verify data integrity. Forwarding processing refers to the process by which the main insider, after confirming the integrity of the relayed insider information, transmits the information to the centralized control equipment via RS-485 communication.

[0057] In some embodiments of this application, the baseline total length is obtained as follows: During system testing or historical forwarding, the master internal machine continuously records the unit total length sent by each slave internal machine. When the unit total length of a slave internal machine remains consistent and reaches a preset number of times (e.g., 3 times, or any value X according to actual needs) in multiple consecutive cycles, the unit total length can be determined as the baseline total length of that slave internal machine.

[0058] It is understandable that the above process applies to all slave internal machines, meaning that each slave internal machine can independently determine its corresponding baseline total length using this method. To facilitate subsequent judgment and data processing, the master internal machine associates the baseline total length of each slave internal machine with its unique internal machine identifier and records this correspondence in a preset data structure (such as a mapping table, hash table, or database) for real-time retrieval and comparison during communication.

[0059] In some embodiments of this application, the master internal unit will perform integrity checks on the information of each slave internal unit in the relay group. Specifically, if the total length of each slave internal unit's information is consistent with the baseline total length of the corresponding internal unit identifier, the data reception of the entire relay group is determined to be complete, and the relay internal unit information is forwarded. Conversely, if the total length of a slave internal unit's information is inconsistent with the baseline total length of the corresponding internal unit identifier, the data reception of the entire relay group is determined to be incomplete. In this case, the master internal unit will not forward the information, but will restart receiving the slave internal unit's information in the next CAN communication cycle and recalculate its total length for comparison until the total length of each slave internal unit's information is consistent with the baseline total length of the corresponding internal unit identifier before forwarding.

[0060] In some embodiments of this application, the main internal unit can also perform verification based on a summary judgment method. Specifically, the reference total length of all internal unit identifiers corresponding to the relay group is added together to obtain the reference total length sum. If the unit total length sum is consistent with the reference total length sum, it is determined that the data reception of the entire relay group is complete, and the relay internal unit information is forwarded. Conversely, if the unit total length sum is inconsistent with the reference total length sum, it is determined that the data reception of the entire relay group is incomplete. In this case, the main internal unit will not perform forwarding processing, but will restart receiving the relay internal unit information of the relay group in the next CAN communication cycle, and recalculate its unit total length sum to continue comparison until the unit total length sum of the relay group is consistent with the reference total length sum before forwarding processing.

[0061] Understandably, the two judgment strategies mentioned above can be flexibly selected by the master internal machine according to actual needs. They support both comparison one by one by the slave internal machines and overall consistency verification, thereby improving the accuracy and processing efficiency of data forwarding.

[0062] Furthermore, the master internal unit can select other slave internal units that have not yet completed data forwarding to form a new current relay group, repeating the above-mentioned receiving, statistics, and judgment process. This process continues until all data from all slave internal units in the relay group has been fully received and information forwarded, ensuring the integrity and stability of the entire centralized control communication process.

[0063] In the above embodiment, the master internal unit selects multiple slave internal units carrying internal unit identifiers to form a relay group. During each communication cycle, the relay group's transmitted internal unit information is cached, and its actual total length is determined. This length is then compared with the baseline total length of the corresponding internal unit identifier. If they match, a forwarding operation is performed. Therefore, by introducing internal unit identifiers and a length verification mechanism, this solution can accurately distinguish and verify the data integrity of the relay internal unit information, effectively avoiding forwarding errors caused by incomplete data, thereby significantly improving the data transmission reliability and system stability of the multi-connector system.

[0064] Please see Figure 3 , Figure 3 This is a flowchart illustrating the communication control method provided in the second embodiment of this application. Although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown in the figures. Specifically, the communication control method provided in the second embodiment of this application is applied to the main internal unit, and the specific flow of the communication control method provided in the second embodiment of this application is as follows:

[0065] S301, based on the internal unit identifier, divides all internal units into the first internal unit and the second internal unit.

[0066] Among them, the first slave unit has a higher priority than the second slave unit.

[0067] In some embodiments of this application, the internal unit identifier includes an operating status code and a device manufacturing batch code. S301, which divides all internal units into first internal units and second internal units based on the internal unit identifier, specifically includes the following steps: dividing all internal units into faulty internal units and non-faulty internal units based on the operating status code, designating the faulty internal unit as the first internal unit, and the non-faulty internal unit as the second internal unit. And / or, dividing all internal units into new internal units and old internal units based on the device manufacturing batch code, designating the new internal unit as the first internal unit, and the old internal unit as the second internal unit.

[0068] The operating status code is a code that reflects the current operating status of the internal unit. Based on the operating status code, further information such as fault status, operating load, or communication frequency can be obtained. The equipment batch code is an identifier assigned to the internal unit during production, used to reflect the production batch or version of the equipment.

[0069] Optionally, the master internal unit can classify internal units into faulty internal units and non-faulty internal units according to fault judgment rules defined in the protocol (such as specific fault indicators in status codes). Faulty internal units are designated as the first internal unit because their data needs to be transmitted with priority to support fault diagnosis; non-faulty internal units are designated as the second internal unit, with lower data priority. Furthermore, if multiple fault types exist in the system, the master internal unit can further prioritize the first internal units based on the severity of the fault. For example, if the running status code indicates a serious fault in a certain internal unit (such as compressor shutdown, communication interruption, etc.), then that internal unit will be ranked higher among the first internal units.

[0070] Optionally, the master internal unit can classify internal units into new and old slave internal units based on a predefined batch threshold (such as the production year 2024 or version number XXX). New slave internal units, due to their newer functionality and longer data frame length, are designated as the first slave internal unit to prioritize data transmission; old slave internal units, due to their older functionality and shorter data frame length, are designated as the second slave internal unit. Furthermore, if multiple batches of new slave internal units exist in the system, the master internal unit can further sort the first slave internal units according to the order of their batch codes (such as from newest to oldest). For example, the newest batch of slave internal units will be listed first in the sorting of the first slave internal units.

[0071] Optionally, after the division is completed, the master internal unit updates the internal unit identifier list and records the classification status of each slave internal unit.

[0072] S302, among all currently unforwarded slave units, determine the relay group based on the number of the first slave unit.

[0073] If the number of first slave internals is greater than a preset number, the master internal machine will preferentially select a preset number of first slave internals as the relay group for this cycle. If the number of first slave internals is less than the preset number, the master internal machine will select all first slave internals and supplement the required number from second slave internals to form a mixed relay group. If there are no first slave internals among the currently unforwarded slave internals, the master internal machine will select a preset number of slave internals from the second slave internals to form a relay group. This preset number can be a manually set value (such as 3 or 5) or can be dynamically calculated based on the cache capacity of the master internal machine.

[0074] Furthermore, the master unit can combine the two sorting rules in S301 to jointly sort the first slave unit, and prioritize the first slave unit with the higher sorting to be the relay group for the current communication cycle, so as to improve the timeliness of fault propagation and the response efficiency of new equipment initialization.

[0075] For example, taking a system with 8 slave internals, 3 of which are first slave internals and 5 are second slave internals, with a preset relay group of 3: If all 3 first slave internals are communicating normally and have not participated in the previous round of forwarding, the master internal machine directly selects these 3 first slave internals to form the relay group for this cycle; if only 1 first slave internal is communicating well, the master internal machine selects this first slave internal and selects 2 from the second slave internals to make up the difference, forming a 1+2 hybrid relay group; if all first slave internals are currently unavailable, the master internal machine selects 3 from the second slave internals as the relay group for this cycle.

[0076] Understandably, by prioritizing the first slave unit in the relay group, S301-S302 enable the master unit to process slave units with uncertain data frame structures, frequent fault states, or large amounts of information as early as possible, while also reducing the risk of these devices interfering with data caching and decision-making logic in subsequent communication cycles. Meanwhile, placing the second slave unit, which has a stable state and a clear structure, in the subsequent relay group allows for the orderly processing of remaining data, provided that the master unit's cache resources are under control.

[0077] S303, within the current communication cycle, buffers the relay internal information sent by the relay group and determines the actual total length of the relay internal information.

[0078] S304 If the actual total length is consistent with the baseline total length of the corresponding intranet identifier, then the transit intranet information will be forwarded.

[0079] In some embodiments of this application, the main internal unit includes a first buffer and a second buffer. The first buffer is used to cache relay internal unit information sent by the relay group in the current communication cycle, and the second buffer is used to cache relay internal unit information sent by the relay group in the next communication cycle. The above embodiments may also perform the following steps: if the actual total length is inconsistent with the baseline total length of the corresponding internal unit identifier, then the relay internal unit information in the first buffer is cleared, and the consistency between the actual total length of the relay internal unit information in the second buffer and the baseline total length of the corresponding internal unit identifier is verified.

[0080] It is understandable that clearing the relay internal machine information in the first buffer is to free up storage space and avoid forwarding erroneous data. Simultaneously, the above embodiment is based on a dual-buffering mechanism. While clearing the first buffer, it immediately verifies whether the actual total length of the relay internal machine information in the second buffer matches the preset baseline total length. Since the second buffer caches relay internal machine information from the same relay group for the next communication cycle, if the verification is successful, the main internal machine can still continue forwarding using the pre-cached relay data in the second buffer. Of course, after freeing up storage space, the first buffer can also continue to cache relay internal machine information sent by the relay group in subsequent communication cycles, thus allowing for continued verification even if the second buffer fails to cache the information.

[0081] This allows for the rapid use of backup cache information when an anomaly occurs in a single cycle, rather than waiting for the next communication cycle, thereby effectively improving the real-time performance and reliability of relay data processing.

[0082] To facilitate better implementation of the communication control method of this application, this application also provides a communication control device based on the above-described communication control method. The meanings of the terms used are the same as in the above-described communication control method, and specific implementation details can be found in the descriptions of the method embodiments.

[0083] Please see Figure 4 , Figure 4 This is a schematic diagram of the communication control device provided in the embodiments of this application, which may specifically include:

[0084] The relay group module 401 is used to select multiple slave units as a relay group; each slave unit has a corresponding slave unit identifier.

[0085] The actual total length determination module 402 is used to cache the relay internal information sent by the relay group within the current communication cycle and determine the actual total length of the relay internal information.

[0086] The forwarding module 403 is used to forward the transit intranet information if the actual total length is consistent with the baseline total length of the corresponding intranet identifier.

[0087] In the above embodiment, the relay group module 401 is used to form a relay group by selecting multiple slave units carrying slave unit identifiers from the master slave unit. The actual total length determination module 402 is used to cache the relayed slave unit information sent by the relay group in each communication cycle and determine its actual total length. The forwarding module 403 is used to compare the length with the baseline total length of the corresponding slave unit identifier. If they match, a forwarding operation is performed. It can be seen that by introducing slave unit identifiers and length verification mechanisms, this solution can accurately distinguish and verify the data integrity of the relayed slave unit information, effectively avoiding forwarding errors caused by incomplete data, thereby significantly improving the data transmission reliability and system stability of the multi-connector system.

[0088] In some embodiments of this application, the number of slave devices in a relay group is a preset number. Selecting multiple slave devices as a relay group includes: dividing all slave devices into first slave devices and second slave devices based on the device identifier; wherein, the first slave device has a higher priority than the second slave device; among all currently unforwarded slave devices, determining a relay group based on the number of first slave devices; wherein, if the number of first slave devices is greater than the preset number, then the preset number of first slave devices are used as a relay group; if the number of first slave devices is less than the preset number, then all combinations of first and second slave devices are used as a relay group; if there are no first slave devices, then the preset number of second slave devices are used as a relay group.

[0089] In some embodiments of this application, the internal unit identifier includes an operating status code and a device manufacturing batch code. Based on the internal unit identifier, all internal units are divided into first internal units and second internal units, including: based on the operating status code, all internal units are divided into faulty internal units and non-faulty internal units, with the faulty internal unit designated as the first internal unit and the non-faulty internal unit designated as the second internal unit; and / or, based on the device manufacturing batch code, all internal units are divided into new internal units and old internal units, with the new internal unit designated as the first internal unit and the old internal unit designated as the second internal unit.

[0090] In some embodiments of this application, the relayed internal information includes the internal information of each internal unit in the relay group. The actual total length of the relayed internal information includes the unit total length of each internal unit information. If the actual total length is consistent with the baseline total length of the corresponding internal unit identifier, the relayed internal information is forwarded. This includes: if the unit total length of each internal unit information is consistent with the baseline total length of the corresponding internal unit identifier, the relayed internal information is forwarded.

[0091] In some embodiments of this application, the relayed internal information includes the internal information of each internal unit in the relay group. The actual total length of the relayed internal information includes the sum of the unit total lengths of all internal unit information. If the actual total length is consistent with the baseline total length of the corresponding internal unit identifier, the relayed internal information is forwarded, including: adding the baseline total lengths of all internal unit identifiers corresponding to the relay group to obtain the baseline total length sum; if the unit total length sum is consistent with the baseline total length sum, the relayed internal information is forwarded.

[0092] In some embodiments of this application, the internal machine identifier includes the internal machine address, and the method for obtaining the reference total length includes: if the unit total length of the internal machine information sent by the target internal machine remains consistent for a preset number of consecutive times, then the unit total length is taken as the reference total length of the target internal machine; wherein, the target internal machine is any one of all internal machines.

[0093] In some embodiments of this application, the main internal unit includes a first buffer and a second buffer. The first buffer is used to cache the relay internal unit information sent by the relay group in the current communication cycle, and the second buffer is used to cache the relay internal unit information sent by the relay group in the next communication cycle. The method further includes: if the actual total length is inconsistent with the reference total length of the corresponding internal unit identifier, then the relay internal unit information in the first buffer is cleared, and the consistency between the actual total length of the relay internal unit information in the second buffer and the reference total length of the corresponding internal unit identifier is verified.

[0094] In addition, this application also provides a multi-unit system, such as Figure 5 As shown, it illustrates the structural diagram of the multi-unit system involved in this application, specifically:

[0095] The multi-unit system may include components such as a processor 501 with one or more processing cores, a memory 502 with one or more computer-readable storage media, a power supply 503, and an input unit 504. Those skilled in the art will understand that... Figure 5 The multi-split air conditioning system structure shown does not constitute a limitation on the multi-split air conditioning system. It may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:

[0096] The processor 501 is the control center of the multi-unit system. It connects various parts of the system via various interfaces and lines, and performs various functions and processes data by running or executing software programs and / or modules stored in the memory 502, and by calling data stored in the memory 502, thereby providing overall monitoring of the multi-unit system. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 501.

[0097] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function, etc.; the data storage area may store data created according to the use of the multi-network system, etc. In addition, the memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.

[0098] The multi-unit system also includes a power supply 503 that supplies power to each component. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 503 may also include one or more DC or AC power supplies, recharging systems, power equipment debugging circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0099] The multi-unit system may also include an input unit 504, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0100] Although not shown, the multi-unit system may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 501 in the multi-unit system will load the executable files corresponding to the processes of one or more application programs into the memory 502 according to the following instructions, and the processor 501 will run the application programs stored in the memory 502, thereby realizing the steps in any of the communication control methods provided in this application embodiment: selecting multiple slave units as relay groups; wherein, each slave unit has a corresponding unit identifier; during the current communication cycle, caching the relay unit information sent by the relay group and determining the actual total length of the relay unit information; if the actual total length is consistent with the baseline total length of the corresponding unit identifier, then the relay unit information is forwarded.

[0101] In the above embodiment, the master internal unit selects multiple slave internal units carrying internal unit identifiers to form a relay group. During each communication cycle, the relay group's transmitted internal unit information is cached, and its actual total length is determined. This length is then compared with the baseline total length of the corresponding internal unit identifier. If they match, a forwarding operation is performed. Therefore, by introducing internal unit identifiers and a length verification mechanism, this solution can accurately distinguish and verify the data integrity of the relay internal unit information, effectively avoiding forwarding errors caused by incomplete data, thereby significantly improving the data transmission reliability and system stability of the multi-connector system.

[0102] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0103] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0104] Therefore, this application provides a computer-readable storage medium storing a computer program that can be loaded by a processor to execute the steps of any of the communication control methods provided in this application.

[0105] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0106] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0107] Since the instructions stored in the computer-readable storage medium can execute the steps of any of the communication control methods provided in this application, the beneficial effects that any of the communication control methods provided in this application can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.

[0108] The foregoing has provided a detailed description of a communication control method, apparatus, multi-unit system, and computer-readable storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A communication control method, characterized in that, Applied to the main internal unit, the method includes: Select multiple slave units as relay groups; each slave unit has a corresponding slave unit identifier; Within the current communication cycle, cache the relay internal information sent by the relay group and determine the actual total length of the relay internal information; If the actual total length is consistent with the baseline total length of the corresponding in-unit identifier, then the transit in-unit information is forwarded.

2. The communication control method according to claim 1, characterized in that, The number of slave units in the relay group is a preset number, and the selection of multiple slave units as a relay group includes: Based on the internal unit identifier, all internal units are divided into a first internal unit and a second internal unit; wherein, the first internal unit has a higher priority than the second internal unit. Among all currently unforwarded slave units, the relay group is determined based on the number of the first slave units; wherein, if the number of the first slave units is greater than a preset number, then the preset number of first slave units are used as the relay group; If the number of first slave units is less than the preset number, then all combinations of first slave units and second slave units are used as the transfer group; If the first slave unit does not exist, a preset number of second slave units will be used as the relay group.

3. The communication control method according to claim 2, characterized in that, The indoor unit identifier includes an operating status code and a device manufacturing batch code. The process of classifying all slave indoor units into first slave indoor units and second slave indoor units based on the indoor unit identifier includes: Based on the operating status codes, all internal machines are divided into faulty internal machines and non-faulty internal machines, with the faulty internal machine designated as the first internal machine and the non-faulty internal machine designated as the second internal machine; and / or, Based on the batch number of the equipment, all internal units are divided into new internal units and old internal units, with the new internal units designated as the first internal unit and the old internal units designated as the second internal unit.

4. The communication control method according to claim 1, characterized in that, The relay inn information includes the slave inn information of each slave inn in the relay group. The actual total length of the relay inn information includes the unit total length of each slave inn information. If the actual total length is consistent with the baseline total length of the corresponding inn identifier, then the relay inn information is forwarded, including: If the total length of each unit of internal information is consistent with the base total length of the corresponding internal identifier, then the internal information is forwarded.

5. The communication control method according to claim 1, characterized in that, The relay in-flight information includes the slave in-flight information of each in-flight unit in the relay group. The actual total length of the relay in-flight information includes the sum of the unit total lengths of all in-flight information. If the actual total length is consistent with the baseline total length of the corresponding in-flight identifier, then the relay in-flight information is forwarded, including: Add up the base total lengths of all the interior unit identifiers corresponding to the transfer group to obtain the total base length. If the total length of the units is consistent with the total length of the baseline, then the transit internal information is forwarded.

6. The communication control method according to claim 1, characterized in that, The internal unit identifier includes the internal unit address, and the method for obtaining the baseline total length includes: If the total unit length of the slave information sent by the target slave device remains consistent for a preset number of consecutive times, then the total unit length is taken as the reference total length of the target slave device; wherein, the target slave device is any one of all slave devices.

7. The communication control method according to claim 1, characterized in that, The main internal unit includes a first buffer and a second buffer. The first buffer is used to cache relay internal unit information sent by the relay group in the current communication cycle, and the second buffer is used to cache relay internal unit information sent by the relay group in the next communication cycle. The method further includes: If the actual total length is inconsistent with the baseline total length of the corresponding internal unit identifier, the transit internal unit information in the first buffer area is cleared, and the consistency between the actual total length of the transit internal unit information in the second buffer area and the baseline total length of the corresponding internal unit identifier is verified.

8. A communication control device, characterized in that, The communication control device includes: The relay group module is used to select multiple slave units as relay groups; each slave unit has a corresponding slave unit identifier. The actual total length determination module is used to cache the relay internal information sent by the relay group within the current communication cycle and determine the actual total length of the relay internal information; The forwarding module is used to forward the transit in-house information if the actual total length is consistent with the baseline total length of the corresponding in-house identifier.

9. A computer-readable storage medium, characterized in that, The device stores a computer program that, when executed by a processor, causes the processor to perform the steps of the method as described in any one of claims 1 to 7.

10. A multi-split air conditioning system, characterized in that, It includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Air conditioner unit control method and air conditioner unit

    CN109506324A

  • Multi-split communication method and device, electronic equipment and storage medium

    CN116465057A

  • Verification method, device and equipment of air conditioner controller, storage medium and air conditioner

    CN118669960A

  • Air conditioner pipeline anti-oxidation control method and device, air conditioner equipment and storage medium

    CN120368453A

  • Techniques for accessing devices through a set of serial buses

    US7188202B1