Wireless access point switching method and device for device interaction, and storage medium

The main device filters and monitors device network information under the wireless access point, determines the device to be switched and the target access point, realizes automatic switching of wireless access points, solves the problem of unbalanced load of wireless access points, and improves network efficiency. Fluency and load balancing across devices.

CN118804103AActive Publication Date: 2024-10-18CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF 9 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The problem of unbalanced load on wireless access points in the existing technology causes the network to be unsmooth when the signal strength is large enough but there are too many devices, and the network relies on servers for processing, which is inefficient.

Method used

Obtain device network information under the same wireless access point through the main device, determine whether it is overloaded, filter out devices with specified network parameters greater than the average, determine the device to be switched and switch to the target access point, and realize wireless access points between devices Switch to reduce load and achieve load balancing.

Benefits of technology

Wireless access point switching can be achieved without relying on a server, reducing the load on connection points, improving device usage experience, and ensuring network fluency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118804103A_ABST
    Figure CN118804103A_ABST
Patent Text Reader

Abstract

The invention provides a wireless access point switching method and device for device interaction and a storage medium, and relates to the technical field of wireless network access, and the method comprises the following steps: a main device obtains first device network information of each device under the same wireless access point, and judges whether the wireless access point is overloaded; when it is judged that the wireless access point is overloaded, obtaining a screening queue according to the first device network information; acquiring wireless signal information of each device in the screening queue, and determining a first to-be-switched device, a corresponding cut-in target access point and a corresponding cut-in target master device; and sending first request switching-in information to the switching-in target master device, and sending first device network information corresponding to the first to-be-switched device to the switching-in target master device. Under the interaction of the main device, 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 achieved, dependence on a server is not needed, and the purpose of balancing the load of each wireless access point is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless network access technology, and in particular to a device-interactive wireless access point switching method, device and storage medium. Background Art

