A device interaction wireless access point switching method, device and storage medium

By filtering and monitoring device network information when the wireless access point is overloaded, the main device can autonomously determine the device to be switched and the target access point, thus solving the problem of unbalanced load on the wireless access point and realizing autonomous load balancing and network smoothness of the wireless access point.

CN118804103BActive Publication Date: 2025-11-04CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410045660.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-11
Publication Date
2025-11-04
Estimated Expiration
2044-01-11

AI Technical Summary

Technical Problem

In existing technologies, wireless access point switching suffers from problems such as network instability due to a large number of devices even with strong enough signal strength, and it relies on server processing, leading to resource waste and unbalanced load.

Method used

The main device obtains network information of devices under the same wireless access point, determines whether the device is overloaded, filters out devices with specified network parameters greater than the average value to form a filtering queue, monitors their wireless signal information, determines the device to be switched and the target access point, realizes autonomous switching of wireless access points, reduces the load and achieves load balancing.

Benefits of technology

It can achieve load balancing of wireless access points without relying on servers, reducing the load on connection points, improving network smoothness, and avoiding resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118804103B_ABST
    Figure CN118804103B_ABST
Patent Text Reader

Abstract

The application provides a wireless access point switching method for device interaction, a device and a storage medium, and relates to the technical field of wireless network access.The method comprises the following steps: a master device acquires first device network information of each device under a same wireless access point, and judges whether the wireless access point is overloaded; when judging that the wireless access point is overloaded, a screening queue is acquired according to the first device network information; wireless signal information of each device in the screening queue is acquired, a first to-be-switched device, a corresponding target access point for switching in and a corresponding target master device for switching in are determined; first request switching-in information is sent to the target master device for switching in, and the first device network information corresponding to the first to-be-switched device is sent to the target master device for switching in.Under the master device interaction, when the wireless access point is overloaded, the first to-be-switched device meeting the condition is switched to the target access point, wireless access point switching is realized, a server does not need to be relied on, and the purpose of balancing the loads of each wireless access point is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of wireless network access, in particular to a wireless access point switching method for device interaction, a device and a storage medium. BACKGROUND

[0002] A wireless access point (AP) is a network device used to create a wireless local area network (WLAN), allowing wireless devices (such as laptops, smartphones, tablets) to connect to the wireless access point through WIFI, and then connect to the wired network or the Internet.

[0003] In a scenario where there are multiple wireless access points, there may be a situation where the number of wireless devices connected to a certain wireless access point is too large, while the number of wireless devices connected to other wireless access points is too small, i.e., there is an imbalance in the load between the wireless access points, resulting in resource waste and affecting the user experience of the wireless devices.

[0004] For the problem of imbalance in the load of wireless access points, the wireless access point switching method can be used to solve it. In the prior art, the following methods are generally used to achieve network switching: Method 1: determining whether to switch the wireless access point according to the signal strength, but this method cannot solve the situation where the network is not smooth due to too many devices connected to the wireless access point when the signal strength is large enough; Method 2: constructing WIFI fingerprint data of each wireless access point and uploading it to the server, and the server determines whether to switch the network according to the current WIFI data and the WIFI fingerprint data through a model, but this method requires data construction work to prepare and construct WIFI fingerprint data before the device is connected, and it needs to rely on the server for processing.

[0005] In summary, how to effectively implement wireless access point switching to achieve the purpose of balancing the load of wireless access points is a problem that needs to be solved. SUMMARY

[0006] The present application provides a wireless access point switching method for device interaction, a device and a storage medium to solve the defects in the prior art that the wireless access point switching has a large enough signal strength and too many devices connected to the wireless access point, causing the network to be not smooth, and relying on the server for processing.

[0007] The present application provides a wireless access point switching method for device interaction, comprising:

[0008] The master device obtains first device network information of each device under the same wireless access point;

[0009] The master device determines whether the wireless access point is overloaded according to the first device network information;

[0010] The master device acquires a screening queue according to the first device network information when judging that the wireless access point is overloaded, and the screening queue includes devices with specified network parameters greater than average values;

[0011] The master device acquires wireless signal information of each device in the screening queue;

[0012] The master device determines a first device to be switched, a corresponding target access point to be cut in, and a corresponding target master device to be cut in according to the wireless signal information;

[0013] The master device sends first request cut-in information to the target master device to be cut in, and sends the first device network information corresponding to the first device to be switched to the target master device to be cut in;

[0014] The master device is determined by election from the devices connected to the wireless access point.

[0015] According to the device interaction wireless access point switching method provided by the application, the method further comprises:

