Wireless roaming switching method, computer readable storage medium and electronic device

By combining signal strength monitoring and preset thresholds between access points and terminal devices, wireless roaming decisions are optimized, solving the problems of inaccurate roaming timing and long handover processes in traditional wireless roaming. This achieves more efficient wireless roaming handover, reduces packet loss and latency, and improves user experience.

CN121568181APending Publication Date: 2026-02-24SANECHIPS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511684837.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-17
Publication Date
2026-02-24

AI Technical Summary

Technical Problem

Traditional wireless roaming technology suffers from problems such as inaccurate roaming timing, long handover process, and significant packet loss when switching between access points, especially affecting user experience under environmental interference.

Method used

By acquiring the signal strength value of the terminal through the access point and combining it with the preset detection threshold and handover threshold, personalized roaming decisions are made, including the preset detection threshold Th1 and the preset handover threshold Th2, to dynamically adjust the roaming timing and optimize the roaming strategy.

Benefits of technology

It improves the accuracy and efficiency of wireless roaming, reduces roaming latency, reduces packet loss, and enhances user experience and network operating efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121568181A_ABST
    Figure CN121568181A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a wireless roaming switching method, a computer readable storage medium and an electronic device, the method is applied to an access point, and the method comprises the following steps: obtaining a first signal intensity value of a terminal, the access point being a current access point of the terminal; and according to the first signal strength value and a preset roaming threshold corresponding to the terminal, determining whether to allow the terminal to perform wireless roaming switching, the preset roaming threshold including a preset detection threshold and a preset switching threshold. Therefore, through the embodiment of the invention, the problems that the traditional wireless roaming switching process is long, the WiFi connection time is increased and a large amount of packets are lost can be solved, and the effect of improving the wireless roaming switching efficiency is further achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and more specifically, to a wireless roaming handover method, a computer-readable storage medium, and an electronic device. Background Technology

[0002] With the popularization and application of wireless network technology, especially the rapid development of WiFi technology, the use of wireless devices in daily life and work has become increasingly frequent. Multi-access point (AP) networking environments have become the norm. In particular, the application of devices such as Fiber to the Room (FTTR), routers and converged gateways has placed higher demands on the continuity and stability of wireless roaming.

[0003] Traditional wireless roaming, according to the Multi-AP specification defined by the Wi-Fi Alliance, is mainly divided into normal roaming and fast roaming. Normal roaming includes forced roaming and roaming based on the 802.11k / v protocol, while fast roaming requires the terminal to support the 802.11k / v / r protocol. However, for terminals supporting the 802.11k / v protocol, traditional wireless roaming technology, while able to optimize roaming strategies through protocol interaction when switching between AP 101 and AP102, suffers from inaccurate roaming timing. For terminals not supporting the 802.11k / v protocol, the roaming process involves forced disconnection by AP 101, and the terminal automatically attempts to connect to AP 102. This roaming method not only may lead to false disconnections but also has a long connection process, resulting in significant packet loss.

[0004] In summary, no effective solution has yet been proposed in the relevant technologies. Summary of the Invention

[0005] This application provides a wireless roaming handover method, a computer-readable storage medium, and an electronic device to at least solve the problems of long traditional wireless roaming handover processes, increased WiFi connection time, and significant packet loss.

[0006] According to one embodiment of this application, a wireless roaming handover method is provided, applied to an access point, comprising: obtaining a first signal strength value of a terminal, wherein the access point is the current access point of the terminal; and making a decision on whether to allow the terminal to perform wireless roaming handover based on the first signal strength value and a preset roaming threshold corresponding to the terminal, wherein the preset roaming threshold includes a preset detection threshold and a preset handover threshold.

[0007] According to yet another embodiment of this application, a computer-readable storage medium is also provided, wherein a computer program is stored therein, and the computer program is configured to perform the steps in any of the above method embodiments when it is run.

[0008] According to yet another embodiment of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0009] According to yet another embodiment of this application, a computer program product is also provided, including a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.

