Network switching method and related equipment

By actively detecting the signal strength in the wireless LAN and selecting the optimized access point for switching, the problem of low switching efficiency of devices that do not support 802.11k, 802.11r and 802.11v protocols is solved and the communication quality is improved.

CN114585028BActive Publication Date: 2024-09-10NOKIA TECHNOLOGIES OY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011380498.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-30
Publication Date
2024-09-10
Estimated Expiration
2040-11-30

AI Technical Summary

Technical Problem

In existing wireless local area networks (WLAN), electronic devices that do not support the 802.11k, 802.11r and 802.11v protocols have low switching efficiency during roaming switching, which affects the communication quality.

Method used

By establishing a signal strength detection mechanism between the wireless routing device and the controller, the controller proactively sends empty data frames to ensure signal detection. The controller selects the optimized access point for switching based on the signal strength to achieve signal strength detection of the wireless routing device and electronic equipment. and switch.

Benefits of technology

It improves the efficiency and communication quality of roaming switching in WLAN for electronic devices that do not support 802.11k, 802.11r and 802.11v protocols, and has good compatibility and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114585028B
    Figure CN114585028B
Patent Text Reader

Abstract

The embodiment of the present application provides a network switching method and related equipment, the method comprising: a first wireless routing device detects that the signal strength when the electronic device communicates with the first wireless routing device is less than a signal strength threshold, and sends a first message to a controller; the controller sends a first instruction to the first wireless routing device according to the first information, and the first wireless routing device sends a first data frame to the electronic device according to the first instruction; the controller sends a second instruction to at least one second wireless routing device according to the first information, and the second wireless routing device obtains the signal strength of the first reply frame of the electronic device according to the second instruction and sends it to the controller; the controller determines a third wireless routing device from the second wireless routing device according to the signal strength, and the electronic device switches the communication connection with the first wireless routing device to the communication connection with the third wireless routing device. The method can switch the wireless router of the electronic device, thereby improving the quality of network communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a network switching method and related equipment. Background Art

[0002] With the continuous development of wireless communication technology, wireless local area networks (WLAN) have been widely used. In shopping malls, office buildings and other areas, multiple WLAN networks are usually deployed. When users carry electronic devices to move in these areas, they will move from the signal range of one WLAN network to the signal range of another WLAN network. In order to keep the electronic devices connected to the Internet, they need to switch between different access points (APs).

[0003] According to the IEEE 802.11 standard, the 802.11k, 802.11r and 802.11v protocols included in it can enable electronic devices to smoothly switch from one access point to another. However, due to the impact of cost or deployment strategy, or early products, there are still some electronic devices that do not support the 802.11k, 802.11r and 802.11v protocols. For such electronic devices to roam in the WLAN network, it is urgent to improve the switching efficiency. Summary of the invention

[0004] The embodiments of the present application provide a network switching method and related devices, which have good compatibility and stability and improve the communication quality of electronic devices.

[0005] In a first aspect, an embodiment of the present application provides a network switching system, including a controller, a first wireless routing device, at least one second wireless routing device, and an electronic device, wherein the first wireless routing device is wirelessly connected to the electronic device; the first wireless routing device detects the signal strength when the electronic device communicates with the first wireless routing device, and when the signal strength is less than a preset signal strength threshold, the first wireless routing device sends a first message to the controller; the controller sends a first instruction to the first wireless routing device according to the first information, and the first instruction is used to instruct the first wireless routing device to send a first data frame to the electronic device; the first wireless routing device sends the first data frame to the electronic device according to the first instruction, so that the electronic device can The controller replies to a first reply frame according to the first data frame; the controller sends a second instruction to at least one of the second wireless routing devices according to the first information, and the second instruction is used to instruct the second wireless routing device to monitor the first reply frame and report the signal strength of the first reply frame; the second wireless routing device monitors the first reply frame replied by the electronic device according to the second instruction, obtains the signal strength of the first reply frame, and sends the signal strength of the first reply frame to the controller; the controller determines a third wireless routing device from the at least one second wireless routing device according to the signal strength of the first reply frame, so that the electronic device switches the communication connection with the first wireless routing device to the communication connection with the third wireless routing device.

[0006] Among them, the first wireless routing device can be a wireless access point AP1, such as a wireless router, that is, the current access point that establishes a communication connection with the electronic device, the second wireless routing device can be a neighbor access point of the access point AP1, and there can be multiple, the third wireless device can be a target access point AP2 selected from the neighbor access points, that is, the target access point to which the electronic device will switch the communication connection, the controller can be a control terminal, which is an access point selected from multiple access points, or an access point separately set in addition to these multiple access points, or a wireless controller (wireless access point controller, AC) or a control device integrated in the access point. The first information can be an indication information, the first data frame can be an empty data frame, that is, a data frame with an empty data content part, and the first reply frame replied by the electronic device according to the empty data frame can be an acknowledgement character (acknowledge character, ACK).

[0007] In the above network switching system, when the signal strength when the electronic device communicates with the first wireless routing device is less than the signal strength threshold, the controller instructs the first wireless routing device to send a first data frame to the electronic device, so that the electronic device has a data frame to send out, ensuring that the second wireless routing device can monitor the signal strength of the electronic device, and then the controller selects a third wireless routing device from at least one second wireless routing device, so that the electronic device that does not support 802.11k, 802.11r and 802.11v protocols switches to establish a communication connection with the third wireless routing device, has good compatibility and stability, and improves the communication quality of the electronic device.

[0008] In a possible implementation manner of the first aspect of the embodiment of the present application, the first wireless routing device detects the signal strength when the electronic device communicates with the first wireless routing device, including: the first wireless routing device collects the signal strength when the electronic device communicates with the first wireless routing device within a first sampling period; if the first wireless routing device does not collect the signal strength within the first sampling period, sends a second data frame to the electronic device; the first wireless routing device obtains the signal strength of a second reply frame sent by the electronic device according to the second data frame.

[0009] Optionally, in addition to sending an empty data frame to the electronic device when the signal strength of the electronic device is not collected, the first wireless routing device can also send an empty data frame to the electronic device at a preset frequency to ensure that the electronic device has data frames sent out for collection by the first wireless routing device. In combination with the first aspect and the above-mentioned implementation method, the first sampling period can be 1 second / time. If the signal strength of the electronic device is collected within the first sampling period, it is directly determined whether the signal strength is less than the strength threshold; if the signal strength of the electronic device is not detected, an empty data frame is actively sent to the electronic device to ensure that the electronic device has data frames sent out within the first sampling period for detection by the first wireless routing device, thereby improving the communication quality of the electronic device; in addition, the first wireless routing device only sends an empty data frame to the electronic device when the signal strength of the electronic device is not detected, which can reduce the communication power consumption of the first network device.

