Data transmission method and device, multi-split air conditioner and storage medium

CN122994832APending Publication Date: 2026-10-27GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610963700.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-30
Publication Date
2026-10-27

AI Technical Summary

Technical Problem

[0005]为了解决上述当接入的机组设备数量较多、同期数据传输量大时,无调度的透传模式容易造成数据链路阻塞,引发数据丢失、传输延迟、传输效率低等问题,直接导致手机APP数据更新迟缓、状态显示不准,大幅影响用户使用体验,无法满足多机组场景下稳定、高效的数据传输监控需求的技术问题,本申请提供了一种数据传输方法、装置、多联机空调及存储介质,多联机空调为节能型空调

Benefits of technology

[0017]本申请实施例提供的上述技术方案与现有技术相比具有如下优点:本申请实施例提供的该数据传输方法,分别接收各路串口传输的机组设备数据,并将机组设备数据作为待转发数据转移至无线传输缓存区,获取无线传输缓存区中待转发数据的无线数据量以及预设的无线缓存区门限值,根据无线数据量与无线缓存区门限值判定数据负载状态,并选取对应的数据转发模式,按照选定的数据转发模式,将无线传输缓存区中的待转发数据通过无线传输转发至终端设备。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122994832A_ABST
    Figure CN122994832A_ABST
Patent Text Reader

Abstract

The application relates to a data transmission method and device, a multi-connected air conditioner and a storage medium. The multi-connected air conditioner is an energy-saving air conditioner. The method comprises the following steps: receiving unit equipment data transmitted through a serial port respectively, and transferring the unit equipment data to a wireless transmission buffer area as to-be-transferred data; acquiring a wireless data amount of the to-be-transferred data in the wireless transmission buffer area and a preset wireless buffer area threshold value; determining a data load state according to the wireless data amount and the wireless buffer area threshold value, and selecting a corresponding data transfer mode; and transferring the to-be-transferred data in the wireless transmission buffer area to a terminal device through wireless transmission according to the selected data transfer mode. In this way, the transmission strategy can be dynamically adjusted according to real-time data load, data congestion and loss problems in a large data amount concurrent scene can be effectively avoided, the overall data transmission efficiency is improved, the real-time performance and completeness of the data received by the terminal device are guaranteed, and the terminal interactive use experience is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a data transmission method, apparatus, multi-split air conditioner, and storage medium. Background Technology

[0002] Multi-split air conditioners are now widely used in various building scenarios. To achieve intelligent management, the industry generally adopts mobile APP to monitor the status and intelligently control the multi-split units. By obtaining the unit's operating data and issuing control commands in real time through the mobile terminal, the convenience of operation, maintenance and use of air conditioning equipment is effectively improved.

[0003] Currently, data interaction between multi-split air conditioners and mobile apps mainly relies on multi-serial-port Bluetooth adapters. This device connects multiple serial ports and Bluetooth modules via an MCU. Each serial port is responsible for collecting the corresponding unit's operating data, and then forwards the data directly to the mobile app via Bluetooth pass-through. This completes the transmission and interaction of unit data. It has a simple structure, is easy to deploy, and is widely used.

[0004] However, the existing Bluetooth pass-through transmission method has obvious shortcomings. When there are a large number of connected unit devices and a large amount of data is transmitted at the same time, the pass-through mode without scheduling is prone to data link blockage, causing problems such as data loss, transmission delay, and low transmission efficiency. This directly leads to slow data updates and inaccurate status display in the mobile APP, which greatly affects the user experience and cannot meet the stable and efficient data transmission monitoring requirements in multi-unit scenarios. Summary of the Invention

[0005] To address the issues raised above, where a large number of connected units and high concurrent data transmission volumes can lead to data link congestion in the un-scheduled transparent transmission mode, resulting in data loss, transmission delays, and low transmission efficiency, directly causing slow data updates and inaccurate status displays on the mobile app, significantly impacting user experience and failing to meet the stable and efficient data transmission monitoring requirements in multi-unit scenarios, this application provides a data transmission method, device, multi-split air conditioner, and storage medium. The multi-split air conditioner is an energy-saving type. The specific technical solution is as follows: Firstly, this application provides a data transmission method, the method comprising: The system receives data from each serial port of the equipment and transfers the equipment data to the wireless transmission buffer as data to be forwarded. Obtain the amount of wireless data to be forwarded in the wireless transmission buffer and the preset wireless buffer threshold value; The data load status is determined based on the wireless data volume and the wireless buffer threshold, and the corresponding data forwarding mode is selected. According to the selected data forwarding mode, the data to be forwarded in the wireless transmission buffer is forwarded to the terminal device via wireless transmission.

[0006] In an optional implementation, the method further includes, before execution: Scan the status of each serial port. For any serial port, if the status of the serial port indicates that the serial port is online, establish a serial port buffer corresponding to the serial port. The step of receiving the equipment data transmitted from each serial port and transferring the equipment data to the wireless transmission buffer as data to be forwarded includes: Receive the unit equipment data transmitted via the serial port, and cache the unit equipment data in the serial port buffer area corresponding to the serial port; Determine the data attributes of the unit equipment data, and mark the priority of the unit equipment data according to the data attributes; The data from the unit equipment is transferred to the wireless transmission buffer as data to be forwarded.

[0007] In an optional implementation, the step of determining the data load status based on the wireless data volume and the wireless buffer threshold, and selecting the corresponding data forwarding mode, includes: When the amount of wireless data is less than the threshold value of the wireless buffer, the data load state is determined to be the first data load state, and the real-time transmission mode is selected as the data forwarding mode. When the amount of wireless data is greater than or equal to the threshold value of the wireless buffer, the data load state is determined to be the second data load state, and the priority mode is selected as the data forwarding mode. The first data load state is lower than the second data load state.

[0008] In an optional implementation, when the data forwarding mode is a priority mode, after forwarding the data to be forwarded in the wireless transmission buffer to the terminal device via wireless transmission according to the selected data forwarding mode, the method further includes: Obtain the amount of serial port data of the unit equipment data in the serial port buffer corresponding to each serial port and the preset serial port buffer threshold value; When the amount of serial port data is greater than or equal to the threshold value of the serial port buffer, a data flow control command is sent to the unit equipment corresponding to the serial port, so that the unit equipment responds to the data flow control command to optimize the data transmission strategy and control the overall transmission flow.

