CN108337707B - Wireless network switching method, mobile terminal and storage medium - Google Patents

Wireless network switching method, mobile terminal and storage medium Download PDF

Info

Publication number
CN108337707B
CN108337707B CN201810341961.7A CN201810341961A CN108337707B CN 108337707 B CN108337707 B CN 108337707B CN 201810341961 A CN201810341961 A CN 201810341961A CN 108337707 B CN108337707 B CN 108337707B
Authority
CN
China
Prior art keywords
wireless network
mobile terminal
network
wireless
candidate
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.)
Active
Application number
CN201810341961.7A
Other languages
Chinese (zh)
Other versions
CN108337707A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810341961.7A priority Critical patent/CN108337707B/en
Publication of CN108337707A publication Critical patent/CN108337707A/en
Application granted granted Critical
Publication of CN108337707B publication Critical patent/CN108337707B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application is applicable to the technical field of wireless communication, and provides a switching method of a wireless network, a mobile terminal and a computer readable storage medium, wherein the switching method comprises the following steps: the method comprises the steps of obtaining the network state of a first wireless network, wherein the first wireless network is a wireless network to which a mobile terminal is currently connected, scanning a second wireless network if the network state of the first wireless network is incapable of surfing the Internet, taking the scanned second wireless network associated with the first wireless network as a candidate wireless network, taking the wireless network as a target wireless network if the candidate wireless network has a wireless network with a signal intensity value larger than a first preset value and a historical connection record of the mobile terminal meeting a preset condition, and controlling the mobile terminal to be switched from the first wireless network to the target wireless network.

Description