[0016] The master device acquires second device network information of a second device to be switched in response to second request cut-in information;

[0017] The master device judges whether to allow the second device to be switched to cut in according to the second device network information;

[0018] The master device sends approval information when judging to allow cut-in, and sends rejection information when judging not to allow cut-in.

[0019] According to the device interaction wireless access point switching method provided by the application, the first device network information includes a first delay value and a first flow value, and the method of judging whether the wireless access point is overloaded according to the first device network information comprises:

[0020] The average flow value and the average delay value are calculated according to the first delay value and the first flow value of each device;

[0021] When the average flow value and the average delay value continuously increase within a first preset time, it is judged that the wireless access point is overloaded.

[0022] According to the device interaction wireless access point switching method provided by the application, the wireless signal information includes surrounding wireless interference strength and current signal strength, and the method of determining a first device to be switched, a corresponding target access point to be cut in, and a corresponding target master device to be cut in according to the wireless signal information comprises:

[0023] The device with a peripheral wireless interference strength greater than a current signal strength is taken as a first device to be switched out and is switched out of the screening queue.

[0024] According to the wireless interference strength of the first device to be switched out, a wireless access point with a maximum interference strength is taken as a switching-in target access point.

[0025] According to the present application, a device-interacted wireless access point switching method is provided, the first delay value includes a first server delay value and a first access point delay value, and the second device network information includes a second server delay value, a second access point delay value and a second traffic value; the judging whether the second device to be switched in is allowed according to the second device network information includes:

[0026] The first server delay value of each device is subtracted by the corresponding first access point delay value to form a first abscissa, and the first traffic value is taken as an ordinate to form a first coordinate point;

[0027] The first coordinate points formed by each device within a second preset time are obtained, and the first coordinate points at the edges are connected to each other to form a first coordinate area according to all the first coordinate points;

[0028] The second server delay value is subtracted by the second access point delay value to form a second abscissa, and the second traffic value is taken as an ordinate to form a second coordinate point;

[0029] The second coordinate points formed within a second preset time are obtained, and the second coordinate points at the edges are connected to each other to form a second coordinate area according to all the second coordinate points;

[0030] When the second coordinate area is located in the first coordinate area, or the average value of the second abscissa is less than or equal to the average value of the first abscissa, or the average value of the second ordinate is less than or equal to the average value of the first ordinate, it is judged that the second device to be switched in is allowed, otherwise it is judged that the second device to be switched in is not allowed.

[0031] According to the present application, a device-interacted wireless access point switching method is provided, before the main device obtains the first device network information of each device under the same wireless access point, the method further includes:

[0032] Obtaining device running information of each device under the same wireless access point;

[0033] According to the number of devices, the number of elected devices is determined;

[0034] According to the device running information, the devices are sorted, and the devices corresponding to the number of elected devices are selected to form an election queue.

[0035] obtaining device state information of each of the devices in the election queue, and calculating an election weight corresponding to each of the devices;

[0036] taking the device corresponding to the maximum election weight as the master device;

[0037] The device running information represents performance resource conditions of the corresponding device, and the device state information represents network state conditions of the corresponding device.

[0038] According to the device running information, the devices are sorted, and the devices corresponding to the number of elected devices are selected to form an election queue, which includes:

[0039] According to the processor utilization rate, the memory utilization rate, the negotiation rate, the signal strength, and the traffic value, a sorting value corresponding to the device is calculated;

[0040] According to the sorting value, the devices are sorted, and the devices corresponding to the number of elected devices are selected to form an election queue.

[0041] According to the device running information, the device state information of each of the devices in the election queue is obtained, and an election weight corresponding to each of the devices is calculated, which includes:

[0042] The first device in the election queue obtains device state information of each of the devices in the election queue, and the device state information includes a negotiation rate value, a signal strength value, and an interference strength value;

[0043] The first device in the election queue constructs a negotiation rate matrix, a signal strength matrix, and an interference strength matrix corresponding to the device according to the device state information within a third preset time;

[0044] The first device in the election queue respectively corresponds to combines the negotiation rate matrix, the signal strength matrix, and the interference strength matrix of each of the devices, sorts the values in the matrices, and obtains an election weight corresponding to each of the devices according to the sorting position value of the corresponding value of each of the devices.

[0045] According to the device running information, the device state information of each of the devices in the election queue is obtained, and an election weight corresponding to each of the devices is calculated, which includes:

[0046] The master device generates synchronization information according to the first device network information, and synchronizes the synchronization information to the devices in the election queue.

[0047] The application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the device-interacted wireless access point switching method when executing the program.

