Wireless communication method, electronic device, and storage medium

By acquiring and calculating the communication status and load data of the bridge, the connection between the bridge and sub-devices is adjusted, thus solving the bridge load balancing problem in smart home devices and improving communication quality and reliability.

CN116321304BActive Publication Date: 2026-05-05GUANGDONG ZHONGCHUANGZHIJIA SCI RES CO LTD +2
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGDONG ZHONGCHUANGZHIJIA SCI RES CO LTD
Filing Date
2021-12-17
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

In existing smart home devices, the load balancing of sub-devices between bridges cannot be adjusted, resulting in a decline in communication quality.

Method used

By acquiring communication status and load data from multiple bridges, calculating bridge quality data, identifying the bridge to be adjusted, and sending a disconnect command to it to disconnect it from the sub-devices, the system simultaneously seeks a target bridge with better communication quality for reconnection, thereby achieving load balancing.

Benefits of technology

It improves the communication quality and reliability of smart home devices by adjusting the load balancing between bridges to ensure that sub-devices are connected to more suitable bridges for data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116321304B_ABST
    Figure CN116321304B_ABST
Patent Text Reader

Abstract

The application relates to the field of communication, and provides a wireless communication method, an electronic device and a storage medium. The method comprises the following steps: acquiring communication state data and load data of multiple network bridges; determining network bridge quality data of each network bridge based on the communication state data and the load data of each network bridge; determining a network bridge to be adjusted based on the network bridge quality data of each network bridge; and sending a disconnection instruction to the network bridge to be adjusted; the disconnection instruction is used for instructing to disconnect the network bridge to be adjusted from a sub-device to be adjusted corresponding to the network bridge to be adjusted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and more particularly to wireless communication methods, electronic devices, and storage media. Background Technology

[0002] With the advancement of technology, smart home devices (such as smart lights and robot vacuum cleaners) are gradually becoming more common in ordinary households, adding convenience and happiness to people's lives.

[0003] Current smart home devices typically interact with cloud servers via network bridges. A typical home includes multiple network bridges, each connecting to multiple sub-devices. In practice, the real-time communication quality varies between each bridge, undoubtedly impacting the data communication of the sub-devices connected to those bridges. In other words, current technology cannot adjust the load balancing of sub-devices across bridges, leading to reduced communication quality in smart homes. Summary of the Invention

[0004] This invention aims to at least solve one of the technical problems existing in the prior art. To this end, this invention proposes a wireless communication method. The wireless communication method of this invention, according to embodiments, can adjust the load balancing of sub-devices between bridges, thereby improving the communication quality of smart homes.

[0005] According to a first aspect of the present invention, a wireless communication method includes:

[0006] Obtain communication status data and load data from multiple bridges;

[0007] The bridge quality data of each bridge is determined based on the communication status data and load data of each bridge.

[0008] The bridge to be adjusted is determined based on the bridge quality data of each bridge, or based on the bridge quality data of each bridge and the access load threshold.

[0009] Send a disconnect command to the bridge to be adjusted; the disconnect command is used to instruct the bridge to be adjusted to disconnect the communication connection between the bridge to be adjusted and the corresponding sub-device of the bridge to be adjusted.

[0010] According to the wireless communication method of the present invention, communication status data and load data of multiple bridges are acquired, and bridge quality data of each bridge is determined based on the communication status data and load data of each bridge, thereby enabling the cloud server to obtain the bridge quality data of each bridge. Further, the bridge to be adjusted is determined based on the bridge quality data of each bridge, or based on the bridge quality data of each bridge and the access load threshold; thus, the present invention identifies bridges with poor communication quality that need adjustment based on the bridge quality data of each bridge, or based on the bridge quality data of each bridge and the access load threshold. A disconnect command is sent to the bridge to be adjusted, causing the bridge to be adjusted to disconnect the communication connection with the corresponding sub-device to be adjusted. Therefore, when the cloud server determines the bridge to be adjusted, it sends a disconnect command to the bridge to be adjusted, causing the bridge with poor communication quality to disconnect the communication connection with the corresponding sub-device to be adjusted, facilitating the sub-device to be adjusted to be assigned to a bridge with better communication quality. Thus, the present invention can adjust the load balancing of sub-devices among bridges, improving the communication quality of smart homes.

[0011] According to one embodiment of the present invention, determining the bridge quality data of each bridge based on the communication status data and load data of each bridge includes:

[0012] Calculate the communication status score of the first bridge based on the communication status data of the first bridge;

[0013] Calculate the load score of the first bridge based on its load data;

[0014] The bridge quality data of the first bridge is determined based on the communication status score and the load score of the first bridge.

[0015] According to one embodiment of the present invention, determining the bridge quality data of the first bridge based on the communication status score and the load score of the first bridge includes:

[0016] The bridge quality data of the first bridge is determined by summing the communication status score and the load score of the first bridge.

[0017] According to one embodiment of the present invention, the communication status score of the first bridge includes the sum of TCP round-trip time score, received signal strength score, and bit error rate score;

[0018] The load score for the first bridge includes processor utilization score, memory utilization score, and the sum of network data volume.

[0019] A communication state score, characterizing the communication quality of the first bridge in terms of communication state dimension, is obtained by summing the TCP round-trip time score, received signal strength score, and bit error rate. A higher communication state score indicates better parameter indicators at the communication state level, thus indicating better communication quality. A load score, characterizing the communication quality of the first bridge in terms of workload dimension, is obtained by summing the processor utilization score, memory utilization score, and network data volume utilization score. A higher load score indicates a lower workload at the workload level, thus indicating better communication quality.

[0020] According to one embodiment of the present invention, determining the bridge to be adjusted based on the bridge quality data of each bridge includes:

[0021] Bridges with quality data below a set threshold are identified as bridges requiring adjustment; or

[0022] Bridges whose quality data is below a set threshold and whose connected sub-devices are greater than or equal to the access load threshold are identified as bridges to be adjusted.

[0023] Compared to identifying bridges to be adjusted solely based on bridge quality data, the method of combining bridge quality data and access load thresholds is more accurate.

[0024] According to one embodiment of the present invention, after determining the bridge to be adjusted based on the bridge quality data of each bridge, the method further includes:

[0025] The target bridge is determined based on the interaction information between the sub-device to be adjusted and the bridge to be adjusted.

[0026] After sending a disconnect command to the bridge to be adjusted, the process also includes:

[0027] Send a connection command to the target bridge; the connection command is used to instruct the target bridge to establish a communication connection with the sub-device to be adjusted corresponding to the bridge to be adjusted.

[0028] According to one embodiment of the present invention, determining the target bridge based on the interaction information of the sub-device to be adjusted corresponding to the bridge to be adjusted includes:

[0029] Send a bridge lookup command to the sub-device corresponding to the bridge to be adjusted. The bridge lookup command is used to instruct the sub-device to search for a bridge that can be connected.

[0030] Receive the property information of the connectable bridge sent by the sub-device to be adjusted;

[0031] The target bridge is determined based on the attribute information of the connectable bridges.

[0032] After identifying the target bridge, the cloud server sends a connection command to it, instructing it to establish a communication connection with the previously identified sub-device to be adjusted. Then, even after the communication connection between the target bridge and the sub-device is broken, the cloud server further searches for a suitable target bridge for the sub-device and guides it to connect to a nearby bridge more suitable for data transmission. This achieves network load balancing and improves communication reliability.

[0033] According to one embodiment of the present invention, determining a target bridge based on the attribute information of connectable bridges includes:

[0034] If the attribute information of a connectable bridge includes one, and the bridge quality data of the connectable bridge corresponding to the attribute information is greater than or equal to a set threshold, the connectable bridge will be identified as the target bridge.

[0035] According to one embodiment of the present invention, determining a target bridge based on the attribute information of connectable bridges includes:

[0036] When there are multiple attribute information of a connectable bridge, if the bridge quality data of the connectable bridges corresponding to multiple attribute information are all greater than or equal to a set threshold, the connectable bridge with the highest bridge quality data value is determined as the target bridge.

[0037] Compared to identifying bridges to be adjusted solely based on bridge quality data, the method of combining bridge quality data and access load thresholds is more accurate.

[0038] An electronic device according to a second aspect of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of any of the wireless communication methods described above.

[0039] According to a third aspect of the present invention, a non-transitory computer-readable storage medium is provided thereon storing a computer program that, when executed by a processor, implements the steps of any of the above-described wireless communication methods.

[0040] A computer program product according to a fourth aspect of the present invention includes a computer program that, when executed by a processor, implements the steps of any of the wireless communication methods described above.

[0041] The above-described one or more technical solutions in the embodiments of the present invention have at least one of the following technical effects:

[0042] Furthermore, by acquiring communication status data and load data of multiple bridges, and determining the bridge quality data of each bridge based on this data, the cloud server obtains the bridge quality data of each bridge. The bridge to be adjusted is determined using the bridge quality data of each bridge, or based on the bridge quality data of each bridge and the access load threshold. This allows the embodiment of the invention to identify bridges with poor communication quality that require adjustment. A disconnect command is sent to the bridge to be adjusted, causing the bridge to disconnect from the corresponding sub-devices connected to it. Thus, when the cloud server identifies a bridge to be adjusted, it sends a disconnect command to that bridge, causing the bridge with poor communication quality to disconnect from the corresponding sub-devices connected to it, facilitating the allocation of the sub-devices to a bridge with better communication quality. Therefore, this embodiment of the invention can adjust the load balancing of sub-devices among bridges, improving the communication quality of smart homes.

[0043] Furthermore, after identifying the target bridge, the cloud server sends a connection command to the target bridge, instructing it to establish a communication connection with the sub-device to be adjusted identified in the previous steps. Then, even after the communication connection between the target bridge and the sub-device is broken, a suitable target bridge for the sub-device to connect to is found, and the sub-device is guided to connect to a nearby bridge more suitable for data transmission. This achieves network load balancing, thereby improving communication reliability.

[0044] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description

[0045] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0046] Figure 1 This is one of the flowcharts illustrating the wireless communication method provided in this embodiment of the invention;

[0047] Figure 2 This is a second schematic flowchart of the wireless communication method provided in the embodiments of the present invention;

[0048] Figure 3 This is the third flowchart illustrating the wireless communication method provided in this embodiment of the invention;

[0049] Figure 4 This is the fourth flowchart illustrating the wireless communication method provided in this embodiment of the invention;

[0050] Figure 5 This is the fifth flowchart illustrating the wireless communication method provided in this embodiment of the invention;

[0051] Figure 6 This is the sixth flowchart illustrating the wireless communication method provided in this embodiment of the invention;

[0052] Figure 7 This is the seventh flowchart illustrating the wireless communication method provided in this embodiment of the invention;

[0053] Figure 8 This is a schematic diagram of the structure of the wireless communication device provided in an embodiment of the present invention;

[0054] Figure 9 This is a schematic diagram of the structure of the electronic device provided in an embodiment of the present invention. Detailed Implementation

[0055] The embodiments of the present invention will be described in further detail below with reference to the accompanying drawings and examples. The following examples are for illustrative purposes only and should not be construed as limiting the scope of the invention.

[0056] In the description of the embodiments of the present invention, it should be noted that the terms "first", "second" and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0057] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0058] Smart home networking typically uses combo (WiFi / BT) modules as bridges and individual Bluetooth modules as sub-devices. Each bridge can wirelessly connect up to six sub-devices. However, due to the workload of each bridge and the wireless environment, the communication quality between bridges varies, with some bridges exhibiting poor communication quality. For example, bridges that continuously report data to the cloud server, bridges physically far from the router, or bridges experiencing interference from other wireless devices operating on the same frequency will all suffer. If all sub-devices that continuously report data to the cloud server are connected to the same bridge with poor communication quality, it will inevitably overload that bridge, affecting communication quality.

[0059] In view of this, embodiments of the present invention propose a wireless communication method. This method determines the bridge quality data of each bridge based on its communication status data and load data; identifies bridges with poor communication quality to be adjusted based on the bridge quality data, or based on the bridge quality data and an access load threshold; and then sends a disconnect command to the bridges to be adjusted. This disconnects the communication connection between the bridges with poor communication quality and the sub-devices to be adjusted, thereby facilitating the allocation of the sub-devices to bridges with better communication quality. This achieves load balancing among the sub-devices on the adjusted bridges, improving the communication quality of smart homes.

[0060] The following is combined Figures 1-7 The wireless communication method of the present invention is described in an embodiment.

[0061] Please refer to Figure 1 This invention proposes a wireless communication method, comprising:

[0062] Step 100a: Obtain communication status data and load data of multiple bridges;

[0063] Cloud servers can obtain communication status and load data from multiple network bridges via networks such as Wi-Fi or Bluetooth. Multiple network bridges refer to multiple network bridges located within the same physical space, such as multiple network bridges situated in the same home or office area.

[0064] Communication status data includes at least one of the following: TCP (Transmission Control Protocol) round-trip time, received signal strength, and bit error rate. TCP round-trip time (or TCP transmission round-trip time) refers to the transmission time from when the sender sends a TCP packet to when it receives an immediate response. TCP round-trip time can be used as one of the criteria for evaluating the communication quality of a current bridge. The shorter the TCP round-trip time, the higher the communication quality of the bridge.

[0065] For TCP round-trip time, the bridge can record the time it takes for each heartbeat to be sent and received from the server within a set time threshold, calculate the average time, and use this average time as the TCP round-trip time. The cloud server receives this TCP round-trip time. The set time threshold can be configured according to actual needs. For example, the bridge can record the time it takes for each heartbeat to be sent and received from the server within a set hour, calculate the average time, and use this average time as the TCP round-trip time.

[0066] Received Signal Strength Indication (RSSI) is an optional component of the wireless transmission layer, used to determine link quality and whether to increase broadcast transmission strength. RSSI indicates a bridge's ability to obtain wireless signals from a wireless router and can also serve as one of the criteria for evaluating the current communication quality of the bridge. A lower RSSI value indicates poorer communication quality.

[0067] Regarding received signal strength, the bridge can acquire multiple received signal strength data from the wireless routers connected to it within a set time threshold, and average these data. The average of these multiple received signal strengths is then sent to the cloud server as the final received signal strength. The set time threshold can be configured according to specific requirements. Alternatively, the bridge can acquire multiple received signal strength data from the wireless routers connected to it within one hour, average these data, and send the average of these data to the cloud server as the final received signal strength.

[0068] Bit error rate (BER) is a metric that measures the accuracy of data transmission by a network bridge within a specified time. A lower BER indicates higher data transmission quality. Therefore, BER can also be used as one of the criteria for evaluating the communication quality of a current network bridge.

[0069] Regarding the bit error rate (BER), the bridge obtains the BER for transmission and reception over a set time threshold, and then sends the obtained BER for transmission and reception to the cloud server. The set time threshold can be configured according to actual needs. For example, the bridge can obtain the BER for transmission and reception over one hour.

[0070] In some embodiments, to comprehensively assess the communication quality of the bridge, communication status data includes TCP (Transmission Control Protocol) round-trip time, received signal strength, and bit error rate.

[0071] It should be noted that in some other embodiments, the communication status data may also include indicators that can measure the communication quality of the bridge, such as data transmission rate, throughput, bandwidth utilization, and protocol efficiency.

[0072] On the other hand, the load data includes at least one of the following: processor utilization, memory utilization, and network data volume utilization. The bridge can acquire the bridge's processor utilization, memory utilization, and network data volume utilization at a preset time frequency and send these data to the cloud server. The preset time frequency can be set to send the processor utilization, memory utilization, and network data volume utilization to the cloud server once every 30 minutes.

[0073] Step 200a: Determine the bridge quality data of each bridge based on the communication status data and load data of each bridge;

[0074] Based on the communication status and load data of each bridge, the cloud server determines the bridge quality data of each bridge.

[0075] Please refer to Figure 2 In some embodiments, step 200a, determining the bridge quality data of each bridge based on the communication status data and load data of each bridge, includes:

[0076] Step 210a: Calculate the communication status score of the first bridge based on the communication status data of the first bridge;

[0077] Here, "first bridge" refers to any one of multiple bridges. The cloud server calculates a communication status score for the first bridge based on its communication status data. Based on this communication status data, a communication status score representing the first bridge at the communication status data level can be calculated.

[0078] It should be noted that the more scoring factors included in the communication status score, the more accurate and objective the score will be. Therefore, in some embodiments, the communication status score of the first bridge includes the sum of the TCP round-trip time score, the received signal strength score, and the bit error rate score.

[0079] The TCP round-trip time score can be based on a 25ms round-trip time. Specifically, the TCP round-trip time score can be expressed by the following formula:

[0080] S1=-(RTT-25)*2; Formula (1)

[0081] Where S1 represents the TCP round-trip time score, and RTT represents the TCP round-trip time obtained by the cloud server from the bridge. It should be understood that other round-trip times can also be used as standards for scoring in this invention. The 25ms round-trip time should not be construed as a limitation of this invention.

[0082] Regarding the received signal strength rating: The cloud server can use a mean filtering method to filter the RSSI (Received Signal Strength) reported by the bridge to obtain the average RSSI (avg) for the current time period, using -60dB as the reference standard for signal strength. The formula for calculating the received signal strength rating is as follows:

[0083] S2=(RSSI(avg)–(-60))*2+S0; Formula (2)

[0084] Wherein, S2 is the received signal strength score, and S0 is the additional compensation. When RSSI(avg) > -30dB, the value of S0 is 10; when RSSI(avg) < -75dB, the value of S0 is -10. Similarly, this invention can also use other received signal strengths as standards for scoring. The reference standard of -60dB received signal strength should not be construed as a limitation of this invention.

[0085] Regarding the bit error rate (BER) score, the bridge reads the BER W (where W is a percentage) from the chip's underlying data and sends it to the cloud server. The BER score calculation formula is as follows:

[0086] S3=-(W*100); Formula (3)

[0087] Where S3 represents the bit error rate score. W represents the bit error rate obtained by the cloud server from the bridge.

[0088] By summing the TCP round-trip time score, received signal strength score, and bit error rate, a communication state score is obtained, which characterizes the communication quality of the first bridge in the communication state dimension. A higher communication state score indicates better parameter indicators at the communication state level for the first bridge, and thus better communication quality.

[0089] Step 220a: Calculate the load score of the first bridge based on the load data of the first bridge;

[0090] The cloud server calculates the load score of the first bridge based on its load data. This load data allows for the calculation of the first bridge's load score at the load data level.

[0091] It should be noted that the more factors included in the load score, the more accurate and objective the load score will be. Therefore, in some embodiments, the load score of the first bridge includes the sum of processor utilization score, memory utilization score, and network data volume. This embodiment of the invention scores the communication quality of the bridge using three dimensions: processor utilization, memory utilization, and network data volume.

[0092] The processor utilization score can be determined using low utilization thresholds and high utilization thresholds. For example, when the CPU utilization is below the set low utilization threshold, S4 = 10; when the CPU utilization is above the set high utilization threshold, S4 = -10; otherwise, when the CPU utilization is between the low utilization threshold and the high utilization threshold, S4 = 0. Here, S4 represents the processor utilization score.

[0093] Similarly, memory usage scoring uses low and high usage thresholds. For example, when memory usage is below the low threshold, S5 = 10; when memory usage is above the high threshold, S5 = -10; otherwise, when memory usage is between the low and high thresholds, S5 = 0. Here, S5 represents the memory usage score.

[0094] Similarly, for network data usage rate scoring, low and high usage rate thresholds are set. For example, when the network data usage rate is below the set low usage rate threshold, S6 = 10; when the network data usage rate is above the set high usage rate threshold, S6 = -10; otherwise, when the network data usage rate is between the low and high usage rate thresholds, S6 = 0. Here, S6 represents the network data usage rate score.

[0095] It should be noted that for processor utilization scores, memory utilization scores, and network data usage utilization scores, the low utilization threshold and high utilization threshold can be set according to the actual situation, for example, a low utilization threshold of 30% and a high utilization threshold of 70%.

[0096] By summing the processor utilization score, memory utilization score, and network data volume utilization score, a load score is obtained, which characterizes the communication quality of the first bridge under workload conditions. A higher load score indicates that the first bridge has a lower workload at the workload level, and thus better communication quality.

[0097] Step 230a: Determine the bridge quality data of the first bridge based on the communication status score and load score of the first bridge.

[0098] After obtaining the communication status score and load score of the first bridge, the cloud server determines the bridge quality data of the first bridge based on the communication status score and load score of the first bridge.

[0099] In some embodiments, step 230a, determining the bridge quality data of the first bridge based on the communication status score and load score of the first bridge, includes:

[0100] Step 231a: Determine the bridge quality data of the first bridge based on the sum of the communication status score and the load score of the first bridge.

[0101] The cloud server determines the bridge quality data of the first bridge based on the sum of its communication status score and load score. A higher communication status score indicates better bridge communication quality. Similarly, a higher load score also indicates better bridge communication quality. Therefore, the higher the algebraic sum of the communication status score and load score, the better the overall bridge quality data for the first bridge.

[0102] It should be noted that in other embodiments, the bridge quality data of the first bridge can also be determined based on the weighted sum of the communication status score and the load score of the first bridge.

[0103] Step 300a: Determine the bridges to be adjusted based on the bridge quality data of each bridge;

[0104] Based on the bridge quality data obtained from each bridge, the cloud server determines the bridges that need to be adjusted.

[0105] Please refer to Figure 3 In some embodiments, step 300a, determining the bridge to be adjusted based on the bridge quality data of each bridge, includes:

[0106] Step 310a: Identify bridges whose bridge quality data is lower than a set threshold as bridges to be adjusted; or identify bridges whose bridge quality data is lower than a set threshold and whose connected sub-devices are greater than or equal to the access load threshold as bridges to be adjusted.

[0107] The communication quality of a bridge can be evaluated by setting a threshold. When the bridge quality data is lower than the set threshold, the bridge with the lower quality data is identified as a bridge that needs adjustment. For example, in a home network, there are three bridges: A, B, and C. The set threshold is 100 points. Based on the calculation in step 200, the bridge quality data of bridge A is 120 points, bridge B is 90 points, and bridge C is 105 points. At this time, the bridge quality data of bridge B is lower than the set threshold, so bridge B is identified as a bridge that needs adjustment. This indicates that bridge B has poor communication quality, and the sub-devices connected to bridge B need to find a bridge with better communication quality.

[0108] It should be noted that each bridge has an access load threshold. For example, to ensure communication quality while multiple sub-devices are working simultaneously, each bridge allows a maximum of 6 sub-devices to connect.

[0109] If the bridge quality data is below the set threshold, it indicates poor communication quality. Furthermore, if the number of sub-devices connected to the bridge is greater than or equal to the access load threshold, it indicates that the number of connected sub-devices is excessive, impacting communication quality. For example, if bridge B has a quality score of 90, below the set threshold of 100, and simultaneously has 7 sub-devices connected, exceeding the access load threshold of 6, then bridge B is experiencing poor communication quality and requires load balancing.

[0110] Compared to identifying bridges to be adjusted solely based on bridge quality data, the method of combining bridge quality data and access load thresholds is more accurate.

[0111] Step 500a: Send a disconnect command to the bridge to be adjusted; the disconnect command is used to instruct the bridge to be adjusted to disconnect the communication connection between the bridge to be adjusted and the corresponding sub-device to be adjusted.

[0112] Based on the cloud server's identification of the bridge to be adjusted, a disconnect command is sent to the bridge, instructing it to disconnect its communication connection with the corresponding sub-device. Thus, when the cloud server identifies the bridge to be adjusted, sending the disconnect command causes the bridge with poor communication quality to disconnect from its corresponding sub-device, allowing the sub-device to be assigned to a bridge with better communication quality. This embodiment of the invention can adjust the load balancing of sub-devices between bridges, improving the communication quality of smart homes.

[0113] For other aspects of the invention, please refer to Figure 4 After step 300a, which determines the bridges to be adjusted based on the bridge quality data of each bridge, the following steps are also included:

[0114] Step 400a: Determine the target bridge based on the interaction information of the sub-device to be adjusted corresponding to the bridge to be adjusted.

[0115] After the cloud server identifies the bridge to be adjusted, it determines the target bridge based on the interaction information between the target bridge and the corresponding sub-device. This facilitates guiding the sub-device to the target bridge with better communication quality for data transmission.

[0116] Please refer to Figure 5 In some embodiments, step 400a, determining the target bridge based on the interaction information of the sub-device to be adjusted corresponding to the bridge to be adjusted, includes:

[0117] Step 410a: Send a bridge search command to the sub-device to be adjusted corresponding to the bridge to be adjusted. The bridge search command is used to instruct the sub-device to be adjusted to search for a bridge that can be connected.

[0118] The cloud server can pre-receive information about the sub-devices connected to each bridge, such as the device names of the sub-devices, and store this device information for each bridge's corresponding connected sub-devices. Based on the identified bridge to be adjusted, the cloud server retrieves the sub-device to be adjusted by querying its corresponding device information. The sub-device then sends a bridge lookup command to instruct it to search for connectable bridges.

[0119] Step 420a: Receive the attribute information of the connectable bridge sent by the sub-device to be adjusted;

[0120] After receiving the bridge search command from the cloud server, the device to be adjusted scans and searches for nearby bridges with better call quality that can be connected. It then sends the attribute information of these bridges (such as their ID numbers) to the cloud server, which in turn receives this information.

[0121] Step 430a: Determine the target bridge based on the attribute information of the connectable bridges.

[0122] The cloud server determines the target bridge based on the attribute information of the connectable bridges sent by the sub-device to be adjusted. The target bridge is a bridge device with relatively good current communication quality, which facilitates data transmission by the sub-device to be adjusted.

[0123] It's worth noting that the attribute information for a connectable bridge can include one or more. That is, there may be one or more connectable bridge devices. The following sections will explain the cases with one connectable bridge device and the cases with multiple connectable bridge devices separately.

[0124] Please refer to Figure 6 In some embodiments, step 430a, determining the target bridge based on the attribute information of connectable bridges, includes:

[0125] Step 431a: When the attribute information of a connectable bridge includes one, if the bridge quality data of the connectable bridge corresponding to the attribute information is greater than or equal to a set threshold, the connectable bridge is determined as the target bridge.

[0126] If the attribute information of a connectable bridge includes only one element, then it is only necessary to query the bridge quality data of each bridge calculated in step 200. If the bridge quality data of the connectable bridge corresponding to the attribute information is greater than or equal to a set threshold, it indicates that the connectable bridge corresponding to the attribute information belongs to the connectable bridge with better current communication quality. At this time, the connectable bridge corresponding to the attribute information can be determined as the target bridge.

[0127] Therefore, when the attribute information of the connectable bridge includes one, the present invention receives the attribute information of the connectable bridge found by the sub-device to be adjusted, and obtains the current communication quality of the connectable bridge through the bridge quality data of the connectable bridge, thereby accurately finding the bridge device suitable for communication connection of the current sub-device to be adjusted, laying the foundation for the sub-device to be adjusted to establish a communication connection with the new connectable bridge.

[0128] Please refer to Figure 7 In some other embodiments, step 430a, determining the target bridge based on the attribute information of the connectable bridges, includes:

[0129] Step 432a: When there are multiple attribute information of connectable bridges, if the bridge quality data of the connectable bridges corresponding to multiple attribute information are all greater than or equal to the set threshold, the connectable bridge with the highest bridge quality data value is determined as the target bridge.

[0130] If the attribute information of a connectable bridge includes only one, it indicates that there are multiple connectable bridges near the sub-device to be adjusted that may establish a communication connection. The cloud server then queries the bridge quality data for each of the multiple connectable bridges corresponding to its attribute information. Connectable bridges whose bridge quality data is all greater than or equal to a set threshold are selected. If, at this point, only one connectable bridge among the multiple connectable bridges has bridge quality data greater than or equal to the set threshold, then this unique connectable bridge is identified as the target bridge.

[0131] If the bridge quality data corresponding to multiple connectable bridges is greater than or equal to a set threshold, since a higher bridge quality data value indicates better communication quality, the connectable bridge with the highest bridge quality data value among the multiple connectable bridges will be identified as the target bridge.

[0132] Therefore, when there are multiple connectable bridges, this embodiment of the invention receives the connectable bridges found by the sub-device to be adjusted, and obtains the current communication quality of multiple connectable bridges through bridge quality data. It then compares the bridge quality data of multiple connectable bridges. If the bridge quality data of the connectable bridges corresponding to multiple attribute information are all greater than or equal to a set threshold, the connectable bridge with the highest bridge quality data is selected as the target bridge. This accurately identifies the most suitable target bridge for communication connection near the sub-device to be adjusted, laying the foundation for communication connection between the sub-device to be adjusted and the new connectable bridge.

[0133] After step 500a, sending a disconnect command to the bridge to be adjusted, the following steps are also included:

[0134] Step 600a: Send a connection command to the target bridge; the connection command is used to instruct the target bridge to establish a communication connection with the sub-device to be adjusted corresponding to the bridge to be adjusted.

[0135] After identifying the target bridge, the cloud server sends a connection command to it, instructing it to establish a communication connection with the previously identified sub-device to be adjusted. Then, even after the communication connection between the target bridge and the sub-device is broken, the cloud server further searches for a suitable target bridge for the sub-device and guides it to connect to a nearby bridge more suitable for data transmission. This achieves network load balancing and improves communication reliability.

[0136] Please refer to Figure 8 The wireless communication device provided in this embodiment of the invention includes:

[0137] The first acquisition module 201 is used to acquire communication status data and load data of multiple bridges;

[0138] The first determining module 202 is used to determine the bridge quality data of each bridge based on the communication status data and load data of each bridge.

[0139] The second determining module 203 is used to determine the bridge to be adjusted based on the bridge quality data of each bridge.

[0140] The first sending module 204 is used to send a disconnect command to the bridge to be adjusted; the disconnect command is used to instruct the bridge to be adjusted to disconnect the communication connection between the bridge to be adjusted and the corresponding sub-device to be adjusted.

[0141] Based on the above embodiments, as an optional embodiment, the first determining module includes:

[0142] The first calculation module is used to calculate the communication status score of the first bridge based on the communication status data of the first bridge;

[0143] The second calculation module is used to calculate the load score of the first bridge based on the load data of the first bridge;

[0144] The third calculation module is used to determine the bridge quality data of the first bridge based on the communication status score and the load score of the first bridge.

[0145] Based on the above embodiments, as an optional embodiment, the third calculation module is specifically used to determine the bridge quality data of the first bridge based on the sum of the communication status score and the load score of the first bridge.

[0146] Based on the above embodiments, as an optional embodiment, the communication status score of the first bridge includes the sum of TCP round-trip time score, received signal strength score, and bit error rate score; the load score of the first bridge includes the sum of processor utilization score, memory utilization score, and network data volume.

[0147] Based on the above embodiments, as an optional embodiment, the second determining module is specifically used to determine a bridge whose bridge quality data is lower than a set threshold as a bridge to be adjusted; or to determine a bridge whose bridge quality data is lower than a set threshold and whose connected sub-devices are greater than or equal to the access load threshold as a bridge to be adjusted.

[0148] Based on the above embodiments, as an optional embodiment, the wireless communication device further includes:

[0149] The target bridge determination module is used to determine the target bridge based on the interaction information of the sub-device to be adjusted corresponding to the bridge to be adjusted;

[0150] The second sending module is used to send a connection command to the target bridge; the connection command is used to instruct the target bridge to establish a communication connection with the sub-device to be adjusted corresponding to the bridge to be adjusted.

[0151] Based on the above embodiments, as an optional embodiment, the target bridge determination module includes:

[0152] The third sending module is used to send a bridge search command to the sub-device to be adjusted corresponding to the bridge to be adjusted. The bridge search command is used to instruct the sub-device to be adjusted to search for a bridge that can be connected.

[0153] The first receiving module is used to receive the attribute information of the connectable bridge sent by the sub-device to be adjusted;

[0154] The third determination module is used to determine the target bridge based on the attribute information of the connectable bridges.

[0155] Based on the above embodiments, as an optional embodiment, the third determining module is specifically used to determine the connectable bridge as the target bridge when the attribute information of the connectable bridge includes one, and the bridge quality data of the connectable bridge corresponding to the attribute information is greater than or equal to a set threshold.

[0156] Based on the above embodiments, as an optional embodiment, the third determining module is specifically used to determine the connectable bridge with the highest bridge quality data value as the target bridge when the attribute information of the connectable bridge includes multiple bridges and the bridge quality data of the bridges corresponding to the multiple attribute information are all greater than or equal to a set threshold.

[0157] Figure 9 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 9 As shown, the electronic device may include a processor 810, a communications interface 820, a memory 830, and a communication bus 840, wherein the processor 810, the communications interface 820, and the memory 830 communicate with each other via the communication bus 840. The processor 810 can call logical instructions in the memory 830 to execute a wireless communication method, which includes: acquiring communication status data and load data of multiple bridges; determining bridge quality data of each bridge based on the communication status data and load data of each bridge; determining the bridge to be adjusted based on the bridge quality data of each bridge; sending a disconnect command to the bridge to be adjusted; the disconnect command instructs the bridge to be adjusted to disconnect the communication connection between the bridge to be adjusted and the corresponding sub-device to be adjusted.

[0158] Furthermore, the logical instructions in the aforementioned memory 830 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0159] Furthermore, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the wireless communication method provided in the above-described method embodiments. The method includes: acquiring communication status data and load data of multiple bridges; determining bridge quality data of each bridge based on the communication status data and load data of each bridge; determining a bridge to be adjusted based on the bridge quality data of each bridge; sending a disconnect command to the bridge to be adjusted; the disconnect command is used to instruct the bridge to be adjusted to disconnect the communication connection between the bridge to be adjusted and the corresponding sub-device to be adjusted.

[0160] On the other hand, embodiments of the present invention also provide a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program is implemented to perform the wireless communication method provided in the above embodiments. The method includes: acquiring communication status data and load data of a plurality of bridges; determining bridge quality data of each bridge based on the communication status data and load data of each bridge; determining a bridge to be adjusted based on the bridge quality data of each bridge; sending a disconnect command to the bridge to be adjusted; the disconnect command is used to instruct the bridge to be adjusted to disconnect the communication connection between the bridge to be adjusted and the corresponding sub-device to be adjusted.

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

[0162] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of various embodiments or some parts of embodiments.

[0163] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

[0164] The above embodiments are for illustrative purposes only and are not intended to limit the scope of the invention. Although the invention has been described in detail with reference to the embodiments, those skilled in the art should understand that various combinations, modifications, or equivalent substitutions of the technical solutions of the invention do not depart from the spirit and scope of the invention and should be covered within the scope of the claims of the invention.

Claims

1. A wireless communication method, characterized in that, The wireless communication method, applied to cloud servers, includes: Obtain communication status data and load data from multiple bridges; The bridge quality data of each bridge is determined based on the communication status data and load data of each bridge. The bridges to be adjusted are determined based on the bridge quality data of each bridge. Send a disconnect command to the bridge to be adjusted; the disconnect command is used to instruct the bridge to be adjusted to disconnect the communication connection between the bridge to be adjusted and the corresponding sub-device to be adjusted. After determining the bridge to be adjusted based on the bridge quality data of each bridge, the process further includes: The target bridge is determined based on the interaction information with the sub-device to be adjusted corresponding to the bridge to be adjusted. After sending the disconnect command to the bridge to be adjusted, the method further includes: A connection command is sent to the target bridge; the connection command is used to instruct the target bridge to establish a communication connection with the sub-device to be adjusted corresponding to the bridge to be adjusted. The step of determining the target bridge based on the interaction information with the sub-device to be adjusted corresponding to the bridge to be adjusted includes: Send a bridge lookup command to the sub-device to be adjusted corresponding to the bridge to be adjusted. The bridge lookup command is used to instruct the sub-device to be adjusted to search for a connectable bridge. Receive the attribute information of the connectable bridge sent by the sub-device to be adjusted; the attribute information includes an ID number; The target bridge is determined based on the attribute information of the connectable bridges.

2. The wireless communication method according to claim 1, characterized in that, The determination of bridge quality data for each bridge based on its communication status data and load data includes: Calculate the communication status score of the first bridge based on the communication status data of the first bridge; Calculate the load score of the first bridge based on the load data of the first bridge; The bridge quality data of the first bridge is determined based on the communication status score and the load score of the first bridge.

3. The wireless communication method according to claim 2, characterized in that, The process of determining the bridge quality data of the first bridge based on its communication status score and load score includes: The bridge quality data of the first bridge is determined by summing the communication status score and the load score of the first bridge.

4. The wireless communication method according to claim 3, characterized in that, The communication status score of the first bridge includes the sum of TCP round-trip time score, received signal strength score, and bit error rate score; The load score of the first bridge includes the sum of processor utilization score, memory utilization score, and network data volume.

5. The wireless communication method according to claim 1, characterized in that, The process of determining the bridges to be adjusted based on the bridge quality data of each bridge includes: Bridges whose quality data is below a set threshold are identified as bridges requiring adjustment; or Bridges whose quality data is below a set threshold and whose connected sub-devices are greater than or equal to the access load threshold are identified as bridges to be adjusted.

6. The wireless communication method according to claim 1, characterized in that, Determining the target bridge based on the attribute information of the connectable bridge includes: When the attribute information of the connectable bridge includes one, if the bridge quality data of the connectable bridge corresponding to the attribute information is greater than or equal to a set threshold, the connectable bridge is determined as the target bridge.

7. The wireless communication method according to claim 1, characterized in that, Determining the target bridge based on the attribute information of the connectable bridge includes: When the attribute information of the connectable bridge includes multiple attributes, if the bridge quality data of the connectable bridges corresponding to the multiple attributes are all greater than or equal to a set threshold, the connectable bridge with the highest bridge quality data value is determined as the target bridge.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the wireless communication method as described in any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the steps of the wireless communication method as described in any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the wireless communication method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Multi-link-based data flow adjusting method and device, terminal device and medium

    CN108337698A

  • Flow-rate dispatch method, device, network system and SDN controller

    CN109039943A

  • Dynamic network load regulating device and method therefor

    US20170346739A1