[0010] The above embodiments of this application provide a wireless roaming handover method applied to an access point. The method obtains a first signal strength value of a terminal, where the access point is the terminal's current access point. Based on the first signal strength value and a preset roaming threshold corresponding to the terminal, a decision is made on whether to allow the terminal to perform a wireless roaming handover. The preset roaming threshold includes a preset detection threshold and a preset handover threshold. This means that wireless roaming handover no longer relies solely on a general signal strength threshold, but continuously monitors the signal strength using preset detection and handover thresholds corresponding to the terminal, promptly identifying roaming opportunities and performing wireless roaming handover. This avoids data packet loss due to improper roaming timing, reduces wireless roaming latency, and improves the user experience and overall network efficiency during wireless roaming. Therefore, it solves the problems of long wireless roaming handover processes, increased WiFi connection time, and significant packet loss, thereby improving wireless roaming handover efficiency. Attached Figure Description

[0011] Figure 1 This is a schematic diagram of the network architecture of a wireless roaming system according to an embodiment of this application;

[0012] Figure 2 This is a flowchart of a wireless roaming switching method according to an embodiment of this application;

[0013] Figure 3 This is an overall flowchart of wireless roaming decision-making according to an embodiment of this application. Detailed Implementation

[0014] The embodiments of this application will be described in detail below with reference to the accompanying drawings and examples.

[0015] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0016] Some terms or terms that appear in the explanation of the embodiments of this application shall be interpreted as follows:

[0017] 802.11k: Provides wireless environment information, helping terminal devices (stations, STAs) make more informed roaming decisions;

[0018] 802.11v: Enhances the management capabilities of wireless networks, including but not limited to power management, roaming optimization, and network diagnostics;

[0019] 802.11r: Reduces authentication time during wireless roaming, enabling faster and more seamless roaming.

[0020] Figure 1 This is a schematic diagram of the network architecture of a wireless roaming system according to an embodiment of this application, such as... Figure 1 As shown, the wireless roaming system includes AP 101, AP 102, and terminal device 103 (STA 103). In some examples, these devices are capable of exchanging data according to the Institute of Electrical and Electronics Engineers (IEEE) 802 series standards. The IEEE 802 standards cover communication specifications for various network devices, ranging from Local Area Networks (LANs) to Metropolitan Area Networks (MANs). In particular, the IEEE 802.11 standard sets clear guidelines for Wireless Local Area Network (WLAN) communication. The communication protocol is dynamically evolving and continuously updated with technological advancements to enhance communication stability and improve data transmission efficiency.

[0021] In such Figure 1In the network architecture shown, AP 101 is the current access point for STA 103. As STA 103 moves, it can roam wirelessly and switch to other access points, such as AP 102. AP 101 or AP 102 transmits data with STA 103 using one or more protocols from the IEEE 802.11 protocol family. These protocols cover a wide range, from early standards such as 802.11b, 802.11g, and 802.11a, to the Very High Throughput (VHT) of 802.11n and 802.11ac, to the High Efficiency (HE) of 802.11ax, and the Extremely High Throughput (EHT) of 802.11be. Furthermore, these protocols can also include next-generation IEEE 802.11 technologies, such as the Ultra High Reliability (UHR) standard, and other developing IEEE 802.11 wireless communication specifications.

[0022] In some embodiments, AP 101 or AP 102 and STA 103 can communicate according to other standards, such as the Long-Term Evolution (LTE) standard developed by the Third Generation Partnership Project (3GPP). Furthermore, wireless communication standards may also include LTE-A (an enhanced version of LTE), next-generation 5G NR technology, Bluetooth technology, global navigation systems (e.g., Global Positioning System (GPS) or Global Navigation Satellite System (GLONASS)), and mobile television broadcasting standards (e.g., ATSC-M / H). These technologies can be used individually or in combination. In some embodiments, STA 103 may be designed to support only a single wireless communication technology. The names of AP 101, AP 102, and STA 103 may also differ depending on the technological context. For example, in an LTE network, AP 101 and AP 102 can be referred to as Evolved NodeB (eNB), and STA 103 can be referred to as User Equipment (UE).