[0009] In an optional implementation, the wireless buffer threshold value is specifically determined in the following way: Obtain the set single-channel serial port baseline data quota and scan the number of valid serial ports in the online working serial port. The wireless reference threshold value is determined based on the single-channel serial port reference data quota and the number of valid serial ports; When the wireless reference threshold is between the minimum threshold and the maximum threshold, the wireless reference threshold is used as the wireless buffer threshold. or, Obtain the maximum amount of data buffered in the wireless transmission buffer and the reserved redundancy value within the preset statistical period; The maximum data volume is added to the reserved redundancy value to obtain the wireless buffer threshold value.

[0010] In an optional implementation, the serial port buffer threshold value is specifically determined in the following way: Obtain the current operating condition level of the unit equipment corresponding to the serial port, as well as the mapping relationship between the preset operating condition level and the serial port threshold value; Based on the mapping relationship, the serial port threshold value corresponding to the current operating condition level is determined as the serial port buffer threshold value; or, Get the maximum amount of data buffered in the serial port buffer and the reserved redundancy value within the preset statistical period; Add the maximum data volume to the reserved redundancy value to obtain the serial port buffer threshold value; or, Obtain the current operating status level and data type priority of the unit equipment corresponding to the serial port; Based on the current operating condition level and the data type priority, determine the serial port buffer threshold value.

[0011] In one optional implementation, the wireless transmission buffer is specifically created in the following manner; Scan the number of valid serial ports in the online working serial port, determine the required storage space based on the number of valid serial ports, and allocate a storage area of ​​corresponding capacity as a wireless transmission buffer. or, Each serial port is given an independent sub-buffer area, and all sub-buffer areas together constitute the total wireless transmission buffer area.

[0012] In an optional implementation, establishing the serial port buffer corresponding to the serial port includes: Obtain the data transmission type of the unit device corresponding to the serial port, and allocate a partitioned storage area as a serial port buffer according to the data transmission type; or, Obtain the current operating status level and data type priority of the unit equipment corresponding to the serial port; Based on the current operating condition level and the data type priority, a serial port buffer corresponding to the serial port is established.

[0013] Secondly, this application provides a data transmission apparatus, the apparatus comprising: The data receiving module is used to receive the unit equipment data transmitted from each serial port, and transfer the unit equipment data as data to be forwarded to the wireless transmission buffer. The data acquisition module is used to acquire the amount of wireless data to be forwarded in the wireless transmission buffer and the preset wireless buffer threshold value. The mode selection module is used to determine the data load status based on the wireless data volume and the wireless buffer threshold, and select the corresponding data forwarding mode. The data forwarding module is used to forward the data to be forwarded in the wireless transmission buffer to the terminal device via wireless transmission according to the selected data forwarding mode.

[0014] Thirdly, a multi-split air conditioner is also 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; Memory, used to store computer programs; When a processor executes a program stored in memory, it implements any of the data transmission methods described in the first aspect above.

[0015] Fourthly, a storage medium is also provided, wherein the storage medium stores instructions that, when executed on a computer, cause the computer to perform any of the data transmission methods described in the first aspect above.

[0016] Fifthly, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to perform any of the data transmission methods described in the first aspect above.

[0017] Compared with the prior art, the technical solution provided in this application has the following advantages: The data transmission method provided in this application receives the unit equipment data transmitted from each serial port, and transfers the unit equipment data as data to be forwarded to the wireless transmission buffer. It obtains the wireless data volume of the data to be forwarded in the wireless transmission buffer and the preset wireless buffer threshold value. It determines the data load status based on the wireless data volume and the wireless buffer threshold value, selects the corresponding data forwarding mode, and forwards the data to be forwarded in the wireless transmission buffer to the terminal device through wireless transmission according to the selected data forwarding mode.

[0018] This solution first aggregates the unit data collected from each serial port to the wireless transmission buffer, then compares the buffer data volume with the preset threshold value in real time to determine the load status and match the corresponding forwarding mode. Compared with the traditional simple transparent transmission method, it can dynamically adjust the transmission strategy according to the real-time data load, effectively avoid data blocking and loss problems in large-scale concurrent scenarios, improve the overall data transmission efficiency, ensure the real-time and integrity of data received by terminal devices, and thus optimize the terminal interactive user experience. Attached Figure Description

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

[0020] To more clearly illustrate the technical solutions in the embodiments of this application 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.

[0021] 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.

[0022] Figure 1 This is a schematic diagram of the structure of a data transmission system provided in an embodiment of this application; Figure 2 This is a schematic diagram illustrating the implementation process of a data transmission method provided in an embodiment of this application. Figure 3 A schematic diagram illustrating the implementation process of another data transmission method provided in this application embodiment; Figure 4 A schematic diagram of a data flow provided for an embodiment of this application; Figure 5 A schematic diagram illustrating the implementation process of another data transmission method provided in this application embodiment; Figure 6 This is a schematic diagram of the structure of a data transmission device provided in an embodiment of this application; Figure 7 This is a schematic diagram of the structure of a multi-split air conditioner provided in an embodiment of this application. Detailed Implementation

[0023] 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.

[0024] The following disclosure provides numerous different embodiments or examples for implementing various structures of this application. 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 this application. 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.

[0025] To facilitate understanding of the data transmission method of this application, embodiments of this application provide a schematic diagram of a data transmission system, such as... Figure 1 As shown, multiple serial ports such as RS485, CAN, HBS, and wireless Bluetooth RF interface are included. Among them, RS485, CAN, and HBS are communication interfaces for unit equipment, connecting to different types of unit equipment (such as indoor units, outdoor units, handheld devices, etc.) to send and receive different types of unit data.

[0026] All communication interfaces are designed using a single-chip software-programmed integrated design, meaning that RS485, CAN, HBS, and Bluetooth, along with their corresponding communication interface circuits, are controlled by MCU software. Data received from the serial ports is buffered by the MCU and then transmitted via the Bluetooth RF interface to a mobile app, enabling monitoring and interaction via the app.