[0048] The application further provides a non-transitory computer-readable storage medium, which stores a computer program, wherein the computer program is executable on a processor to implement the device-interacted wireless access point switching method.

[0049] The device-interacted wireless access point switching method, device and storage medium provided by the application have at least the following beneficial effects: a master device is elected from devices connected to a wireless access point, the master device forms a screening queue by screening devices with specified network parameters greater than average when the wireless access point is overloaded, and monitors wireless signal information of each device in the screening queue to determine a first to-be-switched device, a target access point and a target master device for switching, the master device sends first request switching information and first device network information of the first to-be-switched device to the target master device to switch the first to-be-switched device to the target access point. In this way, when the master device is interacted, the first to-be-switched device meeting the conditions is switched to the target access point when the connected wireless access point is overloaded, wireless access point switching is realized, a server does not need to be relied on, the load of the connected wireless access point is reduced, and the loads of the wireless access points are balanced. BRIEF DESCRIPTION OF DRAWINGS

[0050] In order to more clearly illustrate the technical solutions of the present application or the prior art, the following will briefly introduce the drawings needed in the embodiments or prior art description. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort.

[0051] Figure 1 is one of the flowcharts of the device-interacted wireless access point switching method provided by the present application;

[0052] Figure 2 is the second flowchart of the device-interacted wireless access point switching method provided by the present application;

[0053] Figure 3 is the third flowchart of the device-interacted wireless access point switching method provided by the present application;

[0054] Figure 4 Figure 4 is a flowchart of a fourth embodiment of a method for switching wireless access points for device interaction according to the present application;

[0055] Figure 5 Figure 5 is a flowchart of a fifth embodiment of a method for switching wireless access points for device interaction according to the present application;

[0056] Figure 6 Figure 6 is a flowchart of a sixth embodiment of a method for switching wireless access points for device interaction according to the present application;

[0057] Figure 7 Figure 7 is a flowchart of a seventh embodiment of a method for switching wireless access points for device interaction according to the present application;

[0058] Figure 8 Figure 8 is a flowchart of an eighth embodiment of a method for switching wireless access points for device interaction according to the present application;

[0059] Figure 9 Figure 9 is a flowchart of a ninth embodiment of a method for switching wireless access points for device interaction according to the present application;

[0060] Figure 10 Figure 10 is a diagram of a second coordinate point in one embodiment of a method for switching wireless access points for device interaction according to the present application;

[0061] Figure 11 Figure 11 is a diagram of a first coordinate point and a second coordinate point in one embodiment of a method for switching wireless access points for device interaction according to the present application;

[0062] Figure 12 Figure 12 is a diagram of a first coordinate point and a second coordinate point in another embodiment of a method for switching wireless access points for device interaction according to the present application;

[0063] Figure 13 Figure 13 is a diagram of a first coordinate point and a second coordinate point in yet another embodiment of a method for switching wireless access points for device interaction according to the present application;

[0064] Figure 14 Figure 14 is a diagram of an electronic device according to the present application. DETAILED DESCRIPTION

[0065] In order to make the objects, technical solutions, and advantages of the present application clearer, the following will be combined with the accompanying drawings for the technical solutions in the present application to make a clear and complete description. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.

[0066] The application is described below in combination with Figures 1-9 A device interaction wireless access point switching method is described, comprising:

[0067] S100: A master device acquires first device network information of each device under a same wireless access point;

[0068] S110: The master device determines whether the wireless access point is overloaded according to the first device network information;

[0069] S120: When determining that the wireless access point is overloaded, the master device acquires a screening queue according to the first device network information, the screening queue comprising devices with specified network parameters greater than average values;

[0070] S130: The master device acquires wireless signal information of each device in the screening queue;

[0071] S140: The master device determines a first device to be switched, a corresponding target access point to be switched in, and a corresponding target master device to be switched in according to the wireless signal information;

[0072] S150: The master device sends first request switching in information to the target master device to be switched in, and sends the first device network information of the first device to be switched to the target master device to be switched in;

[0073] The master device is determined by election among devices connected to the wireless access point.

[0074] A master device is elected among devices connected to a wireless access point. When the wireless access point is overloaded, the master device screens devices with specified network parameters greater than average values to form a screening queue, and monitors wireless signal information of each device in the screening queue to determine a first device to be switched, a corresponding target access point to be switched in, and a corresponding target master device to be switched in. The master device sends first request switching in information and first device network information of the first device to be switched to the target master device to be switched in, so as to switch the first device to be switched to the target access point. In this way, under the interaction of the master device, when the connected wireless access point is overloaded, the first device to be switched meeting the conditions is switched to the target access point, i.e. wireless access point switching is realized, without relying on a server, so as to reduce the load of the connected wireless access point and balance the load of each wireless access point.

