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

By independently judging AP load and filtering device switching, the problem of AP load imbalance is solved, AP load balancing and stable connections between wireless devices are realized, and user experience is improved.

WO2025148295A1PCT designated stage expired Publication Date: 2025-07-17CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/110660
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-01-11
Filing Date
2024-08-08
Publication Date
2025-07-17

AI Technical Summary

Technical Problem

In the prior art, AP load imbalance leads to waste of resources and poor wireless device usage experience, and the server-dependent processing method is inefficient.

Method used

The main device obtains the device network information under the same wireless access point, determines whether the AP is overloaded, and filters out the devices with specified network parameters greater than the average value to form a filter queue, monitors the wireless signal information to determine the device to be switched and the target access point, and realizes independent device switching.

Benefits of technology

AP load balancing is realized, reducing the burden of connecting to APs, eliminating the need to rely on servers, and improving the user experience of wireless devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024110660_17072025_PF_FP_ABST
    Figure CN2024110660_17072025_PF_FP_ABST
Patent Text Reader

Abstract

The embodiments of the present application relate to the technical field of wireless network access. Provided are a wireless access point switching method for device interaction, and a device and a storage medium. The method comprises: a master device acquiring first device network information of each device connected to the same wireless access point, and determining whether the wireless access point is overloaded; when it is determined that the wireless access point is overloaded, acquiring a screening queue on the basis of the first device network information; acquiring wireless signal information of each device in the screening queue; determining a first device to be switched, a corresponding target access point to be switched to, and a corresponding target master device to be switched to; and sending first switching request information to said target master device, and sending to said target master device first device network information corresponding to said first device.
Need to check novelty before this filing date? Find Prior Art

Description

Device-interactive wireless access point switching method, device, and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on the Chinese patent application with application number 202410045660.5 and application date of January 11, 2024, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this application as a reference. Technical Field

[0003] The present application relates to the field of wireless network access technology, and in particular to a method, device, and storage medium for switching wireless access points for device interaction. Background Art

[0004] A wireless access point (AP) is a network device used to create wireless local area networks (WLANs), allowing wireless devices (such as laptops, smartphones, and tablets) to connect to the AP via Wireless Fidelity (WIFI) and then connect to a wired network or the Internet.

[0005] In a scenario with multiple APs, there may be a situation where too many wireless devices are connected to one AP, while too few are connected to other APs. This causes a load imbalance between the APs, resulting in resource waste and affecting the user experience of wireless devices.

[0006] The problem of AP load imbalance can be solved by AP switching. In related technologies, network switching is generally achieved through the following methods: Method 1, determining whether to switch APs based on signal strength, but this method cannot solve the problem of network stagnation caused by too many devices under the AP when the signal strength is strong enough; Method 2, by constructing Wi-Fi fingerprint data for each AP and uploading it to the server, the server uses a model to determine whether network switching is necessary based on the current Wi-Fi data and Wi-Fi fingerprint data. However, this method requires data construction work to prepare the Wi-Fi fingerprint data before the device is connected, and it needs to rely on the server for processing.

[0007] In summary, how to effectively implement AP switching and achieve the purpose of AP load balancing is an urgent problem that needs to be solved.

[0008] Summary of the Invention

[0009] The embodiments of the present application provide a device-interactive wireless access point switching method, device, and storage medium to address the defects in related technologies such as AP switching where the signal strength is strong enough but there are too many devices under the AP, resulting in network unsmoothness and reliance on server processing.

[0010] The present invention provides a method for switching wireless access points for device interaction, including:

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

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

[0013] When the master device determines that the wireless access point is overloaded, the master device obtains a screening queue based on the network information of the first device, where the screening queue includes devices whose specified network parameters are greater than an average value;

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

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

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

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

[0018] According to an embodiment of the present application, a method for switching a wireless access point for device interaction is provided, further comprising:

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

[0020] The master device determines whether to allow the second device to be switched to be switched based on the network information of the second device;

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

[0022] According to a method for switching a wireless access point for device interaction provided by an embodiment of the present application, the first device network information includes a first delay value and a first traffic value. Determining whether the wireless access point is overloaded based on the first device network information includes:

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

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

