CN116600355A - Wireless access point switching method and device - Google Patents

Wireless access point switching method and device Download PDF

Info

Publication number
CN116600355A
CN116600355A CN202310627078.5A CN202310627078A CN116600355A CN 116600355 A CN116600355 A CN 116600355A CN 202310627078 A CN202310627078 A CN 202310627078A CN 116600355 A CN116600355 A CN 116600355A
Authority
CN
China
Prior art keywords
wireless access
access point
value
signal strength
electronic equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310627078.5A
Other languages
Chinese (zh)
Inventor
曹浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xi'an Zuoyouzhisoft Technology Co ltd
Original Assignee
Xi'an Zuoyouzhisoft Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xi'an Zuoyouzhisoft Technology Co ltd filed Critical Xi'an Zuoyouzhisoft Technology Co ltd
Priority to CN202310627078.5A priority Critical patent/CN116600355A/en
Publication of CN116600355A publication Critical patent/CN116600355A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention provides a wireless access point switching method and a wireless access point switching device, which are used for acquiring a roaming threshold value and a connection state of a wireless access point of electronic equipment, wherein the roaming threshold value is used for representing a signal strength value threshold value, and responding to a quick scanning starting instruction, and acquiring a signal strength value of the wireless access point currently used by the electronic equipment under the condition that the electronic equipment is determined to be connected with the wireless access point; and when the signal intensity value of the wireless access point currently used by the electronic equipment is lower than the roaming threshold value, searching a target wireless access point with the signal intensity value being greater than or equal to the roaming threshold value by using the preset scanning frequency, and switching the wireless access point currently used into the target wireless access point. Because the preset scanning frequency is faster than the original scanning frequency of the electronic equipment, when the signal intensity value of the currently used wireless access point is lower than the roaming threshold value, the target wireless access point with the signal intensity value being greater than or equal to the roaming threshold value can be quickly searched by the preset scanning frequency, and the real-time performance of the network is improved.

Description