[0010] In a possible implementation of the first aspect of the embodiment of the present application, when the signal strength is less than a preset signal strength threshold, the first wireless routing device sends the first information to the controller, including: determining whether the signal strengths of a preset first number of second reply frames received continuously are all less than the first signal strength threshold, each second reply frame corresponding to a second data frame sent within a first sampling period; if so, sending the first information to the controller. In the above implementation, the preset first number can be 3, and by determining whether the signal strengths of multiple consecutive second reply frames are all less than the first signal strength threshold, the accuracy of the judgment result can be further improved, so as to further improve the communication quality of the electronic device.

[0011] In a possible implementation of the first aspect of the embodiment of the present application, after the first wireless routing device obtains the signal strength of the second reply frame sent by the electronic device according to the second data frame, the method includes: when the first wireless routing device obtains that the signal strength of the second reply frame is less than the first signal strength threshold, the signal strength of the electronic device is collected within a second sampling period, and the second sampling period is less than the first sampling period; if the signal strength of the electronic device is not detected within the second sampling period, a third data frame is sent to the electronic device; and the signal strength of the third reply frame sent by the electronic device according to the third data frame is obtained. Optionally, after obtaining the signal strength of the third reply frame of the electronic device, the first wireless routing device can determine whether the signal strength of a preset proportion of the third reply frames received in the preset second number of third reply frames is less than the second signal strength threshold, and each third reply frame corresponds to a third data frame sent within the second sampling period; if so, the first information is sent to the controller.

[0012] In the above embodiment, the second sampling period can be 0.2 seconds / time, the second number can be 20, and the preset ratio can be 70%. If the signal strength of the electronic device is collected within the second sampling period, it is directly determined whether the signal strength is less than the strength threshold; if the signal strength of the electronic device is not detected, an empty data frame is actively sent to the electronic device to ensure that the electronic device has a data frame sent out within the second sampling period for detection by the first wireless routing device, thereby improving the communication quality of the electronic device, and by shortening the sampling period and determining whether the signal strengths of multiple times are less than the second signal strength threshold, the accuracy of the judgment result can be further improved.

[0013] In a possible implementation manner of the first aspect of the embodiment of the present application, the second wireless routing device obtains the signal strength of the first reply frame and sends the signal strength of the first reply frame to the controller, including: the second wireless routing device obtains the signal strength of the first reply frame, and sends the signal strength of the first reply frame and the available bandwidth of the second wireless routing device to the controller.

[0014] In the above embodiment, after the controller receives the signal strength of the first reply frame and the available bandwidth of the second wireless routing device, it can determine the third wireless routing device from at least one second wireless routing device according to the preset calculation model. In the above implementation, the controller determines the third wireless routing device (i.e., the target access point) by the available bandwidth of the second wireless routing device and the signal strength of the first reply frame, and can select a better third wireless routing device. After the electronic device switches to the communication connection with the third wireless routing device, the communication quality of the electronic device can be improved.

[0015] In a possible implementation of the first aspect of the embodiment of the present application, before the controller determines the third wireless routing device from at least one second wireless routing device based on the signal strength of the first reply frame, the controller further includes: the controller sends a third instruction to the first wireless routing device, and the third instruction is used to instruct the first wireless routing device to stop sending the first data frame to the electronic device. In this implementation, the controller promptly instructs the first wireless routing device to stop sending the first data frame, which can reduce the communication power consumption between the first wireless routing device and the electronic device.

[0016] In a possible implementation of the first aspect of the embodiment of the present application, after the controller determines the third wireless routing device from at least one second wireless routing device according to the signal strength of the first reply frame, it also includes: the controller sends a fourth instruction to the remaining wireless routing devices in the second wireless routing device except the third wireless routing device, and the fourth instruction is used to instruct the remaining wireless routing devices to add the electronic device to the communication blacklist. On this basis, the electronic device switches the communication connection with the first wireless routing device to the communication connection with the third wireless routing device, including: the controller sends a fifth instruction to the first wireless routing device, and the fifth instruction is used to instruct the first wireless routing device to disconnect the communication connection with the electronic device; the electronic device sends a network access request to the second wireless routing device; the third wireless routing device receives the network access request and establishes a communication connection with the electronic device.

[0017] Among them, after the other wireless routing devices add the electronic device to the communication blacklist, even if the electronic device subsequently sends an access request to the wireless routing device, it cannot establish a communication connection, thereby increasing the possibility of the electronic device successfully establishing a communication connection with the third wireless routing device.

[0018] In a second aspect, an embodiment of the present application provides a network switching method, which is performed by a first wireless routing device, including: detecting a signal strength when an electronic device communicates with the first wireless routing device, and when the signal strength is less than a preset signal strength threshold, sending a first information to a controller, wherein the electronic device is wirelessly connected to the first wireless routing device, and the first information is used to instruct the controller to send a first instruction to the first wireless routing device; receiving a first instruction sent by the controller, and sending a first data frame to the electronic device according to the first instruction, wherein the first data frame is used to instruct the electronic device to reply to a first reply frame based on the first data frame; and receiving a fifth instruction sent by the controller, wherein the fifth instruction is used to instruct the first wireless routing device to disconnect the communication connection with the electronic device.

[0019] In the above network switching method, when the signal strength when the electronic device communicates with the first wireless routing device is less than the signal strength threshold, the first wireless routing device sends a first data frame to the electronic device according to the instruction of the controller, so that the electronic device has a data frame to send out, ensuring that the second wireless routing device can monitor the signal strength of the electronic device, and then the controller selects a third wireless routing device from at least one second wireless routing device, so that the electronic device that does not support 802.11k, 802.11r and 802.11v protocols switches to establish a communication connection with the third wireless routing device, which has good compatibility and stability and improves the communication quality of the electronic device.

[0020] In a possible implementation of the second aspect of the embodiment of the present application, the signal strength of the electronic device when communicating with the first wireless routing device includes: collecting the signal strength of the electronic device when communicating with the first wireless routing device within a first sampling period; if the signal strength of the electronic device is not collected within the first sampling period, sending a second data frame to the electronic device; and obtaining the signal strength of the second reply frame sent by the electronic device according to the second data frame. Optionally, when it is determined that the signal strength of a preset first number of second reply frames received continuously is less than a first signal strength threshold, first information is sent to the controller, and each second reply frame corresponds to a second data frame sent within the first sampling period.

[0021] In the above embodiment, the first wireless routing device actively sends the first data frame to the electronic device to ensure that the electronic device has a data frame sent out within the first sampling period for detection by the first wireless routing device, thereby improving the communication quality of the electronic device.

[0022] In a possible implementation of the second aspect of the embodiment of the present application, after obtaining the signal strength of the second reply frame sent by the electronic device according to the second data frame, the method further includes: when the signal strength of the second reply frame obtained is less than the first signal strength threshold, collecting the signal strength of the electronic device in a second sampling period, the second sampling period is less than the first sampling period; if the signal strength of the electronic device is not collected in the second sampling period, sending a third data frame to the electronic device; obtaining the signal strength of the third reply frame sent by the electronic device according to the third data frame. Optionally, after obtaining the signal strength of the third reply frame of the electronic device, the first wireless routing device can determine whether the signal strength of the preset proportion of the third reply frames received in the preset second number of third reply frames is less than the second signal strength threshold, and each third reply frame corresponds to a third data frame sent in the second sampling period; if so, sending the first information to the controller. Thus, by shortening the sampling period and judging whether the signal strength of multiple times is less than the second signal strength threshold, the accuracy of the judgment result can be further improved.