Wireless network switching method, mobile terminal and storage medium
Technical Field
The present application relates to the field of wireless communication technologies, and in particular, to a method for switching a wireless network, a mobile terminal, and a computer-readable storage medium.
Background
With the development of information technology, the application of mobile terminals is more and more extensive. The mobile terminal can be connected with a wireless network to surf the internet, and functions of shopping, consumption, information inquiry, video communication and the like are realized. Currently, the wireless lan is a mainstream wireless internet access method.
The wireless local area networks have a certain coverage range, the function of surfing the internet can be realized by connecting the wireless local area networks within the coverage range of the wireless local area networks, and once the mobile terminal leaves the coverage range of the wireless local area networks, the problem of poor signals or disconnection occurs, so that the mobile terminal needs to be switched to other wireless local area networks. However, other wireless local area networks to which the mobile terminal is currently switched often have the problems of poor internet access stability and poor user experience.
Disclosure of Invention
In view of this, embodiments of the present application provide a method for switching a wireless network, a mobile terminal, and a computer-readable storage medium, so as to solve the problem that the currently switched wireless network has poor internet access stability.
A first aspect of an embodiment of the present application provides a method for switching a wireless network, including:
acquiring a network state of a first wireless network, wherein the first wireless network is a wireless network to which a mobile terminal is currently connected;
if the network state of the first wireless network is that the first wireless network cannot be used for surfing the Internet, scanning a second wireless network, and taking the scanned second wireless network associated with the first wireless network as a candidate wireless network, wherein the second wireless network is a wireless network except the first wireless network;
determining whether a wireless network with a signal strength value larger than a first preset value and a historical connection record meeting preset conditions exists in the candidate wireless networks;
and if the signal intensity value of the candidate wireless network is greater than a first preset value and the wireless network with the historical connection record of the mobile terminal meeting the preset condition exists, taking the wireless network as a target wireless network and controlling the mobile terminal to be switched from the first wireless network to the target wireless network.
A second aspect of an embodiment of the present application provides a mobile terminal, including:
the mobile terminal comprises a network state acquisition module, a network state acquisition module and a network state acquisition module, wherein the network state acquisition module is used for acquiring the network state of a first wireless network, and the first wireless network is a wireless network to which the mobile terminal is currently connected;
the candidate wireless network confirming module is used for scanning a second wireless network if the network state of the first wireless network is that the internet cannot be accessed, and taking the scanned second wireless network associated with the first wireless network as a candidate wireless network, wherein the second wireless network is a wireless network except the first wireless network;
the condition confirmation module is used for determining whether a wireless network with a signal strength value larger than a first preset value and a historical connection record meeting preset conditions with the mobile terminal exists in the candidate wireless networks;
and the switching module is used for taking the wireless network as a target wireless network and controlling the mobile terminal to be switched from the first wireless network to the target wireless network if the signal intensity value in the candidate wireless networks is greater than a first preset value and the wireless network with the historical connection record of the mobile terminal meeting the preset condition exists.
A third aspect of an embodiment of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method provided in the first aspect of the embodiment of the present application when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium storing a computer program which, when executed by one or more processors, performs the steps of the method provided by the first aspect of embodiments of the present application.
A fifth aspect of embodiments of the present application provides a computer program product comprising a computer program that, when executed by one or more processors, performs the steps of the method provided by the first aspect of embodiments of the present application.
The method includes the steps that whether a currently connected wireless network can provide internet surfing services or not is determined, the currently connected wireless network is recorded as a first wireless network, if the currently connected wireless network cannot provide the internet surfing services, a second wireless network is scanned and is a wireless network except the first wireless network, the second wireless network related to the currently connected wireless network is screened out from the scanned second wireless network to serve as a candidate wireless network, then the candidate wireless network with the signal strength value larger than a first preset value and the historical connection record of the mobile terminal conforming to preset conditions is screened out from the candidate wireless network to serve as a target wireless network, the mobile terminal is controlled to be switched to the target wireless network from the currently connected wireless network, and the target wireless network is a wireless network which is screened for multiple times from the wireless networks scanned for the mobile terminal and can provide stable internet surfing services and serves as the target wireless network And the target wireless network, therefore, the mobile terminal can enjoy stable internet access service after being switched to the target wireless network.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic implementation flow diagram of a handover method of a wireless network according to an embodiment of the present application;
fig. 2 is a schematic implementation flow diagram of another handover method for a wireless network according to an embodiment of the present application;
fig. 3 is a schematic block diagram of a mobile terminal according to an embodiment of the present application;
fig. 4 is a schematic block diagram of another mobile terminal provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Fig. 1 is a schematic implementation flow diagram of a handover method of a wireless network according to an embodiment of the present application, and as shown in the figure, the method may include the following steps:
step S101, acquiring a network state of a first wireless network, wherein the first wireless network is a wireless network to which the mobile terminal is currently connected.
In this embodiment of the application, the first wireless network is a wireless network to which the mobile terminal is currently connected, and the wireless network may be an internet access mode provided by no connection of a wired line, for example, a wireless local area network, a GPRS mobile phone, and the like. Taking a Wireless local area network as an example, when a mobile terminal is successfully connected to a Wireless network, the mobile terminal is accessed to any one Wireless Access Point (AP), and the AP is also referred to as a Wireless hotspot. Since wireless networks have a certain coverage, a mobile terminal may be successfully connected to the wireless network within the coverage of the wireless network, and when the mobile terminal is not within the coverage of the wireless network, the mobile terminal may not be successfully connected to the wireless network due to weak signal strength.
The method includes that after the mobile terminal is successfully connected to the wireless network, the network state of the first wireless network which is currently connected is acquired, the network state of the first wireless network which is currently connected can be acquired once after the mobile terminal is successfully connected to the wireless network, and the network state of the first wireless network which is currently connected can be acquired at a preset time interval after the mobile terminal is successfully connected to the wireless network.
The network state of the wireless network includes: the wireless network can provide internet access service for the mobile terminal connected with the wireless network if the network state of the wireless network is internet access available; if the network state of the wireless network is that the wireless network cannot surf the internet, the wireless network cannot provide internet surfing service for the mobile terminal connected with the wireless network. In a specific application, the network state of the currently connected first wireless network may also be determined by obtaining the network speed of the currently connected first wireless network, which is not limited herein.
For example, if the network speed of the currently connected first wireless network is greater than or equal to the speed threshold, it is determined that the network state of the currently connected first wireless network is internet-enabled;
and if the network speed of the first wireless network connected currently is less than the speed threshold, determining that the network state of the first wireless network connected currently is internet-surfing incapable.
Step S102, if the network state of the first wireless network is that the network cannot be accessed, scanning a second wireless network, and taking the scanned second wireless network associated with the first wireless network as a candidate wireless network, wherein the second wireless network is a wireless network except the first wireless network.
In the embodiment of the present application, the mobile terminal may be capable of scanning multiple wireless networks at the same time in one geographic location, for example, simultaneously scanning wireless hotspot a, wireless hotspot B, wireless hotspot C, and the like. Although the mobile terminal may scan multiple wireless hotspots at the same time in one geographic location, the mobile terminal is not switched to any one of the scanned second wireless networks at any time, and when the network state of the currently connected first wireless network is that internet access cannot be performed, that is, the currently connected first wireless network cannot provide internet access service for the mobile terminal, switching to the second wireless network may be considered, and the second wireless network needs to be scanned at this time, where the second wireless network is a wireless network other than the currently connected first wireless network. The second wireless network associated with the first wireless network is prioritized in considering handover to the second wireless network.
The second wireless network associated with the first wireless network may be a second wireless network associated with the first wireless network that is preset by the user, for example, the wireless network a to which the mobile terminal is currently connected, the first wireless network is wireless network a, the wireless network to which the user has preset wireless network a is wireless network B, wireless network C, wireless network G, and the like, and the currently scanned wireless networks include: wireless network A, wireless network B, wireless network C, wireless network D and wireless network E. The second wireless network is: wireless network A, wireless network B, wireless network C, wireless network D and wireless network E. Then, the second wireless network associated with the first wireless network scanned is: wireless network B, wireless network C. Wireless network B, wireless network C may be considered candidate wireless networks. It can be seen that the conditions of the candidate wireless network are: is currently capable of being scanned for and associated with a currently connected first wireless network.
The second wireless network associated with the first wireless network may be further configured to: the wireless network which has been historically connected to the mobile terminal to be a failed wireless network, or the wireless network which has been historically connected successfully and successfully surfs the internet can be used as the second wireless network associated with the wireless network A. Of course, the conditions of the candidate wireless networks are still: is currently capable of being scanned for and associated with a currently connected first wireless network.
In practical applications, the second wireless network associated with the first wireless network may also be configured in other manners, for example, the second wireless network associated with the first wireless network is preset to be a wireless network capable of implementing seamless roaming, and for the seamless roaming, reference may be specifically made to the example in the embodiment shown in fig. 2.
Step S103, determining whether the signal intensity value existing in the candidate wireless networks is larger than a first preset value, and determining whether the wireless networks meet preset conditions with the historical connection records of the mobile terminal.
In this embodiment of the present application, a change in a distance between a mobile terminal and a transmitting end of a wireless access point may cause a change in a Signal Strength value (RSSI) of a wireless network to which the mobile terminal is connected, where the RSSI is represented by the Signal Strength value.
It should be noted that the signal strength value does not refer to a signal strength value of a wireless network transmitting end, but refers to a signal strength value of the wireless network received by the mobile terminal, and a change in a distance between the mobile terminal and a currently connected wireless network may cause a change in a signal strength value of the wireless network received by the mobile terminal.
The reason for determining whether the wireless network with the signal strength value larger than the first preset value exists in the candidate wireless networks is that the wireless network can possibly establish connection with the mobile terminal only under the condition that the signal strength value of the wireless network is larger than a certain value, and the wireless network can provide stable internet access service for the mobile terminal.
Whether a wireless network which meets the preset conditions with the historical connection record of the mobile terminal exists in the candidate wireless networks is determined so as to further screen out a wireless network which can provide stable internet access service from the historical connection record.
As another embodiment of the present application, the determining whether there is a wireless network in the candidate wireless networks, where a signal strength value is greater than a first preset value, and a historical connection record with the mobile terminal meets a preset condition includes:
and determining whether a wireless network with a signal strength value larger than a first preset value and a historical connection frequency of 0 with the mobile terminal exists in the candidate wireless networks.
In this embodiment of the application, the preset condition is related to a historical connection record, the historical connection record is a historical connection record between the mobile terminal and the candidate wireless network, and a wireless network whose historical connection frequency with the mobile terminal is 0 may also be understood as whether the historical record of the mobile terminal initiating the connection request to the candidate wireless network is 0, and if the historical record of the mobile terminal initiating the connection request to the candidate wireless network is 0, it indicates that the candidate wireless network is not a wireless network to which the mobile terminal has been historically connected, that is, the mobile terminal may be able to successfully connect to the candidate wireless network and successfully surf the internet through the candidate wireless network.
As another embodiment of the present application, the determining whether there is a wireless network in the candidate wireless networks, where a signal strength value is greater than a first preset value, and a historical connection record with the mobile terminal meets a preset condition includes:
and determining whether a wireless network exists in the candidate wireless networks, wherein the signal intensity value is greater than a first preset value, the historical connection times with the mobile terminal are not 0, and the network state is a wireless network capable of surfing the internet in the historical connection process with the mobile terminal.
In this embodiment of the application, if the number of times of historical connection with the mobile terminal is not 0, indicating that the candidate wireless network is a wireless network that the mobile terminal has historically connected to, indicating that the mobile terminal is also likely to be successfully connected to the candidate wireless network at present, it is necessary to further confirm a network state of the candidate wireless network in the process of historical connection between the mobile terminal and the candidate wireless network, and if the network state is internet-enabled, indicating that the candidate wireless network meets a preset condition, and if the network state is internet-disabled, even if the connection is successful, a problem of internet-disabled may occur, so indicating that the candidate wireless network does not meet the preset condition.
And step S104, if the signal intensity value of the candidate wireless network is greater than a first preset value and the wireless network with the historical connection record of the mobile terminal meeting the preset conditions exists, taking the wireless network as a target wireless network and controlling the mobile terminal to be switched from the first wireless network to the target wireless network.
In the embodiment of the present application, if there exists a wireless network in the candidate wireless networks, where the signal strength value is greater than the first preset value and the historical connection record of the mobile terminal meets the preset condition, the candidate wireless network, where the signal strength value is greater than the first preset value and the historical connection record of the mobile terminal meets the preset condition, may be taken as the target wireless network. The second wireless network associated with the first wireless network is a wireless network that can ensure free handoff between the first wireless network and the second wireless network, and can log in without authentication.
It can be seen from the above description that, a part of wireless networks which may be successfully connected and may provide internet access service after successful connection are screened out from the scanned wireless networks as candidate wireless networks, then a part of wireless networks which have a higher probability of successful connection and a higher probability of providing stable internet access service after successful connection are further screened out from the candidate wireless networks as target wireless networks, and finally the mobile terminal is controlled to be switched from the currently connected wireless network to the target wireless network.
Fig. 2 is a flowchart illustrating another handover method for a wireless network according to an embodiment of the present application, where as shown in the figure, the method may include the following steps:
step S201, a network state of a first wireless network is obtained, where the first wireless network is a wireless network to which the mobile terminal is currently connected.
In this embodiment of the present application, the acquiring a network status of a first wireless network includes:
accessing a preset server through the first wireless network, and acquiring an access result;
if the access result is successful, confirming that the network state of the first wireless network is internet-enabled;
and if the access result is access failure, determining that the network state of the first wireless network is internet-unavailable.
In the embodiment of the present application, not only the network status of the first wireless network may be obtained in the manner shown in the embodiment shown in fig. 1, but also the preset server may be accessed through the first wireless network, and the network status of the first wireless network is confirmed according to the access result, for example, a preset website is accessed through the first wireless network, and the access result of this time is obtained.
Step S202, if the network status of the first wireless network is internet-enabled, acquiring a signal strength value of the first wireless network.
In the embodiment of the present application, different from the embodiment shown in fig. 1, when a first wireless network currently connected in the embodiment shown in fig. 1 cannot provide an internet access service, it needs to switch to another wireless network meeting requirements, that is, a second wireless network meeting the requirements. In the embodiment of the application, when the currently connected first wireless network can provide the internet access service, however, the signal of the currently connected first wireless network is too weak, and there is a problem that the internet access is unstable, that is, the access result of successful access is returned by accessing the preset server, however, the result of failed access may occur when accessing other servers. Therefore, it is further required to determine whether the signal strength value of the currently connected first wireless network is smaller than the second preset value. If the signal intensity value of the currently connected first wireless network is smaller than a second preset value, switching to other second wireless networks meeting the requirements can be considered.
Step S203, if the signal strength value of the first wireless network is smaller than a second preset value, scanning a second wireless network, and using the scanned second wireless network associated with the first wireless network as a candidate wireless network.
In the embodiment of the present application, a second wireless network associated with a currently connected first wireless network may also be set, for example, in the setting of seamless roaming of multiple Wifi wireless routers, when an office area of a company is large, a wireless network provided by one wireless router cannot cover the whole office area, at this time, multiple wireless routers may be set to implement full coverage of the office area, and if multiple independent wireless routers are used, in order to implement seamless handover, SSIDs, encryption modes, and passwords of the multiple wireless routers need to be set to be the same, so as to implement seamless roaming. Seamless roaming ensures that the currently processed service is not interrupted when a user switches from a wireless network provided by one wireless router to a wireless network provided by another wireless router, which is important when office personnel are active in the office area. Of course, to achieve seamless roaming also needs to satisfy:
1) the names (SSID) of the wireless access points are the same;
2) the addresses allocated by the wireless access points must belong to the same network segment and the same virtual local area network;
3) the wireless access point must adopt the same internet access template;
4) the wireless access points, whose signals cover each other, must use different channels.
Signals among the wireless access points must cover each other, otherwise, a blind area which can not be accessed to the internet occurs. The distance between the wireless access points should therefore be lower than the coverage area of the wireless access points. Thus, when the signal of the currently connected wireless access point is degraded, the wireless access point can roam to a wireless access point with better signal.
Through the above description of seamless roaming, it can be known that the using the scanned second wireless network associated with the currently connected first wireless network as a candidate wireless network includes:
and taking the scanned second wireless network with the same name and password as the first wireless network as a candidate wireless network.
Step S204, determining whether a wireless network exists in the candidate wireless networks, wherein the signal intensity value is greater than a first preset value, and the historical connection record of the wireless network and the mobile terminal meets preset conditions.
Step S205, if there is a wireless network in the candidate wireless networks, where the signal strength value is greater than a first preset value, and the historical connection record of the wireless network with the mobile terminal meets a preset condition, taking the wireless network as a target wireless network, and controlling the mobile terminal to switch from the first wireless network to the target wireless network.
In the embodiment of the present application, the first preset value and the second preset value may be equal or unequal. The number of the target wireless networks may be 1, if the number of the target wireless networks is 1, the mobile terminal may be controlled to be switched from the currently connected first wireless network to the target wireless network, and if the number of the target wireless networks is at least two, one of the target wireless networks needs to be selected, and the mobile terminal is controlled to be switched from the currently connected first wireless network to the selected target wireless network.
As another embodiment of the present application, the controlling the mobile terminal to switch from the first wireless network to the target wireless network includes:
determining the priority of the target wireless network according to the signal strength value of the target wireless network and whether the target wireless network is a wireless network which is historically connected with the mobile terminal;
and controlling the mobile terminal to be switched to a target wireless network with the highest priority from the first wireless network.
In this embodiment of the present application, weight values may be set for two conditions, namely, a signal strength value of a target wireless network and whether the mobile terminal has historically connected to the wireless network, respectively, then a priority of the target wireless network is determined according to the two conditions and the weight values corresponding to the two conditions, and then the mobile terminal is controlled to be switched from a first wireless network currently connected to the target wireless network with the highest priority.
By way of example, the signal strength value is divided into several ranges, where a corresponds to a value in range 1, b corresponds to a value in range 2, c corresponds to a value in range 3, and the weight of the signal strength value is k 1; the value corresponding to the wireless network which is historically connected to the mobile terminal is 1, the value corresponding to the wireless network which is not historically connected to the mobile terminal is 0.5, and the weight corresponding to whether the wireless network which is historically connected to the mobile terminal is k 2. Assuming that the range corresponding to the signal strength value of a target wireless network is range 2, the corresponding value is b, the target wireless network is a wireless network which is historically connected to the mobile terminal, the priority score corresponding to the target wireless network can be obtained as b k1+1 k2, and after the priority scores of all the target wireless networks are calculated, the mobile terminal is controlled to be switched from the first wireless network which is currently connected to the target wireless network with the highest priority score.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 3 is a schematic block diagram of a mobile terminal according to an embodiment of the present application, and only a portion related to the embodiment of the present application is shown for convenience of description.
The mobile terminal 3 may be a software unit, a hardware unit or a combination of software and hardware unit built in a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, etc., or may be integrated into a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, etc., as an independent pendant.
The mobile terminal 3 includes:
a network status acquiring module 31, configured to acquire a network status of a first wireless network, where the first wireless network is a wireless network to which a mobile terminal is currently connected;
a candidate wireless network confirming module 32, configured to scan a second wireless network if the network status of the first wireless network is that internet access is unavailable, and take the scanned second wireless network associated with the first wireless network as a candidate wireless network, where the second wireless network is a wireless network other than the first wireless network;
the condition confirming module 33 is configured to determine whether a wireless network exists in the candidate wireless networks, where a signal strength value is greater than a first preset value and a historical connection record of the wireless network and the mobile terminal meets a preset condition;
and a switching module 34, configured to, if there is a wireless network in the candidate wireless networks, where the signal strength value is greater than a first preset value, and the historical connection record of the wireless network with the mobile terminal meets a preset condition, use the wireless network as a target wireless network, and control the mobile terminal to switch from the first wireless network to the target wireless network.
Optionally, the mobile terminal 3 further includes:
a signal strength obtaining module 35, configured to obtain a signal strength value of a first wireless network after obtaining a network state of the first wireless network, if the network state of the first wireless network is internet-enabled;
the candidate wireless network confirming module 32 is further configured to scan a second wireless network if the signal strength value of the first wireless network is smaller than a second preset value, and take the scanned second wireless network associated with the first wireless network as a candidate wireless network;
the condition determining module 33 is further configured to determine whether there is a wireless network in the candidate wireless network, where the signal strength value is greater than a first preset value and a historical connection record of the wireless network and the mobile terminal meets a preset condition
The switching module 34 is further configured to, if there is a wireless network in the candidate wireless networks, where the signal strength value is greater than a first preset value, and the historical connection record of the wireless network with the mobile terminal meets a preset condition, use the wireless network as a target wireless network, and control the mobile terminal to switch from the first wireless network to the target wireless network.
Optionally, the network status obtaining module 31 is further configured to:
accessing a preset server through the first wireless network, and acquiring an access result;
if the access result is successful, confirming that the network state of the first wireless network is internet-enabled;
and if the access result is access failure, determining that the network state of the first wireless network is internet-unavailable.
Optionally, the candidate wireless network confirmation module 32 is further configured to:
and taking the scanned second wireless network with the same name and password as the first wireless network as a candidate wireless network.
Optionally, the condition confirmation module 33 is further configured to:
and determining whether a wireless network with a signal strength value larger than a first preset value and a historical connection frequency of 0 with the mobile terminal exists in the candidate wireless networks.
Optionally, the condition confirmation module 33 is further configured to:
and determining whether a wireless network exists in the candidate wireless networks, wherein the signal intensity value is greater than a first preset value, the historical connection times with the mobile terminal are not 0, and the network state is a wireless network capable of surfing the internet in the historical connection process with the mobile terminal.
Optionally, the switching module 34 includes:
a priority determining unit 341, configured to determine a priority of the target wireless network according to the signal strength value of the target wireless network and whether the target wireless network is a wireless network to which the mobile terminal has been historically connected;
a switching unit 342, configured to control the mobile terminal to switch from the first wireless network to a target wireless network with a highest priority.
It will be apparent to those skilled in the art that, for convenience and simplicity of description, the foregoing functional units and modules are merely illustrated in terms of division, and in practical applications, the foregoing functional allocation may be performed by different functional units and modules as needed, that is, the internal structure of the mobile terminal is divided into different functional units or modules to perform all or part of the above described functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the above-mentioned apparatus may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Fig. 4 is a schematic block diagram of a mobile terminal according to another embodiment of the present application. As shown in fig. 4, the mobile terminal 4 of this embodiment includes: one or more processors 40, a memory 41, and a computer program 42 stored in the memory 41 and executable on the processors 40. The processor 40 executes the computer program 42 to implement the steps in the above-mentioned embodiments of the handover method for each wireless network, such as the steps S101 to S104 shown in fig. 1. Alternatively, the processor 40, when executing the computer program 42, implements the functions of the modules/units in the above-described mobile terminal embodiments, such as the functions of the modules 31 to 34 shown in fig. 3.
Illustratively, the computer program 42 may be partitioned into one or more modules/units that are stored in the memory 41 and executed by the processor 40 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 42 in the mobile terminal 4. For example, the computer program 42 may be divided into a network status acquisition module, a candidate wireless network confirmation module, a condition confirmation module, a handover module.
The network state acquisition module is used for acquiring the network state of a first wireless network, wherein the first wireless network is a wireless network to which the mobile terminal is currently connected;
the candidate wireless network confirming module is used for scanning a second wireless network if the network state of the first wireless network is that internet surfing cannot be performed, and taking the scanned second wireless network associated with the first wireless network as a candidate wireless network, wherein the second wireless network is a wireless network except the first wireless network;
the condition confirmation module is used for determining whether a wireless network exists in the candidate wireless networks, wherein the signal intensity value of the wireless network is greater than a first preset value, and the historical connection record of the wireless network and the mobile terminal meets preset conditions;
and the switching module is used for taking the wireless network as a target wireless network and controlling the mobile terminal to be switched from the first wireless network to the target wireless network if the signal intensity value in the candidate wireless networks is greater than a first preset value and the wireless network with the historical connection record of the mobile terminal meeting the preset condition exists.
Other modules or units can refer to the description of the embodiment shown in fig. 3, and are not described again here.
The mobile terminal includes, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is only one example of a mobile terminal 4 and is not intended to limit the mobile terminal 4 and may include more or fewer components than shown, or some components may be combined, or different components, for example, the mobile terminal may also include input devices, output devices, network access devices, buses, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the mobile terminal 4, such as a hard disk or a memory of the mobile terminal 4. The memory 41 may also be an external storage device of the mobile terminal 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the mobile terminal 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the mobile terminal 4. The memory 41 is used for storing the computer program and other programs and data required by the mobile terminal. The memory 41 may also be used to temporarily store data that has been output or is to be output.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed mobile terminal and method may be implemented in other ways. For example, the above-described embodiments of the mobile terminal are merely illustrative, and for example, the division of the modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (7)

1. A method for handover of a wireless network, comprising:
acquiring a network state of a first wireless network, wherein the first wireless network is a wireless network to which a mobile terminal is currently connected;
if the network state of the first wireless network is that the Internet cannot be accessed, scanning a second wireless network, and taking the scanned second wireless network with the same name and password as those of the first wireless network as a candidate wireless network; the second wireless network is a wireless network other than the first wireless network;
determining whether a wireless network with a signal strength value larger than a first preset value and a historical connection record meeting preset conditions exists in the candidate wireless networks;
if the signal intensity value of the candidate wireless network is larger than a first preset value and the wireless network with the historical connection record of the mobile terminal meeting the preset condition exists, taking the wireless network as a target wireless network and controlling the mobile terminal to be switched from the first wireless network to the target wireless network;
the step of determining whether a wireless network exists in the candidate wireless networks, wherein the wireless network has a signal strength value greater than a first preset value and a historical connection record with the mobile terminal meets a preset condition, comprises:
determining whether a wireless network with a signal strength value larger than a first preset value and a historical connection frequency of 0 with the mobile terminal exists in the candidate wireless networks; or, determining whether a wireless network exists in the candidate wireless networks, wherein the signal strength value is greater than a first preset value, the historical connection times with the mobile terminal are not 0, and the network state is a wireless network capable of surfing the internet in the historical connection process with the mobile terminal.
2. The method for handing over a wireless network as claimed in claim 1, further comprising, after acquiring the network status of the first wireless network:
if the network state of the first wireless network is the network access available state, acquiring a signal intensity value of the first wireless network;
if the signal intensity value of the first wireless network is smaller than a second preset value, scanning a second wireless network, and taking the scanned second wireless network associated with the first wireless network as a candidate wireless network;
determining whether a wireless network with a signal strength value larger than a first preset value and a historical connection record meeting preset conditions exists in the candidate wireless networks;
and if the signal intensity value of the candidate wireless network is greater than a first preset value and the wireless network with the historical connection record of the mobile terminal meeting the preset condition exists, taking the wireless network as a target wireless network and controlling the mobile terminal to be switched from the first wireless network to the target wireless network.
3. The method of handover of a wireless network of claim 1, wherein the obtaining the network status of the first wireless network comprises:
accessing a preset server through the first wireless network, and acquiring an access result;
if the access result is successful, confirming that the network state of the first wireless network is internet-enabled;
and if the access result is access failure, determining that the network state of the first wireless network is internet-unavailable.
4. The method of claim 1, wherein the controlling the handover of the mobile terminal from the first wireless network to the target wireless network comprises:
determining the priority of the target wireless network according to the signal strength value of the target wireless network and whether the target wireless network is a wireless network which is historically connected with the mobile terminal;
and controlling the mobile terminal to be switched from the first wireless network to a target wireless network with the highest priority.
5. A mobile terminal, comprising:
the mobile terminal comprises a network state acquisition module, a network state acquisition module and a network state acquisition module, wherein the network state acquisition module is used for acquiring the network state of a first wireless network, and the first wireless network is a wireless network to which the mobile terminal is currently connected;
the candidate wireless network confirming module is used for scanning a second wireless network if the network state of the first wireless network is that the internet cannot be accessed, and taking the scanned second wireless network with the same name and password as the first wireless network as a candidate wireless network; the second wireless network is a wireless network other than the first wireless network;
the condition confirmation module is used for determining whether a wireless network with a signal strength value larger than a first preset value and a historical connection record meeting preset conditions with the mobile terminal exists in the candidate wireless networks;
the switching module is used for taking the wireless network as a target wireless network and controlling the mobile terminal to be switched from the first wireless network to the target wireless network if the signal intensity value of the candidate wireless network is larger than a first preset value and the wireless network with the historical connection record of the mobile terminal meeting preset conditions exists;
the step of determining whether a wireless network exists in the candidate wireless networks, wherein the wireless network has a signal strength value greater than a first preset value and a historical connection record with the mobile terminal meets a preset condition, comprises:
determining whether a wireless network with a signal strength value larger than a first preset value and a historical connection frequency of 0 with the mobile terminal exists in the candidate wireless networks; or, determining whether a wireless network exists in the candidate wireless networks, wherein the signal strength value is greater than a first preset value, the historical connection times with the mobile terminal are not 0, and the network state is a wireless network capable of surfing the internet in the historical connection process with the mobile terminal.
6. A mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by one or more processors, implements the steps of the method according to any one of claims 1 to 4.
CN201810341961.7A 2018-04-17 2018-04-17 Wireless network switching method, mobile terminal and storage medium Active CN108337707B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810341961.7A CN108337707B (en) 2018-04-17 2018-04-17 Wireless network switching method, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810341961.7A CN108337707B (en) 2018-04-17 2018-04-17 Wireless network switching method, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN108337707A CN108337707A (en) 2018-07-27
CN108337707B true CN108337707B (en) 2020-10-02

Family

ID=62934216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810341961.7A Active CN108337707B (en) 2018-04-17 2018-04-17 Wireless network switching method, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN108337707B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120524B (en) 2018-08-23 2020-12-08 Oppo广东移动通信有限公司 Link aggregation method and related equipment
CN109379766A (en) * 2018-11-27 2019-02-22 青岛海信宽带多媒体技术有限公司 A kind of method and device switching WiFi network
CN111343674B (en) * 2018-12-18 2022-05-31 美的集团股份有限公司 Multi-frequency band switching method and device of wireless network
CN109451547B (en) * 2018-12-21 2021-06-29 展讯通信(上海)有限公司 Wireless roaming method and device, storage medium and access point equipment
CN110248391A (en) * 2019-06-17 2019-09-17 Oppo广东移动通信有限公司 A kind of method for network access, access point apparatus and computer readable storage medium
CN110602707A (en) * 2019-09-05 2019-12-20 青岛海信移动通信技术股份有限公司 Method and terminal for connecting wireless network
CN111031584A (en) * 2019-12-09 2020-04-17 西安锐驰电器有限公司 Method for improving network speed
CN113068229A (en) * 2019-12-16 2021-07-02 青岛海信移动通信技术股份有限公司 Communication terminal and wireless network switching method
CN113055961A (en) * 2019-12-30 2021-06-29 深圳市优克联新技术有限公司 Wireless network connection method, device, router and storage medium
CN114585036A (en) * 2022-03-14 2022-06-03 联想(北京)有限公司 Control method and device and electronic equipment
CN116390189B (en) * 2023-06-05 2023-08-15 微网优联科技(成都)有限公司 Route planning method, device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9521614B2 (en) * 2013-09-23 2016-12-13 Texas Instruments Incorporated Power efficient method for Wi-Fi home automation

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7515909B2 (en) * 2005-04-21 2009-04-07 Qualcomm Incorporated Wireless handoffs between multiple networks
CN101754300A (en) * 2008-11-28 2010-06-23 英业达股份有限公司 Wireless signal switching method
WO2014006792A1 (en) * 2012-07-02 2014-01-09 パナソニック株式会社 Wireless communication device
US9826464B2 (en) * 2013-03-26 2017-11-21 Bandwidthx Inc. Systems and methods for establishing wireless connections based on access conditions
CN104980975B (en) * 2015-06-25 2019-03-22 西安理工大学 A kind of wifi switching method of mobile terminal
CN106921974A (en) * 2015-12-24 2017-07-04 北京奇虎科技有限公司 WIFI switching method and apparatus, system
US10200945B2 (en) * 2016-04-22 2019-02-05 Veniam, Inc. Systems and methods for managing mobility of users in a network of moving things at the edge
CN106454976B (en) * 2016-10-08 2019-11-22 Oppo广东移动通信有限公司 A kind of switching method of wireless network, device and terminal
CN106714181B (en) * 2016-12-07 2020-05-26 Oppo广东移动通信有限公司 Method and device for connecting WiFi hotspot
CN107708141B (en) * 2017-11-27 2020-01-10 Oppo广东移动通信有限公司 Wireless network scanning method, mobile terminal and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9521614B2 (en) * 2013-09-23 2016-12-13 Texas Instruments Incorporated Power efficient method for Wi-Fi home automation

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"Dynamic Dwell Timer for Vertical Handover in VLC-WLAN Heterogeneous Networks";Ruiqi Liu;《2017 13th International Wireless Communications and Mobile Computing Conference》;20170720;全文 *
"Optimized Access Point Selection with Mobility Network";Khong-Lim Yap and Yung-Wey Chong;《2017 Ninth International Conference on Ubiquitous and Future Networks》;20170727;全文 *
3G与WLAN及其相互融合网络的接入认证机制研究;刘光强;《计算机应用研究》;20091115;全文 *