Wireless access point switching method and device
Technical Field
The embodiment of the invention relates to the technical field of wireless communication, in particular to a wireless access point switching method, a wireless access point switching device, electronic equipment and a computer readable storage medium.
Background
A mobile terminal (sta) is usually served by connecting to a wireless access point (ap), but the coverage of a wireless access point is limited, so that in many enterprises or large-scale businesses, by introducing a plurality of wireless access points, how to quickly switch wireless access points and ensure that normal network communication is not interrupted is an important problem in improving the network use experience when a user goes from the coverage of one wireless access point to the coverage of another wireless access point.
Currently, when a user moves to a critical area of coverage of two wireless access points, the electronic device discovers a new wireless access point by scanning and switches.
Then, the scanning frequency and the roaming threshold value in the prior art center are fixed, so that when the user is in an environment with high real-time requirement or the network is disconnected, the fixed scanning frequency and the roaming threshold value cannot meet the real-time requirement, and the electronic equipment cannot quickly find and connect the peripheral wireless access points.
Disclosure of Invention
The embodiment of the invention provides a wireless access point switching method, a wireless access point switching device, electronic equipment and a computer readable storage medium, which are used for solving the problem that the wireless access point switching in the prior art cannot meet the use scene with high real-time requirement.
In a first aspect, an embodiment of the present invention provides a wireless access point handover method, where the method includes:
acquiring a roaming threshold and a connection state of the electronic equipment for the wireless access point, wherein the roaming threshold is used for representing a signal strength value threshold;
responding to the input of a quick scanning start instruction, and acquiring a signal intensity value of a wireless access point currently used by the electronic equipment under the condition that the connection state of the electronic equipment is determined to be the connection of the wireless access point;
if the signal intensity value of the currently used wireless access point is smaller than the roaming threshold value, searching a target wireless access point with the signal intensity value larger than or equal to the roaming threshold value at a preset scanning frequency, wherein the preset scanning frequency is faster than the original scanning frequency of the electronic equipment;
and changing the wireless access point currently used by the electronic equipment into the target wireless access point.
In a second aspect, an embodiment of the present invention provides a wireless access point switching device, including:
the first acquisition module is used for acquiring a roaming threshold value and a connection state of the electronic equipment for the wireless access point, wherein the roaming threshold value is used for representing a signal strength value threshold value;
The second acquisition module is used for responding to the input of the quick scanning starting instruction and acquiring the signal intensity value of the wireless access point currently used by the electronic equipment under the condition that the connection state of the electronic equipment is determined to be the connection of the wireless access point;
the first scanning module is used for searching for a target wireless access point with a signal strength value larger than or equal to the roaming threshold value at a preset scanning frequency if the signal strength value of the currently used wireless access point is smaller than the roaming threshold value, wherein the preset scanning frequency is faster than the original scanning frequency of the electronic equipment;
and the switching module is used for changing the wireless access point currently used by the electronic equipment into the target wireless access point.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of the first aspect.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the method of the first aspect.
In the embodiment of the invention, a roaming threshold is obtained and is used for representing a signal strength value threshold, wherein the roaming threshold is the signal strength value threshold for determining quick scanning; acquiring a connection state of a wireless access point of the electronic equipment, responding to a quick scanning start instruction, and acquiring a signal intensity value of the wireless access point currently used by the electronic equipment under the condition that the connection state of the electronic equipment is determined to be the connection of the wireless access point; and determining whether the current signal strength value is lower than the acquired roaming threshold value by judging whether the signal strength value of the wireless access point currently used by the electronic equipment is greater than or equal to the roaming threshold value, searching a target wireless access point with the signal strength value greater than or equal to the roaming threshold value according to a preset scanning frequency when the signal strength value of the wireless access point currently used is smaller than the roaming threshold value, and switching the wireless access point currently used to the target wireless access point. Because the preset scanning frequency is faster than the original scanning frequency of the electronic equipment, when the signal intensity value of the currently used wireless access point is lower than the roaming threshold value, the target wireless access point with the signal intensity value larger than or equal to the roaming threshold value can be quickly searched by the preset scanning frequency which is faster than the original scanning frequency, so that the network of the electronic equipment can realize seamless switching, the real-time performance of the network is improved, and in addition, if the acquired roaming threshold values are different, the conditions for triggering the starting of the quick scanning are also different, so that different use scenes can be met according to the requirements of users.
Drawings
Fig. 1 is a flowchart of steps of a wireless access point handover method according to an embodiment of the present invention;
fig. 2 is a flowchart of steps of another wireless access point handover method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating steps of a third method for switching wireless access points according to an embodiment of the present invention;
fig. 4 is a block diagram of a terminal according to an embodiment of the present invention;
FIG. 5 is a logical block diagram of an electronic device in accordance with an embodiment of the present invention;
fig. 6 is a logic block diagram of another electronic device of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Fig. 1 is a flowchart of steps of a wireless access point handover method according to an embodiment of the present invention, where, as shown in fig. 1, the method may include:
step 101, obtaining a roaming threshold and a connection state of the electronic equipment for the wireless access point, wherein the roaming threshold is used for representing a signal strength value threshold.
In the embodiment of the present invention, the roaming threshold may be an RSSI value (Received Signal Strength Indication, a received signal strength indication) used to determine the link quality, from which the distance between the wireless access point and the electronic device may be determined. If the distance between the electronic device and the wireless access point is closer, the signal strength value is relatively larger, and if the distance between the user and the wireless access point is further and further, the signal strength value is relatively smaller, so that the roaming threshold value is used for representing the magnitude of the signal strength value, and whether to perform fast scanning and roaming is determined through the acquired roaming threshold value. The connection state of the wireless access point includes: and executing corresponding scanning strategies for different states by the connected wireless access points or the unconnected wireless access points.
Further, an operation entry for inputting the roaming threshold value can be set on the operation interface of the electronic device, and the user can input the size of the roaming threshold value on his own or select a different roaming threshold value range to set the roaming threshold value. The electronic device may obtain a roaming threshold and act as a trigger to perform a fast scan threshold, for example: if the real-time requirement is high, the roaming threshold value can be set higher, the signal strength value connected with the user is ensured to meet the requirement of the user, and for outdoor or scenes with low real-time requirement, the roaming threshold value can be set lower, so that the electric quantity of the electronic equipment is saved, and the system resource is better utilized.
Step 102, responding to the input of a quick scanning start instruction, and acquiring a signal intensity value of a wireless access point currently used by the electronic equipment under the condition that the connection state of the electronic equipment is determined to be the connection of the wireless access point.
In the embodiment of the invention, if the connection state of the electronic equipment is determined to be the connection of the wireless access point, the signal intensity value of the wireless access point currently used by the electronic equipment is obtained, the current network connection condition can be judged by judging the intensity of the signal intensity value of the wireless access point currently used, the quick scanning starting instruction is an instruction for starting the quick scanning of the electronic equipment, an operation interface of the electronic equipment can be provided with an entrance for starting the quick scanning, a user can start the quick scanning by clicking or other operation modes, the electronic equipment can acquire whether the user opens or closes the quick scanning function in real time, and after the quick scanning is started, the quick scanning can be triggered when the signal intensity value of the wireless access point currently used by the user is lower than a roaming threshold value, so that the quick switching of the wireless access point is realized. If the fast scan is not on, the electronic device maintains the original scan frequency.
Step 103, if the signal strength value of the currently used wireless access point is smaller than the roaming threshold, searching for a target wireless access point with a signal strength value greater than or equal to the roaming threshold at a preset scanning frequency, where the preset scanning frequency is faster than the original scanning frequency of the electronic device.
In the embodiment of the present invention, if the signal strength value of the currently used wireless access point is smaller than the roaming threshold, it indicates that the current network signal does not meet the requirement of the roaming threshold set by the user, at this time, the target wireless access point with the signal strength value greater than or equal to the roaming threshold may be searched for with a preset scanning frequency, where the preset scanning frequency is a scanning frequency table after the fast scanning is started, and the preset scanning frequency is faster than the original scanning frequency of the electronic device, for example, the fast scanning frequency may be scanned for 10 seconds once. And the target wireless access point with the signal strength value larger than or equal to the roaming threshold value is rapidly determined, so that the electronic equipment rapidly realizes network switching.
Further, after the electronic device determines that the fast scanning function is turned on, the method WifiManager startScan may be invoked to transfer the scanning command downward through the frame layer WifiManager, and finally transfer the scanning command to the WIFI driver, where the WIFI driver is used to drive the WIFI chip to work, so that the WIFI chip sends a probe request frame at a preset scanning frequency to scan, and a target wireless access point is determined.
And 104, changing the wireless access point currently used by the electronic equipment into the target wireless access point.
In the embodiment of the invention, after the target wireless access point with the signal strength value larger than or equal to the roaming threshold value is determined by the preset scanning frequency, the wireless access point currently used by the electronic equipment can be switched to the target wireless access point to perform network switching. The method ensures that the signal strength value of the wireless access point meets the requirement of the user at any place where the user is located in an enterprise and covers the wireless access point.
To sum up, in the embodiment of the present invention, a roaming threshold is obtained, where the roaming threshold is used to characterize a signal strength value threshold, and the roaming threshold is the signal strength value threshold for determining to perform fast scanning; acquiring a connection state of a wireless access point of the electronic equipment, responding to a quick scanning start instruction, and acquiring a signal intensity value of the wireless access point currently used by the electronic equipment under the condition that the connection state of the electronic equipment is determined to be the connection of the wireless access point; judging whether the signal intensity value of the wireless access point currently used by the electronic equipment is lower than the acquired roaming threshold value or not, searching a target wireless access point with the signal intensity value being greater than or equal to the roaming threshold value according to preset scanning frequency when the signal intensity value of the wireless access point currently used is smaller than the roaming threshold value, and switching the wireless access point currently used into the target wireless access point. Because the preset scanning frequency is faster than the original scanning frequency of the electronic equipment, when the signal intensity value of the currently used wireless access point is lower than the roaming threshold value, the target wireless access point with the signal intensity value larger than or equal to the roaming threshold value can be quickly searched by the preset scanning frequency which is faster than the original scanning frequency, so that the network of the electronic equipment can realize seamless switching, the real-time performance of the network is improved, and in addition, if the acquired roaming threshold values are different, the conditions for triggering the starting of the quick scanning are also different, so that different use scenes can be met according to the requirements of users.
Fig. 2 is a flowchart of steps of another wireless access point handover method according to an embodiment of the present invention, where, as shown in fig. 2, the method may include:
step 201, obtaining a roaming threshold and a connection state of the electronic device for the wireless access point, wherein the roaming threshold is used for representing a signal strength value threshold.
Optionally, the roaming threshold includes: a first threshold range, a second threshold range, and a third threshold range; the maximum value of the first threshold range is smaller than the minimum value of the second threshold range, the maximum value of the second threshold range is smaller than the minimum value of the third threshold range, the operation interface of the electronic device comprises a roaming threshold setting control, and step 201 specifically comprises:
and a sub-step 2011 of displaying the roaming threshold value, and selecting any one of the first threshold value range, the second threshold value range and the third threshold value range in response to the operation of the roaming threshold value setting control.
In the embodiment of the invention, a roaming threshold setting control can be provided on an operation interface of the user electronic equipment so that a user can set a roaming threshold autonomously, and specifically, the roaming threshold comprises: the first threshold range may be a threshold range selectable by a user under the condition of low requirement on the network, the second threshold range may be a threshold range selectable by the user under the condition of more conventional requirement on the network, and the third threshold range may be a threshold range selectable by the user under the condition of higher requirement on the network, for example, when the user is in the outdoors and the coverage rate of the wireless access point is low, the first threshold range may be selected, so that the electronic device is prevented from being in a fast scanning state all the time and consuming electric quantity. When the user is in the wireless access point and has higher coverage and the current use scene has higher requirement on the real-time performance of the network, the third threshold range can be selected so as to ensure that the wireless connection point connected with the user can provide higher-quality network service. By setting different threshold ranges, roaming requirements for different scenes are realized, system resources are better utilized, and electric quantity is saved.
Step 202, responding to input of a fast scan start instruction, and acquiring a signal intensity value of a wireless access point currently used by the electronic equipment under the condition that the connection state of the electronic equipment is determined to be the connection of the wireless access point.
This step is referred to step 102, and will not be described here.
Step 203, if the signal strength value of the currently used wireless access point is smaller than the roaming threshold, searching for a candidate wireless access point within the scanning range of the electronic device with a preset scanning frequency.
Optionally, step 203 specifically includes:
sub-step 2031, scans by broadcasting a probe request at a preset scanning frequency.
In the embodiment of the invention, the electronic equipment can broadcast and send the probe request to scan at the preset scanning frequency so as to search for the wireless access point.
Optionally, the substep 2031 specifically includes:
sub-step 20311 scans for probe requests broadcast on the current channel at a preset scanning frequency.
Sub-step 20312, if a reply based on the probe request is not received within a preset time, switching the next channel according to the channel list to continue broadcasting the probe request for scanning.
In the embodiment of the invention, the electronic device sends Probe Request frames on the channel at intervals in an active scanning mode, and the Probe Request frames are used for inquiring information of the wireless access point and requesting the wireless access point to respond. The Probe Request can be sent to a certain wireless access point alone or broadcast on a channel, after the broadcast is completed, the current channel waits for a period of time, if the wireless access point receives a frame reply based on the Probe Request frame, the wireless access point is recorded, if the frame reply is not received after the Probe Request frame is waited for a period of time, the next channel is switched to broadcast according to the channel list, so as to search for a target wireless access point which accords with the roaming threshold.
Sub-step 2032, determining candidate wireless access points within the scan range based on the received reply based on the probe request.
In the embodiment of the present invention, if a reply based on the probe request is received, the wireless access point is searched, and the wireless access point is used as a candidate access point, and after determining the signal strength value of the wireless access point, it is determined whether to connect to the wireless access point.
And 204, evaluating the signal strength value of the candidate wireless access point to determine the signal strength value of the candidate wireless access point.
In the embodiment of the invention, after the candidate wireless access points are determined, the signal strength values of the candidate wireless access points can be evaluated to determine the signal strength values of the candidate wireless access points. It has been determined which candidate wireless access point, if any, is specifically connected.
Step 205, selecting a target wireless access point from candidate wireless access points with signal strength values greater than or equal to the roaming threshold.
Optionally, step 205 specifically includes:
sub-step 2051, determining at least one candidate wireless access point having a signal strength value greater than or equal to the roaming threshold.
Sub-step 2052, using the wireless access point with the largest signal strength value among the candidate wireless access points as the target wireless access point.
In the embodiment of the invention, after a plurality of candidate wireless access points are determined, the candidate wireless access point with the strongest signal strength value is determined as the target wireless access point from among the candidate wireless access points, and the currently used wireless access point is switched to the target wireless access point, so that the strongest signal strength value of the currently connected wireless access point is ensured, and the network communication quality is improved.
Optionally, step 205 specifically includes:
sub-step 2053 sequentially judges whether the signal strength value of the candidate wireless access point is greater than or equal to the roaming threshold.
Sub-step 2054, using the obtained candidate wireless access point with the first signal strength value greater than or equal to the roaming threshold as the target wireless access point.
In the embodiment of the invention, if a plurality of candidate wireless access points are determined, signal intensity values of the candidate wireless access points can be evaluated in sequence, and when a first candidate wireless access point with the signal intensity value being greater than or equal to the roaming threshold value is obtained, the candidate wireless access point can be used as a target wireless access point, and the currently used wireless access point is switched to the target wireless access point, so that the switching efficiency of the wireless access points is ensured.
And 206, changing the wireless access point currently used by the electronic equipment into the target wireless access point.
Optionally, step 206 specifically includes:
a substep 2061 of sending a reassociation request to the target wireless access point; the re-association request comprises the identification of the currently used wireless access point, so that the target wireless access point can acquire the cache data of the electronic equipment from the currently used wireless access point according to the re-association request, and then send a re-association response frame to the electronic equipment, wherein the cache data is used for enabling the electronic equipment to keep communication uninterrupted in the process of changing the currently used wireless access point into the target wireless access point.
Sub-step 2062, receiving a reassociation response frame based on the reassociation request sent by the target wireless access point.
A substep 2063 of transmitting an acknowledgment reassociation frame to the target wireless access point to change the currently used wireless access point of the electronic device to the target wireless access point.
In the embodiment of the invention, the current wireless access point of the electronic equipment is changed to the target wireless access point, namely the roaming process of the wireless access point.
Specifically, after determining the target wireless access point, the client sends a reassociation request to the target wireless access point, where the reassociation request frame includes a BSSID of the wireless access point currently being used (i.e., an identifier of the wireless access point currently being used and an address of the wireless access point currently being used); after receiving the re-association request, the target wireless access point replies a confirmation frame to the client, the target wireless access point communicates with the wireless access point which is currently used, informs the wireless access point which is currently used of information about the roaming client, and requests the wireless access point which is currently used to forward all cache data belonging to the roaming client; if the communication is successful, the currently used wireless access point forwards all cached data to the target wireless access point; the target wireless access point sends a re-association response frame to the client through the wireless network; the client sends a confirmation frame to the target wireless access point after receiving the reassociation response frame, the client connects to the Wu Biao wireless access point, and if reassociation fails, the client maintains connection with the original wireless access point and attempts to roam to other target wireless access points. After the re-association is successful, the target wireless access point sends the forwarded cache data to the client through the wireless network, and the client sends a confirmation frame to the new wireless access point after receiving the data to confirm the received data, so that the client automatically realizes the switching of the wireless access point under the condition of no perception, and the communication of the client is not interrupted and the real-time performance of the network is ensured.
Optionally, after step 201, the method further comprises:
step 207, in response to the input of the fast scan on command, searching for a target wireless access point with a signal strength value greater than or equal to the roaming threshold at the preset scan frequency under the condition that the connection state of the electronic device is determined to be the unconnected wireless access point.
Step 208, connecting the electronic device to the target wireless access point.
In the embodiment of the invention, if the connection state of the electronic equipment is the unconnected wireless access point, the method can directly and rapidly scan at the moment so as to help the client to rapidly search the target wireless access point with the signal strength value larger than or equal to the roaming threshold value and connect the target wireless access point, thereby reducing the time for the user to wait for network searching.
Optionally, after step 202, the method further comprises:
step 209, if the signal strength value of the currently used wireless access point is greater than or equal to the roaming threshold, keeping the original scanning frequency of the electronic device unchanged.
In the embodiment of the invention, if the signal intensity value of the currently used wireless access point is greater than or equal to the roaming threshold value, the fact that the currently used wireless access point of the electronic equipment accords with the roaming threshold value set by the user is indicated, and the wireless access point does not need to quickly switch a new wireless access point, so that the original scanning frequency of the electronic equipment can be kept unchanged, and the electronic equipment can quickly scan only when the signal intensity value of the currently used wireless access point is lower than the roaming threshold value, so that more electric quantity of the electronic equipment is prevented from being lost.
Referring to fig. 3, the electronic device may provide a control interface switch for user operation to determine whether to turn on the fast scan function. And providing roaming threshold settings to select roaming thresholds in different ranges, when the electronic device moves away from the wireless access point originally used by the electronic device and the signal strength is lower than the roaming threshold, automatically starting to quickly scan for the wireless access point with better searching signal, and after the electronic device scans for a wireless access point with better condition reaching the set roaming threshold, the electronic device tries to connect to the wireless access point and roams to a new BSS from the current BSS (basic service area, the range covered by one wireless access point). The electronic device sends a reassociation request (Reassciation request) frame and then begins roaming for network handoff. In the WIFI disconnected scene, quick scanning is automatically started to search surrounding wireless access points for connection. When WIFI is in a connection scene and the signal intensity value is good, the fast scanning function is automatically closed, roaming switching is not needed, system resources are saved, and electric quantity is saved.
To sum up, in the embodiment of the present invention, a roaming threshold is obtained, where the roaming threshold is used to characterize a signal strength value threshold, and the roaming threshold is the signal strength value threshold for determining to perform fast scanning; acquiring a connection state of a wireless access point of the electronic equipment, responding to a quick scanning start instruction, and acquiring a signal intensity value of the wireless access point currently used by the electronic equipment under the condition that the connection state of the electronic equipment is determined to be the connection of the wireless access point; when the signal intensity value of the wireless access point currently used by the electronic equipment is smaller than the roaming threshold value, searching a target wireless access point with the signal intensity value larger than or equal to the roaming threshold value by using the preset scanning frequency, and switching the wireless access point currently used into the target wireless access point. Because the preset scanning frequency is faster than the original scanning frequency of the electronic equipment, when the signal intensity value of the currently used wireless access point is lower than the roaming threshold value, the target wireless access point with the signal intensity value larger than or equal to the roaming threshold value can be quickly searched by the preset scanning frequency which is faster than the original scanning frequency, so that the network of the electronic equipment can realize seamless switching, the real-time performance of the network is improved, and in addition, if the acquired roaming threshold values are different, the conditions for triggering the starting of the quick scanning are also different, so that different use scenes can be met according to the requirements of users.
Fig. 4 is a block diagram of a wireless access point switching device according to an embodiment of the present invention, and as shown in fig. 4, the device 30 includes:
a first obtaining module 301, configured to obtain a roaming threshold and a connection state of the electronic device for a wireless access point, where the roaming threshold is used to characterize a signal strength value threshold;
a second obtaining module 302, configured to obtain, in response to input of a fast scan start instruction, a signal strength value of a wireless access point currently used by the electronic device when it is determined that a connection state of the electronic device is a connection wireless access point;
a first scanning module 303, configured to search, if the signal strength value of the currently used wireless access point is less than the roaming threshold, for a target wireless access point with a preset scanning frequency, where the signal strength value is greater than or equal to the roaming threshold, and the preset scanning frequency is faster than an original scanning frequency of the electronic device;
and a switching module 304, configured to change a wireless access point currently used by the electronic device to the target wireless access point.
Optionally, the apparatus further comprises:
the second scanning module is used for responding to the input of the rapid scanning starting instruction, and searching a target wireless access point with a signal strength value larger than or equal to the roaming threshold value according to the preset scanning frequency under the condition that the connection state of the electronic equipment is determined to be the unconnected wireless access point;
And the connection module is used for connecting the electronic equipment to the target wireless access point.
Optionally, the first scanning module specifically includes:
a first scanning sub-module, configured to search for candidate wireless access points within a scanning range of the electronic device at a preset scanning frequency;
the signal strength value evaluation sub-module is used for evaluating the signal strength value of the candidate wireless access point and determining the signal strength value of the candidate wireless access point;
and the selecting submodule is used for selecting a target wireless access point from candidate wireless access points with signal strength values larger than or equal to the roaming threshold value.
Optionally, the first scanning sub-module includes:
a probe request sending sub-module, configured to broadcast and send a probe request at a preset scanning frequency to perform scanning;
and the candidate wireless access point confirming sub-module is used for determining candidate wireless access points in the scanning range according to the received reply based on the probe request.
Optionally, the probe request sending submodule includes:
the first broadcast transmitting sub-module is used for broadcasting and transmitting a probe request on a current channel at a preset scanning frequency to scan;
and the second broadcast sending sub-module is used for switching the next channel according to the channel list to continue broadcasting and sending the probe request for scanning if the reply based on the probe request is not received within the preset time.
Optionally, the selecting sub-module includes:
a first selection sub-module for determining at least one candidate wireless access point having a signal strength value greater than or equal to the roaming threshold;
and the first determining submodule is used for taking the wireless access point with the largest signal intensity value of the candidate wireless access points as a target wireless access point.
Optionally, the selecting sub-module includes:
the second selecting sub-module is used for sequentially judging whether the signal strength value of the candidate wireless access point is greater than or equal to the roaming threshold value;
and the second determining submodule takes the obtained candidate wireless access point with the first signal strength value larger than or equal to the roaming threshold value as a target wireless access point.
Optionally, the apparatus further comprises:
and the third scanning module is used for keeping the original scanning frequency of the electronic equipment unchanged if the signal strength value of the currently used wireless access point is greater than or equal to the roaming threshold value.
Optionally, the roaming threshold includes: a first threshold range, a second threshold range, and a third threshold range; the maximum value of the first threshold range is smaller than the minimum value of the second threshold range, the maximum value of the second threshold range is smaller than the minimum value of the third threshold range, the operation interface of the electronic device comprises a roaming threshold setting control, and the first acquisition module comprises:
The display module is used for displaying the roaming threshold value and responding to the operation of the roaming threshold value setting control to select any threshold value range of the first threshold value range, the second threshold value range and the third threshold value range.
Optionally, the switching module includes:
a re-association sub-module, configured to send a re-association request to the target wireless access point; the re-association request comprises the identification of the currently used wireless access point, so that the target wireless access point can send a re-association response frame to the electronic equipment after acquiring the cache data of the electronic equipment from the currently used wireless access point according to the re-association request, wherein the cache data is data enabling the communication of the electronic equipment to be uninterrupted;
a receiving sub-module, configured to receive a reassociation response frame based on the reassociation request sent by the target wireless access point;
and the switching sub-module is used for sending a confirmation re-association frame to the target wireless access point so as to change the currently used wireless access point of the electronic equipment into the target wireless access point.
To sum up, in the embodiment of the present invention, a roaming threshold is obtained, where the roaming threshold is used to characterize a signal strength value threshold, and the roaming threshold is the signal strength value threshold for determining to perform fast scanning; acquiring a connection state of a wireless access point of the electronic equipment, responding to a quick scanning start instruction, and acquiring a signal intensity value of the wireless access point currently used by the electronic equipment under the condition that the connection state of the electronic equipment is determined to be the connection of the wireless access point; and determining whether the current signal strength value is lower than the acquired roaming threshold value by judging whether the signal strength value of the wireless access point currently used by the electronic equipment is greater than or equal to the roaming threshold value, searching a target wireless access point with the signal strength value greater than or equal to the roaming threshold value according to a preset scanning frequency when the signal strength value of the wireless access point currently used is smaller than the roaming threshold value, and switching the wireless access point currently used to the target wireless access point. Because the preset scanning frequency is faster than the original scanning frequency of the electronic equipment, when the signal intensity value of the currently used wireless access point is lower than the roaming threshold value, the target wireless access point with the signal intensity value larger than or equal to the roaming threshold value can be quickly searched by the preset scanning frequency which is faster than the original scanning frequency, so that the network of the electronic equipment can realize seamless switching, the real-time performance of the network is improved, and in addition, if the acquired roaming threshold values are different, the conditions for triggering the starting of the quick scanning are also different, so that different use scenes can be met according to the requirements of users.
Fig. 5 is a block diagram of an electronic device 600, according to an example embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, the electronic device 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an input/output (I/O) interface 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the electronic device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is used to store various types of data to support operations at the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phonebook data, messages, pictures, multimedia, and so forth. The memory 604 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 606 provides power to the various components of the electronic device 600. The power supply components 606 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 600.
The multimedia component 608 includes a screen between the electronic device 600 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense demarcations of touch or sliding actions, but also detect durations and pressures associated with the touch or sliding operations. In some embodiments, the multimedia component 608 includes a front camera and/or a rear camera. When the electronic device 600 is in an operational mode, such as a shooting mode or a multimedia mode, the front-facing camera and/or the rear-facing camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 610 is for outputting and/or inputting audio signals. For example, the audio component 610 includes a Microphone (MIC) for receiving external audio signals when the electronic device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 614 includes one or more sensors for providing status assessment of various aspects of the electronic device 600. For example, the sensor assembly 614 may detect an on/off state of the electronic device 600, a relative positioning of the components, such as a display and keypad of the electronic device 600, the sensor assembly 614 may also detect a change in position of the electronic device 600 or a component of the electronic device 600, the presence or absence of a user's contact with the electronic device 600, an orientation or acceleration/deceleration of the electronic device 600, and a change in temperature of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is utilized to facilitate communication between the electronic device 600 and other devices, either in a wired or wireless manner. The electronic device 600 may access a wireless network based on a communication standard, such as WiFi, an operator network (e.g., 2G, 3G, 4G, or 5G), or a combination thereof. In one exemplary embodiment, the communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for implementing a wireless access point switching method provided by an embodiment of the application.
In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as memory 604, including instructions executable by processor 620 of electronic device 600 to perform the above-described method. For example, the non-transitory storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Fig. 6 is a block diagram of an electronic device 700, according to an example embodiment. For example, the electronic device 700 may be provided as a server. Referring to fig. 6, electronic device 700 includes a processing component 722 that further includes one or more processors and memory resources represented by memory 732 for storing instructions, such as application programs, executable by processing component 722. The application programs stored in memory 732 may include one or more modules that each correspond to a set of instructions. In addition, the processing component 722 is configured to execute instructions to perform a wireless access point handover method provided by the embodiment of the present application.
The electronic device 700 may also include a power supply component 726 configured to perform power management of the electronic device 700, a wired or wireless network interface 750 configured to connect the electronic device 700 to a network, and an input output (I/O) interface 758. The electronic device 700 may operate based on an operating system stored in memory 732, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, or the like.
The embodiment of the application also provides a computer program product, which comprises a computer program, wherein the computer program realizes the wireless access point switching method when being executed by a processor.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (13)