[0023] In a possible implementation manner of the second aspect of the embodiment of the present application, the method further includes: receiving a third instruction sent by the controller, and stopping sending the first data frame to the electronic device according to the third instruction.

[0024] In the above embodiment, the controller can send an instruction to the first wireless routing device to stop constructing the first data frame after a preset time (such as 4 seconds) after sending the first instruction, or after receiving the signal strength settlement results sent by all second wireless routing devices, so as to reduce the communication power consumption of the first wireless routing device.

[0025] In a possible implementation of the second aspect of the embodiment of the present application, the first data frame includes a source address, a destination address and data content, and the data content is a null value. The use of a null data frame reduces the impact on network performance, electronic equipment and wireless routing equipment performance, and can also reduce the impact on the network and avoid burdening the network environment.

[0026] In a third aspect, an embodiment of the present application provides a network switching method, which is executed by a controller and includes: receiving first information sent by a first wireless routing device; sending a first instruction to the first wireless routing device according to the first information, and sending a second instruction to at least one of the second wireless routing devices, wherein the first instruction is used to instruct the first wireless routing device to send a first data frame to the electronic device, and the second instruction is used to instruct the second wireless routing device to monitor a first reply frame sent by the electronic device and report a signal strength of the first reply frame, wherein the first reply frame is a reply by the electronic device based on the first data frame; and determining a third wireless routing device from the at least one second wireless routing device according to the signal strength of the first reply frame, so that the electronic device switches the communication connection with the first wireless routing device to the communication connection with the third wireless routing device.

[0027] In the above network switching method, when the signal strength when the electronic device communicates with the first wireless routing device is less than the signal strength threshold, the controller instructs the first wireless routing device to send a first data frame to the electronic device, so that the electronic device has a data frame to send out, ensuring that the second wireless routing device can monitor the signal strength of the electronic device, and then the controller selects a third wireless routing device from at least one second wireless routing device, so that the electronic device that does not support 802.11k, 802.11r and 802.11v protocols switches to establish a communication connection with the third wireless routing device, which has good compatibility and stability and improves the communication quality of the electronic device.

[0028] In a possible implementation manner of the third aspect of the embodiment of the present application, determining a third wireless routing device from the at least one second wireless routing device according to the signal strength of the first reply frame includes: obtaining the signal strength of the first reply frame and the available bandwidth of the second wireless routing device; determining the third wireless routing device from the at least one second wireless routing device according to the signal strength of the first reply frame, the available bandwidth of the second wireless routing device, and a preset calculation model.

[0029] In the above embodiments, the controller determines the third wireless routing device (i.e., the target access point) through the available bandwidth of the second wireless routing device and the signal strength of the first reply frame, and can select a better third wireless routing device. After the electronic device switches to a communication connection with the third wireless routing device, the communication quality of the electronic device can be improved.

[0030] In a possible implementation manner of the third aspect of the embodiment of the present application, before determining the third wireless routing device from the at least one second wireless routing device based on the signal strength of the first reply frame, the method also includes: sending a third instruction to the first wireless routing device, wherein the third instruction is used to instruct the first wireless routing device to stop sending the first data frame to the electronic device.

[0031] In the above embodiment, the controller may send an instruction to the first wireless routing device to stop constructing the first data frame, so as to reduce the communication power consumption of the first wireless routing device.

[0032] In a possible implementation manner of the third aspect of the embodiment of the present application, after determining the third wireless routing device from the at least one second wireless routing device based on the signal strength of the first reply frame, the method further includes: sending a fourth instruction to the remaining wireless routing devices in the second wireless routing devices except the third wireless routing device, wherein the fourth instruction is used to instruct the remaining wireless routing devices to add the electronic device to a communication blacklist.

[0033] In the above embodiments, the other wireless routing devices set a communication blacklist so that the electronic device cannot establish a communication connection with the other wireless routing devices, thereby enabling the electronic device to accurately access the third wireless routing device, further improving the communication quality of the electronic device.

[0034] In a possible implementation manner of the third aspect of the embodiment of the present application, causing the electronic device to switch the communication connection with the first wireless routing device to the communication connection with the third wireless routing device includes: sending a fifth instruction to the first wireless routing device, wherein the fifth instruction is used to instruct the first wireless routing device to disconnect the communication connection with the electronic device.

[0035] In the above embodiments, during the process of the electronic device switching network connection, the controller actively instructs the first wireless routing device to disconnect the communication connection with the electronic device, thereby promoting the subsequent process of the electronic device establishing a communication connection with the third wireless routing device, and further improving the communication quality of the electronic device.

[0036] In a possible implementation manner of the third aspect of the embodiment of the present application, the method further includes: receiving second information sent by the third wireless routing device, where the second information represents communication connection information between the third wireless routing device and the electronic device.

[0037] In the above embodiment, the third wireless routing device sends the communication connection information with the electronic device to the controller, so that when the electronic device is about to leave the signal range of the third wireless routing device, the above process is repeated to further improve the communication quality of the electronic device.

[0038] In a possible implementation of the third aspect of the embodiment of the present application, the first data frame includes a source address, a destination address and data content, and the data content is a null value. The use of an empty data frame reduces the impact on network performance, electronic equipment and wireless routing equipment performance, and can also reduce the impact on the network and avoid burdening the network environment.

[0039] In a fourth aspect, an embodiment of the present application provides a device, which is included in a wireless routing device, and has the function of implementing the wireless routing device behavior in the first aspect and the possible implementation of the first aspect, or is included in a controller, and implements the second aspect and the possible implementation of the second aspect. The function can be implemented by hardware, or it can be implemented by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions. For example, a receiving module or unit, a processing module or unit, etc.

[0040] In a fifth aspect, an embodiment of the present application provides a wireless routing device, comprising a processor and a memory; the processor and the memory are coupled, and the memory stores program instructions, and when the program instructions stored in the memory are executed by the processor, any one of the methods in the technical solution described in the first aspect is executed.

[0041] In a sixth aspect, an embodiment of the present application provides a controller comprising a processor and a memory; the processor and the memory are coupled, and the memory stores program instructions, and when the program instructions stored in the memory are executed by the processor, any one of the methods in the technical solution described in the second aspect is executed.

[0042] In a seventh aspect, an embodiment of the present application provides a chip, including a processor. The processor is used to read and execute a computer program stored in a memory to perform the method in the first aspect and any possible implementation thereof, or the second aspect and any possible implementation thereof.

[0043] Optionally, the chip also includes a memory, and the memory is connected to the processor via a circuit or wire.