[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 via WIFI and then connect to a wired network or the Internet.

[0003] In a scenario where there are multiple wireless access points, there may be too many wireless devices connected to a certain wireless access point, while there may be too few wireless devices connected to other wireless access points, that is, there is a problem of load imbalance between the wireless access points, which leads to resource waste and affects the user experience of the wireless devices.

[0004] The problem of unbalanced load on wireless access points can be solved by switching wireless access points. In the prior art, network switching is generally achieved in the following ways: Method 1, determining whether to switch wireless access points based on signal strength, but this method cannot solve the problem of network unsmoothness caused by too many devices under the wireless access point when the signal strength is large enough; Method 2, by constructing the WIFI fingerprint data of each wireless access point and uploading it to the server on ice, the server determines whether network switching is required based on the current WIFI data and WIFI fingerprint data through a model, but this method requires the preparation of data construction work for constructing WIFI fingerprint data before device access, and needs to rely on the server for processing.

[0005] In summary, how to effectively implement wireless access point switching and achieve the purpose of wireless access point load balancing is an issue that needs to be solved urgently. Summary of the invention

[0006] The present invention provides a device-interactive wireless access point switching method, device and storage medium, which are used to solve the defects of wireless access point switching in the prior art that the signal strength is large enough but there are too many devices under the wireless access point, resulting in network unsmoothness and reliance on server processing.

[0007] The present invention provides a device interactive wireless access point switching method, comprising:

[0008] The master device obtains the 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 network information of the first device;

[0010] When the master device determines that the wireless access point is overloaded, the master device acquires a screening queue according to the network information of the first device, wherein the screening queue includes devices with a specified network parameter greater than an average value;

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

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

[0013] The master device sends a first switching request message to the switching target master device, and sends the first device network information corresponding to the first device to be switched to the switching target master device;

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

[0015] A method for switching a wireless access point for device interaction provided by the present invention further includes:

[0016] The master device acquires the second device network information of the second device to be switched in response to the second request switching information;

[0017] The master device determines whether to allow the second device to be switched to be switched according to the network information of the second device;

[0018] When the master device determines that the cut-in is allowed, it sends approval information; when the master device determines that the cut-in is not allowed, it sends rejection information.

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

[0020] Calculate an average flow value and an average delay value according to the first delay value and the first flow value of each of the devices;

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

[0022] According to a device interactive wireless access point switching method provided by the present invention, the wireless signal information includes the surrounding wireless interference strength and the current signal strength, and the master device determines the first device to be switched, the corresponding switching target access point and the corresponding switching target master device according to the wireless signal information, including:

[0023] The device whose surrounding wireless interference strength is greater than the current signal strength is used as the first device to be switched and is cut out of the screening queue;

[0024] According to the wireless interference strength of the first device to be switched, the wireless access point with the greatest interference strength is used as a switching target access point.

[0025] According to a device interactive wireless access point switching method provided by the present invention, 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; judging whether to allow the second device to be switched to be switched in according to the second device network information includes:

[0026] Subtracting the first access point delay value corresponding to the first server delay value of each device as a first horizontal coordinate, and taking the first traffic value as the first horizontal coordinate to form a first coordinate point;

[0027] Acquire the first coordinate points formed by each of the devices within a second preset time, and connect the first coordinate points at the edge to form a first coordinate area according to all the first coordinate points;

[0028] 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;

[0029] Acquire the second coordinate points formed within a second preset time, and connect the second coordinate points on the edge to form a second coordinate area according to all the second coordinate points;

[0030] When the second coordinate area is within the first coordinate area, or the average value of the second horizontal coordinate is less than or equal to the average value of the first horizontal coordinate, or the product mean value of the second vertical coordinate is less than or equal to the average value of the first vertical coordinate, it is determined that the second device to be switched is allowed to be switched in, otherwise it is determined that the second device to be switched is not allowed to be switched in.

[0031] According to a method for switching wireless access points for device interaction provided by the present invention, before the master device acquires the first device network information of each device under the same wireless access point, the method further includes:

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

[0033] Determining the number of election devices based on the number of said devices;

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

[0035] Obtaining device status information of each device in the election queue, and calculating the election weight corresponding to each device;

[0036] The device corresponding to the largest election weight is used as the master device;

[0037] The device operation information represents the performance resource status of the corresponding device, and the device status information represents the network status of the corresponding device.

[0038] According to a device interactive wireless access point switching method provided by the present invention, the device operation information includes processor utilization, memory utilization, negotiation rate, signal strength and flow value; the devices are sorted according to the device operation information, and the devices corresponding to the number of election devices are selected to form an election queue, including:

[0039] Calculate a ranking value corresponding to the device according to the processor utilization, the memory utilization, the negotiation rate, the signal strength, and the traffic value;

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

[0041] According to a device-interactive wireless access point switching method provided by the present invention, the acquiring of device status information of each device in the election queue and the calculation of the election weight corresponding to each device include:

[0042] The first device in the election queue obtains device status information of each device in the election queue, where the device status 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 status information within a third preset time;

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

[0045] According to a device-interactive wireless access point switching method provided by the present invention, when the master device determines that the wireless access point is overloaded, after obtaining a screening queue according to the first device network information, the method further 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 present invention also provides an electronic device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a wireless access point switching method for device interaction as described in any one of the above is implemented.

[0048] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for switching a wireless access point for device interaction as described in any one of the above is implemented.

[0049] The present invention provides a method, device and storage medium for switching wireless access points for device interaction, which have at least the following beneficial effects: a master device is selected from the devices accessed under the wireless access point, and when the wireless access point is overloaded, the master device screens out devices with designated network parameters greater than the average value to form a screening queue, and monitors the wireless signal information of each device in the screening queue to determine the first device to be switched and the corresponding target access point and target master device to be switched, and the master device sends the first request to switch information and the first device network information of the first device to be switched to the target access point 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 that meets the conditions is switched to the target access point, that is, the wireless access point switching is realized without relying on the server, so as to reduce the load of the connected wireless access point and balance the load of each wireless access point. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0051] Figure 1 This is one of the flow diagrams of a method for switching wireless access points for device interaction provided by the present invention;

[0052] Figure 2 This is a second flow chart of a method for switching wireless access points for device interaction provided by the present invention;

[0053] Figure 3 This is a third flow chart of a method for switching wireless access points for device interaction provided by the present invention;

[0054] Figure 4 This is a fourth flow chart of a method for switching wireless access points for device interaction provided by the present invention;

[0055] Figure 5 This is a fifth flow chart of a method for switching wireless access points for device interaction provided by the present invention;

[0056] Figure 6 This is a sixth flow chart of a method for switching wireless access points for device interaction provided by the present invention;

[0057] Figure 7 This is a seventh flow chart of a method for switching wireless access points for device interaction provided by the present invention;

[0058] Figure 8 This is a flowchart of a method for switching wireless access points for device interaction provided by the present invention;

[0059] Fig. 9 This is a ninth flow chart of a method for switching wireless access points for device interaction provided by the present invention;

[0060] Fig.10 It is a schematic diagram of a second coordinate point in one implementation of a wireless access point switching method for device interaction provided by the present invention;

[0061] Fig.11 It is a schematic diagram of a first coordinate point and a second coordinate point in one implementation of a method for switching wireless access points of device interaction provided by the present invention;

[0062] Fig.12 It is a schematic diagram of a first coordinate point and a second coordinate point in another implementation of a wireless access point switching method for device interaction provided by the present invention;

[0063] Fig.13 It is a schematic diagram of a first coordinate point and a second coordinate point in another implementation of a wireless access point switching method for device interaction provided by the present invention;

[0064] Fig.14 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0065] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0066] Combine the following Figure 1-Figure 9 A method for switching wireless access points for device interaction of the present invention is described, comprising:

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

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

[0069] S120: When the master device determines that the wireless access point is overloaded, the master device acquires a screening queue according to the network information of the first device, where the screening queue includes devices with a specified network parameter greater than an average value;

[0070] S130: The master device obtains 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, and a corresponding target master device according to the wireless signal information;

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

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

[0074] A master device is selected from the devices connected to the wireless access point. When the wireless access point is overloaded, the master device selects devices with designated network parameters greater than the average value to form a screening queue, and monitors the wireless signal information of each device in the screening queue to determine the first device to be switched and the corresponding target access point and target master device to be switched. The master device sends the first request access information and the first device network information of the first device to be switched to the target access point 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 that meets the conditions is switched to the target access point, that is, the wireless access point switching is realized without relying on the 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 based on the first device network information of each device connected to the same wireless access point, and judge whether the wireless access point is overloaded, that is, whether too many devices are connected to cause the network to be unsmooth, and then trigger the wireless access point switching, which can avoid the problem of network congestion even though the wireless access point provides sufficient signal strength. At the same time, the master device is used for interaction processing without relying on the server, which can also reduce the burden on the wireless access point.

[0076] The master device interacts with the switching target master device under the switching target access point, and sends the first device network information of the first device to be switched to the switching 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 may include mobile phones, tablet computers, VR (virtual reality) devices, etc.

[0078] It should be noted that the target access point is actually also a wireless access point, which is a wireless access point other than the wireless access point to which the master device is connected, and the target master device is the master device corresponding to the target access point. The wireless access point and the target access point, the master device and the target master device are relative, that is, from the perspective of other wireless access points, the wireless access point can also be the target access point, and similarly, the master device can also be the target master device.

[0079] refer to Figure 2 In some embodiments of the device-interactive wireless access point switching method of the present invention, the method further includes:

[0080] S160: The master device obtains second device network information of the second device to be switched in response to the second request for switching information;

[0081] S170: The master device determines whether to allow the second device to be switched to be switched according to the network information of the second device;

[0082] S180: When the master device determines that the cut-in is allowed, it sends an approval message; when the master device determines that the cut-in is not allowed, it sends a rejection message.

[0083] When the master device receives the second request to switch in information, that is, the wireless access point connected to the master device is used as the switch-in target access point of other wireless access points, and the master device is used as the switch-in target master device of other wireless access points, the master device determines whether the connected wireless access point allows the second device to be switched to switch in based on the second device network information, so as to allow the second device to be switched to switch in the wireless access point if the condition of the wireless access point is appropriate, thereby achieving the purpose of wireless access point switching. In this way, when switching wireless access points for devices, the master devices under the wireless access points on both sides interact to determine whether it is appropriate to switch the wireless access point and then execute it, which is conducive to maintaining the stability of the wireless access point and avoiding the problem that the device network condition is not improved after the wireless access point is switched.

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

[0085] refer to Figure 3 In some embodiments of a method for switching wireless access points for device interaction of the present invention, the first device network information includes a first delay value and a first flow value, and S110 includes:

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

[0087] S112: When the average flow value and the average delay value continue to increase within a first preset time, it is determined that the wireless access point is overloaded.

[0088] The master device counts the average flow value and the average delay value of the wireless access point. When the average flow value and the average delay value continue to increase for a first preset time, it means that too many devices are connected to the wireless access point, causing the wireless access point to be overloaded and unable to provide stable and good network access services for all devices. In this way, by monitoring the average flow value and the average delay value through the master device, it is possible to timely determine whether the wireless access point is overloaded, thereby triggering the wireless access point to switch.

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

[0090] In some embodiments of the device-interactive wireless access point switching method of the present invention, the S120 includes:

[0091] According to the first flow value and the first delay value of each of the devices, the devices whose flow is greater than the average flow value or whose delay is greater than the average delay value are selected to form the screening queue.

[0092] When the master device is overloaded at the wireless access point, the master device obtains the first network device information of each device, including the first flow value and the first delay value, compares it with the average flow value and the average delay value, and selects the device with a flow value greater than the average flow value or greater than the average delay value to enter the screening queue. In this way, a screening queue composed of devices with poor network conditions is formed, which facilitates the subsequent selection of the first device to be switched, so as to achieve the effect of preferentially switching the wireless access point of the device with poor network conditions, which is conducive to improving the situation of the device with poor network conditions and avoiding affecting the device with good network conditions.

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

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

[0095] S141: taking the device whose surrounding wireless interference strength is greater than the current signal strength as the first device to be switched and switching it 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 greatest interference strength is selected as a switching target access point.

[0097] The master device monitors the wireless interference strength and 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 there are other wireless access points that provide a signal strength greater than the signal strength provided by the currently connected wireless access point. The device is used as the first device to be switched, and the wireless access point corresponding to the maximum wireless interference strength is used as the target access point. In this way, the first device to be switched is selected based on the wireless interference strength and the current signal strength, which is conducive to ensuring that the first device to be switched can obtain sufficient wireless signal strength after the wireless access point is switched, thereby ensuring the network experience of the device.

[0098] It is understandable that the wireless interference strength is relative to the current signal strength. The wireless signal strength provided by the wireless access point is the current signal strength from the perspective of its subordinate devices, and is the wireless interference strength from the perspective of other wireless access points.

[0099] refer to Figure 5 In some embodiments of a wireless access point switching method for device interaction of the present invention, 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; S170 includes:

[0100] S171: Subtract the first access point delay value corresponding to the first server delay value of each device as a first horizontal coordinate, and take the first traffic value as the first horizontal coordinate to form a first coordinate point;

[0101] S172: Acquire the first coordinate points formed by each of the devices within a second preset time, and connect the first coordinate points on the edge to form a first coordinate area according to all the first coordinate points;

[0102] S173: Subtract the second access point delay value from the second server delay value as a second horizontal coordinate, and use the second traffic value as a second vertical coordinate to form a second coordinate point;

[0103] S174: Acquire the second coordinate points formed within the second preset time, and connect the second coordinate points on the edge to form a second coordinate area according to all the second coordinate points;

[0104] S175: When the second coordinate area is within the first coordinate area, or the average value of the second horizontal coordinate is less than or equal to the average value of the first horizontal coordinate, or the product mean value of the second vertical coordinate is less than or equal to the average value of the first vertical coordinate, it is determined that the second device to be switched is allowed to be switched in; otherwise, it is determined that the second device to be switched is not allowed to be switched in.

[0105] refer to Fig.10 , the master device obtains the second server delay value, the second access point delay value and the second traffic value of the second device to be switched within the second preset time, forms multiple second coordinate points, and connects the second coordinate points on the edge to form a second coordinate area. The second coordinate area can reflect the network status and requirements of the second device to be switched. In the same way, the first coordinate area formed by the various devices under the wireless access point is obtained. The first coordinate area can reflect the network status and resources currently provided by the wireless access point to each device. When the second coordinate area is within the first coordinate area, such as Fig.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 device to be switched, allowing the second device to be switched to access the wireless access point; or, although the second coordinate area is not located in the first coordinate area, the average value of the second horizontal coordinate or the second vertical coordinate of the second device to be switched is less than or equal to the average value of the first horizontal coordinate or the product mean of the first vertical coordinate, as shown in FIG. Fig.12 As shown, it is considered that the access of the second device to be switched to the wireless access point can also meet the network demand and will not bring too much load to the wireless access point, so the second device to be switched is allowed to access the wireless access point.

[0106] refer to Fig.13 When the second coordinate area is outside the first coordinate area and the average value of the second horizontal coordinate and the average value of the second vertical coordinate are greater than the average value of the first horizontal coordinate and the product mean value of the first vertical coordinate, the master device does not allow the second device to be switched to access the wireless access point, so as to avoid excessive load on the wireless access point, which is conducive to maintaining stable operation of the wireless access point.

[0107] refer to Figure 6 In some embodiments of the method for switching wireless access points for device interaction of the present invention, before S100, the method further includes:

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

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

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

[0111] S040: Obtaining device status information of each device in the election queue, and calculating the election weight corresponding to each device;

[0112] S050: select the device corresponding to the largest election weight as the master device;

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

[0114] Before switching wireless access points, the master device needs to be selected. The number of devices participating in the election is determined based on the number of devices under the wireless access point. The devices corresponding to the number of devices are selected to form an election queue based on the device operation information of each device. The election weight of each device in the election queue is calculated based on the device status information, and the device with the largest election weight is selected as the master device. In this way, it can be ensured that the master device has sufficient performance resources and a good network status to meet the needs of interactive wireless access point switching.

[0115] It should be noted that since the master device interacts to implement wireless access point switching, it requires certain performance resources. The device operation information reflects the performance resource status of the device, and then selects the device with sufficient performance resources 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 status information reflects the network status of the device, and then selects the device with the best network status as the master device.

[0116] In some embodiments of the present invention, the number of voting devices may be determined by the following formula:

[0117]

[0118]

[0119] Where N is the number of devices under the wireless access point.

[0120] refer to Figure 7 In some embodiments of the wireless access point switching method for device interaction of the present invention, the device operation information includes processor utilization, memory utilization, negotiation rate, signal strength and flow value; S030 includes:

[0121] S031: Calculate a ranking value corresponding to the device according to the processor utilization, the memory utilization, the negotiation rate, the signal strength, and the traffic value;

[0122] S032: Sort the devices according to the sorting value, and select the devices corresponding to the number of election devices to form an election queue.

[0123] The processor utilization, memory utilization, negotiation rate, signal strength and traffic value can reflect the performance resource situation of the device. The ranking value is calculated based on this, and each device can be sorted based on the performance resource situation. Devices are selected in ascending order of the ranking value until the number of elected devices is reached, forming an election queue.

[0124] In some embodiments of the present invention, the ranking value may be calculated according to the following formula:

[0125]

[0126] Among them, C is the processor utilization, M is the memory utilization, N is the negotiation rate, D is the signal strength, and F is the total traffic value obtained within the preset time value.

[0127] refer to Figure 8 In some embodiments of a device-interactive wireless access point switching method of the present invention, the S040 includes:

[0128] S041: The first device in the election queue obtains device status information of each device in the election queue, where the device status information includes a negotiation rate value, a signal strength value, and an interference strength value;

[0129] S042: 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 status information within a third preset time;

[0130] S043: For the first device in the election queue, the negotiation rate matrix, the signal strength matrix and the interference strength matrix of each device are respectively merged and the values ​​in the matrix 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.

[0131] After the election queue is formed, the performance resources of the first device in the election queue are optimal, and the information is aggregated to the device for processing. By constructing the negotiation rate matrix, signal strength matrix, and interference strength matrix of each device, the network status of each device can be accurately reflected, and then the three matrices are merged and sorted respectively, that is, the values ​​in the matrices of each device are uniformly sorted, and then the sorting position value is obtained according to the sorting position of the values ​​in the three matrices after the merger, and the reciprocal sum 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, and calculating the sorting position value, the election weight is obtained, which can comprehensively reflect the network status of the device, which is conducive to accurately selecting the device with the best network status as the main device, and improving the work efficiency and reliability of the main device to achieve wireless access point switching.

[0132] For ease of understanding, an example is given schematically. For example, the third preset time is 10 cycles, the negotiation rate and signal strength are obtained once per cycle, and the interference signal strength is obtained once every two cycles. The three matrices of a device are as follows:

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

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

[0135] Interference intensity matrix: [-56,-72,-86,-57,-82]

[0136] The three matrices of each device are merged and sorted as shown below:

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

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

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

[0140] After obtaining the sorting position values ​​of the values ​​in the device matrix, the resulting matrix, such as the sorting position value of a device, is as follows:

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

[0142] It can be understood that the ranking position value summary matrix is ​​a summary of the ranking position values ​​corresponding to each value in the three matrices of a device. The election weight of the corresponding device is calculated according to the reciprocal sum of the ranking position value, that is, election weight = 1+1 / 3+1 / 7+..., that is, the higher the ranking position, the greater the calculated election weight, which means that the network status of the device is also better.

[0143] When constructing the negotiation rate matrix, signal strength matrix, and interference strength matrix of each device, the master device can combine the unique identification code of each device, such as the MAC address, to facilitate the subsequent sorting of the matrix values ​​and associate the values ​​with the corresponding devices.

[0144] It should be noted that before forming an election queue, the determination of the number of election devices and the process of forming an election queue based on the device operation information can be carried out in a wireless access point. After the election queue is formed, the information of the election queue is broadcast to all devices or each device in the election queue; it can also be that each device exchanges information with each other through broadcasting, and each obtains the number of election devices and forms an election queue based on information processing.

[0145] refer to Fig. 9In some embodiments of the wireless access point switching method for device interaction of the present invention, after S120, the method further includes:

[0146] 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.

[0147] Taking into account the possibility that the master device may switch out of the current wireless access point and then elect a new master device, in order to prevent the new master device from lacking historical information of each device, the master device periodically generates synchronization information based on the network information of the first device, and sends it to each device in the election queue for synchronization. When a new master device is elected, the wireless access point can still be maintained to work stably and the wireless access point switching can be performed normally, which is conducive to improving stability and reliability.

[0148] Fig.14 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.14 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the above-mentioned device interactive wireless access point switching method.

[0149] The electronic device provided by the present invention may specifically be a device such as a VR device, a mobile phone, a tablet computer, etc. that can connect to a wireless access point.

[0150] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0151] On the other hand, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute a device-interactive wireless access point switching method provided by the above methods.

[0152] In the description of the present invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0153] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0154] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for switching wireless access points for device interaction, characterized in that: include: The master device obtains the first device network information of each device under the same wireless access point; The master device determines whether the wireless access point is overloaded according to the network information of the first device; When the master device determines that the wireless access point is overloaded, the master device acquires a screening queue according to the network information of the first device, wherein the screening queue includes devices with a specified network parameter greater than an average value; The master device obtains wireless signal information of each device in the screening queue; The master device determines, according to the wireless signal information, a first device to be switched, a corresponding target access point, and a corresponding target master device to be switched; The master device sends a first switching request message to the switching target master device, and sends the first device network information corresponding to the first device to be switched to the switching target master device; The master device is determined by election from the devices connected to the wireless access point.

2. The method for switching wireless access points for device interaction according to claim 1, characterized in that: Also includes: The master device acquires the second device network information of the second device to be switched in response to the second request switching information; The master device determines whether to allow the second device to be switched to be switched according to the network information of the second device; When the master device determines that the cut-in is allowed, it sends approval information; when the master device determines that the cut-in is not allowed, it sends rejection information.