1. A method for wireless access point handoff, the method comprising:
acquiring a roaming threshold and a connection state of the electronic equipment for the wireless access point, wherein the roaming threshold is used for representing a signal strength value threshold;
responding to the input of a quick scanning start instruction, and acquiring a signal intensity value of a wireless access point currently used by the electronic equipment under the condition that the connection state of the electronic equipment is determined to be the connection of the wireless access point;
If the signal intensity value of the currently used wireless access point is smaller than the roaming threshold value, searching a target wireless access point with the signal intensity value larger than or equal to the roaming threshold value at a preset scanning frequency, wherein the preset scanning frequency is faster than the original scanning frequency of the electronic equipment;
and changing the wireless access point currently used by the electronic equipment into the target wireless access point.
2. The method of claim 1, wherein after the obtaining the roaming threshold and the wireless access point connection state of the electronic device, the method further comprises:
responding to the input of a quick scanning start instruction, and searching a target wireless access point with a signal strength value larger than or equal to the roaming threshold value according to the preset scanning frequency under the condition that the connection state of the electronic equipment is determined to be the unconnected wireless access point;
the electronic device is connected to the target wireless access point.
3. The method of claim 1, wherein searching for a target wireless access point having a signal strength value greater than or equal to the roaming threshold at a preset scanning frequency comprises:
searching candidate wireless access points in the scanning range of the electronic equipment with a preset scanning frequency;
Evaluating the signal strength value of the candidate wireless access point, and determining the signal strength value of the candidate wireless access point;
and selecting a target wireless access point from candidate wireless access points with signal strength values greater than or equal to the roaming threshold.
4. The method of claim 3, wherein searching for candidate wireless access points within a scan range of the electronic device at a preset scan frequency comprises:
broadcasting and sending a probe request at a preset scanning frequency to scan;
and determining candidate wireless access points in the scanning range according to the received reply based on the probe request.
5. The method of claim 4, wherein broadcasting the probe request at the preset scanning frequency for scanning comprises:
broadcasting and sending a probe request to scan on a current channel at a preset scanning frequency;
and if the reply based on the probe request is not received within the preset time, switching the next channel according to the channel list to continue broadcasting the probe request for scanning.
6. The method of claim 3, wherein the selecting the target wireless access point from the candidate wireless access points having signal strength values greater than or equal to the roaming threshold comprises:
Determining at least one candidate wireless access point having a signal strength value greater than or equal to the roaming threshold;
and taking the wireless access point with the maximum signal intensity value of the candidate wireless access points as a target wireless access point.
7. The method of claim 3, wherein the selecting the target wireless access point from the candidate wireless access points having signal strength values greater than or equal to the roaming threshold comprises:
sequentially judging whether the signal strength value of the candidate wireless access point is greater than or equal to the roaming threshold value;
and taking the obtained candidate wireless access point with the first signal strength value larger than or equal to the roaming threshold value as a target wireless access point.
8. The method of claim 1, wherein after the obtaining the signal strength value of the wireless access point currently used by the electronic device, the method further comprises:
and if the signal strength value of the currently used wireless access point is greater than or equal to the roaming threshold value, keeping the original scanning frequency of the electronic equipment unchanged.
9. The method of claim 1, wherein the roaming threshold comprises: a first threshold range, a second threshold range, and a third threshold range; the maximum value of the first threshold range is smaller than the minimum value of the second threshold range, the maximum value of the second threshold range is smaller than the minimum value of the third threshold range, the operation interface of the electronic device comprises a roaming threshold setting control, and the obtaining the roaming threshold comprises:
Displaying the roaming threshold value, and responding to the operation of the roaming threshold value setting control, selecting any threshold value range of the first threshold value range, the second threshold value range and the third threshold value range;
if the signal strength value of the currently used wireless access point is smaller than the roaming threshold, searching for a target wireless access point with a signal strength value greater than or equal to the roaming threshold at a preset scanning frequency, including:
and searching for a target wireless access point with a signal strength value greater than or equal to the roaming threshold value at a preset scanning frequency if the signal strength value of the currently used wireless access point is smaller than the minimum value of the range of the roaming threshold value.
10. The method of claim 1, wherein said changing the currently used wireless access point of the electronic device to the target wireless access point comprises:
sending a re-association request to the target wireless access point; the re-association request comprises the identification of the currently used wireless access point, so that the target wireless access point can acquire cache data of the electronic equipment from the currently used wireless access point according to the re-association request, and then send a re-association response frame to the electronic equipment, wherein the cache data is used for enabling the electronic equipment to keep communication uninterrupted in the process of changing the currently used wireless access point into the target wireless access point;
Receiving a reassociation response frame based on the reassociation request sent by the target wireless access point;
and transmitting a confirmation re-association frame to the target wireless access point, so that the currently used wireless access point of the electronic equipment is changed to the target wireless access point.
11. A wireless access point switching apparatus, the apparatus comprising:
the first acquisition module is used for acquiring a roaming threshold value and a connection state of the electronic equipment for the wireless access point, wherein the roaming threshold value is used for representing a signal strength value threshold value;
the second acquisition module is used for responding to the input of the quick scanning starting instruction and acquiring the signal intensity value of the wireless access point currently used by the electronic equipment under the condition that the connection state of the electronic equipment is determined to be the connection of the wireless access point;
the first scanning module is used for searching for a target wireless access point with a signal strength value larger than or equal to the roaming threshold value at a preset scanning frequency if the signal strength value of the currently used wireless access point is smaller than the roaming threshold value, wherein the preset scanning frequency is faster than the original scanning frequency of the electronic equipment;
and the switching module is used for changing the wireless access point currently used by the electronic equipment into the target wireless access point.
12. An electronic device, comprising: a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of any one of claims 1 to 10.
13. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of any one of claims 1 to 10.
CN202310627078.5A 2023-05-30 2023-05-30 Wireless access point switching method and device Pending CN116600355A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310627078.5A CN116600355A (en) 2023-05-30 2023-05-30 Wireless access point switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310627078.5A CN116600355A (en) 2023-05-30 2023-05-30 Wireless access point switching method and device