[0044] Further optionally, the chip also includes a communication interface.

[0045] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the technical solution described in the first aspect, or any one of the methods in the technical solution described in the second aspect.

[0046] In the ninth aspect, an embodiment of the present application provides a computer program product, which includes: a computer program code, which, when executed by a processor, enables the processor to execute the technical solution described in the first aspect, or any one of the technical solutions described in the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 This is an application scenario diagram of a network switching method provided in an embodiment of the present application;

[0048] Figure 2 is a schematic diagram of the structure of a network device provided in an embodiment of the present application;

[0049] Figure 3 It is a flowchart of a network switching method provided in an embodiment of the present application;

[0050] Figure 4 is a flowchart of another network switching method provided in an embodiment of the present application;

[0051] Figure 5 This is a flowchart of another network switching method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0053] In the following, the terms "first", "second", and "third" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", and "third" may explicitly or implicitly include one or more of the features.

[0054] In the IEEE 802.11 standard, the 802.11k protocol defines the radio resource manager (RRM) mechanism, which enables electronic devices supporting 802.11k to better understand the radio frequency environment where the wireless client is located, so that the electronic devices can roam and switch better; for electronic devices that do not support the 802.11k protocol, it is impossible to measure the surrounding wireless environment through the standard protocol, which has an important impact on the selection of the target access point during the movement, causing the electronic device to scan multiple radio frequencies, thus consuming more switching time. The 802.11r protocol focuses on reducing the time required for authentication during roaming, which helps to support real-time responses such as voice. The protocol allows electronic devices to establish a secure and quality of service (QoS) state with the new access point before switching, which can minimize connection loss and call interruption, and improve the switching process of electronic devices when moving between access points; for electronic devices that do not support the 802.11r protocol, it is impossible to interact with the access point through the standard protocol, resulting in the inability to quickly switch to the new access point. The 802.11v protocol provides an important and efficient mechanism to simplify network deployment and management. The protocol will specify the key parameters of wireless terminal adapters controlled by the wireless infrastructure, such as determining which access point to connect to. Most of the support for 802.11v can be implemented in software, products, and upgrades to existing electronic devices. Electronic device control, network selection, network optimization, and statistical data acquisition and detection can all be achieved through the 802.11 protocol. However, for electronic devices that do not support 802.11k, 802.11r, and 802.11v protocols, how to improve network switching efficiency has become an urgent problem to be solved.

[0055] In conventional technology, when the current access point detects that the signal strength of an electronic device is less than a threshold, it considers that the electronic device is about to leave the signal range of the current access point, and then sends a scan request to the neighboring access points of the current access point. After receiving the scan response messages from all neighboring access points, a neighboring access point is selected as the target access point, and the electronic device is switched to the target access point. However, during the switching process, if the electronic device has no data to send, or the data transmission cycle is long, or the amount of data sent is small, the signal strength information of the electronic device cannot be effectively detected, which may cause the network switching to fail and affect the communication quality of the electronic device.

[0056] The network switching method provided in the embodiment of the present application can be applied to Figure 1 In the scene shown. Figure 1A wireless communication network consisting of multiple network devices is shown, wherein the network devices may include wireless routing devices (including access points AP1, AP2, AP3) and a control terminal 4, the access point is used for the electronic device 21 to access the wireless communication network, and the control terminal 4 is the control core of the wireless communication network and is responsible for managing each access point; it should be noted that the embodiment of the present application does not limit the number of access points, and the control terminal 4 may be an access point selected from multiple access points, or an access point separately set in addition to these multiple access points, or a wireless controller AC or a control device integrated in the access point. Assuming that the electronic device 21 currently accesses the network through AP1, during the movement of the electronic device 21 (such as moving from point A to point B), AP1 determines whether the electronic device 21 is about to leave the signal range of AP1 by the signal strength received from the electronic device 21, and if so, reports it to the control terminal 4; the control terminal 4 determines a target access point (such as AP2) from the neighboring access points of AP1, so that the electronic device 21 establishes a communication connection with AP2. In order to improve the accuracy of the judgment result of whether the electronic device 21 is about to leave the signal range of AP1, the embodiment of the present application can set a sampling period. If the signal strength of the electronic device 21 cannot be detected within the sampling period, AP1 will actively send a data frame (such as a null data frame) to the electronic device 21, triggering the electronic device 21 to reply with an ACK response frame, thereby ensuring that the signal strength of the electronic device 21 can be detected within the sampling period, thereby improving the communication quality of the electronic device.

[0057] Optionally, the above-mentioned multiple network devices can be connected by wire or by wireless connection. In a possible implementation, the above-mentioned wireless communication network is a home local area network, an enterprise local area network or a wireless local area network in other larger households, etc. In some embodiments, the above-mentioned wireless routing device is a wireless switch for wireless communication network, a WiFi wireless router, an optical network terminal, a WiFi wireless repeater or a customer premise equipment (CPE) terminal, a portable terminal hotspot, etc. The above-mentioned electronic devices include devices connected to a wireless network via WIFI, such as wireless routers, mobile phones, tablet computers, notebooks, large-screen TVs, smart home products, personal digital assistants (PDA), point of sales (POS), car computers, etc.

[0058] Figure 2 A structural example diagram of a network device is given, where the network device includes a processor 110, a memory 111, a communication module 112, a power management module 113 and other structures.

[0059] Among them, the processor may include one or more processors such as a central processing unit, an application processor, and a baseband processor. The processor may be the nerve center and command center of the wireless router. The processor may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions. The memory may be used to store computer executable program codes, and the executable program code includes instructions. The processor executes various functional applications and data processing of the network device by running the instructions stored in the memory. The memory may include a program storage area and a data storage area, such as storing data of a sound signal to be played. For example, the memory may be a double rate synchronous dynamic random access memory DDR or a flash memory Flash.

[0060] The communication module can provide communication solutions for network devices, including wireless local area network (such as WIFI network), Bluetooth, Zigbee, mobile communication network, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The communication module can be one or more devices integrating at least one communication processing module. The communication module can include an antenna, which can have only one array element or an antenna array including multiple array elements. The communication module can receive electromagnetic waves through the antenna, frequency modulate and filter the electromagnetic wave signal, and send the processed signal to the processor. The communication module can also receive the signal to be sent from the processor, frequency modulate and amplify it, and convert it into electromagnetic waves for radiation through the antenna.

[0061] The power management module can receive input from a battery and / or a charger to power the processor, memory, and communication module, etc.

[0062] It should be noted that the above Figure 2 It does not constitute a limitation on the structure of the network device, and may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the network device may also include a display screen, indicator lights, motors, controls (such as buttons), gyroscope sensors, acceleration sensors, etc.

[0063] Figure 3 : is a flow chart of a network switching method provided in an embodiment of the present application, the method comprising:

[0064] S101, AP1 detects the signal strength of the electronic device with which the communication connection is established, and fails to detect the signal strength of the electronic device within a preset sampling period.

[0065] Specifically, when an electronic device establishes a communication connection with an access point AP1, AP1 communicates with the electronic device on the same channel, and the access point (which can be understood as the current access point of the electronic device) can start the signal strength detection process for the electronic device, such as detecting the signal strength of the data frame sent by the electronic device. Among them, this embodiment can set a sampling period to detect the signal strength of the electronic device data frame within the sampling period. By detecting the signal strength of the electronic device, it can be inferred whether the communication status between the electronic device and AP1 is good. Optionally, AP1 can detect by collecting the signal strength indication (received signal strength indication, RSSI) of the electronic device data frame.

[0066] Optionally, the AP1 may also perform signal strength detection according to the priority of the electronic device. When the priority of the electronic device is higher than a preset level, the AP1 detects it to reduce the working power consumption of the AP1.

[0067] S102, AP1 sends an empty data frame to the electronic device.

[0068] Specifically, if AP1 does not receive a data frame sent by an electronic device during the above sampling period, it may be because the electronic device itself does not send a data frame during the sampling period, so AP1 may have errors in judging the state of the electronic device. Therefore, in this case, AP1 can actively send an empty data frame (null data) to the electronic device to ensure that the electronic device can reply with a response frame after receiving the empty data frame, that is, to ensure that the electronic device has a data frame sent out during the sampling period. Optionally, the structure of the above empty data frame includes fields such as source address, destination address and data content, wherein the data content part is a null value.

[0069] Optionally, the sampling period may be 1 second / time, 0.5 second / time, or 0.2 second / time, etc., and may be set according to actual needs.

[0070] S103, the electronic device replies an ACK frame to AP1 according to the empty data frame.

[0071] Specifically, after receiving the empty data frame sent by AP1, the electronic device needs to reply an ACK frame to AP1.

[0072] S104, AP1 detects the RSSI of the ACK frame and determines that the signal strength of the ACK frame is less than a preset signal strength threshold.

[0073] S105, AP1 sends the first information to the control end, and the first information may carry the AP1 identifier (APid), the electronic device identifier (staid) and the channel identifier (channelid); the first information may also include the signal strength or communication status identifier of the communication between AP1 and the electronic device, wherein the communication status identifier may indicate that the communication status between the electronic device and AP1 is poor; the channel identifier (channelid) is the identifier of the channel through which the electronic device communicates after establishing a communication connection with AP1, and the channel corresponds to the working frequency through which the electronic device communicates with AP1.

[0074] Specifically, this embodiment can set a signal strength threshold (such as -80 decibel milliwatts (dBm)). If AP1 determines that the signal strength of the received ACK frame is less than the signal strength threshold, it can be determined that the communication status between the electronic device and AP1 is poor. AP1 can report this status of the electronic device to the control end, so that the control end determines a new access point as the target access point for the electronic device.

[0075] In another implementation, if AP1 detects the signal strength of an electronic device within a preset sampling period, there is no need to send an empty data frame to the electronic device. Instead, it can directly determine whether the detected signal strength is less than the signal strength threshold. If so, it sends the first information to the control end.

[0076] In the above network switching method, the current access point actively sends an empty data frame to the electronic device to ensure that the electronic device has a data frame to send out within the sampling period, so that the current access point can collect the signal strength of the electronic device, thereby improving the accuracy of the judgment result of the communication status between the electronic device and the current access point determined by the current access point, thereby improving the efficiency of the electronic device in network switching.

[0077] In an achievable implementation, in order to improve the accuracy of the result of the communication status judgment between the electronic device and AP1, the process of judging the communication status between AP1 and the electronic device may include: AP1 may periodically collect the RSSI of the electronic device data frame, and if the RSSI of the electronic device data frame is not collected within the first sampling period (such as 1 second / time), an empty data frame is sent to the electronic device; if the RSSI of the electronic device data frame is collected within the first sampling period, it is directly judged whether the RSSI is less than the first signal strength threshold. Optionally, a quantity threshold (such as 3) may also be set, and if the RSSI of the three consecutively received response frames are all less than the first signal strength threshold, it can be determined that the communication status between AP1 and the electronic device is poor.

[0078] In another embodiment, regarding the process of determining the communication status between the AP1 and the electronic device, see Figure 4 As shown in the schematic diagram, the process may include:

[0079] S201, AP1 collects RSSI of electronic device data frames within a first sampling period. Specifically, the first sampling period may be once every second.

[0080] S202, determine whether the RSSI of the electronic device data frame is collected, if so, execute S205, if not, execute S203.

[0081] S203: If no RSSI of the electronic device data frame is collected within the first sampling period, AP1 sends an empty data frame to the electronic device.

[0082] S204, when the electronic device receives the empty data frame, it replies an ACK frame to AP1, and AP1 collects the RSSI of the ACK frame replied by the electronic device based on the empty data frame.

[0083] S205, if the RSSI of the electronic device data frame is collected within the first sampling period, determine whether M consecutive (such as 3) RSSIs are all less than the first signal strength threshold; if so, execute S206; if not, execute S201.

[0084] S206, AP1 collects RSSI of the electronic device data frame within a second sampling period. Specifically, the second sampling period may be 0.2 seconds per time.

[0085] S207, determine whether the RSSI of the electronic device data frame is collected, if so, execute S210, if not, execute S208.

[0086] S208: If no RSSI of the electronic device data frame is collected within the second sampling period, AP1 sends an empty data frame to the electronic device.

[0087] In an implementation manner, the AP1 may not collect the RSSI of the electronic device data frame in the second sampling period, but directly send an empty data frame to the electronic device at the frequency of the sampling period.

[0088] S209, when the electronic device receives the empty data frame, it replies with an ACK frame to AP1, and AP1 collects the RSSI of the ACK frame replied by the electronic device based on the empty data frame.

[0089] S210, if the RSSI of the electronic device data frame is collected within the second sampling period, determine whether a preset proportion (such as 70%) of the RSSIs among N (such as 20) RSSIs are all less than the second signal strength threshold; if so, execute S211; if not, execute S206.

[0090] S211, determining that the communication status between AP1 and the electronic device is poor.

[0091] In another implementation, if AP1 is sending an empty data frame to an electronic device while the electronic device is sending its own communication data frame, AP1 can detect the signal strength of the communication data frame and the signal strength of the ACK frame respectively, and AP1 can select the signal strength detected later for judgment.

[0092] In another implementation, if in step S210, after multiple rounds (such as 3 rounds) of judgment, a preset proportion of RSSIs among the RSSIs received by AP1 are not less than the second signal strength threshold, then it is possible to return to execution S201 and continue to collect the RSSI of the electronic device data frame in the first sampling period to reduce the operating power consumption of AP1.

[0093] In another implementation, if AP1 can detect the signal strength of the electronic device within the first sampling period or the second sampling period, it is no longer necessary to send an empty data frame to the electronic device, and can directly determine whether the detected signal strength is less than the signal strength threshold.