3. The method for switching wireless access points for device interaction according to claim 2, characterized in that: The first device network information includes a first delay value and a first flow value, and judging whether the wireless access point is overloaded according to the first device network information includes: Calculate an average flow value and an average delay value according to the first delay value and the first flow value of each of the devices; When the average flow value and the average delay value continue to increase within a first preset time, it is determined that the wireless access point is overloaded.

4. The method for switching wireless access points for device interaction according to claim 1, characterized in that: The wireless signal information includes the surrounding wireless interference strength and the current signal strength. The master device determines the first device to be switched, the corresponding target access point, and the corresponding target master device according to the wireless signal information, including: The device whose surrounding wireless interference strength is greater than the current signal strength is used as the first device to be switched and is cut out of the screening queue; According to the wireless interference strength of the first device to be switched, the wireless access point with the greatest interference strength is used as a switching target access point.

5. The method for switching wireless access points for device interaction according to claim 3, characterized in that: 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; and judging whether to allow the second device to be switched to be switched in according to the second device network information includes: Subtracting the first access point delay value corresponding to the first server delay value of each device as a first horizontal coordinate, and taking the first traffic value as the first horizontal coordinate to form a first coordinate point; Acquire the first coordinate points formed by each of the devices within a second preset time, and connect the first coordinate points at the edge to form a first coordinate area according to all the first coordinate points; 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; Acquire the second coordinate points formed within a second preset time, and connect the second coordinate points on the edge to form a second coordinate area according to all the second coordinate points; When the second coordinate area is within the first coordinate area, or the average value of the second horizontal coordinate is less than or equal to the average value of the first horizontal coordinate, or the product mean value of the second vertical coordinate is less than or equal to the average value of the first vertical coordinate, it is determined that the second device to be switched is allowed to be switched in, otherwise it is determined that the second device to be switched is not allowed to be switched in.

6. The method for switching wireless access points for device interaction according to claim 1, characterized in that: Before the master device acquires the first device network information of each device under the same wireless access point, the method further includes: Obtaining device operation information of each of the devices under the same wireless access point; Determining the number of election devices based on the number of the devices; According to the device operation information, the devices are sorted, and the devices corresponding to the number of election devices are selected to form an election queue; Obtaining device status information of each device in the election queue, and calculating the election weight corresponding to each device; The device corresponding to the largest election weight is used as the master device; The device operation information represents the performance resource status of the corresponding device, and the device status information represents the network status of the corresponding device.

7. The method for switching wireless access points for device interaction according to claim 6, characterized in that: The device operation information includes processor utilization, memory utilization, negotiation rate, signal strength, and flow value; and the devices are sorted according to the device operation information, and the devices corresponding to the number of election devices are selected to form an election queue, including: Calculate a ranking value corresponding to the device according to the processor utilization, the memory utilization, the negotiation rate, the signal strength, and the traffic value; The devices are sorted according to the sorting value, and the devices corresponding to the number of election devices are selected to form an election queue.

8. The method for switching wireless access points for device interaction according to claim 6, characterized in that: The obtaining device status information of each device in the election queue and calculating the election weight corresponding to each device includes: The first device in the election queue obtains device status information of each device in the election queue, where the device status information includes a negotiation rate value, a signal strength value, and an interference strength value; 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 status information within a third preset time; The first device in the election queue respectively merges the negotiation rate matrix, the signal strength matrix and the interference strength matrix of each device and sorts the values ​​in the matrix, and obtains the election weight corresponding to the device according to the sorting position value of the corresponding value of each device.

9. The method for switching wireless access points for device interaction according to claim 6, characterized in that: When the master device determines that the wireless access point is overloaded, after acquiring the screening queue according to the first device network information, the method further includes: 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 in the memory and executable on the processor, wherein: When the processor executes the program, the wireless access point switching method for device interaction as described in any one of claims 1 to 9 is implemented.

11. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for switching wireless access points for device interaction as claimed in any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • AP switching method and device, equipment and medium

    CN110572859A

  • Method and device for switching wireless access point of wireless terminal

    CN114125968A

  • Switching method and electronic equipment

    CN116056183A

  • Dual type automatic stick packing machine

    KR102632278B1

  • Apparatus and method in wireless communication system

    US20170374588A1