[0027] based on Figure 1 The schematic diagram of the data transmission system shown is as follows: Figure 2 The diagram shown is a schematic representation of an implementation flow of a data transmission method provided in this application. This method operates on, for example, an MCU, and may specifically include the following steps: S201 receives the unit equipment data transmitted from each serial port and transfers the unit equipment data as data to be forwarded to the wireless transmission buffer.

[0028] In this embodiment, the step is a data acquisition and centralized caching process: the MCU connects to different unit devices through multiple serial ports, and receives the unit device data such as operating data and status parameters reported by each unit device one by one; then, all the unit device data acquired by the serial ports are uniformly collected and temporarily stored in the wireless transmission buffer area, completing the aggregation of multiple data, providing a unified data source for subsequent data volume detection, load judgment and mode switching, and realizing centralized management of multiple serial port data.

[0029] S202, obtain the amount of wireless data to be forwarded in the wireless transmission buffer and the preset wireless buffer threshold value.

[0030] In this embodiment, this step is the data load detection stage. The MCU reads the total amount of data to be forwarded in the wireless transmission buffer in real time (i.e., the amount of wireless data) and retrieves the pre-configured wireless buffer threshold value. By collecting these two key parameters, a basis for judgment is provided for subsequent determination of data load level and selection of appropriate forwarding mode.

[0031] S203 determines the data load status based on the wireless data volume and the wireless buffer threshold, and selects the corresponding data forwarding mode.

[0032] In this embodiment, the MCU compares the real-time wireless data volume with the preset wireless buffer threshold value to determine the current overall data load level. Then, based on the determined load result, it selects a matching mode from a variety of preset data forwarding modes to determine the corresponding transmission rules for subsequent data forwarding.

[0033] S204, according to the selected data forwarding mode, forward the data to be forwarded in the wireless transmission buffer to the terminal device via wireless transmission.

[0034] In this embodiment, the MCU calls the wireless communication interface according to the data forwarding mode selected in the previous steps, and sends the data to be forwarded temporarily stored in the wireless transmission buffer to the outside, and finally transmits it to terminal devices such as mobile APP. Different forwarding modes correspond to different data processing and sending rules, so as to adapt to different load scenarios and ensure stable transmission.

[0035] For example, when the amount of wireless data is less than the wireless buffer threshold, it is considered a low load, and the real-time transmission mode is selected. The MCU forwards the data as is using a first-in-first-out (FIFO) rule. Data such as the unit's normal operating temperature and operating status collected by each serial port are sent directly to the terminal in the order of reception to ensure real-time data updates.

[0036] For example, when the amount of wireless data reaches or exceeds the wireless buffer threshold, it is determined to be a medium-to-high load. The priority transmission mode is selected, and the MCU first sorts the buffered data by priority, removes redundant data, and prioritizes forwarding high-priority data such as unit fault alarms and remote control commands, while delaying the transmission of regular monitoring data to avoid blocking critical data.

[0037] Based on the above description of the technical solution provided in the embodiments of this application, the unit equipment data transmitted from each serial port is received respectively, and the unit equipment data is transferred to the wireless transmission buffer as data to be forwarded. The wireless data volume of the data to be forwarded in the wireless transmission buffer and the preset wireless buffer threshold value are obtained. The data load status is determined according to the wireless data volume and the wireless buffer threshold value, and the corresponding data forwarding mode is selected. According to the selected data forwarding mode, the data to be forwarded in the wireless transmission buffer is forwarded to the terminal device through wireless transmission.

[0038] This solution first aggregates the unit data collected from each serial port to the wireless transmission buffer, then compares the buffer data volume with the preset threshold value in real time to determine the load status and match the corresponding forwarding mode. Compared with the traditional simple transparent transmission method, it can dynamically adjust the transmission strategy according to the real-time data load, effectively avoid data blocking and loss problems in large-scale concurrent scenarios, improve the overall data transmission efficiency, ensure the real-time and integrity of data received by terminal devices, and thus optimize the terminal interactive user experience.

[0039] like Figure 3 The diagram shown illustrates the implementation flow of another data transmission method provided in this application embodiment. This method operates on, for example, an MCU, and may specifically include the following steps: S301 scans the status of each serial port. For any serial port, if the status indicates that the serial port is online, it establishes the corresponding serial port buffer.

[0040] In this embodiment, for example, a multi-serial-port Bluetooth adapter, after power-on, the MCU polls and scans all serial ports connected to the system to detect the working status of each serial port in real time. For each serial port that is detected as online and capable of normal communication, the MCU allocates and creates a corresponding serial port buffer for it to store the data of the equipment received by that serial port. This realizes dynamic buffer management of creating one buffer for each online port, avoiding resource waste and ensuring isolated data storage.

[0041] For example, the system contains 4 serial ports (serial port 1, serial port 2, serial port 3, and serial port 4). After the multi-serial port Bluetooth adapter is powered on, the MCU scans and determines that serial ports 1 and 2 are online and working, while serial ports 3 and 4 are not connected or are offline. The MCU only establishes independent serial port buffers for the online serial ports 1 and 2 to cache the data of the corresponding units. No buffer resources are allocated to the offline serial ports 3 and 4. The corresponding buffers will be dynamically created after they are detected to be online.

[0042] Specifically, the serial port buffer corresponding to the serial port can be established in the following way: Obtain the data transmission type of the unit device corresponding to the serial port, and allocate a partitioned storage area as the serial port buffer based on the data transmission type. Here, the MCU reads the data transmission type of the unit device currently connected to the online serial port. Different transmission types correspond to different formats and uses of unit data. Based on the differences in transmission types, the storage space is logically partitioned, and a partitioned storage area with an independent storage sub-area is allocated to the serial port as its dedicated serial port buffer. This achieves partitioned and isolated storage of different types of data, avoiding interference between different protocols and different business data.

[0043] For example, a serial port is connected to an internal machine and is identified to contain two types of data transmission: fault alarm messages and regular operating parameter messages. Based on this, the MCU divides the cache space of the serial port into two independent storage partitions. One partition is dedicated to storing fault alarm messages, and the other partition stores regular parameter messages such as temperature, humidity, and operating frequency. The two types of data are stored separately in the cache, and can be quickly distinguished and processed when retrieved or forwarded later.

[0044] Alternatively, the current operating status level and data type priority of the unit equipment corresponding to the serial port can be obtained. Based on the current operating status level and data type priority, a serial port buffer corresponding to the serial port can be established. Here, the MCU collects the operating status level of the unit equipment connected to the current serial port and identifies the data type priority of various types of data from that serial port. Considering both the data throughput pressure reflected by the operating status level and the importance of data type priorities, the total storage space of the serial port buffer and the capacity of each priority sub-partition are configured differently to complete the construction of a dedicated serial port buffer for that serial port. This ensures that the buffer storage capacity adapts to the real-time operating load of the unit, guarantees sufficient buffer space for high-priority data, and reduces the risk of congestion and data loss.

[0045] For example, the unit equipment is divided into two operating conditions: normal operation and fault alarm. Data is divided into high-priority fault messages and low-priority routine parameters. When the MCU identifies that the unit equipment is in a high-load fault alarm condition and the fault message is of the highest priority, when creating the serial port buffer, the storage capacity of the high-priority sub-partition (corresponding to the high-priority fault message) is expanded and the capacity of the routine parameter partition is compressed. If the unit is in a stable normal operation condition, the storage space of each priority partition is evenly allocated to adapt to the current data transmission and reception needs.

[0046] S302 receives unit equipment data transmitted via serial port and buffers the unit equipment data into the serial port buffer corresponding to the serial port.

[0047] In this embodiment, the MCU continuously monitors the communication channels of each online serial port, receives the data of the unit equipment uploaded by the unit equipment in real time, and stores the data of the unit equipment received by each serial port separately in the dedicated serial port buffer area according to the one-to-one matching relationship of the serial ports. This realizes the isolation and temporary storage of data from multiple units, avoids the mixing of data from different units, and provides an independent data source for subsequent single serial port traffic monitoring and over-limit traffic control.

[0048] For example, the system has two online serial ports: serial port 1 connects to indoor unit 1 and serial port 2 connects to indoor unit 2; after the MCU collects unit equipment data such as unit temperature and start / stop status from serial port 1, it only stores it in the serial port buffer corresponding to serial port 1; after collecting unit equipment data such as unit air pressure and current from serial port 2, it only stores it in the serial port buffer corresponding to serial port 2. The two data channels are buffered independently and do not interfere with each other.

[0049] S303, determine the data attributes of the unit equipment data, and mark the priority of the unit equipment data according to the data attributes.

[0050] In this embodiment, the MCU parses and identifies the data of the unit equipment stored in the serial port buffer, extracts the data attribute information carried in the message, and marks each piece of unit equipment data with a corresponding priority identifier according to the preset attribute-priority correspondence rule, thereby distinguishing key business data from ordinary monitoring data, and providing a basis for determining the priority forwarding of important data in subsequent high-load scenarios.

[0051] For example, preset data attribute rules are used: fault alarms and remote control commands are high-priority attributes; indoor temperature, fan speed, running time, and other routine inspection parameters are low-priority attributes. When the MCU parses a fault shutdown message in the serial port buffer, it identifies its data attribute as a fault alarm and marks the message as high priority; for room temperature data uploaded periodically, it identifies it as a routine inspection attribute and marks it as low priority.

[0052] S304 transfers the unit equipment data as data to be forwarded to the wireless transmission buffer.

[0053] In this embodiment, the MCU reads the priority-marked unit equipment data in each serial port buffer, and transfers all unit equipment data to the wireless transmission buffer for centralized temporary storage. This completes the collection and integration of multi-channel serial port isolated buffer data, providing a unified processing pool for subsequent unified statistics of total data volume, judgment of overall system load status, and scheduling of transmission data according to forwarding mode.

[0054] For example, serial port 1 buffer stores high-priority fault alarm data, while serial port 2 buffer stores low-priority normal temperature data. The MCU reads all the data from the two serial port buffers in sequence and transfers them to the wireless transmission buffer. The two types of data are stored centrally and await unified forwarding and scheduling.

[0055] Specifically, the wireless transmission buffer is created as follows: The number of valid online serial ports is scanned. Based on this number, the required storage space is determined, and a corresponding storage area is allocated as the wireless transmission buffer. Here, the MCU polls and scans all serial ports, counting the total number of valid serial ports currently in online communication. Combined with a preset single-channel serial port baseline data quota, the overall required buffer storage space for the system is calculated. Based on the calculated total capacity, a contiguous storage area of ​​the corresponding size is dynamically divided and allocated. This storage area is then set as the wireless transmission buffer, achieving adaptive matching of buffer space with the number of connected units, avoiding idle space resources or insufficient buffer capacity.

[0056] For example, the preset single-channel serial port baseline data quota is 200 bytes; when the MCU scans and detects that there are currently 3 valid online serial ports, it calculates the total required storage space of 600 bytes, and the MCU then allocates a 600-byte storage area as a wireless transmission buffer; if one of the serial ports goes offline and the number of valid serial ports becomes 2, then a 400-byte storage area is reallocated and updated as a wireless transmission buffer.

[0057] Alternatively, independent sub-buffers can be created for each serial port, with all sub-buffers collectively forming the overall wireless transmission buffer. Here, the MCU allocates a dedicated independent sub-buffer for each online serial port, with physical / logical storage isolated between each sub-buffer. The device data for each serial port is stored only in its corresponding sub-buffer. All the sub-buffers corresponding to all serial ports are integrated together as a unified overall wireless transmission buffer, ensuring that multiple data streams do not interfere with each other, while also allowing for unified aggregation, statistics, scheduling, and forwarding of all data to be forwarded.

[0058] For example, the system has two online serial ports, serial port 1 and serial port 2. The MCU creates sub-buffer A and sub-buffer B respectively. The equipment data of serial port 1 is stored only in sub-buffer A, and the equipment data of serial port 2 is stored only in sub-buffer B. Sub-buffer A and sub-buffer B are merged to form a complete wireless transmission buffer. The MCU can read all equipment data in the two sub-buffers, count the total data volume, and perform forwarding control.

[0059] S305, obtain the amount of wireless data to be forwarded in the wireless transmission buffer and the preset wireless buffer threshold value.

[0060] In this embodiment, the MCU reads the total number of bytes of all data to be forwarded in the wireless transmission buffer in real time to obtain the amount of wireless data; at the same time, it retrieves the wireless buffer threshold value that is pre-fixed or configured in the storage unit to obtain two key comparison parameters, providing a basis for subsequent load comparison and switching of forwarding modes.

[0061] For example, the total size of the data from all units in the wireless transmission buffer is 720 bytes. The MCU reads this value as the wireless data volume. The system presets a wireless buffer threshold of 800 bytes. The MCU retrieves this preset threshold and uses 720 bytes and 800 bytes as the basis for the next load determination.

[0062] Specifically, the wireless buffer threshold is determined as follows: obtain the set single-channel serial port baseline data quota and scan the number of valid serial ports in the online working serial port; determine the wireless baseline threshold based on the single-channel serial port baseline data quota and the number of valid serial ports; if the wireless baseline threshold is between the minimum and maximum threshold values, the wireless baseline threshold is used as the wireless buffer threshold.

[0063] Here, the MCU first reads the pre-configured single-channel serial port baseline data quota, then polls and scans all serial ports to count the number of currently online and valid serial ports. The single-channel baseline quota is multiplied by the number of valid serial ports to calculate the wireless baseline threshold value. Then, it checks whether the wireless baseline threshold value falls within the preset minimum and maximum threshold range. If the range constraint is met, the wireless baseline threshold value is directly used as the currently effective wireless buffer threshold value, so as to realize the adaptive adjustment of the buffer threshold according to the number of online units. At the same time, the upper and lower limit constraints prevent the threshold from being too high and causing data overflow or too low and causing frequent switching of forwarding modes.

[0064] For example, the system sets a single-channel serial port baseline data quota of 200 bytes, a minimum threshold of 400 bytes, and a maximum threshold of 1000 bytes. The MCU scans and finds that there are currently 3 online working serial ports. The calculated wireless baseline threshold is 200 × 3 = 600 bytes. Since 600 bytes is within the range of 400 to 1000 bytes, 600 bytes is used as the wireless buffer threshold. If the number of online working serial ports is subsequently increased to 6, the calculated baseline threshold is 1200 bytes, which exceeds the maximum threshold of 1000 bytes. Therefore, this calculated value is not used, and the maximum threshold is used instead as the wireless buffer threshold.

[0065] In addition, the maximum data volume and reserved redundancy value of the wireless transmission buffer within a preset statistical period are obtained; the maximum data volume and the reserved redundancy value are added together to obtain the wireless buffer threshold value. Here, the MCU collects the peak maximum data volume that has occurred in the wireless transmission buffer within a recent statistical period, and reads the system's preset buffer reserved redundancy value; the peak maximum data volume and the reserved redundancy value are summed, and the result is used as the currently effective wireless buffer threshold value. This method dynamically generates the threshold based on the recent real data load, and the superimposed redundancy space can cope with sudden data surges, reducing buffer overflow and data loss problems.

[0066] For example, if the statistical period is set to 5 minutes, the MCU will find that the maximum data volume of the wireless buffer during this period is 650 bytes, and the system reserves a redundancy of 150 bytes. The sum of the two is 650 + 150 = 800 bytes. The MCU will set the 800 bytes as the threshold value of the wireless buffer area. The reserved 150 bytes of redundancy can accommodate the batch fault data suddenly reported by the unit, avoiding instantaneous traffic exceeding the limit.

[0067] S306 When the amount of wireless data is less than the wireless buffer threshold, the data load state is determined to be the first data load state, and the real-time transmission mode is selected as the data forwarding mode.

[0068] S307: When the amount of wireless data is greater than or equal to the wireless buffer threshold, the data load state is determined to be the second data load state, and the priority mode is selected as the data forwarding mode.

[0069] In this embodiment, the MCU compares the real-time collected wireless data volume with the currently effective wireless buffer threshold to classify two load states: if the wireless data volume is less than the wireless buffer threshold, it means that the total amount of data to be forwarded in the wireless buffer is small and the transmission channel pressure is low, and the data load state is determined to be the first data load state with a lower load, and the real-time transmission mode is selected accordingly; if the wireless data volume is greater than or equal to the wireless buffer threshold, it means that there is a lot of data accumulated in the wireless buffer and the transmission load is high, and the data load state is determined to be the second data load state with a higher load, and the priority forwarding mode is switched accordingly; by matching a dedicated forwarding strategy with two load levels, data is guaranteed to be delivered in real time when the load is low, and data transmission of critical units is prioritized when the load is high, taking into account both the real-time transmission and the reliability of important data.

[0070] For example, if the wireless buffer threshold is 800 bytes and a certain detection shows 520 bytes of wireless data (520 < 800), the data load state is determined to be low (first data load state). The MCU executes real-time transmission mode, and all unit temperature, operating status, and other data awaiting forwarding are sent directly to the terminal in the order they were stored in the buffer. Later, when units report fault messages in batches, the wireless data volume reaches 860 bytes (860 ≥ 800), and the data load state is determined to be high (second data load state). The MCU switches to priority mode, prioritizing the forwarding of high-priority data such as fault alarms and remote control requests, while delaying the push of routine inspection parameters to prevent critical business data from being lost due to buffer congestion.

[0071] S308, according to the selected data forwarding mode, forwards the data to be forwarded in the wireless transmission buffer to the terminal device via wireless transmission.

[0072] In this embodiment, the MCU retrieves all data to be forwarded that are marked with priority in the wireless transmission buffer, executes differentiated transmission logic based on the forwarding mode selected after determining the load status in the preceding steps, calls the onboard wireless communication module (e.g., Bluetooth module) to establish a data link with the terminal device, and completes the wireless transmission of the data to be forwarded according to the corresponding rules, adapting to the data distribution needs under different buffer loads.

[0073] For example, in the real-time transmission mode (first load state), the MCU reads the data to be forwarded from the wireless transmission buffer and sends it completely one by one in strict order of the data being stored in the buffer. The unit's normal temperature, fan speed and other data waiting to be forwarded are synchronized to the mobile terminal in real time without sorting or delay. In the priority mode (second load state), the MCU sorts the data to be forwarded in the wireless buffer according to priority, and prioritizes the extraction of high-priority data such as fault alarms and remote control commands for wireless forwarding. The remaining low-priority data of routine inspections are sent in batches after the delay, ensuring that core business data is delivered to the terminal first in the case of buffer congestion.

[0074] Furthermore, when the data forwarding mode is priority mode, after the data to be forwarded in the wireless transmission buffer is forwarded to the terminal device wirelessly according to priority mode, the data traffic continues to increase and may reach a critical value, causing transmission blockage. At this time, the data flow control mode is entered. To this end, the serial port data volume of the unit device data in the serial port buffer corresponding to each serial port and the preset serial port buffer threshold value are obtained. When the serial port data volume is greater than or equal to the serial port buffer threshold value, a data flow control command is sent to the unit device of the corresponding serial port, so that the unit device responds to the data flow control command to optimize the data transmission strategy and control the overall transmission traffic.

[0075] Here, the MCU counts the amount of serial port data temporarily stored in the dedicated buffer of each online serial port and compares it with the pre-configured serial port buffer threshold. If the amount of serial port data corresponding to a certain serial port reaches or exceeds the serial port buffer threshold, it means that the unit is uploading data too fast and the local serial port buffer is about to overflow. The MCU immediately sends a flow control command to the unit device connected to the serial port. After receiving the command, the unit adjusts its own reporting frequency, simplifies the reporting message, or reduces the batch reporting frequency to reduce the amount of data output from the data source, alleviate the data accumulation pressure of a single serial port from the source, and avoid the overload of a single unit flow occupying system buffer resources.

[0076] For example, if the single-channel serial port buffer threshold is set to 300 bytes, and the indoor unit connected to serial port 1 continuously uploads parameters at a high frequency, the MCU will detect that the data volume in the serial port 1 buffer is 340 bytes, which exceeds the threshold. The MCU will then send a flow control command to the indoor unit via the serial port. After receiving the command, the unit will adjust the regular parameter reporting from once per second to once every 5 seconds, suspend the uploading of unnecessary auxiliary data, and the data addition rate of serial port 1 will decrease accordingly, and the buffer usage will gradually decrease to prevent data loss.

[0077] Specifically, the serial port buffer threshold is determined as follows: The current operating condition level of the unit equipment corresponding to the serial port is obtained, along with the preset mapping relationship between the operating condition level and the serial port threshold. Based on this mapping relationship, the serial port threshold corresponding to the current operating condition level is determined as the serial port buffer threshold. Here, the MCU reads the current operating condition level (such as normal operation, alarm, fault, start / stop, etc.) of the unit equipment connected to the current serial port in real time, and simultaneously retrieves the pre-set "operating condition level - serial port threshold" mapping relationship table. Based on this mapping relationship, the MCU automatically matches the serial port buffer capacity threshold corresponding to the current operating condition level and uses this threshold as the dedicated serial port buffer threshold for that serial port.

[0078] For example, the system has a preset mapping relationship: normal operation condition → serial port threshold value = 200 bytes, alarm operation condition → serial port threshold value = 400 bytes, fault shutdown condition → serial port threshold value = 600 bytes. When the MCU detects that a unit is currently in normal operation condition, it automatically sets 200 bytes as the serial port buffer threshold value according to the mapping relationship. If the unit subsequently triggers a fault alarm and the operating condition level changes, the MCU immediately and automatically increases the serial port buffer threshold value to 400 bytes according to the mapping relationship to accommodate more fault and status data and avoid buffer overflow.

[0079] Alternatively, the maximum data volume and reserved redundancy value of the serial port buffer within a preset statistical period can be obtained. The maximum data volume and the reserved redundancy value are then added to obtain the serial port buffer threshold. Here, the MCU calculates the maximum data volume actually reached by the serial port buffer in a recent period (historical peak value) and reads the system's preset reserved redundancy value (safety buffer space). The result calculated by adding the maximum data volume and the reserved redundancy value is dynamically set as the serial port buffer threshold value for that serial port. This method adaptively generates the threshold based on real historical data, and the added redundancy space can effectively cope with sudden data traffic and prevent buffer overflow.

[0080] For example, the MCU counts that the maximum data volume in the serial port 1 buffer within the last 5 minutes is 280 bytes; the system's preset redundancy value is 100 bytes; the calculation is: 280 + 100 = 380 bytes; the MCU determines 380 bytes as the threshold value for this serial port buffer. When the serial port data volume exceeds 380 bytes, flow control is triggered, and the extra 100 bytes are used to cope with instantaneous flow fluctuations.

[0081] Alternatively, the current operating condition level and data type priority of the unit equipment corresponding to the serial port can be obtained; based on the current operating condition level and data type priority, the threshold value of the serial port buffer is determined. Here, the MCU collects the real-time operating condition level of the unit equipment connected to the serial port, and at the same time identifies the priority weights corresponding to various types of transmitted data of that serial port; considering the data generation rate represented by the operating condition level and the storage guarantee requirements corresponding to the data priority, the appropriate capacity threshold is calculated through preset conversion rules, and this threshold is set as the current serial port buffer threshold value. When the unit is under high load / fault conditions and high-priority data accounts for a high proportion, the threshold is automatically raised to reserve sufficient storage space; when the operating conditions are stable and low-priority regular data is the main type, the threshold is lowered to save storage resources, balancing buffer security and resource utilization.

[0082] The system is divided into three operating condition levels: stable operation (Level 1) and fault alarm (Level 3); data priority weights are: fault message weight 3, and routine parameter weight 1. During stable operation, only low-priority parameters such as temperature and humidity are uploaded periodically. After comprehensive judgment, the serial port buffer threshold is set to 200 bytes. When a fault occurs, the unit enters Level 3 alarm mode, continuously generating high-priority fault codes and protection status messages. The MCU, combining the high operating condition level and high data priority, adjusts the threshold to 500 bytes, reserving more buffer space to handle a large amount of critical alarm data and preventing high-priority data overflow and loss.

