CN-116321304-B - Wireless communication method, electronic device, and storage medium
Abstract
The invention relates to the field of communication, and provides a wireless communication method, electronic equipment and a storage medium. The method comprises the steps of obtaining communication state data and load data of a plurality of bridges, determining bridge quality data of each bridge based on the communication state data and the load data of each bridge, determining a bridge to be adjusted based on the bridge quality data of each bridge, sending a disconnection instruction to the bridge to be adjusted, wherein the disconnection instruction is used for indicating that the bridge to be adjusted is disconnected from communication connection with sub-equipment to be adjusted corresponding to the bridge to be adjusted.
Inventors
- PAN PENG
Assignees
- 广东中创智家科学研究有限公司
- 美的集团股份有限公司
- 广东美的制冷设备有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20211217
Claims (10)
- 1. A wireless communication method, which is applied to a cloud server, the wireless communication method comprising: Acquiring communication state data and load data of a plurality of bridges; determining bridge quality data of each bridge based on the communication status data and the load data of each bridge; determining a bridge to be adjusted based on the bridge quality data of each bridge; The method comprises the steps of sending a disconnection instruction to the network bridge to be regulated, wherein the disconnection instruction is used for indicating that the network bridge to be regulated is disconnected from communication connection with sub-equipment to be regulated corresponding to the network bridge to be regulated; After the bridge to be adjusted is determined based on the bridge quality data of each bridge, the method further comprises: determining a target network bridge according to the interaction information of the sub-equipment to be adjusted corresponding to the network bridge to be adjusted; after sending the disconnection instruction to the network bridge to be adjusted, the method further comprises: The method comprises the steps of sending a connection instruction to the target network bridge, wherein the connection instruction is used for indicating the target network bridge to establish communication connection with the sub-equipment to be regulated corresponding to the network bridge to be regulated; the determining the target network bridge according to the interaction information of the sub-equipment to be adjusted corresponding to the network bridge to be adjusted comprises: sending a network bridge searching instruction to a to-be-adjusted sub-device corresponding to the to-be-adjusted network bridge, wherein the network bridge searching instruction is used for indicating the to-be-adjusted sub-device to inquire about a connectable network bridge; receiving attribute information of the connectable network bridge sent by the sub-equipment to be adjusted, wherein the attribute information comprises an ID number; And determining a target network bridge based on the attribute information of the connectable network bridge.
- 2. The wireless communication method according to claim 1, wherein said determining bridge quality data for each bridge based on the communication status data and the load data for each of the bridges comprises: Calculating a communication state score for a first bridge based on communication state data of the first bridge; calculating a load score for the first bridge based on the load data of the first bridge; Bridge quality data for the first bridge is determined based on the communication status score of the first bridge and the load score of the first bridge.
- 3. The wireless communication method of claim 2, wherein the determining bridge quality data for the first bridge based on the communication status score for the first bridge and the load score for the first bridge comprises: Bridge quality data for the first bridge is determined based on a sum of the communication status score of the first bridge and the load score of the first bridge.
- 4. The method of wireless communication according to claim 3, wherein, The communication state score of the first network bridge comprises the sum of a TCP round trip time score, a received signal strength score and an error rate score; the load score of the first bridge includes a sum of a processor usage score, a memory usage score, and a network data volume.
- 5. The method of claim 1, wherein the determining the bridge to be adjusted based on the bridge quality data for the respective bridge comprises: determining the bridge with the bridge quality data lower than the set threshold value as the bridge to be regulated, or And determining the network bridge of which the network bridge quality data is lower than a set threshold value and the sub-equipment accessed by the network bridge is greater than or equal to an access load threshold value as the network bridge to be adjusted.
- 6. The wireless communication method according to claim 1, wherein determining a target bridge based on attribute information of the connectable bridge comprises: and when the attribute information of the connectable network bridge comprises one, determining the connectable network bridge as a target network bridge under the condition that the network bridge quality data of the connectable network bridge corresponding to the attribute information is larger than or equal to a set threshold value.
- 7. The wireless communication method according to claim 1, wherein determining a target bridge based on attribute information of the connectable bridge comprises: And when the attribute information of the connectable network bridge comprises a plurality of connectable network bridges, determining the connectable network bridge with the highest network bridge quality data value as a target network bridge under the condition that the network bridge quality data of the connectable network bridge corresponding to the attribute information is larger than or equal to a set threshold value.
- 8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the wireless communication method of any of claims 1 to 6 when the program is executed.
- 9. A non-transitory computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the wireless communication method according to any one of claims 1 to 6.
- 10. A computer program product comprising a computer program which, when executed by a processor, implements the steps of the wireless communication method according to any one of claims 1 to 6.
Description
Wireless communication method, electronic device, and storage medium Technical Field The present invention relates to the field of communications technologies, and in particular, to a wireless communication method, an electronic device, and a storage medium. Background Along with the development and progress of science and technology, intelligent households (such as intelligent lamps and sweeping robots) are gradually popularized among common people, and convenience and happiness are added to the life of people. The existing intelligent home equipment generally performs data interaction with a cloud server through a network bridge, and a family generally comprises a plurality of network bridges, and each network bridge can be connected with a plurality of sub-equipment. In practice, since the real-time communication quality is different for each bridge, this will undoubtedly have an effect on the data communication of the sub-devices mounted on the bridge. That is, in the prior art, load balancing of sub-devices between bridges cannot be adjusted, which results in reduction of communication quality of smart home. Disclosure of Invention The present invention aims to solve at least one of the technical problems existing in the prior art. Therefore, the invention provides a wireless communication method, which can adjust the load balance of the sub-equipment among the bridges and improve the communication quality of the intelligent home. According to an embodiment of the first aspect of the present invention, a wireless communication method includes: Acquiring communication state data and load data of a plurality of bridges; determining bridge quality data of each bridge based on the communication status data and the load data of each bridge; determining a bridge to be adjusted based on the bridge quality data of each bridge or based on the bridge quality data of each bridge and the access load threshold; And the disconnection instruction is used for indicating the disconnection of communication connection between the bridge to be regulated and the sub equipment to be regulated, which is in corresponding communication connection with the bridge to be regulated. According to the wireless communication method provided by the embodiment of the invention, the cloud server acquires the communication state data and the load data of the bridges, and determines the bridge quality data of each bridge based on the communication state data and the load data of each bridge, so that the cloud server acquires the bridge quality data of each bridge. The network bridge to be adjusted is further determined through the network bridge quality data of each network bridge or based on the network bridge quality data of each network bridge and the access load threshold value, so that the network bridge to be adjusted with poor communication quality is determined based on the network bridge quality data of each network bridge or based on the network bridge quality data of each network bridge and the access load threshold value. And sending a disconnection instruction to the network bridge to be regulated, so that the network bridge to be regulated is disconnected from the sub equipment to be regulated, which is in corresponding communication connection with the network bridge to be regulated. Therefore, under the condition that the cloud server determines the network bridge to be adjusted, a disconnection instruction is sent to the network bridge to be adjusted, so that the network bridge to be adjusted with poor communication quality is disconnected from the sub-equipment to be adjusted, which is in corresponding communication connection with the network bridge to be adjusted, and the sub-equipment to be adjusted can be conveniently distributed to the network bridge with better communication quality. Furthermore, the embodiment of the invention can adjust the load balance of the sub-equipment among the bridges and improve the communication quality of the intelligent home. According to one embodiment of the present invention, determining bridge quality data for each bridge based on communication status data and load data for each bridge includes: calculating a communication state score for the first bridge based on the communication state data for the first bridge; calculating a load score for the first bridge based on the load data of the first bridge; Bridge quality data for the first bridge is determined based on the communication status score for the first bridge and the load score for the first bridge. According to one embodiment of the present invention, determining bridge quality data for a first bridge based on a communication status score for the first bridge and a load score for the first bridge comprises: bridge quality data for the first bridge is determined based on a sum of the communication status score of the first bridge and the load score of the first bridge. According to one embodiment of the invention, the commun