Communication method and communication system for equipment
By dynamically adjusting the data volume and priority of wireless modules in multi-split air conditioning systems, the problems of unstable communication and high costs are solved, and a stable and economical communication solution is achieved.
Patent Information
- Application Number
- CN202310439336.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-21
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2043-04-21
AI Technical Summary
The communication of existing multi-split air conditioning systems is unstable, especially in an environment without a router. Wi-Fi and GPRS mobile networks have communication instability and high costs, and there is a lack of effective solutions.
The sending device dynamically adjusts the data volume according to the packet loss data of the wireless module, uses the packet loss rate and priority to adjust the data sending method, and adopts the master-slave roll call mechanism and LAN broadcast to transmit data, ensuring the communication stability and cost-effectiveness of multiple wireless modules.
It improves the stability of the communication network, reduces the cost of mobile network traffic, and ensures the reliability of remote control and the efficiency of large data transmission.
Smart Images

Figure CN116437487B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of communications, and in particular to a communication method for a device. Background Art
[0002] Remote monitoring of equipment data is currently a widespread practice. For example, in the case of multi-split air conditioners, big data and remote monitoring and control communication networks have found widespread application in this sector. Based on real-time operating data from the air conditioning system, the system's status can be monitored in real time. When an anomaly occurs, fault data can be immediately transmitted, providing a reference for subsequent system optimization. This communication network also enables remote, artificially intelligent control, enabling the issuance of remote control commands to control the unit's operating status and switch operating modes at any time.
[0003] Commonly used multi-connected big data communication networks include WiFi, Ethernet, and GPRS mobile networks.
[0004] Wi-Fi and Ethernet are local area communication networks, requiring specific communication environments. A router or network interface is required for proper communication with servers and big data capabilities. Otherwise, communication is impossible. However, multi-connection installation environments are complex and diverse, and some locations lack routers, resulting in communication problems. GPRS mobile networks offer wider coverage, are simple to install, and are independent of other equipment, making them highly adaptable to various environments. However, these networks require data cards, resulting in high data charges for long-term use and high cost of ownership. Furthermore, some remote areas may experience poor signal quality and transmission capacity.
[0005] Therefore, some multi-connected systems use multiple wireless modules, such as a WiFi module and a DTU module. However, whether using a single wireless module or multiple wireless modules working at the same time, how to ensure the stability of communication is a technical problem to be solved. Summary of the Invention
[0006] In order to solve the technical problem in the prior art that communication is unstable but there is a lack of corresponding solutions, the present invention proposes a communication method and a communication system for a device.
[0007] The communication method of the device proposed by the present invention includes:
[0008] Step 1: The sending device dynamically adjusts the amount of data sent by the current wireless module based on the latest packet loss data of the wireless module to which it is connected;
[0009] Step 2: the sending device marks the data according to the sending amount and unique identifier of the corresponding wireless module, and sends the corresponding data to the corresponding wireless module for wireless transmission according to the mark;
[0010] Step 3: When the receiving device successfully receives the corresponding data, it sends a response signal corresponding to the data to the corresponding wireless module;
[0011] Step 4: Count the packet loss data of the wireless module corresponding to the current round, update it to the latest packet loss data, and return to step 1 when the next round starts.
[0012] Furthermore, the packet loss data is a packet loss rate or a success rate.
[0013] Furthermore, when the packet loss data is the packet loss rate, the sending device dynamically adjusts the amount of data sent by the wireless module according to the latest packet loss data of the wireless module, including: when the latest packet loss data of all wireless modules is greater than the maximum value of the threshold range, the sending device suspends sending data to the receiving device.
[0014] Furthermore, when the packet loss data is the packet loss rate, the sending device dynamically adjusts the amount of data sent by the wireless module according to the latest packet loss data of the wireless module, including: when the latest packet loss data of all wireless modules are less than the minimum value of the threshold range, according to the priority of the wireless module, the amount of data sent by the wireless module with the highest priority is adjusted to 100% of the current round of data amount.
[0015] Further, when the packet loss data is a packet loss rate, the sending device dynamically adjusts the amount of data sent by the wireless module according to the latest packet loss data of the wireless module, including: when the latest packet loss data of all wireless modules meet the threshold range, increasing the amount of data sent by each wireless module by a preset data amount, or reducing the preset data amount;
[0016] If the adjusted packet loss data is less than the latest packet loss data of the wireless module, the adjusted data volume will be used as the data volume to be sent by the wireless module in the next round;
[0017] If the adjusted packet loss data is greater than the latest packet loss data of the wireless module, the amount of data before adjustment will be used as the amount of data to be sent by the wireless module in the next round.
[0018] Furthermore, when there are multiple sending devices, one of the sending devices is connected to the wireless module, and the multiple sending devices form a local area network, and the data to be sent is transmitted to the sending device connected to the wireless module by broadcasting in the local area network.
[0019] Furthermore, the sending module connected to the wireless module acts as a host, and all wireless modules act as slaves. The sending module connected to the wireless module transmits data to the corresponding wireless module in a master-slave roll call manner.
[0020] Furthermore, the wireless module includes a wifi module and a DTU module.
[0021] Furthermore, if there is no data record for the latest packet loss data of the wifi module and the DTU module, the amount of data sent by the wifi module is adjusted to 100% of the current round of data.
[0022] Furthermore, the priority of the wifi module is higher than that of the DTU module.
[0023] The communication system of the device proposed in the present invention includes a sending device and a receiving device, and a wireless module connected to the sending device. The sending device, the wireless module and the receiving device communicate with each other using the communication method of the device described in the above technical solution.
[0024] Furthermore, the sending device includes an indoor unit of an air conditioner and / or an outdoor unit of an air conditioner.
[0025] Furthermore, the receiving device is a server.
[0026] The present invention ensures the stability of the communication network by collecting real-time statistics on packet loss data from multiple wireless modules and adjusting the amount of data sent by the wireless modules in real time. Using the communication method of the present invention, communication quality can be effectively improved, ensuring the reliability of large data and remote control. When the network conditions of multiple wireless modules are good, the present invention prioritizes the wireless modules with lower communication costs, giving priority to sending data. This can effectively reduce mobile network traffic fees and lower system usage costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The present invention is described in detail below with reference to the embodiments and accompanying drawings, in which:
[0028] Figure 1 It is the main flow chart of the present invention;
[0029] Figure 2 is a communication network diagram of an embodiment of the present invention;
[0030] Figure 3 is a schematic diagram of a multi-connection network of the present invention;
[0031] Figure 4 It is a timing diagram of network switching control of the present invention. DETAILED DESCRIPTION
[0032] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0033] Thus, a feature indicated in this specification is intended to illustrate one of the features of one embodiment of the present invention, rather than to imply that every embodiment of the present invention must have the described feature. In addition, it should be noted that this specification describes many features. Although certain features can be combined together to illustrate possible system designs, these features can also be used in other, not explicitly described, combinations. Thus, unless otherwise noted, the described combinations are not intended to be limiting.
[0034] In order to maintain the stability of communication, the present invention proposes a communication method for a device, which mainly includes the following steps.
[0035] Step 1: The sending device dynamically adjusts the amount of data sent by the current wireless module according to the latest packet loss data of the wireless module to which the sending device is connected.
[0036] The latest packet loss data refers to the latest packet loss rate or the latest success rate. According to the actual situation of the wireless network, the amount of data sent by the wireless module in the current round is dynamically adjusted to avoid congestion or transmission failure of the data sent by the sending device as much as possible. The transmission failure here refers to the final transmission failure, because the existing wireless modules all have a retransmission mechanism after the transmission fails. However, if the amount of task data sent by the wireless module far exceeds its load, some data will exceed the time specified by the retransmission mechanism, resulting in the data ultimately failing to be sent successfully. Therefore, the present invention dynamically adjusts the amount of data sent by the sending device. It does not require the success rate of the wireless module to reach 100%, or the packet loss rate to be 0. It only needs to ensure that the wireless module can use its retransmission mechanism to successfully send the corresponding data.
[0037] In step 2, after determining the amount of data sent by the wireless module, the sending device then tags the data based on the corresponding wireless module's transmission volume and the module's unique identifier (e.g., the wireless module's ID). Based on these tags, the corresponding data is handed over to the corresponding wireless module for wireless transmission. When the wireless module receives the corresponding data, it will send the data to the receiving device. In this step, the number of wireless modules sending data to the receiving device can be one or more. Specifically, the sending device decides whether to use a single wireless module or multiple wireless modules to send data this round based on the latest packet loss data of each wireless module and the cost.
[0038] Step 3: When the receiving device successfully receives the corresponding data, it sends a response signal corresponding to the data to the corresponding wireless module.
[0039] Step 4: Count the packet loss data of the wireless modules corresponding to the current round and update it with the latest packet loss data. Wait until the next round begins and return to step 1. This counting of the packet loss data of the wireless modules corresponding to the current round can be performed by each wireless module individually or by the sending module. In one embodiment, the sending module calculates the packet loss data of each wireless module, i.e., calculates the packet loss rate or success rate, and then updates the latest packet loss data of each wireless module.
[0040] Through the above steps, the present invention dynamically adjusts the real-time data transmission volume of the wireless module according to the actual real-time situation of the wireless module in each round of data transmission, and performs adaptive adjustment from the source of data transmission, so that the communication status between the sending device and the receiving device is stable.
[0041] In step 1 above, if the packet loss data is the packet loss rate, the sending device dynamically adjusts the amount of data sent by the wireless module based on the latest packet loss data of the wireless module, including: when the latest packet loss data of all wireless modules is greater than the maximum value of the threshold range, the sending device suspends sending data to the receiving device. This situation refers to when the latest packet loss rate of all wireless modules is very large, for example, the latest packet loss rate is greater than 90%, that is, the success rate is less than 10%. At this time, due to network congestion or device failure, even if data is sent, the success rate is very low. To avoid invalid transmission, it is possible to suspend sending data to the receiving device, wait for a period of time, start with a small amount of data, and then try to send data again. If the latest packet loss rate situation improves, the amount of data sent by the wireless module can be dynamically adjusted according to the specific situation.
[0042] In step 1 above, when the packet loss data is the packet loss rate, the transmitting device dynamically adjusts the amount of data sent by the wireless module based on the latest packet loss data of the wireless module, including: when the latest packet loss data of all wireless modules is less than the minimum value of the threshold range, based on the priority of the wireless modules, the amount of data sent by the wireless module with the highest priority is adjusted to 100% of the current round of data volume. This situation refers to when the latest success rate of all wireless modules is quite high, for example, the latest success rate is greater than 90%, that is, the packet loss rate is less than 10%. At this time, if there are multiple wireless modules, then from the perspective of communication cost, the wireless module with the lowest communication cost can be selected to send data, thereby achieving the effect of reducing costs and increasing efficiency.
[0043] For example, if the wireless modules are Wi-Fi and DTU, the Wi-Fi module has a higher priority than the DTU module. Because the Wi-Fi module does not charge based on traffic, the communication cost is lower than that of the DTU module.
[0044] In step 1 above, when the packet loss data is the packet loss rate, the transmitting device dynamically adjusts the amount of data sent by the wireless module based on the latest packet loss data of the wireless module, including: when the latest packet loss data of all wireless modules meets the threshold range, the amount of data sent by each wireless module is increased by a preset data amount, or the preset data amount is reduced. If the adjusted packet loss data is less than the current latest packet loss data of the wireless module, the adjusted data amount is used as the data amount to be sent by the wireless module in the next round. If the adjusted packet loss data is greater than the latest packet loss data of the wireless module, the data amount before adjustment is used as the data amount to be sent by the wireless module in the next round.
[0045] Taking packet loss rate as an example, if all wireless modules have a certain probability of packet loss and are neither optimal nor optimal, adjustments can be made on a module-by-module basis. For example, if the wireless modules are Wi-Fi and DTU modules, and the Wi-Fi module originally sends a data volume of A, you can increase the data volume by 10% to see if the latest packet loss rate increases or decreases. If the latest packet loss rate increases, the data volume sent by the Wi-Fi module remains at A. Next, you can reduce the data volume sent by the Wi-Fi module by 10% and again check the latest packet loss rate. If the latest packet loss rate decreases after the 10% increase, the data volume sent by the Wi-Fi module becomes (1 + 10%) * A. In the next round, and the next round after that, you can continue to increase the data volume by 10% to check the latest packet loss rate until you find the optimal data volume. Similarly, when adjusting in increments of 10%, the same approach applies, using dynamic adjustments to find the optimal data volume for the Wi-Fi module. In this example, you can either increase or decrease the volume by 10% initially; both yield the same effect. The DTU module, as an adjustment unit, is also adjusted in parallel until the optimal data transmission rate of the DTU module is found.
[0046] When the Wi-Fi module and DTU module are first used by the connected sending device, there is no latest packet loss data, or due to other reasons, the latest packet loss data of the Wi-Fi module and DTU module is not recorded. In this case, the data volume sent by the Wi-Fi module can be adjusted to 100% of the current round of data volume. Since the Wi-Fi module has the highest priority, it can be used first when there is no packet loss rate data at the beginning. If the packet loss rate of the Wi-Fi module is high and meets the above settings, the DTU module will start sending data. Based on the network conditions of each module, dynamic adjustments will be made to find the appropriate data volume for each module.
[0047] It should be noted that the numerical values in the above specific examples of the present invention are only for illustrating the concept of the present invention and are not the only values of the corresponding variables. In addition, the wireless module of the present invention includes but is not limited to the wifi module and DTU module listed above.
[0048] In one embodiment, there may be multiple sending devices, such as in a multi-connected system, where each indoor unit can serve as a sending device, and each outdoor unit can also serve as a sending device. Among the multiple sending devices, one is selected to connect to the wireless module. For example, one indoor unit is selected to connect to the Wi-Fi module and the DTU module via a serial port. The multiple sending devices themselves form a local area network, such as an internal LAN formed by a bus, which is distinct from the network where the Wi-Fi module and the network where the DTU module are located. These sending devices can transmit the data to be sent to the sending device connected to the wireless module via broadcast within the local area network.
[0049] In terms of communication mode, the sending module connected to the wireless module in the present invention serves as a host, and the wireless module serves as a slave. The sending module connected to the wireless module transmits data to the corresponding wireless module in a master-slave roll call mode.
[0050] The communication system of the device of the present invention includes a sending device and a receiving device, and a wireless module connected to the sending device. The sending device, the wireless module and the receiving device communicate with each other using the communication method of the device of the above technical solution.
[0051] When specifically applied to a multi-connected system, the sending device may include an indoor air conditioner and / or an outdoor air conditioner, and the receiving device may be a server.
[0052] The present invention will be described in detail below by taking a multi-connected system as a specific example.
[0053] like Figure 2 As shown, when the communication system of the device of the present invention is applied to a multi-split system, the external unit and each internal unit of the multi-split system communicate via wired connections. One of the internal units is selected to connect to the Wi-Fi module and the DTU module. The external unit and the internal unit of the multi-split system communicate with the big data server through the Wi-Fi module and the DTU module. The big data server is the receiving device. The DTU module can directly connect to the big data server by inserting a data card. The Wi-Fi module needs to be connected to a router to connect to the big data server. Both wireless modules are connected to the same server. That is, the Wi-Fi module communicates with the server through the router, and the DTU module communicates with the server through the base station.
[0054] like Figure 3 、 Figure 4As shown, in other embodiments, the wifi module and DTU module of the air-conditioning system can first communicate with a server, and then the server processes the corresponding data and transmits it to the big data service center. At this time, the server is the receiving device.
[0055] The outdoor unit and the indoor unit form a system communication network. Select any indoor unit as the system host and connect the DTU module and the wifi module through the serial port to form a large number of wireless communication networks. The communication method between the outdoor unit and the indoor unit can be RS485 bus, CAN bus communication, etc. The communication data of the internal network of the system is forwarded to the corresponding server through the internal network and the external wireless network by connecting the DTU module and the wifi module to realize the big data function.
[0056] The indoor or outdoor unit, DTU module and wifi module connected to the wireless module are in the same serial network, so they can send or receive relevant control instructions to each other.
[0057] When the multi-connected system is powered on, the Wi-Fi module and DTU module actively send data request commands to the corresponding indoor units and request network access from the server at the same time.
[0058] The server also feeds back the network status information to the corresponding Wi-Fi module and DTU module.
[0059] If the Wi-Fi module or DTU module does not receive the corresponding ACK response information from the server for a long time, it is determined that the corresponding wireless module is communicating abnormally with the server. At this time, the status information is fed back to the system host (such as a certain indoor or outdoor unit). The status information refers to whether the connection with the server is successful. The system host converts and processes the data to be sent based on this status information. For example, if the Wi-Fi module is successfully connected to the server, the data is transferred to the Wi-Fi module. If the Wi-Fi module fails to connect to the server, but the DTU module is successfully connected to the server, the data is transferred to the DTU module. If both the Wi-Fi module and the DTU module fail to connect to the server, no data is sent temporarily.
[0060] If the system host receives the network access success status of the WiFi module and the DTU module at the same time, it will send all the unit data to the WiFi module and the DTU module respectively, and start to calculate the packet loss rate of the WiFi module and the DTU module when actually transmitting data in real time, and update the latest packet loss rate.
[0061] The calculation method for the wireless transmission data packet loss rate between the Wi-Fi module and the DTU module is as follows.
[0062] The total number of data sent by the Wi-Fi module to the server per unit time is M1, and the total number of ACK data sent by the server to the Wi-Fi module is N1. The packet loss rate of the Wi-Fi module is P1 = (M1-N1) / M1. Similarly, the total number of data sent by the DTU module per unit time is M2, and the total number of ACK data sent by the server to the DTU module is N2. The packet loss rate of the DTU module is P2 = (M2-N2) / M2.
[0063] The Wifi module and DTU module send the latest calculated packet loss rate to the system host. The system host dynamically adjusts the traffic of the data sent by the Wifi module and DTU module based on the latest packet loss rate fed back.
[0064] Assume that the total number of data sent by the unit in this round is M. When the packet loss rate of the wifi module is less than the threshold value, that is, less than the minimum value of the threshold range, such as close to 0, it indicates that the communication network of the wifi module is normal. At this time, the number of data sent by the system host to the wifi module is M1=M, and the number of data sent to the DTU module is M2=0, that is, the data transmission of the DTU module is turned off to save traffic costs.
[0065] When the WiFi packet loss rate is greater than a certain threshold value, that is, greater than the maximum value of the threshold range, such as close to 100%, it indicates that the communication network of the WiFi module is abnormal. Then the number of data sent by the system host to the WiFi module is M1=0, and the number of data sent to the DTU module is M2=M.
[0066] When both the Wi-Fi module and the DTU module experience packet loss rates within a certain range (i.e., both meet the threshold), the system host turns on both modules simultaneously and dynamically adjusts the amount of data they send based on their latest packet loss rates. This cycle ensures reliable transmission and maximizes network resource utilization.
[0067] In the above-mentioned technical solution of the present invention, traffic calculation, distribution, and switching are all performed based on the multi-split host device, eliminating the need for additional switching. The internal network between the multi-split external and internal units is used for communication between the units, utilizing broadcast communication. Any internal or external unit can access data sent by other units. The external network represents traffic data sent to the server by the system host via the Wi-Fi module and DTU module, with traffic distribution achieved through the multi-split device itself.
[0068] The system host calls out the WiFi module and the DTU module respectively, and uses the device ID number to distinguish different devices. After the WiFi module or the DTU module receives the data of the called unit, it sends it to the server through its respective network. The system host also counts the corresponding number of sent data and waits for the server to respond with ACK information.
[0069] After receiving the unit data, the server responds with ACK information according to the different device ID numbers. At this time, the Wifi module or DTU module feeds back the received ACK information to the system host.
[0070] The system host calculates the number of data sent in this round and the number of corresponding ACK data received, calculates the corresponding packet loss rate or success rate of the WiFi module and DTU module, and then dynamically adjusts the amount of data sent by the WiFi module and DTU module according to the latest packet loss rate. The adjustment principle is based on reliability priority and WiFi traffic priority. That is, the higher the success rate and the smaller the packet loss rate, the higher the allocated traffic, and vice versa. If there is no packet loss rate or the packet loss rate is the same, WiFi traffic allocation is prioritized. This cycle continues, which not only meets reliability but also saves traffic and costs.
[0071] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A communication method for a device, characterized in that: include: Step 1: The sending device dynamically adjusts the amount of data sent by the wireless modules in the current round based on the latest packet loss data of multiple wireless modules connected to it, where the packet loss data is a packet loss rate or a success rate, including: when the latest packet loss data of all wireless modules meets a threshold range, increasing the amount of data sent by each wireless module by a preset data amount, or decreasing the preset data amount; if the adjusted packet loss data is less than the current latest packet loss data of the wireless module, using the adjusted data amount as the data amount to be sent by the wireless module in the next round; if the adjusted packet loss data is greater than the latest packet loss data of the wireless module, using the data amount before adjustment as the data amount to be sent by the wireless module in the next round; Step 2: the sending device marks the data according to the sending amount and unique identifier of the corresponding wireless module, and sends the corresponding data to the corresponding wireless module for wireless transmission according to the mark; Step 3: When the receiving device successfully receives the corresponding data, it sends a response signal corresponding to the data to the corresponding wireless module; Step 4: Count the packet loss data of the wireless module corresponding to the current round, update it to the latest packet loss data, and return to step 1 when the next round starts.
2. The communication method of the device according to claim 1, wherein: When the packet loss data is the packet loss rate, the sending device dynamically adjusts the amount of data sent by the wireless module according to the latest packet loss data of the wireless module, including: when the latest packet loss data of all wireless modules is greater than the maximum value of the threshold range, the sending device suspends sending data to the receiving device.
3. The communication method of the device according to claim 1, wherein: When the packet loss data is the packet loss rate, the sending device dynamically adjusts the amount of data sent by the wireless module according to the latest packet loss data of the wireless module, including: when the latest packet loss data of all wireless modules are less than the minimum value of the threshold range, according to the priority of the wireless module, the amount of data sent by the wireless module with the highest priority is adjusted to 100% of the current round of data amount.
4. The communication method of the device according to claim 1, wherein: When there are multiple sending devices, one of the sending devices is connected to the wireless module, and the multiple sending devices form a local area network, and the data to be sent is transmitted to the sending device connected to the wireless module by broadcasting in the local area network.
5. The communication method of the device according to claim 1, wherein: The sending module connected to the wireless module serves as a host, and all wireless modules serve as slaves. The sending module connected to the wireless module delivers data to the corresponding wireless module in a master-slave roll call manner.
6. The communication method of the device according to any one of claims 1 to 5, characterized in that: The wireless module includes a wifi module and a DTU module.
7. The communication method of the device according to claim 6, characterized in that: If there is no data record for the latest packet loss data of the WiFi module and the DTU module, the amount of data sent by the WiFi module is adjusted to 100% of the current round of data.
8. The communication method of the device according to claim 6, characterized in that: The priority of the wifi module is higher than that of the DTU module.
9. A device communication system, comprising a sending device and a receiving device, and a wireless module connected to the sending device, characterized in that: The sending device, the wireless module and the receiving device communicate with each other using the communication method of the device according to any one of claims 1 to 8.
10. The communication system of the device according to claim 9, characterized in that The sending device includes an indoor unit of an air conditioner and / or an outdoor unit of an air conditioner.
11. The communication system of the device according to claim 9, characterized in that The receiving device is a server.
Citation Information
Patent Citations
Network dynamic adaptation monitoring video transmission method
CN103067791A
Complex network data packet transmission method and system, terminal and storage medium
CN115037700A