[0083] The data transmission method provided in this application will be described below with reference to specific embodiments. As described above... Figure 1 As shown, a multi-serial-port Bluetooth adapter consists of an MCU, a Bluetooth module, and multiple serial ports. This adapter has multiple serial ports, such as RS485, CAN, HBS, and a wireless Bluetooth RF interface. Among them, RS485, CAN, and HBS are communication interfaces for unit equipment, connecting to different types of unit equipment (such as indoor units, outdoor units, handheld devices, etc.) to send and receive different types of unit data.

[0084] All communication interfaces are designed using a single-chip software-programmed integrated design, meaning that RS485, CAN, HBS, and Bluetooth, along with their corresponding communication interface circuits, are controlled by the MCU software. Data received from the serial ports is buffered by the MCU and then transmitted via the Bluetooth RF circuit interface to a mobile app, enabling monitoring and interaction via the app.

[0085] For equipment with different communication interfaces, the data buffer adopts multi-channel serial port multi-channel buffer, with each serial port corresponding to an independent data buffer area. The Bluetooth data transmitter is set with an independent transmission buffer. The adapter controls the arbitration mechanism based on the MCU software algorithm to select the corresponding data forwarding mode to achieve the best transmission efficiency.

[0086] The specific control timing is as follows: 1. When the adapter is powered on, it automatically scans the status of each serial port and automatically connects to the corresponding mobile APP via Bluetooth.

[0087] 2. For online serial ports, the software configures corresponding serial port buffers to buffer the data received from each serial port. For example, for RS485, CAN, and HBS serial communication, corresponding buffers buff1, buff2, and buff3 are set up, such as... Figure 4 As shown.

[0088] 3. Mark the priority of the data received in each serial port buff buffer based on the priority of data attribute categories, for example, buff1_1, buff1_2, buff1_3, buff2_1, buff2_2, buff2_3, buff3_1, buff3_2, buff3_3. buff1=buff1_1+buff1_2+buff1_3; buff2=buff2_1+buff2_2+buff2_3; buff3=buff3_1+buff3_2+buff3_3.

[0089] 4. Set a Bluetooth data transmission buffer buff, which is used to forward and receive serial port data of buff1, buff2, and buff3.

[0090] 5. Define the Bluetooth data forwarding modes of the adapter, which are respectively the real-time transmission mode, the priority mode, and the data flow control mode.

[0091] 6. The adapter data flow control arbitration mechanism, such as Figure 5 shown as follows: Real-time transmission mode: The adapter monitors the serial port received data in real time. Assuming that the actual data sizes received from the current serial ports 1, 2, 3 and forwarded via Bluetooth are X1, X2, X3, then X4=X1+X2+X3. A threshold Y4 of the Bluetooth transmission buffer is set. When the cached data X4 < Y4, it indicates that the data volume is small, and the system enters the real-time transmission mode. The data is transmitted in a transparent transmission and first-in-first-out manner to ensure real-time validity.

[0092] Priority mode (the priority sorting principle is based on the characteristics of the multi-connected system. Normally, fault data and control data have higher priority, while unit temperature data and common load data have lower priority. That is, data with higher user attention is defined as high-priority data, and data with lower user attention is defined as low-priority data, which is determined according to the actual situation and is not fixed): When the cached data X4 > Y4, it indicates that the data volume is large at this time, and the cached data is subjected to deduplication and priority sorting processing. An example is as follows: Assume that the cached data Data1 and Data2 from serial port 1, the cached data Data3 and Data4 from serial port 2, and the cached data Data5 and Data6 from serial port 3 are received, where Data1=Data2 and Data5=Data6. Then the cached data is subjected to deduplication and priority sorting processing, as shown in Table 1 below.

[0093]

[0094] Table 1 Data flow control mode: When entering priority transmission mode, the data flow continues to increase and may reach a critical value, causing transmission blockage. At this point, the data flow control mode is entered. The judgment method is as follows: set data flow threshold values ​​for each serial port, Y1, Y2, Y3. When the actual received buffered data X1, X2, X3 of the serial port is X1>Y1, or X2>Y2, or X3>Y3, the data adapter sends a data flow control command to the corresponding serial port system. After receiving the command, the system performs flow compression processing on the data. At this time, the system reduces the amount of redundant data, prioritizes the transmission of high-priority data, and reduces the total data flow of Bluetooth forwarding.

[0095] The above three transmission modes are based on the adapter's real-time monitoring of serial port traffic data and its linkage control with each serial port, dynamically adjusting and switching to achieve the best transmission effect and enhance user experience.

[0096] Corresponding to the above method embodiments, this application also provides a data transmission device, such as... Figure 6 As shown, the device may include: a data receiving module 610, a data volume acquisition module 620, a mode selection module 630, and a data forwarding module 640.

[0097] The data receiving module 610 is used to receive the unit equipment data transmitted through each serial port, and transfer the unit equipment data as data to be forwarded to the wireless transmission buffer. The data acquisition module 620 is used to acquire the amount of wireless data to be forwarded in the wireless transmission buffer and the preset wireless buffer threshold value. The mode selection module 630 is used to determine the data load status based on the wireless data volume and the wireless buffer threshold value, and select the corresponding data forwarding mode. The data forwarding module 640 is used to forward the data to be forwarded in the wireless transmission buffer to the terminal device via wireless transmission according to the selected data forwarding mode.

[0098] This application also provides a multi-split air conditioner (the multi-split air conditioner is an energy-saving air conditioner), such as Figure 7 As shown, it includes a processor 701, a communication interface 702, a memory 703, and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 communicate with each other through the communication bus 704. Memory 703 is used to store computer programs; When processor 701 executes a program stored in memory 703, it performs the following steps: The system receives equipment data transmitted from each serial port and transfers this equipment data to a wireless transmission buffer as data to be forwarded. It then obtains the amount of wireless data to be forwarded in the wireless transmission buffer and a preset wireless buffer threshold. Based on the amount of wireless data and the wireless buffer threshold, it determines the data load state and selects the corresponding data forwarding mode. Following the selected data forwarding mode, it forwards the data to be forwarded in the wireless transmission buffer to the terminal device via wireless transmission.