Also Published As

Publication number Publication date
CN108337707A (en) 2018-07-27

Similar Documents

Publication Publication Date Title
CN108337707B (en) Wireless network switching method, mobile terminal and storage medium
US20200084780A1 (en) Method of Operating a User Equipment to Connect to a Radio Access Network
EP3108694B1 (en) Traffic steering between wlan and cellular networks
US20160066227A1 (en) Access point selection in a wireless network
CN109041140B (en) Method for rapidly switching wireless network, intelligent hardware and terminal equipment
US10716043B2 (en) Access point handover method and device
CN111221484B (en) Screen projection method and device
CN111417111A (en) Data processing method and network equipment
CN106413047A (en) Method and device for enabling intelligent device to be accessed to wireless network
EP3541035B1 (en) Method and device for selecting channel
CN114423057B (en) Channel switching method, device, AP equipment and storage medium
KR101460766B1 (en) Security setting system and the control method for using clurster function in Wireless network system
CN112806073A (en) Communication processing method, communication processing device, mobile terminal and storage medium
CN111263434B (en) Network registration method, device, terminal and storage medium
CN107708141B (en) Wireless network scanning method, mobile terminal and storage medium
EP3114887B1 (en) Determination method and corresponding terminal, computer program product and storage medium
CN110461023B (en) Cell residence method and device for voice service, storage medium and main base station
CN106028323B (en) network access method, terminal and access point
CN108337706B (en) Wireless network switching method, mobile terminal and storage medium
CN111970750A (en) Multi-frequency WiFi identification method and device
CN114390667A (en) Network registration method
US20160323744A1 (en) Authentication and association method and system
CN112351461A (en) WiFi network switching method, device, terminal and storage medium
CN106792952A (en) The method and apparatus of Wireless Fidelity access point are connected to for terminal
CN102387537B (en) Wireless network system and wireless access points thereof

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