[0094] The above network switching method can further improve the accuracy of the communication status judgment result with the electronic device determined by the current access point by dynamically adjusting the sampling period and judging the signal strength multiple times, so as to realize a more stable and reliable network switching process.

[0095] To facilitate understanding of the entire process of the above network switching method, the method is introduced again with an embodiment as follows. Figure 5 As shown, the above method may include:

[0096] S301, AP1 detects the signal strength of the electronic device with which the communication connection is established, and fails to detect the signal strength of the electronic device within a preset sampling period.

[0097] S302, AP1 sends an empty data frame to the electronic device.

[0098] S303, the electronic device replies an ACK frame to AP1 according to the empty data frame.

[0099] S304, AP1 detects the RSSI of the ACK frame and determines that the signal strength of the ACK frame is less than a preset signal strength threshold.

[0100] S305, AP1 sends first information to the control end.

[0101] Among them, S301-S305 are similar to S101-S105 in the above embodiment, and can refer to the above description, which will not be repeated here.

[0102] S306, the control end searches for neighbor access points of AP1.

[0103] When AP1 reports the status of the electronic device to the control end, the control end can search for AP1's neighbor access points and determine the target access point (denoted as AP2) from the neighbor access points so that the electronic device switches the communication connection with AP1 to the communication connection with AP2.

[0104] Specifically, searching for neighbor access points depends on the network neighbor relationship of AP1: if the access points are connected by wire, the corresponding neighbor access points can be determined based on the geographical location of the access points, and the geographical location of the access points can be recorded as parameters when the access points are deployed; if the access points are wireless mesh networked, the neighbor access points can be determined based on the connection relationship of the access points and channel detection. As an example and not a limitation, the control end can send an instruction to all access points, instructing all access points to broadcast messages periodically with maximum transmission power, and the message includes at least its own ID and location. Then, the broadcast message that AP1 can receive is the broadcast message sent by its neighbor access point, thereby determining the neighbor access point of AP1.

[0105] In a feasible implementation, after the control terminal finds the neighbor access points of AP1, it can first query the load status of each neighbor access point. If a neighbor access point is already fully loaded, it is no longer considered as a target access point, that is, it can be removed from the neighbor access points.

[0106] S307, the control end sends a first instruction to AP1, instructing AP1 to send an empty data frame to the electronic device, and the first instruction carries an electronic device identifier (staid).

[0107] The control end may instruct the AP1 to send empty data frames to the electronic device at a fixed frequency.

[0108] S308, the control end sends a second instruction to each neighbor access point, instructing the neighbor access point to monitor the signal strength of the electronic device data frame, and the second instruction carries the electronic device identifier (staid) and the channel identifier (channelid).

[0109] Specifically, the control end unicasts the second instruction to each neighbor access point. Assuming that the channel through which the electronic device communicates with AP1 is channelA, the neighbor access point needs to switch its working channel to channelA in order to monitor the signal strength of the electronic device. Therefore, the second instruction can also instruct the neighbor access point to switch its working channel to the channel where the electronic device is located to monitor the signal strength of the electronic device.

[0110] In another implementation, if there are multiple electronic devices communicating with AP1 on the same channel, the neighboring access point may also monitor the signal strength of other electronic devices. The neighboring access point can then identify the electronic device to be monitored based on the electronic device identifier in the data frame sent by the electronic device.

[0111] S309, AP1 sends an empty data frame to the electronic device at a fixed frequency.

[0112] S310, the electronic device replies with an ACK frame to AP1, and the neighboring access point monitors the signal strength of the ACK frame replied by the electronic device.

[0113] Specifically, after the electronic device receives the empty data frame sent by AP1, it can reply an ACK frame to AP1. Since the communication channel of the neighboring access point is also switched to the communication channel where the electronic device is located, the neighboring access point can also monitor the ACK frame and obtain the signal strength of the ACK frame.

[0114] Exemplarily, if each access point AP is connected to the control end by wire, each access point can communicate with each other and with the control end through a wired channel, and each AP can communicate with its subordinate devices on different wireless channels. For example, the channel for AP1 to communicate with the above-mentioned electronic device may be wireless channel 2, and the channel for the neighboring access point AP2 to communicate with the access device may be wireless channel 3; if each access point AP is connected to the control end wirelessly, the channel for communication between the control end and each access point AP is the same channel (which may be wireless channel 1), and each AP can communicate with its subordinate devices on different wireless channels. The channel for AP1 to communicate with the above-mentioned electronic device may be wireless channel 2, and the channel for the neighboring access point to communicate with the access device may be wireless channel 3.

[0115] In this embodiment, after the neighbor access point receives the second instruction from the control terminal, it can adopt a time-sharing working mode, communicate with the access device in channel 3 in the first period, switch to channel 2 in the second period to monitor the signal strength of the above electronic device, and then switch to channel 3 in the next period to communicate with the access device, and so on. Optionally, because the network status of the access device that has been connected to the neighbor access point may be affected when the neighbor access point switches the channel, in order to reduce this impact, the signal strength of the electronic device can also be monitored with the help of an auxiliary chip installed in the neighbor access point, that is, the auxiliary chip monitors on channel 2, while the neighbor access point itself still works on the original channel 3.

[0116] Optionally, the neighboring access point may stop the above-mentioned time-sharing working mode after monitoring the signal strength of the electronic device ACK frame, or may stop the working mode after monitoring the signal strength of a certain number of ACKs, or stop the working mode after a certain period of time and resume the continuous working state on channel 3.

[0117] Optionally, if AP1 is sending an empty data frame to the electronic device and the electronic device is sending its own communication data frame at the same time, the neighboring access point can also monitor the signal strength of the communication data frame and the signal strength of the ACK frame respectively, and the neighboring access point can select the signal strength monitored later for calculation.

[0118] S311, the neighbor access point sends the available bandwidth and the signal strength of the electronic device ACK frame to the control end.

[0119] After receiving the second instruction, the neighbor access point can set a detection time (such as 4 seconds), and each neighbor access point collects the signal strength of multiple data frames of the electronic device within the detection time, calculates the collected signal strength and sends it to the control end. As an example but not a limitation, if the neighbor access point APx collects the signal strength of n ACK frames, the signal strength reported to the control end can be:

[0120]

[0121] Among them, RSSI i (1≤i≤n) is the signal strength of the i-th ACK frame collected by APx, RSSI min is the minimum value of the signal strength of n ACK frames, and m is an empirical value that can be adjusted according to actual needs.

[0122] The available bandwidth reported by APx to the control end can be:

[0123]

[0124] Among them, BAND i (1≤i≤n) is the available bandwidth when APx collects the i-th ACK frame, BAND max This step ensures that the neighboring access point can detect the signal strength of the electronic device data frame by sending an empty data frame through the current access point, and reports the detection result to the control end, so that the control end can determine the better target access point.

[0125] S312, the control end sends a third instruction to stop constructing an empty data frame to AP1, and the third instruction carries an electronic device identifier (staid).

[0126] Specifically, after receiving the available bandwidth and signal strength results reported by each neighboring access point, the controller may send a third instruction to AP1 to enable AP1 to stop sending empty data frames to the electronic device.

[0127] S313: The control end determines AP2 according to the reporting information of each neighbor access point.

[0128] Specifically, after the control end receives the signal strength and available bandwidth reported by each neighbor access point, the weight of each neighbor access point can be calculated by the following formula:

[0129]

[0130] Then, the control end may select the access point with the largest weight as the target access point AP2.

[0131] Optionally, the execution order of S312 and S313 may be replaced, that is, after the control end determines the target access point AP2, it sends the third instruction to AP1.

[0132] S314, the control end sends a fourth instruction to add the electronic device to the communication blacklist to the neighboring access points except AP2, and the fourth instruction carries the electronic device identifier (staid).

[0133] S315, the remaining neighboring access points add the electronic device to a communication blacklist.

[0134] Among them, after the other neighbor access points add the electronic device to the communication blacklist, even if the electronic device searches for the signals of the other neighbor access points, it cannot establish a communication connection with these neighbor access points.

[0135] S316, the control end sends a fifth instruction to AP1 to disconnect the communication connection with the electronic device, and the fifth instruction carries the electronic device identifier (staid).

[0136] S317, AP1 disconnects the communication connection with the electronic device.

[0137] The fifth instruction may also instruct AP1 to add the electronic device to a communication blacklist after disconnecting the communication connection with the electronic device, so as to avoid the possibility of the subsequent electronic device establishing a communication connection with AP1.

[0138] S318, the electronic device sends an access request to the searched access point, where the access request carries an electronic device identifier (staid).

[0139] After the electronic device disconnects from AP1, it can continue to search for access point signals. When a certain access point signal is found, it can send an access request to the access point. These access points may include AP2 or other neighboring access points other than AP2. However, since the other neighboring access points have added the electronic device to the communication blacklist, even if the electronic device sends an access request, it cannot establish a communication connection with these neighboring access points. Therefore, the electronic device can only establish a communication connection with AP2 in the end.

[0140] S319, AP2 establishes a communication connection with the electronic device.

[0141] S320, AP2 sends second information to the control end, the second information represents the communication connection information between AP2 and the electronic device, and the second information carries the access point identifier (APid) and the electronic device identifier (staid).

[0142] Optionally, the control end notifies the remaining neighbor access points to add the electronic device to the communication blacklist for a time period that can be preset (e.g., set to 2 seconds), and when the timeout period expires, the remaining neighbor access points can remove the electronic device from the communication blacklist; or, when AP2 reports to the control end that a connection has been established with the electronic device, the control end sends a blacklist removal instruction to the remaining neighbor access points, so that each of the remaining neighbor access points removes the electronic device from the communication blacklist. In this embodiment, by setting the communication blacklist, the electronic device can accurately access the target access point, further improving the efficiency of the electronic device in performing network switching.

[0143] In another embodiment, the above steps S307-S313 can also be implemented in the following manner, and the other steps are similar to the above embodiment: after the control end finds each neighbor access point, it can query the load status of each neighbor access point and directly use the neighbor access point with the smallest load as the target access point AP2.

[0144] In another embodiment, the above-mentioned first instruction can also instruct AP1 to send an empty data frame only once, then S309 can also be replaced by: AP1 sends an empty data frame to the electronic device once; then the step of S313 can also be implemented in the following way, and the other steps are similar to the above embodiment: the control end selects the neighbor access point corresponding to the maximum signal strength as the target access point AP2 based on the received signal strengths.

[0145] In another embodiment, the above steps S311-S313 can also be implemented in the following manner, and the other steps are similar to the above embodiment: after each neighbor access point detects the signal strength of the electronic device, it can immediately report the signal strength and the available bandwidth at this time to the control end; the control end can set a detection time, and it only receives the signal strength and available bandwidth sent by the neighbor access point within the detection time. If this detection time is exceeded, a third instruction to stop constructing an empty data frame is sent to AP1; then the control end uses the calculation formula in the above S311 to calculate the RSSI of each neighbor access point APx and BAND APx , and then use the formula in S313 to calculate the weight of each neighbor access point, and then select the access point with the largest weight as the target access point AP2.

[0146] about Figure 5 For the implementation process of each step, please refer to the description of the above embodiment. The implementation principle and technical effect are similar and will not be repeated here.

[0147] The above describes in detail an example of a network switching method provided by an embodiment of the present application. It is understandable that, in order to implement the above functions, the network device includes hardware and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to exceed the scope of the present application.

[0148] The embodiment of the present application can divide the functional modules of the network device according to the above-mentioned network switching method example. For example, each function can be divided into various functional modules, such as a storage unit, a processing unit, a communication unit, etc., or two or more functions can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0149] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0150] The network device provided in this embodiment is used to execute the above-mentioned network switching method, and thus can achieve the same effect as the above-mentioned implementation method.

[0151] In the case of an integrated unit, the network device may also include a processing module, a storage module and a communication module. The processing module may be used to control and manage the actions of the network device. The storage module may be used to support the network device to execute stored program codes and data, etc. The communication module may be used to support the communication between the network device and other devices.

[0152] Among them, the processing module can be a processor or a controller. It can implement or execute various exemplary logic boxes, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, etc.

[0153] In one embodiment, when the processing module is a processor and the storage module is a memory, the network device involved in this embodiment may be a network device having Figure 2 Device of the structure shown.

[0154] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the processor executes the network switching method described in any of the above embodiments.

[0155] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the network switching method in the above-mentioned embodiment.

[0156] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer execution instructions, and when the device is running, the processor can execute the computer execution instructions stored in the memory so that the chip executes the network device method in the above-mentioned method embodiments.

[0157] Among them, the network device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0158] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0159] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0160] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0161] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0162] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0163] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A network switching system, characterized in that: It includes a controller, a first wireless routing device, at least one second wireless routing device, and an electronic device, wherein the first wireless routing device is wirelessly connected to the electronic device; The first wireless routing device detects the signal strength when the electronic device communicates with the first wireless routing device, and when the signal strength is less than a preset signal strength threshold, the first wireless routing device sends first information to the controller; The controller sends a first instruction to the first wireless routing device according to the first information, wherein the first instruction is used to instruct the first wireless routing device to send a first data frame to the electronic device; The first wireless routing device sends a first data frame to the electronic device according to the first instruction, so that the electronic device replies with a first reply frame according to the first data frame; The controller sends a second instruction to at least one of the second wireless routing devices according to the first information, wherein the second instruction is used to instruct the second wireless routing device to monitor the first reply frame and report the signal strength of the first reply frame; The second wireless routing device monitors the first reply frame replied by the electronic device according to the second instruction, obtains the signal strength of the first reply frame, and sends the signal strength of the first reply frame to the controller; The controller determines a third wireless routing device from the at least one second wireless routing device according to the signal strength of the first reply frame, so that the electronic device switches the communication connection with the first wireless routing device to the communication connection with the third wireless routing device.

2. The system according to claim 1, characterized in that The first wireless routing device detects the signal strength when the electronic device communicates with the first wireless routing device, including: The first wireless routing device collects signal strength when the electronic device communicates with the first wireless routing device within a first sampling period; If the first wireless routing device does not collect the signal strength within the first sampling period, sending a second data frame to the electronic device; The first wireless routing device obtains the signal strength of the second reply frame sent by the electronic device according to the second data frame.

3. The system according to claim 2, characterized in that After the first wireless routing device obtains the signal strength of the second reply frame sent by the electronic device according to the second data frame, the method includes: When the signal strength of the second reply frame acquired by the first wireless routing device is less than the first signal strength threshold, the signal strength of the electronic device is collected within a second sampling period, and the second sampling period is less than the first sampling period; If the signal strength of the electronic device is not collected within the second sampling period, sending a third data frame to the electronic device; Acquire the signal strength of a third reply frame sent by the electronic device according to the third data frame.

4. The system according to any one of claims 1 to 3, characterized in that: The second wireless routing device obtains the signal strength of the first reply frame, and sends the signal strength of the first reply frame to the controller, including: The second wireless routing device obtains the signal strength of the first reply frame, and sends the signal strength of the first reply frame and the available bandwidth of the second wireless routing device to the controller.

5. The system according to claim 1, characterized in that The electronic device switches the communication connection with the first wireless routing device to the communication connection with the third wireless routing device, including: The controller sends a fourth instruction to the remaining wireless routing devices in the second wireless routing device except the third wireless routing device, wherein the fourth instruction is used to instruct the remaining wireless routing devices to add the electronic device to a communication blacklist; The controller sends a fifth instruction to the first wireless routing device, where the fifth instruction is used to instruct the first wireless routing device to disconnect the communication connection with the electronic device; The electronic device sends a network access request to the second wireless routing device; The third wireless routing device receives the network access request and establishes a communication connection with the electronic device.

6. A network switching method, characterized in that: The method is performed by a first wireless routing device, comprising: Detecting the signal strength when the electronic device communicates with the first wireless routing device, and when the signal strength is less than a preset signal strength threshold, sending first information to the controller, so that the electronic device is connected to the first wireless routing device by wireless communication, and the first information is used to instruct the controller to send a first instruction to the first wireless routing device; receiving a first instruction sent by the controller, and sending a first data frame to the electronic device according to the first instruction, wherein the first data frame is used to instruct the electronic device to reply with a first reply frame based on the first data frame; the first information is also used to instruct the controller to send a second instruction to at least one second wireless routing device; the second instruction is used to instruct the second wireless routing device to monitor the first reply frame, obtain the signal strength of the first reply frame and send the signal strength of the first reply frame to the controller, so that the controller determines a third wireless routing device from the at least one second wireless routing device according to the signal strength of the first reply frame; A fifth instruction sent by the controller is received, where the fifth instruction is used to instruct the first wireless routing device to disconnect the communication connection with the electronic device so that the electronic device establishes a communication connection with the third wireless routing device.

7. The method according to claim 6, characterized in that The detecting the signal strength when the electronic device communicates with the first wireless routing device includes: Collecting signal strength when the electronic device communicates with the first wireless routing device within a first sampling period; If the signal strength of the electronic device is not collected within the first sampling period, sending a second data frame to the electronic device; Acquire the signal strength of a second reply frame sent by the electronic device according to the second data frame.

8. The method according to claim 7, characterized in that After acquiring the signal strength of the second reply frame sent by the electronic device according to the second data frame, the method further includes: When the signal strength of the acquired second reply frame is less than the first signal strength threshold, the signal strength of the electronic device is collected within a second sampling period, and the second sampling period is less than the first sampling period; If the signal strength of the electronic device is not collected within the second sampling period, sending a third data frame to the electronic device; Acquire the signal strength of a third reply frame sent by the electronic device according to the third data frame.

9. The method according to claim 6, characterized in that The method further comprises: A third instruction sent by the controller is received, and according to the third instruction, the first data frame is stopped from being sent to the electronic device.

10. The method according to any one of claims 6 to 9, characterized in that: The first data frame includes a source address, a destination address and data content, and the data content is a null value.

11. A network switching method, characterized in that: The method is executed by a controller and includes: Receiving first information sent by a first wireless routing device; Sending a first instruction to the first wireless routing device according to the first information, and sending a second instruction to at least one second wireless routing device, wherein the first instruction is used to instruct the first wireless routing device to send a first data frame to the electronic device, and the second instruction is used to instruct the second wireless routing device to monitor a first reply frame sent by the electronic device and report a signal strength of the first reply frame, wherein the first reply frame is a reply by the electronic device based on the first data frame; According to the signal strength of the first reply frame, a third wireless routing device is determined from the at least one second wireless routing device, so that the electronic device switches the communication connection with the first wireless routing device to the communication connection with the third wireless routing device.

12. The method according to claim 11, characterized in that The step of determining a third wireless routing device from the at least one second wireless routing device according to the signal strength of the first reply frame comprises: Acquire the signal strength of the first reply frame and the available bandwidth of the second wireless routing device; A third wireless routing device is determined from at least one second wireless routing device according to the signal strength of the first reply frame, the available bandwidth of the second wireless routing device, and a preset calculation model.

13. The method according to claim 11 or 12, characterized in that: Before determining the third wireless routing device from the at least one second wireless routing device according to the signal strength of the first reply frame, the method further includes: A third instruction is sent to the first wireless routing device, where the third instruction is used to instruct the first wireless routing device to stop sending the first data frame to the electronic device.

14. The method according to claim 11 or 12, characterized in that: After determining the third wireless routing device from the at least one second wireless routing device according to the signal strength of the first reply frame, the method further includes: A fourth instruction is sent to the remaining wireless routing devices in the second wireless routing device except the third wireless routing device, wherein the fourth instruction is used to instruct the remaining wireless routing devices to add the electronic device to a communication blacklist.

15. The method according to claim 14, characterized in that The step of causing the electronic device to switch the communication connection with the first wireless routing device to the communication connection with the third wireless routing device includes: A fifth instruction is sent to the first wireless routing device, where the fifth instruction is used to instruct the first wireless routing device to disconnect the communication connection with the electronic device.

16. The method according to claim 11, characterized in that The first data frame includes a source address, a destination address and data content, and the data content is a null value.

17. A wireless routing device, characterized in that: include: Processor and memory; The processor is coupled to a memory, wherein the memory stores program instructions. When the program instructions stored in the memory are executed by the processor, the method according to any one of claims 6 to 10 is performed.

18. A controller, characterized in that: include: Processor and memory; The processor is coupled to a memory, wherein the memory stores program instructions. When the program instructions stored in the memory are executed by the processor, the method according to any one of claims 11 to 16 is performed.

19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method according to any one of claims 6 to 10, or the processor executes the method according to any one of claims 11 to 16.