[0075] The master device can obtain the number of devices connected to the wireless access point and the network status of each device according to the first device network information of the devices connected to the same wireless access point, and determine whether the wireless access point is overloaded, that is, whether too many devices are connected to the wireless access point to cause network congestion. Then, the wireless access point switching is triggered, and the problem that the wireless access point provides sufficient signal strength but network congestion exists can be avoided. Meanwhile, the processing is performed by the master device, and the server does not need to be relied on, and the burden of the wireless access point can be reduced.

[0076] The master device interacts with the target master device under the target access point, and sends the first device network information of the first device to be switched to the target master device, so that the first device to be switched is connected to the target access point.

[0077] The devices under the wireless access point can be devices including mobile phones, tablet computers, VR (virtual reality) devices, etc.

[0078] It should be noted that the target access point is actually a wireless access point, which is another wireless access point except the wireless access point connected by the master device, and the target master device is the corresponding master device under the target access point. The wireless access point and the target access point, and the master device and the target master device are relative, that is, in the view of other wireless access points, the wireless access point can also be a target access point, and the master device can also be a target master device.

[0079] Reference Figure 2 In some embodiments of the device interaction wireless access point switching method, the method further comprises:

[0080] S160: The master device acquires second device network information of a second device to be switched in response to the second request cut-in information.

[0081] S170: The master device determines whether to allow the second device to be switched to cut in according to the second device network information.

[0082] S180: The master device sends the approval information when it is determined to allow the cut-in, and sends the rejection information when it is determined not to allow the cut-in.

[0083] When the master device receives the second request cut-in information, i.e. the wireless access point connected by the master device is the cut-in target access point of the other wireless access point, and the master device is the cut-in target master device of the other wireless access point, the master device judges whether the connected wireless access point allows the second to-be-switched device to cut in according to the second device network information, so as to allow the second to-be-switched device to cut in to the wireless access point when the condition of the wireless access point is appropriate, and achieve the purpose of wireless access point switching. In this way, when switching the wireless access point for the device, the master devices under the wireless access points on both sides interact to judge whether it is appropriate to perform wireless access point switching and then execute, which is beneficial to maintain the stability of the wireless access point and avoid the problem that the network condition of the device is not improved after the wireless access point is switched.

[0084] It should be noted that the first to-be-switched device and the second to-be-switched device are relative, and different names are used to distinguish the perspective of different wireless access points. Actually, the first to-be-switched device and the second to-be-switched device can be the same device. For example, a mobile phone under the wireless access point A needs to be switched. In the perspective of the master device of the wireless access point A, the mobile phone is the first to-be-switched device, the wireless access point B is the cut-in target access point, and the master device of the wireless access point B is the cut-in target master device. In the perspective of the master device of the wireless access point B, the mobile phone is the second to-be-switched device.

[0085] Reference Figure 3 In some embodiments of the device interaction wireless access point switching method, the first device network information includes a first delay value and a first traffic value, and the S110 includes:

[0086] S111: calculating an average traffic value and an average delay value according to the first delay value and the first traffic value of each device;

[0087] S112: when the average traffic value and the average delay value continuously increase within a first preset time, it is judged that the wireless access point is overloaded.

[0088] The master device statistics the average traffic value and the average delay value of the wireless access point. When the average traffic value and the average delay value continuously increase for a first preset time, it means that the number of devices accessed by the wireless access point is too large, resulting in overloading of the wireless access point and inability to provide stable and good network access services for all devices. In this way, by means of the master device statistics the average traffic value and the average delay value, it can be judged in time whether the wireless access point is overloaded, and then the wireless access point switching is triggered.

[0089] The first preset time can be set according to the actual application environment.

[0090] In some embodiments of the device interaction wireless access point switching method, the S120 comprises:

[0091] According to the first traffic value and the first delay value of each device, the device with a traffic value greater than the average traffic value or a delay value greater than the average delay value is selected to form the screening queue.

[0092] In the case of wireless access point overload, the master device selects the device with a traffic value greater than the average traffic value or a delay value greater than the average delay value into the screening queue according to the first network device information of each device, including the first traffic value and the first delay value, and compares them with the average traffic value and the average delay value. In this way, the screening queue composed of devices with poor network conditions is formed, which facilitates the selection of the first device to be switched from the screening queue, and achieves the effect of preferentially switching the devices with poor network conditions to wireless access points, which is beneficial to improve the situation of devices with poor network conditions and avoid affecting devices with good network conditions.

[0093] At the same time, the screening queue is formed, and the master device only needs to monitor the devices in the screening queue, which is beneficial to reduce the monitoring burden of the master device.

[0094] Reference Figure 4 In some embodiments of the device interaction wireless access point switching method, the wireless signal information includes the surrounding wireless interference strength and the current signal strength, and the S140 comprises:

[0095] S141: The device with a surrounding wireless interference strength greater than the current signal strength is selected as the first device to be switched and is cut out of the screening queue.

[0096] S142: According to the wireless interference strength of the first device to be switched, the wireless access point with the maximum interference strength is selected as the target access point to be switched in.

[0097] The master device monitors the wireless interference strength and the current signal strength of the devices in the screening queue. When the wireless interference strength of a certain device is greater than the current signal strength, it means that the signal strength provided by other wireless access points is greater than that provided by the currently connected wireless access point. The device is selected as the first device to be switched, and the wireless access point with the maximum wireless interference strength is selected as the target access point to be switched in. In this way, the first device to be switched is selected according to the wireless interference strength and the current signal strength, which is beneficial to ensure that the first device to be switched can obtain sufficient wireless signal strength after wireless access point switching, and to guarantee the network experience of the device.

[0098] It can be understood that the wireless interference intensity and the current signal intensity are relative. The wireless signal intensity provided by the wireless access point is the current signal intensity in the perspective of the device under the wireless access point, and is the wireless interference intensity in the perspective of other wireless access points.

[0099] Reference Figure 5 In some embodiments of the device interaction wireless access point switching method, the first delay value includes a first server delay value and a first access point delay value, and the second device network information includes a second server delay value, a second access point delay value, and a second traffic value; the S170 includes:

[0100] S171: subtracting the first access point delay value corresponding to the first server delay value of each device as a first abscissa, and taking the first traffic value as a first ordinate to form a first coordinate point;

[0101] S172: obtaining the first coordinate point formed by each device within a second preset time, and connecting the edge of the first coordinate point to form a first coordinate area according to all the first coordinate points;

[0102] S173: subtracting the second access point delay value from the second server delay value as a second abscissa, and taking the second traffic value as a second ordinate to form a second coordinate point;

[0103] S174: obtaining the second coordinate point formed within a second preset time, and connecting the edge of the second coordinate point to form a second coordinate area according to all the second coordinate points;

[0104] S175: when the second coordinate area is located in the first coordinate area, or the average value of the second abscissa is less than or equal to the average value of the first abscissa, or the average value of the second ordinate is less than or equal to the average value of the first ordinate, it is judged that the second to-be-switched device is allowed to cut in, otherwise it is judged that the second to-be-switched device is not allowed to cut in.

[0105] Reference Figure 10 The master device obtains the second server delay value, the second access point delay value, and the second traffic value of the second to-be-switched device within a second preset time, forms a plurality of second coordinate points, and connects the edge of the second coordinate point to form a second coordinate area. The second coordinate area can reflect the network situation and demand of the second to-be-switched device. In the same way, the first coordinate area formed by each device under the wireless access point is obtained, and the first coordinate area can reflect the network situation and resources provided by the wireless access point for each device at the moment. When the second coordinate area is located in the first coordinate area, such as Figure 11As shown, it means that the network status and resources currently provided by the wireless access point meet the network status and requirements of the second to-be-switched device, allowing the second to-be-switched device to access under the wireless access point; or, although the second coordinate area is not located in the first coordinate area, but the average value of the second abscissa or the second ordinate of the second to-be-switched device corresponds to the average value of the first abscissa or the average value of the first ordinate, as shown Figure 12 As shown, it is considered that the second to-be-switched device can also meet the network requirements and will not bring too large load to the wireless access point when accessing the wireless access point, and the second to-be-switched device is allowed to access the wireless access point.

[0106] Reference Figure 13 When the second coordinate area is located outside the first coordinate area and the average value of the second abscissa and the average value of the second ordinate are greater than the average value of the first abscissa and the average value of the first ordinate, the master device does not allow the second to-be-switched device to access the wireless access point, avoiding too large load to the wireless access point, and being beneficial to maintaining stable work of the wireless access point.

[0107] Reference Figure 6 In some embodiments of the device interaction wireless access point switching method, before the S100, the method further comprises:

[0108] S010: Obtain device running information of each device under the same wireless access point;

[0109] S020: Determine the number of elected devices according to the number of devices;

[0110] S030: Sort the devices according to the device running information, and select the devices corresponding to the number of elected devices to form an election queue;

[0111] S040: Obtain device state information of each device in the election queue, and calculate the election weight corresponding to each device;

[0112] S050: Take the device corresponding to the maximum election weight as the master device;

[0113] The device running information represents the performance resource situation of the corresponding device, and the device state information represents the network status situation of the corresponding device.

[0114] Before wireless access point switching is performed, a master device needs to be selected. According to the number of devices under the wireless access point, the number of election devices participating in the election is determined, according to the device running information of each device, a device corresponding to the number of election devices is selected to form an election queue, the election weight of each device in the election queue is calculated according to the device state information, and then the device with the largest election weight is selected as the master device. In this way, the master device can have sufficient performance resources and good network status, meeting the needs of interactive wireless access point switching.

[0115] It should be noted that, since the master device performs interactive wireless access point switching, it requires certain performance resources, the device running information reflects the performance resource situation of the device, and then a device with sufficient performance resources is selected to form an election queue. At the same time, the master device also needs to have a good network status to communicate and interact, the device state information reflects the network status of the device, and then a device with the optimal network status is selected as the master device.

[0116] In some embodiments of the present application, the number of election devices can be determined by the following formula:

[0117]

[0118] Wherein, N is the number of devices under the wireless access point.

[0119] Reference Figure 7 In some embodiments of the device interactive wireless access point switching method of the present application, the device running information includes processor utilization, memory utilization, negotiation rate, signal strength and traffic value; the S030 includes:

[0120] S031: According to the processor utilization, the memory utilization, the negotiation rate, the signal strength and the traffic value, the sorting value corresponding to the device is calculated;

[0121] S032: According to the sorting value, the devices are sorted, and the devices corresponding to the number of election devices are selected to form an election queue.

[0122] According to the processor utilization, the memory utilization, the negotiation rate, the signal strength and the traffic value, the performance resource situation of the device can be reflected, and the sorting value can be calculated and obtained accordingly. The devices can be sorted based on the performance resource situation, and the devices can be selected in order from small to large according to the sorting value, until the number of election devices is reached, and the election queue is formed.

[0123] In some embodiments of the present application, the sorting value can be calculated and obtained according to the following formula:

[0124]

[0125] Wherein, C is the processor utilization, M is the memory utilization, N is the negotiation rate, D is the signal strength, F is the total flow value obtained within the preset time value.

[0126] Reference Figure 8 In some embodiments of the device interaction wireless access point switching method of the application, the S040 comprises:

[0127] S041: The first device in the election queue obtains the device state information of each device in the election queue, which includes negotiation rate value, signal strength value and interference strength value.

[0128] S042: The first device in the election queue constructs the negotiation rate matrix, signal strength matrix and interference strength matrix corresponding to the device according to the device state information within the third preset time.

[0129] S043: The first device in the election queue merges the negotiation rate matrix, signal strength matrix and interference strength matrix of each device respectively and sorts the values in the matrix, and obtains the election weight corresponding to the device according to the sorting position value of each device.

[0130] After forming the election queue, the performance resource of the first device in the election queue is optimal, and the information is summarized to the device for processing. By constructing the negotiation rate matrix, signal strength matrix and interference strength matrix of each device, the network state of each device can be accurately reflected, and then the three matrices are merged and sorted, that is, the values in the matrix of each device are sorted uniformly, and then the sorting position value is obtained according to the sorting position of the values in the three matrices after merging. The reciprocal of the sorting position value is used as the election weight of each device. In this way, by constructing the matrix and then merging and sorting, the sorting position value is calculated to obtain the election weight, which can comprehensively reflect the network state of the device, and is beneficial to accurately selecting the device with the optimal network state as the master device, and improving the working efficiency and working reliability of the master device to realize wireless access point switching.

[0131] For the convenience of understanding, an example is schematically given, for example, the third preset time is 10 periods, the negotiation rate and the signal strength are obtained once every period, and the interference signal strength is obtained once every two periods. The three matrices of a device are as follows:

[0132] Negotiation rate matrix: [526, 527, 510, 532, 522, 529, 712, 547, 513, 416]

[0133] Signal strength matrix: [-40, -47, -52, -39, -67, -48, -68, -71, -67, -45]

[0134] Interference strength matrix: [-56, -72, -86, -57, -82]

[0135] The three matrices of each device are merged and sorted as follows:

[0136] Negotiation rate summary matrix: [712, 683, 612, 605, 547, 529, 527, 526, 510, 416,...]

[0137] Signal strength summary matrix: [-25, -28, -31, -39, -40, -47, -48, -52, -67, -68, -71,...]

[0138] Interference strength summary matrix: [-92, -86, -82, -72, -57, -56, -45,...]

[0139] After obtaining the sorted position values of the matrix values of the device, the formed matrix is as follows:

[0140] Sorted position value summary matrix: [1, 3, 7, 5, 6, 9, 10, 16, 18, 20, 29,...]

[0141] It can be understood that the sorted position value summary matrix is a summary of the sorted position values of each value in the three matrices of a device. According to the reciprocal of the sorted position value, the election weight of the corresponding device is calculated, that is, the election weight = 1 + 1 / 3 + 1 / 7 +..., that is, the earlier the sorted position, the greater the election weight calculated, which means that the network state of the device is also better.

[0142] In the process of constructing the negotiation rate matrix, the signal strength matrix, and the interference strength matrix of each device, the master device can combine the unique identification code of each device, such as the MAC address, to construct it, so as to associate the values sorted after the matrix with the corresponding device in the subsequent process.

[0143] It should be noted that before forming the election queue, the determination of the number of election devices and the process of forming the election queue according to the device running information can be performed in the wireless access point, and the information of the election queue is broadcast to all devices or each device in the election queue after the election queue is formed; it can also be that each device exchanges information with each other through broadcasting, and each device obtains the number of election devices and forms the election queue according to the information processing.

[0144] Reference Figure 9In some embodiments of the device interaction wireless access point switching method of the application, after the S120, the method further comprises:

[0145] S121: The master device generates synchronization information according to the first device network information, and synchronizes the synchronization information to the devices in the election queue.

[0146] In view of the fact that the master device may cut out the current wireless access point and then elect a new master device, in order to avoid the lack of historical information of each device for the new master device, the master device periodically generates synchronization information according to the first device network information, and sends it to each device in the election queue for synchronization, so that in the case of selecting a new master device, the wireless access point can still work stably and normally perform wireless access point switching, which is beneficial to improve stability and reliability.

[0147] Figure 14 An example of an entity structure diagram of an electronic device is shown in Figure 14 As shown, the electronic device can include a processor 810, a communications interface 820, a memory 830, and a communications bus 840, wherein the processor 810, the communications interface 820, and the memory 830 communicate with each other through the communications bus 840. The processor 810 can invoke the logical instructions in the memory 830 to execute the above-mentioned device interaction wireless access point switching method.

[0148] The electronic device provided by the application can be a VR device, a mobile phone, a tablet computer, or other devices that can connect to a wireless access point.

[0149] In addition, the logical instructions in the memory 830 described above can be implemented in the form of a software functional unit and sold or used as an independent product, which can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the application essentially or the part that contributes to the prior art or part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in each embodiment of the application. The aforementioned storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.

[0150] In another aspect, the present application also provides a non-transitory computer readable storage medium having stored thereon a computer program, which, when executed by a processor, implements a device interaction wireless access point switching method provided by any of the above methods.

[0151] In the description of the present application, it is to be understood that the terms "first", "second", "third" and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily described with a sequential numbering. The terms so used are interchangeable under appropriate circumstances and embodiments. In the description of the present application, the term "plurality" means at least two, for example, two, three or more, unless otherwise specifically defined.

[0152] In the description of the present application, the description of the terms "one embodiment", "some embodiments", "an example", "a specific example", or "some examples" etc. means that the particular feature, structure, material or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. The illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the particular features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples. Furthermore, in non-contradictory cases, those skilled in the art can combine and combine the features of different embodiments or examples described in the specification and the features of different embodiments or examples.

[0153] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement to part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for wireless access point handoff for device interaction, the method comprising: The method comprises: a master device acquires first device network information of each device under a same wireless access point; the master device determines whether the wireless access point is overloaded according to the first device network information; when the master device determines that the wireless access point is overloaded, the master device acquires a screening queue according to the first device network information, the screening queue comprising devices with a specified network parameter greater than an average value; the master device acquires wireless signal information of each device in the screening queue; the master device determines a first device to be switched, a corresponding target access point to be cut in, and a corresponding target master device to be cut in according to the wireless signal information; the master device sends first request cut-in information to the target master device to be cut in, and sends the first device network information corresponding to the first device to be switched to the target master device to be cut in; wherein the master device is determined by election from the devices under the wireless access point.

2. The method of claim 1, wherein, The method further comprises: the master device acquires second device network information of a second device to be switched in response to second request cut-in information; the master device determines whether the second device to be switched in is allowed to cut in according to the second device network information; when the master device determines that the second device to be switched in is allowed to cut in, the master device sends consent information, and when the master device determines that the second device to be switched in is not allowed to cut in, the master device sends rejection information.