[0099] The communication bus mentioned in the multi-split air conditioner diagram can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. This communication bus can be divided into address bus, data bus, and control bus. For ease of illustration, only one thick line is used in the diagram, but this does not indicate that there is only one bus or one type of bus.

[0100] The communication interface is used for communication between the aforementioned multi-split air conditioner and other devices.

[0101] The memory may include random access memory (RAM) or non-volatile memory, 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.

[0102] 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.

[0103] In another embodiment provided in this application, a storage medium is also provided, which stores instructions that, when run on a computer, cause the computer to execute any of the data transmission methods described in the above embodiments.

[0104] 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 perform any of the data transmission methods described in the above embodiments.

[0105] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a storage medium or transmitted from one storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc.

[0106] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0107] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0108] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application are included within the scope of protection of this application.

Claims

1. A data transmission method, characterized in that, The method includes: The system receives data from each serial port of the equipment and transfers the equipment data to the wireless transmission buffer as data to be forwarded. Obtain the amount of wireless data to be forwarded in the wireless transmission buffer and the preset wireless buffer threshold value; The data load status is determined based on the wireless data volume and the wireless buffer threshold, and the corresponding data forwarding mode is selected. According to the selected data forwarding mode, the data to be forwarded in the wireless transmission buffer is forwarded to the terminal device via wireless transmission.

2. The method according to claim 1, characterized in that, Before executing the method, the following is also included: Scan the status of each serial port. For any serial port, if the status of the serial port indicates that the serial port is online, establish a serial port buffer corresponding to the serial port. The step of receiving the equipment data transmitted from each serial port and transferring the equipment data to the wireless transmission buffer as data to be forwarded includes: Receive the unit equipment data transmitted via the serial port, and cache the unit equipment data in the serial port buffer area corresponding to the serial port; Determine the data attributes of the unit equipment data, and mark the priority of the unit equipment data according to the data attributes; The data from the unit equipment is transferred to the wireless transmission buffer as data to be forwarded.

3. The method according to claim 1, characterized in that, The step of determining the data load status based on the wireless data volume and the wireless buffer threshold, and selecting the corresponding data forwarding mode, includes: When the amount of wireless data is less than the threshold value of the wireless buffer, the data load state is determined to be the first data load state, and the real-time transmission mode is selected as the data forwarding mode. When the amount of wireless data is greater than or equal to the threshold value of the wireless buffer, the data load state is determined to be the second data load state, and the priority mode is selected as the data forwarding mode. The first data load state is lower than the second data load state.

4. The method according to claim 2, characterized in that, When the data forwarding mode is a priority mode, after forwarding the data to be forwarded in the wireless transmission buffer to the terminal device via wireless transmission according to the selected data forwarding mode, the method further includes: Obtain the amount of serial port data of the unit equipment data in the serial port buffer corresponding to each serial port and the preset serial port buffer threshold value; When the serial port data volume is greater than or equal to the serial port buffer threshold, a data flow control command is sent to the corresponding serial port equipment so that the equipment can optimize the data transmission strategy and control the overall transmission flow in response to the data flow control command.

5. The method according to claim 1, characterized in that, The wireless buffer threshold value is determined in the following way: Obtain the set single-channel serial port baseline data quota and scan the number of valid serial ports in the online working serial port. The wireless reference threshold value is determined based on the single-channel serial port reference data quota and the number of valid serial ports; When the wireless reference threshold is between the minimum threshold and the maximum threshold, the wireless reference threshold is used as the wireless buffer threshold. or, Obtain the maximum amount of data buffered in the wireless transmission buffer and the reserved redundancy value within the preset statistical period; The maximum data volume is added to the reserved redundancy value to obtain the wireless buffer threshold value.

6. The method according to claim 4, characterized in that, The threshold value of the serial port buffer is determined in the following way: Obtain the current operating condition level of the unit equipment corresponding to the serial port, as well as the mapping relationship between the preset operating condition level and the serial port threshold value; Based on the mapping relationship, the serial port threshold value corresponding to the current operating condition level is determined as the serial port buffer threshold value; or, Get the maximum amount of data buffered in the serial port buffer and the reserved redundancy value within the preset statistical period; Add the maximum data volume to the reserved redundancy value to obtain the serial port buffer threshold value; or, Obtain the current operating status level and data type priority of the unit equipment corresponding to the serial port; Based on the current operating condition level and the data type priority, determine the serial port buffer threshold value.

7. The method according to claim 1, characterized in that, The wireless transmission buffer is created in the following manner; Scan the number of valid serial ports in the online working serial port, determine the required storage space based on the number of valid serial ports, and allocate a storage area of ​​corresponding capacity as a wireless transmission buffer. or, Each serial port is given an independent sub-buffer area, and all sub-buffer areas together constitute the total wireless transmission buffer area.

8. The method according to claim 2, characterized in that, The establishment of the serial port buffer corresponding to the serial port includes: Obtain the data transmission type of the unit device corresponding to the serial port, and allocate a partitioned storage area as a serial port buffer according to the data transmission type; or, Obtain the current operating status level and data type priority of the unit equipment corresponding to the serial port; Based on the current operating condition level and the data type priority, a serial port buffer corresponding to the serial port is established.

9. A data transmission device, characterized in that, The device includes: The data receiving module is used to receive the unit equipment data transmitted from each serial port, and transfer the unit equipment data as data to be forwarded to the wireless transmission buffer. The data acquisition module is used to acquire the amount of wireless data to be forwarded in the wireless transmission buffer and the preset wireless buffer threshold value. The mode selection module is used to determine the data load status based on the wireless data volume and the wireless buffer threshold, and select the corresponding data forwarding mode. The data forwarding module is used to forward the data to be forwarded in the wireless transmission buffer to the terminal device via wireless transmission according to the selected data forwarding mode.

10. A multi-split air conditioner, 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 method described in any one of claims 1-8.

11. A storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-8.