CN111565477A - Network connection method, wireless station, and storage medium - Google Patents

Network connection method, wireless station, and storage medium Download PDF

Info

Publication number
CN111565477A
CN111565477A CN202010411868.6A CN202010411868A CN111565477A CN 111565477 A CN111565477 A CN 111565477A CN 202010411868 A CN202010411868 A CN 202010411868A CN 111565477 A CN111565477 A CN 111565477A
Authority
CN
China
Prior art keywords
wireless
sta
roaming
connection information
network
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.)
Granted
Application number
CN202010411868.6A
Other languages
Chinese (zh)
Other versions
CN111565477B (en
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.)
Spreadtrum Semiconductor Chengdu Co Ltd
Original Assignee
Spreadtrum Semiconductor Chengdu 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 Spreadtrum Semiconductor Chengdu Co Ltd filed Critical Spreadtrum Semiconductor Chengdu Co Ltd
Priority to CN202010411868.6A priority Critical patent/CN111565477B/en
Publication of CN111565477A publication Critical patent/CN111565477A/en
Application granted granted Critical
Publication of CN111565477B publication Critical patent/CN111565477B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • 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 application provides a network connection method, a wireless station and a storage medium. The network connection method provided by the application comprises the following steps: if the wireless station STA detects that the first wireless roaming process fails, the initial connection information stored in the wireless STA is obtained, wherein the first wireless roaming process is a network switching process for switching from a first wireless access point AP to a second wireless AP, the initial connection information is connection information of the wireless STA and the first wireless AP, and the wireless STA recovers network connection with the first wireless AP according to the initial connection information. The network connection method, the wireless station and the storage medium provided by the application can return to the previous wireless AP after the wireless roaming fails, ensure continuous connection, and ensure that the user service is not influenced, thereby improving the robustness of the network.

Description

Network connection method, wireless station, and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a network connection method, a wireless station, and a storage medium.
Background
In recent years, the demand for wireless communication quality has been increasing with the spread of wireless networks. Because the coverage area of the wireless network is limited, people inevitably roam when using the wireless network, especially in public places and places with large places, and network switching is automatically carried out.
In the network roaming handover process, a handover failure may occur. At present, for the processing after the failure, the network is basically disconnected directly, and then the optimal network is selected automatically or manually by an application program for connection.
However, the above-mentioned manner of directly disconnecting the network may cause service interruption of the current user, and then, manual or automatic connection needs to be performed again, and in the process of reconnection, a complete connection process needs to be performed again, which is time-consuming, and the user may also perceive the network interruption, which may seriously affect the user experience.
Disclosure of Invention
The application provides a network connection method, a wireless station and a storage medium, which are used for solving the technical problem of poor user experience caused by direct disconnection of a network when network switching fails in the network roaming switching process.
In a first aspect, an embodiment of the present application provides a network connection method, including:
if a wireless station STA detects that a first wireless roaming process fails, acquiring initial connection information stored in the wireless STA, wherein the first wireless roaming process is a network switching process for switching from a first wireless access point AP to a second wireless AP, and the initial connection information is connection information between the wireless STA and the first wireless AP;
and the wireless STA recovers the network connection with the first wireless AP according to the initial connection information.
In one possible design, when it is determined that the wireless station STA needs to perform a wireless roaming procedure, the wireless station STA sends a first data frame to the first wireless AP, where the first data frame includes a first identifier, and the first identifier is used to indicate that the wireless station STA enters a power saving mode;
correspondingly, after the wireless station STA detects that the first wireless roaming procedure fails, the method further includes:
and the wireless STA sends a second data frame to the first wireless AP, wherein the second data frame comprises a second identifier, and the second identifier is used for indicating that the wireless STA enters an active mode.
In one possible design, the wireless STA saves the initial connection information when it is determined that the wireless station STA needs to perform a wireless roaming procedure.
In one possible design, the initial connection information includes: a basic service set identification, connection channel information, beacon interval slots, and a delayed transmission indication message.
In one possible design, if the wireless STA determines that the signal strength of the first wireless AP meets a preset roaming condition, it is determined that the wireless STA needs to perform a wireless roaming process; alternatively, the first and second electrodes may be,
and if the wireless STA receives the roaming indication message sent by the first wireless AP, determining that the wireless STA needs to perform a wireless roaming process.
In one possible design, if the wireless STA does not receive an association response after sending an association request to the second wireless AP, the first wireless roaming procedure fails; alternatively, the first and second electrodes may be,
and if the wireless STA receives an association response after sending the association request to the second wireless AP, and the state code in the association response is a connection error code, the first wireless roaming process fails.
In one possible design, after the wireless STA recovers the network connection with the first wireless AP according to the initial connection information, the method further includes:
and adding the second wireless AP to a roaming blacklist, and deleting the related cache information of the second wireless AP.
In one possible design, after the adding the second wireless AP to a roaming blacklist, further comprising:
rescanning the discovered wireless service, and determining a first wireless AP list;
determining a third wireless AP according to the first wireless AP list and the roaming blacklist;
and if the wireless station STA is determined to need to perform wireless roaming, the wireless station STA detects the state of a second wireless roaming process, wherein the second wireless roaming process is a network switching process for switching from the first wireless AP to the third wireless AP.
In one possible design, the roaming blacklist is cleared if the network handover is successful in the second wireless roaming process;
and if the wireless STA detects that the second wireless roaming process fails, the wireless STA recovers the network connection with the first wireless AP according to the initial connection information.
In a second aspect, the present application further provides a wireless station, including:
an obtaining module, configured to obtain initial connection information stored in a wireless station STA when the wireless station STA detects that a first wireless roaming process fails, where the first wireless roaming process is a network switching process of switching from a first wireless access point AP to a second wireless AP, and the initial connection information is connection information between the wireless station STA and the first wireless AP;
and the processing module is used for recovering the network connection with the first wireless AP according to the initial connection information.
In one possible design, the wireless station further includes:
a sending module, configured to send a first data frame to the first wireless AP when it is determined that the wireless station STA needs to perform a wireless roaming process, where the first data frame includes a first identifier, and the first identifier is used to indicate that the wireless station STA enters a power saving mode;
the sending module is further configured to send a second data frame to the first wireless AP after the wireless station STA detects that a first wireless roaming process fails, where the second data frame includes a second identifier, and the second identifier is used to indicate that the wireless station STA enters an active mode.
In one possible design, the wireless station further includes:
and the storage module is used for storing the initial connection information when the wireless station STA is determined to need to perform a wireless roaming process.
In one possible design, the initial connection information includes: a basic service set identification, connection channel information, beacon interval slots, and a delayed transmission indication message.
In a possible design, the processing module is further configured to determine that the wireless station STA needs to perform a wireless roaming procedure when the signal strength of the first wireless AP meets a preset roaming condition.
In one possible design, the wireless station further includes:
a receiving module, configured to receive a roaming indication message sent by the first wireless AP;
the processing module is further configured to determine that the wireless station STA needs to perform a wireless roaming process.
In a possible design, the receiving module is further configured to receive an association response, and when a status code in the association response is a connection error code, the first wireless roaming procedure fails.
In one possible design, the processing module is further configured to add the second wireless AP to a roaming blacklist and delete the cache information related to the second wireless AP.
In one possible design, the wireless station further includes:
a scanning module, configured to rescan the discovered wireless service and determine a first wireless AP list;
the processing module is further configured to determine a third wireless AP according to the first wireless AP list and the roaming blacklist;
if it is determined that the wireless station STA needs to perform wireless roaming, the processing module is further configured to determine a state of a second wireless roaming process, where the second wireless roaming process is a network switching process of switching from the first wireless AP to the third wireless AP.
In a third aspect, the present application further provides a wireless station, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as provided by the first aspect or the first aspect realizable manner.
In a fourth aspect, embodiments of the present application provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method as provided in the first aspect or the first aspect implementable manner.
In a fifth aspect, an embodiment of the present application provides a computer program product, including: executable instructions for implementing the method as provided in the first aspect or the first aspect alternatives.
According to the network connection method, the wireless station and the storage medium, when the wireless STA detects that network switching from the first wireless access point AP to the second wireless AP fails, the initial connection information of the first wireless AP stored in the wireless STA is obtained, so that the wireless STA recovers network connection with the first wireless AP by using the initial connection information, the wireless STA can return to the previous wireless AP after wireless roaming failure, connection is ensured to be continuous, user service is not affected, and network robustness is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a diagram illustrating an application scenario of a network connection method according to an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a network connection method according to an example embodiment;
FIG. 3 is a flow diagram illustrating a network connection method according to another example embodiment;
FIG. 4 is a flow diagram illustrating a network connection method according to yet another exemplary embodiment;
fig. 5 is a block diagram of a wireless station shown in accordance with an example embodiment;
fig. 6 is a schematic block diagram of a wireless station shown in accordance with another example embodiment;
fig. 7 is a block diagram of a wireless station shown in accordance with yet another exemplary embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In recent years, the demand for wireless communication quality has been increasing with the spread of wireless networks. Because the coverage area of the wireless network is limited, people inevitably roam when using the wireless network, especially in public places and places with large places, and network switching is automatically carried out. However, roaming may fail, and for the processing after the failure, in the prior art, the network is basically disconnected directly, and then the optimal network is selected automatically or manually by an application program for connection. After roaming fails, the WIFI connection is disconnected, which may cause service interruption of the current user, and reconnection (manual or automatic) is necessary, which may require a complete connection procedure, which is time consuming and the user may also perceive network interruption.
In some important network occasions requiring real-time response, such as video or voice call through chat software, participation in a company network teleconference, and disconnection of WIFI after roaming failure can seriously affect user experience.
In view of the above technical problems, the present application provides a network connection method, a wireless station and a storage medium, in which when a wireless STA detects that a network switch from a first wireless AP to a second wireless AP fails, the wireless STA recovers a network connection with the first wireless AP by using initial connection information of the first wireless AP stored in the wireless STA, so as to return to the previous wireless AP after a wireless roaming failure, ensure that the connection is continuous, ensure that a user service is not affected, and improve the robustness of the network.
Fig. 1 is a diagram illustrating an application scenario of a network connection method according to an exemplary embodiment of the present application. As shown in fig. 1, the network connection method provided in this embodiment may be applied to a WIFI network connection system, where the WIFI network connection system includes a plurality of Access Points (APs) (e.g., a first wireless AP110 and a second wireless AP120) and at least one wireless Station (STA) 200. The first wireless AP110 may be an AP with which the wireless STA200 is currently associated, and the second wireless AP120 may be a target AP to which the wireless STA200 is to roam. It should be noted that WIFI roaming refers to a process in which an STA in an Extended Service Set (ESS) automatically switches from a BSS access point to another BSS when a certain condition is satisfied.
In this embodiment, before the WIFI roaming starts, the related information (e.g., initial connection information) of the currently associated first wireless AP110 is saved, and a first data frame (e.g., NULL frame) is sent to the first wireless AP, and after the roaming fails, the first wireless AP110 is returned to the first wireless AP according to the related information, thereby ensuring that the connection is not interrupted.
Fig. 2 is a flow chart illustrating a network connection method according to an exemplary embodiment of the present application. As shown in fig. 2, the network connection method provided in this embodiment includes:
s101, the wireless station STA detects whether the first wireless roaming process is successful. If the failure is not successful, the step S102 is executed, and if the failure is successful, the step S104 is executed.
When the wireless STA performs wireless roaming, whether the roaming is successful or not is detected in the roaming process. In a possible case, if the wireless STA does not receive the association response after sending the association request to the second wireless AP in the first wireless roaming process, the detection result is that the first wireless roaming process fails.
In another possible case, if the wireless STA receives an association response after sending the association request to the second wireless AP in the first wireless roaming process, but the status code in the association response is a connection error code, the first wireless roaming process fails. It should be noted that the status code is usually "0" when the first wireless roaming procedure is successfully handed over, and the status code is usually configured as an error code for indicating a specific error when the first wireless roaming procedure fails.
S102, acquiring initial connection information stored in the wireless STA.
If the wireless station STA detects that the first wireless roaming process fails, the initial connection information stored in the wireless STA is acquired, wherein the first wireless roaming process is a network switching process for switching from a first wireless access point AP to a second wireless AP, and the initial connection information is the connection information between the wireless STA and the first wireless AP.
It should be noted that the initial connection information may include: basic service set identification BSSID, connection Channel information Channel, Beacon Interval slot Beacon Interval, and Delayed Transmission Indication Map (DTIM).
In the prior art, when performing wireless roaming, for example, during a process of switching from a first wireless AP to a second wireless AP, initial connection information of the first wireless AP is cleared, and therefore, when the wireless roaming fails, the first wireless AP cannot be recovered.
In this embodiment, when it is determined that the wireless STA needs to perform the wireless roaming procedure, the wireless STA may first store the initial connection information of the first wireless AP. Then, when the wireless STA detects that the first wireless roaming procedure fails, the initial connection information stored in the wireless STA is acquired.
And S103, the wireless STA recovers the network connection with the first wireless AP according to the initial connection information.
After the initial connection information stored in the wireless STA is acquired, the wireless STA may recover the network connection with the first wireless AP according to the initial connection information. Specifically, the stored initial connection information of the first wireless AP may be recovered, and the information includes information of setting BSSID of the first wireless AP, switching channels, setting beacon interval, and the like.
And S104, the wireless STA establishes network connection with the second wireless AP.
And if the wireless station STA detects that the network switching is successful in the first wireless roaming process, establishing network connection between the wireless station STA and the second wireless AP so as to complete wireless network roaming.
In this embodiment, when the wireless STA detects that the network switch from the first wireless AP to the second wireless AP fails, the initial connection information of the first wireless AP stored in the wireless STA is acquired, so that the wireless STA recovers the network connection with the first wireless AP by using the initial connection information, and then returns to the previous wireless AP after the wireless roaming failure, thereby ensuring that the connection is continuous, ensuring that the user service is not affected, and improving the robustness of the network.
Fig. 3 is a flowchart illustrating a network connection method according to another exemplary embodiment of the present application. As shown in fig. 3, the network connection method provided in this embodiment includes:
s201, the wireless STA sends a first data frame to the first wireless AP.
When the wireless station STA is determined to need to perform a wireless roaming process, the wireless station STA sends a first data frame to the first wireless AP, wherein the first data frame comprises a first identifier, and the first identifier is used for indicating that the wireless station STA enters a power saving mode.
In one possible implementation, before the wireless STA starts roaming, it first sends a NULL DATA frame with PS bit 1 to the currently associated wireless AP, i.e. the first wireless AP, to inform the wireless AP to: the first wireless AP will sleep.
S202, the wireless STA saves the initial connection information.
The wireless STA may first save the initial connection information of the first wireless AP when it is determined that the wireless STA needs to perform the wireless roaming procedure. Then, when the wireless STA detects that the first wireless roaming procedure fails, the initial connection information stored in the wireless STA is acquired.
The initial connection information may include: basic service set identification BSSID, connection Channel information Channel, Beacon Interval slot Beacon Interval, and Delayed Transmission Indication Map (DTIM).
S203, the wireless station STA detects whether the first wireless roaming process is successful. If the failure is not successful, S204 is executed, and if the failure is successful, S207 is executed.
When the wireless STA performs wireless roaming, whether the roaming is successful or not is detected in the roaming process. In a possible case, if the wireless STA does not receive the association response after sending the association request to the second wireless AP in the first wireless roaming process, the detection result is that the first wireless roaming process fails.
In another possible case, if the wireless STA receives an association response after sending the association request to the second wireless AP in the first wireless roaming process, but the status code in the association response is a connection error code, the first wireless roaming process fails. It should be noted that the status code is usually "0" when the first wireless roaming procedure is successfully handed over, and the status code is usually configured as an error code for indicating a specific error when the first wireless roaming procedure fails.
S204, the wireless STA sends the second data frame to the first wireless AP.
If the wireless station STA detects that the first wireless roaming process fails, the wireless station STA sends a second data frame to the first wireless AP, wherein the second data frame comprises a second identifier, and the second identifier is used for indicating that the wireless station STA enters an activation mode.
In one possible implementation, when the wireless station STA detects that the first wireless roaming procedure fails, the first wireless AP sends a NULL DATA frame with PS bit 0 to inform the wireless AP: the first wireless AP will enter an active mode.
S205, acquiring initial connection information stored in the wireless STA.
If the wireless station STA detects that the first wireless roaming process fails, the initial connection information stored in the wireless STA is acquired, wherein the first wireless roaming process is a network switching process for switching from a first wireless access point AP to a second wireless AP, and the initial connection information is the connection information between the wireless STA and the first wireless AP.
It should be noted that the initial connection information may include: the basic service set identifies BSSID, connection Channel information Channel, Beacon Interval slot Beacon Interval, and delayed transmission indication message DTIM.
And S206, the wireless STA recovers the network connection with the first wireless AP according to the initial connection information.
After the initial connection information stored in the wireless STA is acquired, the wireless STA may recover the network connection with the first wireless AP according to the initial connection information. Specifically, the stored initial connection information of the first wireless AP may be recovered, and the information includes information of setting BSSID of the first wireless AP, switching channels, setting beacon interval, and the like.
And S207, the wireless STA establishes network connection with the second wireless AP.
And if the wireless station STA detects that the network switching is successful in the first wireless roaming process, establishing network connection between the wireless station STA and the second wireless AP so as to complete wireless network roaming.
Fig. 4 is a flowchart illustrating a network connection method according to yet another exemplary embodiment of the present application. As shown in fig. 4, the network connection method provided in this embodiment includes:
s301, the wireless STA sends a first data frame to the first wireless AP.
When the wireless station STA is determined to need to perform a wireless roaming process, the wireless station STA sends a first data frame to the first wireless AP, wherein the first data frame comprises a first identifier, and the first identifier is used for indicating that the wireless station STA enters a power saving mode.
In one possible implementation, before the wireless STA starts roaming, it first sends a NULL DATA frame with PS bit 1 to the currently associated wireless AP, i.e. the first wireless AP, to inform the wireless AP to: the first wireless AP will sleep.
If the wireless STA determines that the signal intensity of the first wireless AP meets the preset roaming condition, the wireless STA determines that the wireless station STA needs to perform a wireless roaming process. The preset roaming condition may be that the signal strength of the first wireless AP is continuously less than a preset value, and the continuous time exceeds a preset time threshold, at this time, it may be determined that the wireless station STA needs to perform wireless roaming.
In another possible case, it may be determined that the wireless station STA needs to perform the wireless roaming procedure when the wireless STA receives the roaming indication message sent by the first wireless AP.
S302, the wireless STA stores the initial connection information.
The wireless STA may first save the initial connection information of the first wireless AP when it is determined that the wireless STA needs to perform the wireless roaming procedure. Then, when the wireless STA detects that the first wireless roaming procedure fails, the initial connection information stored in the wireless STA is acquired.
The initial connection information may include: basic service set identification BSSID, connection Channel information Channel, Beacon Interval slot Beacon Interval, and Delayed Transmission Indication Map (DTIM).
S303, the wireless station STA detects whether the first wireless roaming process is successful. If the failure is found, S304 is executed, and if the failure is found, S313 is executed.
When the wireless STA performs wireless roaming, whether the roaming is successful or not is detected in the roaming process. In a possible case, if the wireless STA does not receive the association response after sending the association request to the second wireless AP in the first wireless roaming process, the detection result is that the first wireless roaming process fails.
In another possible case, if the wireless STA receives an association response after sending the association request to the second wireless AP in the first wireless roaming process, but the status code in the association response is a connection error code, the first wireless roaming process fails. It should be noted that the status code is usually "0" when the first wireless roaming procedure is successfully handed over, and the status code is usually configured as an error code for indicating a specific error when the first wireless roaming procedure fails.
S304, the wireless STA sends the second data frame to the first wireless AP.
If the wireless station STA detects that the first wireless roaming process fails, the wireless station STA sends a second data frame to the first wireless AP, wherein the second data frame comprises a second identifier, and the second identifier is used for indicating that the wireless station STA enters an activation mode.
In one possible implementation, when the wireless station STA detects that the first wireless roaming procedure fails, the first wireless AP sends a NULL DATA frame with PS bit 0 to inform the wireless AP: the first wireless AP will enter an active mode.
S305, acquiring initial connection information stored in the wireless STA.
If the wireless station STA detects that the first wireless roaming process fails, the initial connection information stored in the wireless STA is acquired, wherein the first wireless roaming process is a network switching process for switching from a first wireless access point AP to a second wireless AP, and the initial connection information is the connection information between the wireless STA and the first wireless AP.
It should be noted that the initial connection information may include: the basic service set identifies BSSID, connection Channel information Channel, Beacon Interval slot Beacon Interval, and delayed transmission indication message DTIM.
And S306, the wireless STA recovers the network connection with the first wireless AP according to the initial connection information.
After the initial connection information stored in the wireless STA is acquired, the wireless STA may recover the network connection with the first wireless AP according to the initial connection information. Specifically, the stored initial connection information of the first wireless AP may be recovered, and the information includes information of setting BSSID of the first wireless AP, switching channels, setting beacon interval, and the like.
S307, adding the second wireless AP to the roaming blacklist, and deleting the related cache information of the second wireless AP.
And after the wireless STA detects that the first wireless roaming process fails, the second wireless AP may be added to the roaming blacklist, and the relevant cache information of the second wireless AP may be deleted.
S308, rescanning the found wireless service, and determining a first wireless AP list.
S309, determining a third wireless AP according to the first wireless AP list and the roaming blacklist.
Then, the wireless service is rescanned and found, and a first wireless AP list is determined, wherein the first wireless AP list may include a plurality of connectable wireless APs. And then, determining a third wireless AP according to the first wireless AP list and the roaming blacklist, wherein the third wireless AP belongs to the first wireless AP list but does not belong to the roaming blacklist.
S310, if it is determined that the wireless station STA needs to perform wireless roaming, the wireless station STA detects a state of the second wireless roaming process.
And if the wireless station STA is determined to need to perform wireless roaming again, the wireless station STA detects the state of a second wireless roaming process, wherein the second wireless roaming process is a network switching process for switching from the first wireless AP to a third wireless AP.
S311, if the network switching is successful in the second wireless roaming process, clearing the roaming blacklist.
And S312, if the wireless STA detects that the second wireless roaming process fails, the wireless STA recovers the network connection with the first wireless AP according to the initial connection information.
S313, the wireless STA establishes network connection with the second wireless AP.
And if the wireless station STA detects that the network switching is successful in the first wireless roaming process, establishing network connection between the wireless station STA and the second wireless AP so as to complete wireless network roaming.
In this embodiment, in order to prevent the wireless AP which has failed to be switched before being reselected during the next roaming, the wireless AP which has failed to be switched is added to the roaming blacklist after the wireless roaming fails, the cache information related to the wireless AP which has failed to be switched is deleted, and the self state is switched to the normal data communication state. However, due to the reason that the wireless roaming fails, the current load of the wireless AP may be too high, and the load of the subsequent wireless AP may be switched, so that after the network switching is successful, the roaming blacklist may be cleared, so as to clear the wireless AP from the roaming blacklist, and thus the wireless STA may be switched to the wireless AP according to the requirement.
Fig. 5 is a block diagram of a wireless station shown in the present application according to an example embodiment. As shown in fig. 5, the wireless station 400 provided in this embodiment includes:
an obtaining module 401, configured to obtain initial connection information stored in a wireless station STA when the wireless station STA detects that a first wireless roaming process fails, where the first wireless roaming process is a network switching process of switching from a first wireless access point AP to a second wireless AP, and the initial connection information is connection information between the wireless station STA and the first wireless AP;
a processing module 402, configured to recover a network connection with the first wireless AP according to the initial connection information.
Based on the embodiment shown in fig. 5, fig. 6 is a schematic structural diagram of a wireless station shown in the present application according to another exemplary embodiment. As shown in fig. 6, the wireless station 400 further includes:
a sending module 403, configured to send a first data frame to the first wireless AP when it is determined that the wireless station STA needs to perform a wireless roaming process, where the first data frame includes a first identifier, and the first identifier is used to indicate that the wireless station STA enters a power saving mode;
the sending module 403 is further configured to send a second data frame to the first wireless AP after the wireless station STA detects that the first wireless roaming process fails, where the second data frame includes a second identifier, and the second identifier is used to indicate that the wireless station STA enters an active mode.
In one possible design, the wireless station 400 further includes:
a storage module 404, configured to store the initial connection information when it is determined that the wireless station STA needs to perform a wireless roaming process.
In one possible design, the initial connection information includes: a basic service set identification, connection channel information, beacon interval slots, and a delayed transmission indication message.
In one possible design, the processing module 402 is further configured to determine that the wireless station STA needs to perform a wireless roaming procedure when the signal strength of the first wireless AP meets a preset roaming condition.
In one possible design, the wireless station 400 further includes:
a receiving module 405, configured to receive a roaming indication message sent by the first wireless AP;
the processing module 402 is further configured to determine that the wireless station STA needs to perform a wireless roaming procedure.
In one possible design, the receiving module 405 is further configured to receive an association response, and when a status code in the association response is a connection error code, the first wireless roaming procedure fails.
In one possible design, the processing module 402 is further configured to add the second wireless AP to a roaming blacklist and delete the relevant cache information of the second wireless AP.
In one possible design, the wireless station 400 further includes:
a scanning module 406, configured to rescan the discovered wireless service and determine a first wireless AP list;
the processing module 402 is further configured to determine a third wireless AP according to the first wireless AP list and the roaming blacklist;
if it is determined that the wireless station STA needs to perform wireless roaming, the processing module is further configured to determine a state of a second wireless roaming process, where the second wireless roaming process is a network switching process of switching from the first wireless AP to the third wireless AP.
The present embodiment provides a wireless station, which can be used to perform the above method embodiments. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 7 is a block diagram of a wireless station shown in accordance with yet another exemplary embodiment. As shown in fig. 7, the wireless station 500 provided in this embodiment includes:
a processor 501; and the number of the first and second groups,
a memory 502 for storing executable instructions of the processor, which may also be a flash (flash memory);
wherein the processor 501 is configured to perform the steps of the above-described method via execution of the executable instructions. Reference may be made in particular to the description relating to the preceding method embodiment.
Alternatively, the memory 502 may be separate or integrated with the processor 501.
When the memory 502 is a device independent from the processor 501, the wireless station 500 may further include:
a bus 503 for connecting the processor 501 and the memory 502.
The present embodiment also provides a readable storage medium, in which a computer program is stored, and when at least one processor of the electronic device executes the computer program, the electronic device executes the methods provided by the above various embodiments.
The present embodiment also provides a program product comprising a computer program stored in a readable storage medium. The computer program can be read from a readable storage medium by at least one processor of the electronic device, and the execution of the computer program by the at least one processor causes the electronic device to implement the methods provided by the various embodiments described above.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (12)

1. A network connection method, comprising:
if a wireless station STA detects that a first wireless roaming process fails, acquiring initial connection information stored in the wireless STA, wherein the first wireless roaming process is a network switching process for switching from a first wireless access point AP to a second wireless AP, and the initial connection information is connection information between the wireless STA and the first wireless AP;
and the wireless STA recovers the network connection with the first wireless AP according to the initial connection information.
2. The method according to claim 1, wherein when it is determined that the wireless STA needs to perform the wireless roaming procedure, the wireless STA sends a first data frame to the first wireless AP, where the first data frame includes a first identifier, and the first identifier is used to indicate that the wireless STA enters the power saving mode;
correspondingly, after the wireless station STA detects that the first wireless roaming procedure fails, the method further includes:
the wireless STA sending a second data frame to the first wireless AP, the second data frame including a second identifier, the second identifier being used to indicate that the wireless STA enters an active mode.
3. The method of claim 1, wherein the wireless STA saves the initial connection information when it is determined that the wireless STA needs to perform a wireless roaming procedure.
4. The network connection method according to claim 3, wherein the initial connection information comprises: a basic service set identification, connection channel information, beacon interval slots, and a delayed transmission indication message.
5. The method according to any of claims 2-4, wherein if the wireless STA determines that the signal strength of the first wireless AP meets a preset roaming condition, it is determined that the wireless STA needs to perform a wireless roaming procedure; alternatively, the first and second electrodes may be,
and if the wireless STA receives the roaming indication message sent by the first wireless AP, determining that the wireless STA needs to perform a wireless roaming process.
6. The method according to any of claims 1-4, wherein if the wireless STA does not receive an association response after sending an association request to the second wireless AP, the first wireless roaming procedure fails; alternatively, the first and second electrodes may be,
and if the wireless STA receives an association response after sending the association request to the second wireless AP, and the state code in the association response is a connection error code, the first wireless roaming process fails.
7. The network connection method according to any of claims 1-4, further comprising, after the wireless STA resumes the network connection with the first wireless AP according to the initial connection information:
and adding the second wireless AP to a roaming blacklist, and deleting the related cache information of the second wireless AP.
8. The network connection method of claim 7, further comprising, after the adding the second wireless AP to a roaming blacklist:
rescanning the discovered wireless service, and determining a first wireless AP list;
determining a third wireless AP according to the first wireless AP list and the roaming blacklist;
and if the wireless station STA is determined to need to perform wireless roaming, the wireless station STA detects the state of a second wireless roaming process, wherein the second wireless roaming process is a network switching process for switching from the first wireless AP to the third wireless AP.
9. The network connection method according to claim 8, wherein if the network handover in the second wireless roaming procedure is successful, clearing the roaming blacklist;
and if the wireless STA detects that the second wireless roaming process fails, the wireless STA recovers the network connection with the first wireless AP according to the initial connection information.
10. A wireless station, comprising:
an obtaining module, configured to obtain initial connection information stored in a wireless station STA when the wireless station STA detects that a first wireless roaming process fails, where the first wireless roaming process is a network switching process of switching from a first wireless access point AP to a second wireless AP, and the initial connection information is connection information between the wireless station STA and the first wireless AP;
and the processing module is used for recovering the network connection with the first wireless AP according to the initial connection information.
11. A wireless station, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-9.
12. A computer-readable storage medium having computer instructions stored thereon for causing a computer to perform the method of any one of claims 1-9.
CN202010411868.6A 2020-05-15 2020-05-15 Network connection method, wireless station, and storage medium Active CN111565477B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010411868.6A CN111565477B (en) 2020-05-15 2020-05-15 Network connection method, wireless station, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010411868.6A CN111565477B (en) 2020-05-15 2020-05-15 Network connection method, wireless station, and storage medium

Publications (2)

Publication Number Publication Date
CN111565477A true CN111565477A (en) 2020-08-21
CN111565477B CN111565477B (en) 2022-07-05

Family

ID=72072167

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010411868.6A Active CN111565477B (en) 2020-05-15 2020-05-15 Network connection method, wireless station, and storage medium

Country Status (1)

Country Link
CN (1) CN111565477B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020085516A1 (en) * 2000-12-28 2002-07-04 Symbol Technologies, Inc. Automatic and seamless vertical roaming between wireless local area network (WLAN) and wireless wide area network (WWAN) while maintaining an active voice or streaming data connection: systems, methods and program products
US20060233128A1 (en) * 2005-04-15 2006-10-19 Kapil Sood Apparatus, system and method capable of pre-allocating and communicating IP address information during wireless communication
CN106131906A (en) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 The processing method of WiFi wireless roaming, device and mobile terminal
CN110418326A (en) * 2018-04-28 2019-11-05 华为技术有限公司 A kind of method of roaming switch, central control equipment and client

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020085516A1 (en) * 2000-12-28 2002-07-04 Symbol Technologies, Inc. Automatic and seamless vertical roaming between wireless local area network (WLAN) and wireless wide area network (WWAN) while maintaining an active voice or streaming data connection: systems, methods and program products
US20060233128A1 (en) * 2005-04-15 2006-10-19 Kapil Sood Apparatus, system and method capable of pre-allocating and communicating IP address information during wireless communication
CN106131906A (en) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 The processing method of WiFi wireless roaming, device and mobile terminal
CN110418326A (en) * 2018-04-28 2019-11-05 华为技术有限公司 A kind of method of roaming switch, central control equipment and client

Also Published As

Publication number Publication date
CN111565477B (en) 2022-07-05

Similar Documents

Publication Publication Date Title
EP3337245B1 (en) Method and apparatus for handling abnormality of network communication function and storage medium
CN102421130B (en) Multi-card multimode terminal as well as Inter-RAT cell reselection method and device
US20180206155A1 (en) Method and apparatus for performing communication by ue in wireless communication system supporting circuit switched fallback service
CN107306386B (en) Method for triggering terminal roaming by access point and access point
US20010016493A1 (en) Method and apparatus for idle handoff in a cellular system
CN105210426B (en) The method for the improved cell selection/reselection that the user equipment on wireless area by attempting to reside in public land mobile network carries out
EP2429229A1 (en) Method and apparatus for communicating neighbor cells
CN109429304B (en) Network connection method, device and user terminal
CN102577458A (en) Accommodating hybrid IPV4V6 network support
CN105517088A (en) Switching method and switching system for circuit switched fallback
CN112042226B (en) Base station switching method, equipment and storage medium
US9883453B2 (en) Method and apparatus for terminal to camp on cell, and mobile terminal
CN109362110B (en) Roaming switching method, equipment, network and storage medium
CN101370294A (en) Terminal cell switching method and communication terminal
US20070173244A1 (en) A Method For Establishing A Service Connection
CN101489269B (en) Method and system for switching exception handling
US20130084874A1 (en) Radio base station and method of controlling the same
CN110839258B (en) Condition switching method and device
US8934450B2 (en) Mobile station with a semi-active mode
CN113170372B (en) Cell connection processing method, device, mobile terminal and storage medium
CN111565477B (en) Network connection method, wireless station, and storage medium
CN105813224A (en) Communication device and wireless communication method with effciency
CN110493836B (en) MTC terminal cell switching control method and device
US6807413B1 (en) Mobile terminal communication system
CN106385698B (en) Mobile terminal cell switching control method and device

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
GR01 Patent grant
GR01 Patent grant