3. The method of claim 2, wherein, The first device network information comprises a first delay value and a first traffic value, and the determination of whether the wireless access point is overloaded according to the first device network information comprises: calculating an average traffic value and an average delay value according to the first delay value and the first traffic value of each device; when the average traffic value and the average delay value continuously increase within a first preset time, it is determined that the wireless access point is overloaded.

4. The method of claim 1, wherein, The wireless signal information comprises surrounding wireless interference strength and current signal strength, and the determination of the first device to be switched, the corresponding target access point to be cut in, and the corresponding target master device to be cut in according to the wireless signal information comprises: devices with surrounding wireless interference strength greater than current signal strength are taken as the first device to be switched and cut out of the screening queue; the wireless access point with the greatest interference strength is taken as the target access point to be cut in according to the wireless interference strength of the first device to be switched.

5. The method of claim 3, wherein, The first delay value comprises a first server delay value and a first access point delay value, the second device network information comprises a second server delay value, a second access point delay value, and a second traffic value, and the determination of whether the second device to be switched in is allowed to cut in according to the second device network information comprises: the first server delay value of each device minus the corresponding first access point delay value is taken as a first abscissa, and the first traffic value is taken as a first ordinate to form a first coordinate point; the first coordinate points formed by each device within a second preset time are acquired, and the edge first coordinate points are connected to form a first coordinate area according to all the first coordinate points; the second server delay value minus the second access point delay value is taken as a second abscissa, and the second traffic value is taken as a second ordinate to form a second coordinate point; Obtaining the second coordinate points formed within a second preset time, and connecting the second coordinate points of edges to each other to form a second coordinate region according to all the second coordinate points; When the second coordinate region is located in the first coordinate region, or an average value of the second horizontal coordinates is less than or equal to an average value of the first horizontal coordinates, or an average value of the second vertical coordinates is less than or equal to an average value of the first vertical coordinates, it is determined that the second to-be-switched device is allowed to cut in, otherwise it is determined that the second to-be-switched device is not allowed to cut in.

6. The method of claim 1, wherein, Before the master device obtains the first device network information of each device under the same wireless access point, the method further comprises: Obtaining device running information of each device under the same wireless access point; Determining the number of elected devices according to the number of devices; According to the device running information, sorting the devices and selecting the devices corresponding to the number of elected devices to form an election queue; Obtaining device state information of each device in the election queue and calculating the election weight corresponding to each device; The device corresponding to the maximum election weight is taken as the master device. The device running information represents the performance resource situation of the corresponding device, and the device state information represents the network state situation of the corresponding device.

7. The method of claim 6, wherein, The device running information includes processor utilization, memory utilization, negotiation rate, signal strength and traffic value; and the sorting of the devices according to the device running information, the selection of the devices corresponding to the number of elected devices to form an election queue comprises: According to the processor utilization, the memory utilization, the negotiation rate, the signal strength and the traffic value, the sorting value corresponding to the device is calculated; According to the sorting value, the devices are sorted, and the devices corresponding to the number of elected devices are selected to form an election queue.

8. The method of claim 6, wherein, The obtaining of the device state information of each device in the election queue and the calculation of the election weight corresponding to each device comprises: The first device in the election queue obtains the device state information of each device in the election queue, and the device state information includes negotiation rate value, signal strength value and interference strength value; The first device in the election queue constructs the negotiation rate matrix, the signal strength matrix and the interference strength matrix corresponding to the device according to the device state information within a third preset time; The first device in the election queue respectively corresponds to the negotiation rate matrix, the signal strength matrix and the interference strength matrix of each device, and the values in the matrices are sorted, and the election weight corresponding to the device is obtained according to the sorting position value of the corresponding value of each device.

9. The method of claim 6, wherein, After the master device judges that the wireless access point is overloaded, the method further comprises: The master device generates synchronization information according to the first device network information, and synchronizes the synchronization information to the devices in the election queue.

10. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The computer program is executed by the processor to implement the device interaction wireless access point switching method of any one of claims 1 to 9. 11.A non-transitory computer-readable storage medium having stored thereon a computer program. The computer program is executed by the processor to implement the device interaction wireless access point switching method of any one of claims 1 to 9.

Citation Information

Patent Citations

  • Apparatus and method in wireless communication system

    US20170374588A1

  • Wireless terminal connection control device, connection control system provided with same, and connection control method

    WO2017026085A1