[0023] In some embodiments, STA 103 is capable of wirelessly connecting to nearby network devices (e.g., AP 101 and AP 102). The terminal device 103 may be a mobile phone, handheld device, wearable device, computer or tablet, unmanned aerial vehicle (UAV), unmanned aerial controller (UAC), vehicle, or virtually any type of wireless device. The wireless terminal device may include a processor configured to execute program instructions stored in memory. STA 103 can perform any of the methods according to embodiments of this disclosure by executing such stored instructions. Additionally or alternatively, STA 103 may also include programmable hardware elements, such as field-programmable gate arrays (FPGAs), integrated circuits, or other hardware components configured to perform any part or all of the methods according to embodiments of this disclosure.

[0024] In some embodiments, AP 101 or AP 102 may include, but is not limited to, a router, a mobile terminal that enables a hotspot, a base station, etc., and has hardware facilities for wireless communication with STA 103. Furthermore, AP 101 and AP 102 may also be configured to communicate with a network, which may be a telecommunications network, such as the Public Switched Telephone Network (PSTN), the Internet, or other possible networks. Therefore, AP 101 and AP 102 can not only enable communication between STA 103, but also enable communication between STA 103 and the network. As will be further described in the following sections of the embodiments of this application, AP 101 and AP 102 include the hardware required to enable wireless communication with STA 103, and may also include hardware and software components for implementing or supporting the implementation of the features described in this application.

[0025] Wireless roaming refers to when a wireless terminal device (e.g., Figure 1 Terminal device 103) from an AP (e.g. Figure 1 The coverage area of ​​AP 101 is moved to another AP (e.g., AP 101). Figure 1 When the coverage area of ​​AP 102 is exceeded, it can automatically switch to a new router to maintain network connectivity continuity.

[0026] Traditional wireless roaming technologies, based on the Multi-AP specification defined by the Wi-Fi Alliance, are mainly divided into normal roaming and fast roaming. Normal roaming includes forced roaming and roaming based on the 802.11k / v protocol, while fast roaming requires the terminal device to support the 802.11k / v / r protocol. Currently, traditional wireless roaming technologies have the following problems:

[0027] (1) Forced roaming: For terminals that do not support the 802.11k / v protocol, for example, when terminal device 103 moves from AP 101 to the vicinity of AP 102, its roaming process is forcibly disconnected by AP 101, and terminal device 103 automatically attempts to reconnect to AP 102. This roaming method may not only lead to false disconnections, but also has a long connection process, with roaming time exceeding 1000ms, resulting in a large number of packet losses, causing users to clearly perceive network outages and severely affecting user experience.

[0028] (2) Roaming based on 802.11k / v protocol: For terminal device 103 that supports 802.11k / v protocol, for example when moving from AP 101 to the vicinity of AP 102, although AP 101 can interact with terminal device 103 through k / v protocol to control terminal device 103 to roam to AP 102, there is still the problem of uncertain timing of control terminal device roaming switching, which may require multiple attempts, and the connection process duration varies from 100ms to 1000ms. Especially under environmental interference, roaming latency and packet loss problems are more prominent, affecting the smoothness of real-time applications such as live streaming, voice calls and games.

[0029] (3) Fast roaming: When roaming, terminal devices that support the three protocols 802.11k / v / r can omit some connection processes, but the roaming latency is still between 50ms and 100ms when the timing of the roaming switch of the control terminal device is uncertain. Moreover, most terminal devices do not support the 802.11r protocol, which limits the popularization and effectiveness of fast roaming.

[0030] In summary, traditional wireless roaming technologies generally suffer from inaccurate roaming timing judgments, lengthy roaming handover processes, and increased connection time and packet loss due to environmental interference. Especially with the increasing diversity of terminals, fixed and uniform roaming strategies struggle to meet the personalized roaming needs of different devices, resulting in limited user experience. Therefore, there is an urgent need for an automated optimization method for wireless roaming decisions and handovers to adapt to different terminals, improve the accuracy and efficiency of wireless roaming, reduce packet loss during roaming, and provide users with a more seamless and optimized wireless roaming experience.

[0031] In view of the above problems, this application proposes a wireless roaming decision-making method to maintain network connectivity continuity. The method triggers differentiated roaming decisions for different terminals, that is, each terminal adopts an independent roaming strategy, maintains roaming thresholds for different terminals, improves the roaming effect of the same terminal in the network environment, and, based on multiple roaming decisions, enables different terminals to obtain optimal roaming scheduling, greatly improving wireless roaming efficiency, effectively reducing roaming latency, reducing packet loss, and enhancing user experience.

[0032] This application provides a wireless roaming handover method operating on the aforementioned access point device. Figure 2 This is a flowchart of a wireless roaming handover method according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps:

[0033] Step S202: Obtain the first signal strength value of the terminal, wherein the access point is the current access point of the terminal;

[0034] In this embodiment, in the terminal device (e.g. Figure 1 When the location of the terminal device 103 moves, for example, from the location of AP 101 (the currently connected AP) to AP 102, the current access point of the terminal device (such as AP 101) obtains a first signal strength value, wherein the first signal strength value is the obtained signal strength value of the terminal device.

[0035] Step S204: Based on the first signal strength value and the preset roaming threshold corresponding to the terminal, a decision is made on whether to allow the terminal to perform wireless roaming handover, wherein the preset roaming threshold includes a preset detection threshold and a preset handover threshold.

[0036] In this embodiment, when the terminal device moves in a multi-AP network environment, AP 101 continuously monitors the signal strength between the terminal device and itself and obtains the first signal strength value.

[0037] For example, AP 101 compares the acquired first signal strength value with a pre-configured detection threshold Th1 for the terminal device (Th1 stores the signal strength value of the terminal device's current access point AP 101). If the first signal strength value is less than or equal to the detection threshold Th1, it indicates that the terminal device is about to leave the effective coverage area of ​​AP 101, thereby triggering subsequent roaming-related protocol interactions. AP 101 sends an 802.11k protocol probe request to the terminal device to obtain signal strength information of other APs (such as AP 102) around the terminal device.

[0038] After receiving a probe request, the terminal device performs a probe scan and feeds back the probe results (signal strength information of other APs detected) to AP 101. Upon receiving the feedback from the terminal device, AP 101, considering the terminal device's service operation status (e.g., service load, connection quality, data transmission rate), calculates a comprehensive evaluation based on preset weights, taking into account the received signal strength information from other APs and the terminal device's service operation status. This comprehensive evaluation value is compared with a pre-configured handover threshold Th2 (Th2 stores the weighted sum of signal strength information and the terminal device's service operation status) to determine whether to allow the terminal device to perform a wireless roaming handover. If the comprehensive evaluation value is greater than or equal to the handover threshold Th2, the terminal device is ready for a wireless roaming handover, and AP 101 sends an 802.11v protocol command to the terminal device, instructing the terminal device to begin the wireless roaming handover process, i.e., connecting from AP 101 to AP 102.

[0039] In some embodiments, the step of deciding whether to allow the terminal to perform a wireless roaming handover based on a first signal strength value and a preset roaming threshold corresponding to the terminal includes: determining that the terminal has triggered wireless roaming if the first signal strength value is less than or equal to a preset detection threshold; sending a probe request to the terminal if the terminal has triggered wireless roaming; determining a comprehensive evaluation value for the terminal based on the terminal's service operation status and a second signal strength value of a candidate access point returned by the terminal in response to the probe request; and making a decision to allow the terminal to perform a wireless roaming handover if the comprehensive evaluation value is greater than or equal to a preset handover threshold.

[0040] In this embodiment, the service operation status includes at least one of the following: service load, connection quality, and data transmission rate.

[0041] In this embodiment, AP 101 periodically acquires a first signal strength value, which is the acquired signal strength value of the terminal device. The acquired first signal strength value is compared with a preset detection threshold Th1, which stores the signal strength value of the current access point AP 101 of the terminal device. If the first signal strength value is greater than the preset detection threshold Th1, subsequent roaming-related protocol interactions are not triggered. If the first signal strength value is less than or equal to the preset detection threshold Th1, it indicates that the terminal device is about to leave the effective coverage area of ​​AP 101. AP 101 sends an 802.11k protocol probe request to the terminal device. After receiving the probe request, the terminal device performs a probe scan to detect the signal strength information of other APs, that is, to detect the second signal strength value of the candidate APs.

[0042] In this embodiment, a comprehensive evaluation value of the terminal is determined based on the service operation status of the terminal device and the second signal strength value of the candidate AP returned by the terminal device in response to the probe request. The comprehensive evaluation value is then compared with a preset handover threshold Th2, where the preset handover threshold Th2 stores the sum of the second signal strength value and the service operation status of the terminal device calculated according to a preset weight.

[0043] If the comprehensive evaluation value is greater than or equal to the preset handover threshold Th2, it indicates that the terminal device can perform wireless roaming handover. AP 101 makes the decision to allow the terminal device to perform wireless roaming handover in order to avoid connection quality degradation and packet loss. At the same time, AP101 will send a roaming command to the terminal device through the 802.11v protocol, enabling the terminal device to roam to other APs.

[0044] In some embodiments, determining the comprehensive evaluation value of the terminal based on the terminal's service operation status and the second signal strength value of the candidate access point returned by the terminal in response to the probe request includes: adding the second signal strength value and the quantized value of the service operation status according to preset weights to obtain the comprehensive evaluation value.

[0045] In this embodiment, when the first signal strength value is less than or equal to the preset detection threshold Th1, an 802.11K protocol probe request is sent to the terminal device. After receiving the probe request, the terminal device performs a probe scan to detect the signal strength information of other APs. At the same time, AP101 obtains the service operation status of the terminal device, such as service load, connection quality, and data transmission rate. The second signal strength value and the quantified value of the service operation status (that is, the above service operation status is converted into a comparable value) are added according to a preset weight to obtain a comprehensive evaluation value.

[0046] For example, the weighting is performed based on preset weights, which can be configured according to the importance of each business indicator in different scenarios. For instance, if the terminal device is playing an online game, the weights of connection quality and data transmission rate may be set higher, while the weight of signal strength may be lower.

[0047] In some embodiments, the decision on whether to allow the terminal to perform wireless roaming handover based on the first signal strength value and the preset roaming threshold corresponding to the terminal further includes: if the comprehensive evaluation value is less than the preset handover threshold, re-acquiring the first signal strength value of the terminal and comparing it with the preset detection threshold.

[0048] In this embodiment, the second signal strength value and the quantized value of the service operation status are added together according to a preset weight to obtain a comprehensive evaluation value. If the comprehensive evaluation value is less than the preset handover threshold Th2, it indicates that roaming handover cannot be triggered at present. At this time, the wireless roaming system returns to the initial detection stage, re-acquires the first signal strength value of the terminal device, and compares it with the preset detection threshold Th1 again, forming a closed-loop optimization process. This allows the system to dynamically adjust roaming decisions to adapt to the constantly changing environment and terminal device status.

[0049] In this embodiment, a comprehensive evaluation value is compared with a preset handover threshold to determine whether the terminal device is allowed to perform a wireless roaming handover. This process considers both signal strength and service operation status, making roaming decisions more intelligent and personalized, better adapting to the needs of different terminals in different scenarios, and improving the accuracy and efficiency of wireless roaming.

[0050] In some embodiments, after the access point makes a decision on whether to allow the terminal to perform a wireless roaming handover, the method further includes: sending the decision to the terminal; and receiving feedback from the terminal on whether to perform a wireless roaming handover.

[0051] In this embodiment, if the comprehensive evaluation value is greater than or equal to the preset handover threshold Th2, AP101 makes a decision to allow the terminal device to perform wireless roaming handover, sends the decision to the terminal device, and enables the terminal device to roam to other APs.

[0052] The terminal device can determine whether to roam based on its own system and send the result back to AP 101. The status information of the determination result is represented by wireless roaming result values ​​(i.e., Status 0-8), which are used to indicate whether the terminal device has successfully roamed to another AP. For example, the Status 0-8 values ​​include the following meanings:

[0053] Status 0: Success - The Basic Transition Management (BTM) operation was successfully completed. BTM is a mechanism in a WiFi network used to manage the switching of STAs between different Basic Service Sets (BSS).

[0054] Status 1: Refused - The BTM request was rejected, where the reason for rejection includes at least one of the following:

[0055] a.STA does not support BTM;

[0056] b. AP does not support BTM;

[0057] c. AP is busy;

[0058] d.STA is busy;

[0059] e.STA does not allow switching to the target BSS;

[0060] Status 2: Invalid Parameters - The BTM request contains invalid parameters;

[0061] Status 3: Resource Unavailable - The resources required to perform the BTM operation are unavailable;

[0062] Status 4: Rejected by AP - AP explicitly rejects BTM request;

[0063] Status 5: BSS Transition Not Allowed - STA is not allowed to switch to other APs;

[0064] Status 6: Unspecified Failure - The BTM operation failed, but no specific reason for the failure was provided;

[0065] Status 7: Invalid BSS - The target BSS is invalid or unreachable;

[0066] Status 8: Timeout - BTM operation timed out.

[0067] Based on the Status values ​​0-8 above, if the wireless roaming result value returned by the terminal device is 0, then the terminal device has successfully performed a wireless roaming handover. That is, the terminal device has completed a seamless handover from AP 101 to AP 102, and the data transmission and connection status are preserved without any obvious network interruption.

[0068] In this embodiment, if the wireless roaming result value returned by the terminal device is non-zero, the terminal device has failed to successfully perform a wireless roaming handover, indicating a problem during the wireless roaming process, such as being rejected by the AP, resource unavailability, or BTM operation timeout. In this case, AP 101 reassesses the necessity and feasibility of roaming based on the judgment result, and may restart the roaming process and adjust the roaming threshold to ensure successful handover in subsequent roaming operations.

[0069] In some embodiments, when a terminal performs a wireless roaming handover, the preset detection threshold corresponding to the terminal is updated to the second signal strength value of the candidate access point, and the preset handover threshold corresponding to the terminal is updated to the comprehensive evaluation value of the terminal.

[0070] In this embodiment, when the wireless roaming result value is 0, it is determined that the terminal device has successfully performed a wireless roaming handover, and the information of this successful roaming is recorded. The preset detection threshold corresponding to the terminal device is updated to the second signal strength value of the candidate access point (e.g., AP102), and the preset handover threshold corresponding to the terminal device is updated to the comprehensive evaluation value of the terminal. Each terminal device has a corresponding preset detection threshold Th1 and preset handover threshold Th2. This update mechanism learns and remembers the characteristics of each terminal device, thereby making more accurate roaming decisions in the same or similar scenarios in the future. This allows the terminal device to trigger roaming faster and more accurately when it needs to roam again, reducing unnecessary waiting time and packet loss.

[0071] If the wireless roaming result is non-zero, indicating that the terminal device has failed to successfully perform a wireless roaming handover, the system will reacquire the second signal strength value of the candidate AP and the current service operation status of the terminal device. The newly acquired second signal strength value and the quantized value of the service operation status are weighted and added together, then compared with the preset handover threshold Th2. If the re-comparison determines that the terminal device has successfully performed a wireless roaming handover, the terminal device will attempt roaming again; otherwise, it will continue to monitor environmental changes until wireless roaming is possible before attempting another handover.

[0072] The above embodiments of this application provide a wireless roaming handover method applied to an access node. The method obtains a first signal strength value of a terminal, where the access node is the terminal's current access point. Based on the first signal strength value and a preset roaming threshold corresponding to the terminal, a decision is made on whether to allow the terminal to perform a wireless roaming handover. The preset roaming threshold includes a preset detection threshold and a preset handover threshold. This means that wireless roaming handover no longer relies solely on a general signal strength threshold, but instead continuously monitors the signal strength using preset detection and handover thresholds corresponding to the terminal, promptly identifying roaming opportunities and performing wireless roaming handover. This avoids data packet loss due to improper roaming timing, reduces wireless roaming latency, and improves the user experience and overall network efficiency during wireless roaming. Therefore, it solves the problems of long wireless roaming handover processes, increased WiFi connection time, and significant packet loss, thereby improving wireless roaming handover efficiency.

[0073] The embodiments of this application can be applied to, but are not limited to, home networking environments, FTTR / router networking environments, laboratory networking environments, instrumentation simulation networking environments, and enterprise networking environments.

[0074] To enable those skilled in the art to better understand the technical solution of this application, the overall process of wireless roaming decision-making is described in detail below. Figure 3 This is an overall flowchart of wireless roaming decision-making according to an embodiment of this application, such as... Figure 3 As shown, the specific steps include the following:

[0075] Step S301: The terminal device moves;

[0076] Specifically, in terminal devices (e.g.) Figure 1 When the location of the terminal device 103 moves, for example, from the location of AP 101 (the currently connected AP) to AP 102, AP 101 periodically acquires the signal strength value of the terminal device 103.

[0077] Step S302, AP 101 compares the signal strength value with Th1;

[0078] Specifically, AP 101 compares the acquired signal strength value with a detection threshold Th1 pre-configured for the terminal device 103 (Th1 stores the signal strength value of the current access point AP 101 of the terminal device 103). If the signal strength value is less than or equal to the detection threshold Th1, it indicates that the terminal device 103 is about to leave the effective coverage area of ​​AP 101, thereby triggering subsequent roaming-related protocol interactions and executing step S303; if the signal strength value is greater than the detection threshold Th1, subsequent roaming-related protocol interactions are not triggered.

[0079] Step S303: Send a probe request using the 802.11k protocol;

[0080] Specifically, if the signal strength value is less than or equal to the preset detection threshold Th1, AP 101 sends an 802.11K protocol detection request to terminal device 103. After receiving the detection request, terminal device 103 performs a detection scan to detect the signal strength information of other APs (such as AP 102).

[0081] Step S304: The terminal device sends the detection results back to AP 101;

[0082] Specifically, after receiving the detection request, the terminal device 103 performs a detection scan and feeds back the detection results (signal strength information of other APs detected) to AP 101.

[0083] Step S305, AP 101 compare the comprehensive evaluation value with Th2;

[0084] Specifically, after receiving feedback information from terminal device 103, AP 101, in conjunction with the service operation status of terminal device 103 (e.g., service load, connection quality, data transmission rate), calculates a comprehensive evaluation value based on preset weights, considering the signal strength information received from other APs and the service operation status of terminal device 103. AP 101 compares the comprehensive evaluation value with the pre-configured handover threshold Th2 for terminal device 103 (Th2 stores the weighted sum of signal strength information and the service operation status of terminal device 103). If the comprehensive evaluation value is greater than or equal to the handover threshold Th2, terminal device 103 is ready to perform wireless roaming handover, and step S306 is executed. If the comprehensive evaluation value is less than the preset handover threshold Th2, it indicates that roaming handover cannot be triggered at present, and the process returns to step S302 to reacquire the signal strength value of terminal device 103 and compare it again with the preset detection threshold Th1.

[0085] Step S306: AP 101 sends a roaming command using the 802.11v protocol;

[0086] Specifically, if the comprehensive evaluation value is greater than or equal to the handover threshold Th2, the terminal device 103 is ready to perform wireless roaming handover. The AP 101 sends an 802.11v protocol command to the terminal device 103, instructing the terminal device 103 to start the wireless roaming handover process.

[0087] Step S307: The terminal device feeds back the wireless roaming result value (Status 0-8).

[0088] Specifically, after AP 101 determines that terminal device 103 has started the wireless roaming handover process, terminal device 103 determines whether to roam based on its own system and sends the determination result back to AP 101. The status information of the determination result is represented by the wireless roaming result value (i.e., Status 0-8). The meanings of Status 0-8 are as described above and will not be repeated here.

[0089] If terminal device 103 reports Status 0, the wireless roaming handover is successful. If terminal device 103 reports Status 1-8, the wireless roaming handover is unsuccessful. The necessity and feasibility of roaming are reassessed, and the process returns to step S305 to reacquire the second signal strength value of the candidate AP and the current service operation status of terminal device 103. The newly acquired second signal strength value and the quantized value of the service operation status are weighted and added together, then compared with the preset handover threshold Th2.

[0090] Step S308: The terminal device successfully performs wireless roaming handover.

[0091] Specifically, if terminal device 103 returns Status 0, it is determined that terminal device 103 has successfully performed a wireless roaming handover, and the information of this successful roaming is recorded. The preset detection threshold corresponding to terminal device 103 is then updated to the candidate access point (e.g., Figure 1 The second signal strength value of AP102 in the terminal device 103 is updated to the terminal's comprehensive evaluation value by updating the preset switching threshold corresponding to the terminal device 103.

[0092] Through the aforementioned wireless roaming decision-making process, roaming decisions can be made not only based on signal strength and terminal service operation status, but also by verifying the actual effect of roaming operations after the decision is made, thereby allowing for real-time adjustment and optimization of roaming strategies. This mechanism can significantly improve roaming success rates, ensure timely switching of data flow and caching of data packets, thereby reducing the data packet loss rate during roaming. The embodiments of this application not only improve the roaming effect for terminals supporting ordinary roaming, but also improve the roaming effect for terminals supporting fast roaming, providing users with a more stable, faster, and seamless network connection service.

[0093] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0094] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.

[0095] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when run.

[0096] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0097] Embodiments of this application also provide an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0098] In one exemplary embodiment, the electronic device described above is the access point device described earlier.

[0099] According to yet another embodiment of this disclosure, a computer program product is also provided, including a computer program that, when executed by a processor, implements the steps of the methods described in various embodiments of this disclosure.

[0100] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.

[0101] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0102] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.

Claims

1. A wireless roaming handover method, characterized in that, Applied to access points, including: Obtain the first signal strength value of the terminal, wherein the access point is the current access point of the terminal; Based on the first signal strength value and the preset roaming threshold corresponding to the terminal, a decision is made on whether to allow the terminal to perform wireless roaming switching, wherein the preset roaming threshold includes a preset detection threshold and a preset switching threshold.

2. The method according to claim 1, characterized in that, The step of making a decision on whether to allow the terminal to perform a wireless roaming handover based on the first signal strength value and a preset roaming threshold corresponding to the terminal includes: If the first signal strength value is less than or equal to a preset detection threshold, it is determined that the terminal triggers wireless roaming; If it is determined that the terminal has triggered wireless roaming, a probe request is sent to the terminal; The comprehensive evaluation value of the terminal is determined based on the terminal's service operation status and the second signal strength value of the candidate access point returned by the terminal in response to the probe request. If the comprehensive evaluation value is greater than or equal to the preset handover threshold, a decision is made to allow the terminal to perform wireless roaming handover.

3. The method according to claim 2, characterized in that, The step of determining the comprehensive evaluation value of the terminal based on the terminal's service operation status and the second signal strength value of the candidate access point returned by the terminal in response to the probe request includes: The second signal strength value and the quantized value of the service operation status are added together according to preset weights to obtain the comprehensive evaluation value.

4. The method according to claim 2 or 3, characterized in that, The service operation status includes at least one of the following: service load, connection quality, and data transmission rate.

5. The method according to claim 2, characterized in that, The method further includes: If the overall evaluation value is less than the preset switching threshold, the first signal strength value of the terminal is reacquired and compared with the preset detection threshold.

6. The method according to claim 1, characterized in that, The method further includes: The decision is sent to the terminal; Receive feedback on whether the terminal has performed a wireless roaming switch.

7. The method according to claim 1 or 6, characterized in that, The method further includes: When the terminal performs a wireless roaming handover, the preset detection threshold corresponding to the terminal is updated to the second signal strength value of the candidate access point, and the preset handover threshold corresponding to the terminal is updated to the comprehensive evaluation value of the terminal.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of claims 1-7.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method described in any one of claims 1-7.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method described in any one of claims 1-7.