[0025] According to an embodiment of the present application, a method for switching a wireless access point for device interaction is provided, wherein the wireless signal information includes surrounding wireless interference strength and current signal strength, and the master device determines a first device to be switched, a corresponding target access point, and a corresponding target master device based on the wireless signal information, including:

[0026] 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 removed from the screening queue;

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

[0028] According to a method for switching a wireless access point for device interaction provided by an embodiment of the present application, 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 determining whether to allow the second device to be switched to be switched based on the second device network information includes:

[0029] Subtracting the corresponding first access point delay value from 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;

[0030] 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 based on all the first coordinate points;

[0031] Subtracting the second access point delay value from the second server delay value as a second abscissa, and using the second traffic value as a second ordinate to form a second coordinate point;

[0032] 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 based on all the second coordinate points;

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

[0034] According to an embodiment of the present application, a method for switching a wireless access point for device interaction is provided, and before the master device obtains first device network information of each device under the same wireless access point, the method further includes:

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

[0036] Determining the number of election devices based on the number of the devices;

[0037] sorting the devices according to the device operation information, and selecting the devices corresponding to the number of election devices to form an election queue;

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

[0039] The device corresponding to the largest election weight is selected as the master device;

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

[0041] According to an embodiment of the present application, a method for switching wireless access points for device interaction is provided, wherein the device operation information includes processor utilization, memory utilization, negotiation rate, signal strength, and traffic value; and the method of sorting the devices according to the device operation information and selecting the devices corresponding to the number of elected devices to form an election queue includes:

[0042] Calculating 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;

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

[0044] According to a device-interactive wireless access point switching method provided by an embodiment of the present application, obtaining device status information of each device in the election queue and calculating the election weight corresponding to each device include:

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

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

[0047] The first device in the election queue merges the negotiation rate matrix, the signal strength matrix and the 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 the corresponding value of each device.

[0048] According to an embodiment of the present application, a method for switching a wireless access point for device interaction is provided. When the master device determines that the wireless access point is overloaded, after obtaining a screening queue based on the first device network information, the method further includes:

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

[0050] An embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. 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.

[0051] An embodiment of the present application further provides a non-transitory computer-readable storage medium having a computer program stored thereon. 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.

[0052] The embodiments of the present application provide 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 devices connected to an AP. When the AP is overloaded, the master device filters out devices with specified 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, the corresponding target access point, and the target master device to be switched. The master device sends a 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, when the connected AP is overloaded under master device interaction, the first device to be switched that meets the conditions is switched to the target access point, thus achieving AP switching without relying on a server, thereby reducing the load on the connected AP and balancing the load on each AP. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] FIG1 is a flow chart of a method for switching wireless access points for device interaction according to an embodiment of the present application;

[0054] FIG2 is a second flow chart of a method for switching wireless access points for device interaction provided in an embodiment of the present application;

[0055] FIG3 is a third flow chart of a method for switching wireless access points for device interaction provided in an embodiment of the present application;

[0056] FIG4 is a fourth flow chart of a method for switching wireless access points for device interaction provided in an embodiment of the present application;

[0057] FIG5 is a fifth flow chart of a method for switching wireless access points for device interaction provided in an embodiment of the present application;

[0058] FIG6 is a sixth flow chart of a method for switching wireless access points for device interaction provided in an embodiment of the present application;

[0059] FIG7 is a seventh flow chart of a method for switching wireless access points for device interaction provided in an embodiment of the present application;

[0060] FIG8 is a flowchart of an eighth method for switching wireless access points for device interaction provided in an embodiment of the present application;

[0061] FIG9 is a ninth flow chart of a method for switching wireless access points for device interaction provided in an embodiment of the present application;

[0062] FIG10 is a schematic diagram of a second coordinate point in one implementation of a method for switching a wireless access point for device interaction provided in an embodiment of the present application;

[0063] FIG11 is a schematic diagram of a first coordinate point and a second coordinate point in one implementation of a method for switching a wireless access point through device interaction provided in an embodiment of the present application;

[0064] 12 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 in an embodiment of the present application;

[0065] 13 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 in an embodiment of the present application;

[0066] FIG14 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0067] To make the objectives, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.

[0068] The following describes a method for switching wireless access points for device interaction according to an embodiment of the present application with reference to FIG1 to FIG9 , including:

[0069] S100: The master device obtains first device network information of each device under the same AP;

[0070] S110: The master device determines whether the AP is overloaded according to the network information of the first device;

[0071] S120: When the master device determines that the AP is overloaded, the master device obtains a screening queue according to the network information of the first device, where the screening queue includes devices whose specified network parameters are greater than an average value;

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

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

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

[0075] The master device is determined by election from the devices connected to the AP.

[0076] A master device is elected from among the devices connected to the AP. When the AP is overloaded, the master device selects devices with specified network parameters greater than the average value to form a screening queue. The master device then monitors the wireless signal information of each device in the screening queue to determine the first device to be switched, as well as the corresponding target access point and target master device. The master device then sends a first switching request message 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. In this way, when the connected AP is overloaded, the master device interacts with the first device to be switched to the target access point, thus achieving AP switching without relying on the server, reducing the load on the connected APs and balancing the load on each AP.

[0077] Based on the primary device network information of each device connected to the same AP, the master device can determine the number of devices connected to the AP and the network status of each device. It can also determine whether the AP is overloaded (i.e., if too many devices are connected, causing network instability), and trigger AP switching. This can avoid network congestion despite the AP providing sufficient signal strength. The master device also processes the information interactively, eliminating the need for server reliance and reducing the burden on the AP.

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

[0079] Devices under the AP may include mobile phones, tablet computers, virtual reality (VR) devices, etc.

[0080] It's important to note that the target access point is actually an AP, a different AP than the one connected to the master device. The target master device is the master device associated with the target access point. The terms AP and target access point, and master device and target master device, are relative terms. From the perspective of another AP, the AP can also be the target access point, and similarly, the master device can also be the target master device.

[0081] Referring to FIG2 , in some embodiments of a wireless access point switching method for device interaction according to an embodiment of the present application, the method further includes:

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

[0083] S170: The master device determines whether to allow the second device to be switched to be switched based on the network information of the second device;

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

[0085] When the master device receives a second handover request message, indicating that the AP connected to the master device is the target access point for other APs to switch to, and that the master device is the target master device for other APs to switch to, the master device determines, based on the second device's network information, whether the connected AP allows the second device to switch to. If the AP's status is appropriate, the master device allows the second device to switch to the AP, achieving the AP switching goal. Thus, when switching APs for a device, the master devices under both APs interact to determine whether the AP switch is appropriate before executing the switch. This helps maintain AP stability and avoids issues where AP switching fails to improve the device's network status.

[0086] 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 perspective of different APs. 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.

[0087] 3 , in some embodiments of a wireless access point switching method for device interaction according to an embodiment of the present application, the first device network information includes a first delay value and a first traffic value, and S110 includes:

[0088] S111: Calculating an average flow value and an average delay value according to the first delay value and the first flow value of each device;

[0089] S112: When the average traffic value and the average delay value continue to increase within a first preset time, it is determined that the AP is overloaded.

[0090] The master device collects statistics on the average traffic and average latency of the AP. If these values ​​continue to increase for a predetermined period of time, it indicates that too many devices are connected to the AP, causing it to be overloaded and unable to provide stable and reliable network access services to all devices. By monitoring the average traffic and average latency values, the master device can promptly determine whether the AP is overloaded and trigger an AP handover.

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

[0092] In some embodiments of the wireless access point switching method for device interaction according to the embodiment of the present application, the step S120 includes:

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

[0094] If the master device encounters an AP overload, it obtains first network device information from each device, including first traffic and first delay values, compares this information with the average traffic and average delay values, and selects devices with values ​​greater than the average traffic or average delay values ​​for inclusion in a screening queue. This creates a screening queue comprised of devices with poor network conditions, facilitating subsequent selection of the first device to be switched, prioritizing AP switching for devices with poor network conditions. This improves the performance of devices with poor network conditions while preventing impacts on devices with good network conditions.

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

[0096] 4 , in some embodiments of a method for switching a wireless access point for device interaction according to an embodiment of the present application, the wireless signal information includes surrounding wireless interference strength and current signal strength, and S140 includes:

[0097] S141: The device whose surrounding wireless interference strength is greater than the current signal strength is selected as the first device to be switched and removed from the screening queue;

[0098] S142: According to the wireless interference intensity of the first device to be switched, the AP with the greatest interference intensity is selected as a target access point for switching.

[0099] The master device monitors the wireless interference strength and current signal strength of devices in the screening queue. If a device's wireless interference strength is greater than its current signal strength, indicating that another AP is providing a stronger signal than the currently connected AP, the master device is selected as the first device to be switched, and the AP with the highest wireless interference strength is selected as the target access point. This selection of the first device to be switched based on wireless interference strength and current signal strength helps ensure that the first device to be switched receives sufficient wireless signal strength after the AP switch, thus maintaining a good network experience for the device.

[0100] It is understandable that wireless interference strength is relative to current signal strength. The wireless signal strength provided by an AP is the current signal strength from the perspective of its subordinate devices, and is the wireless interference strength from the perspective of other APs.

[0101] 5 , in some embodiments of a wireless access point switching method for device interaction according to an embodiment of the present application, 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 S170 includes:

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

[0103] 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 based on all the first coordinate points;

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

[0105] 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 based on all the second coordinate points;

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

[0107] Referring to Figure 10 , within a second preset time period, the master device obtains the second server delay value, second access point delay value, and second traffic value of the second device to be switched, forming multiple second coordinate points. These edge second coordinate points are then connected to form a second coordinate area. The second coordinate area reflects the network status and needs of the second device to be switched. Similarly, a first coordinate area is obtained, formed by combining the various devices under the AP. The first coordinate area reflects the network status and resources currently provided by the AP to each device. If the second coordinate area is within the first coordinate area, as shown in Figure 11 , this indicates that the network status and resources currently provided by the AP meet the network status and needs of the second device to be switched, and the second device to be switched is allowed to connect to the AP. Alternatively, if the second coordinate area is not within the first coordinate area, but the average value of the second abscissa or second ordinate of the second device to be switched is less than or equal to the average value of the first abscissa or the mean value of the first ordinate, as shown in Figure 12 , it is determined that the second device to be switched can meet the network needs of the AP and will not impose excessive load on the AP, and the second device to be switched is allowed to connect to the AP.

[0108] Referring to Figure 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 of the first vertical coordinate, the master device does not allow the second device to be switched to access the AP, so as to avoid excessive load on the AP and help maintain stable operation of the AP.

[0109] 6 , in some embodiments of a wireless access point switching method for device interaction according to an embodiment of the present application, before step S100 , the method further includes:

[0110] S010: Obtain device operation information of each device under the same AP;

[0111] S020: Determine the number of election devices based on the number of the devices;

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

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

[0114] S050: Select the device corresponding to the largest election weight as the master device;

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

[0116] Before AP switching, a master device must be elected. The number of devices participating in the election is determined based on the number of devices connected to the AP. Based on their operational information, a corresponding number of devices are selected to form an election queue. The election weight of each device in the election queue is calculated based on its device status information, and the device with the highest weight is selected as the master device. This ensures that the master device has sufficient performance resources and good network status to meet the requirements of interactive AP switching.

[0117] It should be noted that the master device requires sufficient performance resources to interact with and implement AP switching. Device operation information reflects the device's performance resources, which allows the selection of devices with sufficient performance resources to form the election queue. The master device also requires a good network status for communication interaction. Device status information reflects the device's network status, allowing the device with the best network status to be selected as the master device.

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

[0119] Where N is the number of devices under the AP, Min represents the minimum function, and Max represents the maximum function.

[0120] 7 , in some embodiments of a method for switching wireless access points for device interaction according to an embodiment of the present application, the device operation information includes processor utilization, memory utilization, negotiation rate, signal strength, and traffic value; and 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 values ​​reflect the performance resource situation of the device. Based on this, a ranking value is calculated and used to sort each device based on its performance resource situation. Devices are selected in ascending order of ranking values ​​until the number of elected devices is reached, forming an election queue.

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

[0125] Where 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.

[0126] 8 , in some embodiments of a method for switching a wireless access point for device interaction according to an embodiment of the present application, the step S040 includes:

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

[0128] It should be noted that the negotiated rate value may represent a data transmission rate in a theoretical state, for example, a data transmission rate that can be negotiated and successfully established between two devices during communication.

[0129] It should be noted that the interference intensity value represents the interference intensity corresponding to each device in the election queue.

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

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

[0132] After forming an election queue, the first device in the election queue has the best performance resources. Information is aggregated and processed within that device. By constructing the negotiation rate matrix, signal strength matrix, and interference strength matrix for each device, the network status of each device can be accurately reflected. These three matrices are then merged and sorted. Specifically, the values ​​in the matrices of each device are uniformly sorted. Then, based on the sorted positions of the values ​​in the three merged matrices, a sorting position value is obtained. The sum of the reciprocals of the sorting position values ​​is used as the election weight for each device. In this way, by constructing the matrices, merging and sorting them, and calculating the sorting position values, election weights are obtained. This method comprehensively reflects the network status of the devices, facilitates the accurate selection of the device with the best network status as the master device, and improves the efficiency and reliability of AP switching for the master device.

[0133] 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:

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

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

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

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

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

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

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

[0141] 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:

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

[0143] It's understood that the ranking position summary matrix is ​​a summary of the ranking position values ​​corresponding to each value in the three matrices for a device. The election weight of the corresponding device is calculated based on the reciprocal sum of the ranking position values: election weight = 1 + 1 / 3 + 1 / 7 + .... The higher the ranking position, the greater the calculated election weight, indicating a better network status for the device.

[0144] 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 media access control address, to facilitate subsequent sorting of the matrix values ​​and associate the values ​​with the corresponding devices.

[0145] It should be noted that before forming an election queue, the process of determining the number of election devices and forming an election queue based on the device operation information can be carried out in the AP. After the election queue is formed, the election queue information 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.

[0146] 9 , in some embodiments of a wireless access point switching method for device interaction according to an embodiment of the present application, after S120 , the method further includes:

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

[0148] Taking into account the possibility that the master device may cut out the current AP 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 regularly 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 AP can still maintain stable operation and AP switching can be performed normally, which is conducive to improving stability and reliability.

[0149] FIG14 illustrates a schematic diagram of the physical structure of an electronic device. As shown in FIG14 , the electronic device may include: a processor 810, a communications interface 820, a memory 830, and a communication bus 840. The processor 810, the communications interface 820, and the memory 830 communicate with each other via the communication bus 840. The processor 810 may invoke logic instructions in the memory 830 to execute the aforementioned device-interactive AP switching method.

[0150] An embodiment of the present application provides an electronic device, which may include a main device, specifically a VR device, a mobile phone, a tablet computer, or other device that can connect to an AP.

[0151] 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 this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology 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 to enable 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 embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0152] On the other hand, an embodiment of the present application further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute an AP switching method for device interaction provided by the above methods.

[0153] In the description of the embodiments of the present application, 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 the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of such features. In the description of the embodiments of the present application, the meaning of "plurality" is at least two, for example, two, three, etc., unless otherwise clearly and specifically defined.

[0154] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" 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 embodiments of the present application. 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 different embodiments or examples described in this specification and features of different embodiments or examples, unless they are contradictory.

[0155] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present application, rather than to limit them. Although the embodiments of the present application have 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 application.

Claims

1. A method for switching wireless access points in device interaction, comprising: 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 first device network information; When the master device determines that the wireless access point is overloaded, it obtains a screening queue according to the first device network information, and the screening queue includes devices with specified network parameters greater than the average value; The master device obtains the 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 into, and a corresponding target master device to be cut into according to the wireless signal information; The master device sends a first request to cut in information to the target master device to be cut into, and sends the first device network information corresponding to the first device to be switched to the target master device to be cut into; Wherein, the master device is elected and determined from the devices accessing the wireless access point.

2. The wireless access point switching method for device interaction according to claim 1, wherein, It further includes: The master device obtains the second device network information of the second device to be switched in response to the second request to cut in information; The master device determines whether to allow the second device to be switched in according to the second device network information; When the master device determines that it is allowed to cut in, it sends an approval message, and when it determines that it is not allowed to cut in, it sends a rejection message.

3. The wireless access point switching method for device interaction according to claim 2, wherein, The first device network information includes a first delay value and a first traffic value. Determining whether the wireless access point is overloaded according to the first device network information includes: 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 for switching a wireless access point for device interaction according to claim 1, wherein, The wireless signal information includes the surrounding wireless interference intensity and the current signal intensity. The master device determines a first device to be switched, a corresponding target access point to be cut into, and a corresponding target master device to be cut into according to the wireless signal information, including: Taking the devices with the surrounding wireless interference intensity greater than the current signal intensity as the first devices to be switched and removing them from the screening queue; Taking the wireless access point with the maximum interference intensity as the target access point to be cut into according to the wireless interference intensity of the first device to be switched.

5. The method for switching a wireless access point for device interaction according to claim 3, wherein, 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; Determining whether to allow the second device to be switched in according to the second device network information includes: Taking the difference between the first server delay value and the corresponding first access point delay value of each device as the first abscissa, and taking the first traffic value as the first abscissa to form a first coordinate point; Obtaining the first coordinate points formed by each device within a second preset time, and connecting the outermost first coordinate points according to all the first coordinate points to form a first coordinate region; Subtract the second access point delay value from the second server delay value as the second abscissa, and use the second traffic value as the second ordinate to form a second coordinate point; Obtain the second coordinate points formed within the second preset time. Based on all the second coordinate points, connect the outermost second coordinate points to form a second coordinate region; When the second coordinate region is within the first coordinate region, 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 determined that the second device to be switched is allowed to cut in; otherwise, it is determined that the second device to be switched is not allowed to cut in.

6. The method for switching a wireless access point for device interaction according to claim 1, wherein, Before the master device obtains the first device network information of each device under the same wireless access point, it further includes: Obtain the device operation information of each device under the same wireless access point; Determine the number of elected devices according to the number of devices; Sort the devices according to the device operation information, and select the devices corresponding to the number of elected devices to form an election queue; Obtain the device status information of each device in the election queue, and calculate the election weight corresponding to each device; Take the device corresponding to the largest election weight as the master device; Among them, the device operation information characterizes the performance resource situation of the corresponding device, and the device status information characterizes the network status situation of the corresponding device.

7. A method for switching a wireless access point for device interaction according to claim 6, wherein, The device operation information includes processor utilization rate, memory utilization rate, negotiation rate, signal strength, and traffic value. The step of sorting the devices according to the device operation information and selecting the devices corresponding to the number of elected devices to form an election queue includes: Calculate the sorting value corresponding to the device according to the processor utilization rate, the memory utilization rate, the negotiation rate, the signal strength, and the traffic value; Sort the devices according to the sorting value, and select the devices corresponding to the number of elected devices to form an election queue.

8. A method for switching a wireless access point for device interaction according to claim 6, wherein, The step of obtaining the device status information of each device in the election queue and calculating the election weight corresponding to each device includes: For the first device in the election queue, obtain the device status information of each device in the election queue. The device status information includes negotiation rate value, signal strength value, and interference strength value; For the first device in the election queue, construct a negotiation rate matrix, a signal strength matrix, and an interference strength matrix corresponding to the device according to the device status information within the third preset time; For the first device in the election queue, merge the negotiation rate matrix, the signal strength matrix, and the interference strength matrix of each device respectively and sort the values in the matrix; According to the sorting position value of the corresponding value of each device, obtain the election weight corresponding to the device.

9. A method for switching a wireless access point for device interaction according to claim 6, wherein After the master device obtains the screening queue according to the first device network information when determining that the wireless access point is overloaded, it further includes: The master device generates synchronization information based on 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, wherein, When the processor executes the program, it implements the wireless access point switching method for device interaction according to any one of claims 1 to 9.

11. A non-transitory computer-readable storage medium having a computer program stored thereon, wherein, When the computer program is executed by the processor, it implements the wireless access point switching method for device interaction according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Multi-device cooperation method and related device

    CN115348630A

  • Switching method and electronic equipment

    CN116056183A

  • Apparatus and method in wireless communication system

    US20170374588A1

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

    WO2017026085A1