Publications (1)

Publication Number Publication Date
CN116600355A true CN116600355A (en) 2023-08-15

Family

ID=87608154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310627078.5A Pending CN116600355A (en) 2023-05-30 2023-05-30 Wireless access point switching method and device

Country Status (1)

Country Link
CN (1) CN116600355A (en)

Similar Documents

Publication Publication Date Title
CN108123855B (en) Terminal control method and device
CN112042225B (en) Cell reselection method, cell reselection device and storage medium
CN111465078B (en) Wireless network searching method and device and storage medium
CN114245480B (en) Network connection method and device
CN106851723B (en) Cell switching method and device
CN109451838B (en) Method, device and storage medium for obtaining access control parameters
CN113055966B (en) Frequency band switching method, frequency band switching device and storage medium
CN108184228B (en) Emergency call method and user equipment
CN113784407A (en) Wireless access point switching method and device, mobile terminal and storage medium
CN105357735B (en) Method and device for accessing cell
US11197192B2 (en) Network connection management method, device and system
CN113630832B (en) Paging method, device and equipment
CN106792570B (en) Positioning method and device
US11218940B2 (en) Cell reselection method and device, and storage medium
CN109451832B (en) Wireless communication method, device and computer readable storage medium
CN116600355A (en) Wireless access point switching method and device
CN112492665B (en) Random access method and device, PLMN (public land mobile network) identifier sending method and device
CN114554475A (en) Roaming method and device, and storage medium
CN112822670A (en) Cell registration method, device, equipment and storage medium
CN112261698B (en) Method and device for accessing network, terminal and storage medium
CN115087052B (en) Voice calling method and device, storage medium and electronic equipment
CN116614851B (en) Measurement method, device, storage medium and terminal
CN115103416B (en) Network switching method, device, equipment and storage medium
CN110291815B (en) Method, device and medium for improving service continuity
CN116963218A (en) Cell access method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination