Movatterモバイル変換


[0]ホーム

URL:


CN109379766A - A kind of method and device switching WiFi network - Google Patents

A kind of method and device switching WiFi network
Download PDF

Info

Publication number
CN109379766A
CN109379766ACN201811426393.7ACN201811426393ACN109379766ACN 109379766 ACN109379766 ACN 109379766ACN 201811426393 ACN201811426393 ACN 201811426393ACN 109379766 ACN109379766 ACN 109379766A
Authority
CN
China
Prior art keywords
network
wifi
wifi network
networks
evaluation value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811426393.7A
Other languages
Chinese (zh)
Inventor
赵伟
黄慷明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Broadband Multimedia Technology Co Ltd
Original Assignee
Hisense Broadband Multimedia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Broadband Multimedia Technology Co LtdfiledCriticalHisense Broadband Multimedia Technology Co Ltd
Priority to CN201811426393.7ApriorityCriticalpatent/CN109379766A/en
Publication of CN109379766ApublicationCriticalpatent/CN109379766A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The present invention relates to computer technology, in particular to a kind of method and device for switching WiFi network, to realize the seamless switching of WIFI network.This method are as follows: terminal is after accessing the first WiFi network, WiFi network in peripheral extent with access right can be recorded as to be switched WiFi network set, and when determining that the first WiFi does not meet use demand, based on the network evaluation value of each WiFi in above-mentioned to be switched WiFi network set, selects second WiFi network of the network state assessed value not less than the switching threshold of setting and switch over.In this way, it is indicated without user, terminal can pass through the working condition of each WiFi network of monitoring, it is chosen rapidly in proper moment and accesses the optimal WiFi network of current working status, to shorten switching duration to the full extent, the seamless switching between WiFi network is realized, and then has ensured the service quality for the application service that user uses, effectively improves user experience.

Description

Method and device for switching WiFi network
Technical Field
The present invention relates to computer technologies, and in particular, to a method and an apparatus for switching a WiFi network.
Background
In recent years, with the rapid development of information technology, users' demands for network communication have been increasing, and it is desired to communicate with anyone in a variety of content forms including data, voice, image, and the like, anywhere and anytime. And accessing the Internet through a Wireless Fidelity (WiFi) network can provide various application services, such as online video, games, chatting, etc., to users as required.
For these application services, a continuous and stable network access becomes a necessary implementation condition. However, due to the limited coverage energy of a WiFi network Access Point (also called hotspot), usually only a few tens of square meters, the support for user mobility is very limited.
Specifically, in a typical wlan architecture, the terminal and the service end of the WiFi network (i.e. WiFi hotspot) are separated. A terminal is a transmitting and receiving device of information, and in a wired network, the position of the terminal is generally fixed, but in a wireless network, the position of the terminal may change frequently, that is, the terminal has mobility.
Under the prior art, when a terminal is connected to a WiFi network for the first time, if the terminal is connected for the first time, a user is prompted to input an access password, and after the access password is input correctly, the terminal can acquire an IP address and is connected to the WiFi network. The terminal can automatically store the access password input by the user, and when the subsequent terminal accesses the coverage range of the WiFi network again, the terminal automatically accesses the corresponding WiFi network without active operation of the user.
However, the signal coverage of the WiFi network is limited by the area, which is usually a circular shape with the WiFi network as the center, and the strength of the signal determines the size of the radius of the circular shape. The closer the terminal is to the center of the circle, the better the signal strength. In some areas where the area is relatively large, for example: in large areas such as offices, shopping malls, etc., coverage of wireless signals can be accomplished by deploying multiple WiFi networks.
Since the location of the terminal in the Wifi network is not fixed, the signal strength may become weak when the terminal happens to be located at the coverage edge of the currently connected Wifi network. In practical application, limited by an operating system, when the signal quality of the WiFi network to which the terminal is currently connected is poor, the terminal can only switch between the WiFi networks according to the indication of the user, and a connection which can better meet the user requirement is established.
However, in general, only when the signal strength of the WiFi signal is seriously decreased and the network access delay is increased, the user can perceive that the currently accessed WiFi network cannot meet the use requirement, so as to manually perform WiFi network switching, and the reconnection process needs a certain time consumption, which can interrupt the application service currently used by the user to a certain extent, thereby seriously affecting the user experience.
Disclosure of Invention
The embodiment of the invention provides a method and a device for switching a WIFI network, which are used for realizing seamless switching of the WIFI network.
The embodiment of the invention provides the following specific technical scheme:
a method of handing over a WiFi network, comprising:
after accessing a first WiFi network, scanning the WiFi networks with the use permission in a preset range to obtain a corresponding WiFi network set to be switched;
calculating a corresponding network state evaluation value aiming at each WiFi network in the WiFi network set to be switched;
when the network state evaluation value of the first WiFi network is determined not to meet the use requirement, selecting one WiFi network with the network state evaluation value not lower than a set switching threshold value from the set of WiFi networks to be switched as a second WiFi network;
switching from the first WiFi network to the second WiFi network.
Optionally, the scanning of the WiFi networks with usage permission in the preset range to obtain the corresponding WiFi network set to be switched includes:
recording WiFi networks which are scanned in a preset range and meet preset conditions as a set of WiFi networks to be switched, wherein the WiFi networks meeting the preset conditions comprise WiFi networks which are accessed and store access passwords, WiFi networks which are accessed and store the access passwords, WiFi networks which are accessed and do not need to use the access passwords, and WiFi networks which are not accessed and do not need to use the access passwords.
Optionally, calculating a network state evaluation value of the WiFi network includes:
detecting signal strength of the WiFi network;
detecting a network delay of the WiFi network;
detecting the network abnormity times of the WiFi network;
and calculating a network state evaluation value of the network based on the signal intensity, the network delay and the network abnormal frequency of the WiFi network, wherein the network state evaluation value is positively correlated with the signal intensity and negatively correlated with the network delay and the network abnormal frequency.
Optionally, determining that the operating state of the first WiFi network does not meet the usage requirement includes:
comparing the network state evaluation value of the first WiFi network with the network state evaluation values of all WiFi networks in the to-be-switched WiFi network set, and determining that the working state of the first WiFi network does not meet the use requirement when the network state evaluation value of the first WiFi is judged not to be the highest value; or,
and when the network state evaluation value of the first WiFi network is judged to be lower than a set switching threshold value, determining that the working state of the first WiFi network does not meet the use requirement.
Optionally, selecting, from the to-be-switched WiFi network set, a WiFi network whose network state evaluation value is not lower than a set switching threshold as a second WiFi network based on the obtained network state evaluation value, including:
screening all WiFi networks with network state evaluation values not lower than a set switching threshold value from the WiFi network set to be switched, and selecting the WiFi network with the highest network state evaluation value from the screened WiFi networks to serve as a second WiFi network; or,
and screening all WiFi networks of which the network state evaluation values are not lower than a set switching threshold value from the WiFi network set to be switched, and randomly selecting one WiFi network from the screened WiFi networks to serve as a second WiFi network.
Optionally, before switching from the first WiFi network to the second WiFi network, the method further includes:
when the working state of the self-body is determined to meet a preset switching condition, the preset switching condition comprises any one or any combination of the following conditions:
judging that the self is in a standby state or the generated network flow is 0;
judging that the network flow generated by the self is lower than a set flow threshold;
and judging that the network flow generated by the self reaches a set flow threshold, wherein the fluctuation amplitude of the network flow is higher than a preset amplitude threshold.
Optionally, switching from the first WiFi network to the second WiFi network includes:
requesting access to a second WiFi network;
authentication over a second WiFi network;
re-associating to a second WiFi network, and triggering the second WiFi network to acquire a cache data frame which is not transmitted from the first WiFi network;
the connection with the first WiFi network is disconnected.
An apparatus for handing over a WiFi network, comprising:
the scanning unit is used for scanning the WiFi networks with the use permission in the preset range after accessing the first WiFi network to obtain a corresponding WiFi network set to be switched;
the computing unit is used for computing a corresponding network state evaluation value for each WiFi network in the WiFi network set to be switched;
a selecting unit, configured to select, when it is determined that the network state evaluation value of the first WiFi network does not meet the use requirement, one WiFi network whose network state evaluation value is not lower than a set handover threshold value from the set of WiFi networks to be handed over as a second WiFi network;
a switching unit, configured to switch from the first WiFi network to the second WiFi network.
Optionally, the scanning unit is configured to scan WiFi networks with usage rights within a preset range, and when a corresponding set of WiFi networks to be switched is obtained, the scanning unit is configured to:
recording WiFi networks which are scanned in a preset range and meet preset conditions as a set of WiFi networks to be switched, wherein the WiFi networks meeting the preset conditions comprise WiFi networks which are accessed and store access passwords, WiFi networks which are accessed and store the access passwords, WiFi networks which are accessed and do not need to use the access passwords, and WiFi networks which are not accessed and do not need to use the access passwords.
Optionally, when the network state evaluation value of the WiFi network is calculated, the calculating unit is configured to:
detecting signal strength of the WiFi network;
detecting a network delay of the WiFi network;
detecting the network abnormity times of the WiFi network;
and calculating a network state evaluation value of the network based on the signal intensity, the network delay and the network abnormal frequency of the WiFi network, wherein the network state evaluation value is positively correlated with the signal intensity and negatively correlated with the network delay and the network abnormal frequency.
Optionally, when it is determined that the operating state of the first WiFi network does not meet the usage requirement, the selecting unit is configured to:
comparing the network state evaluation value of the first WiFi network with the network state evaluation values of all WiFi networks in the to-be-switched WiFi network set, and determining that the working state of the first WiFi network does not meet the use requirement when the network state evaluation value of the first WiFi is judged not to be the highest value; or,
and when the network state evaluation value of the first WiFi network is judged to be lower than a set switching threshold value, determining that the working state of the first WiFi network does not meet the use requirement.
Optionally, when one WiFi network with a network state evaluation value not lower than a set switching threshold is selected from the to-be-switched WiFi network set based on the obtained network state evaluation value as a second WiFi network, the selecting unit is:
screening all WiFi networks with network state evaluation values not lower than a set switching threshold value from the WiFi network set to be switched, and selecting the WiFi network with the highest network state evaluation value from the screened WiFi networks to serve as a second WiFi network; or,
and screening all WiFi networks of which the network state evaluation values are not lower than a set switching threshold value from the WiFi network set to be switched, and randomly selecting one WiFi network from the screened WiFi networks to serve as a second WiFi network.
Optionally, before switching from the first WiFi network to the second WiFi network, the switching unit is further configured to:
when the working state of the self-body is determined to meet a preset switching condition, the preset switching condition comprises any one or any combination of the following conditions:
judging that the self is in a standby state or the generated network flow is 0;
judging that the network flow generated by the self is lower than a set flow threshold;
and judging that the network flow generated by the self reaches a set flow threshold, wherein the fluctuation amplitude of the network flow is higher than a preset amplitude threshold.
Optionally, when switching from the first WiFi network to the second WiFi network, the switching unit is configured to:
requesting access to a second WiFi network;
authentication over a second WiFi network;
re-associating to a second WiFi network, and triggering the second WiFi network to acquire a cache data frame which is not transmitted from the first WiFi network;
the connection with the first WiFi network is disconnected.
A storage medium storing a program for implementing a method of switching a WiFi network, which when executed by a processor, performs the steps of:
after accessing a first WiFi network, scanning the WiFi networks with the use permission in a preset range to obtain a corresponding WiFi network set to be switched;
calculating a corresponding network state evaluation value aiming at each WiFi network in the WiFi network set to be switched;
when the network state evaluation value of the first WiFi network is determined not to meet the use requirement, selecting one WiFi network with the network state evaluation value not lower than a set switching threshold value from the set of WiFi networks to be switched as a second WiFi network;
switching from the first WiFi network to the second WiFi network.
A communications apparatus comprising one or more processors; and one or more computer-readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform the method of any of the above.
In the embodiment of the invention, after the terminal accesses the first WiFi network, the WiFi networks with the use permission in the peripheral range are recorded as the WiFi network set to be switched, and when the first WiFi is determined not to meet the use requirement, the second WiFi network with the network state evaluation value not lower than the set switching threshold value is selected and switched on the basis of the network evaluation values of all WiFi in the WiFi network set to be switched. Therefore, the terminal can rapidly select and access the WiFi network with the best current working state at a proper time by monitoring the working state of each WiFi network without the indication of a user, so that the switching time is shortened to the maximum extent, seamless switching among the WiFi networks is realized, the service quality of application services used by the user is guaranteed, and the user experience is effectively improved.
Drawings
Fig. 1 is a schematic diagram of Wifi network distribution in an embodiment of the present invention;
fig. 2 is a schematic flow chart of a terminal switching a WiFi network in an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a WiFi network switching principle by a terminal in an embodiment of the present invention;
fig. 4 is a schematic diagram of a terminal function structure in the embodiment of the present invention.
Detailed Description
In order to realize seamless switching of the WiFi networks, in the embodiment of the invention, the terminal periodically detects the signal intensity of each WiFi network deployed in the peripheral range, and if the current connected WiFi network is in a poor state and meets the switching condition, the WiFi network in the best working state is switched to without influencing the current operation experience of a user.
Preferred embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, in the embodiment of the present invention, a terminal may pass through signal coverage areas of a plurality of WiFi hotspots in a moving process, and the terminal may scan WiFi networks in a peripheral area all the time in a background and store IDs of the WiFi networks, and if a user accesses some WiFi networks, the terminal may record identification information (e.g., an ID) of the WiFi networks and corresponding access passwords, and further, since WiFi networks arranged in public places (e.g., large shopping malls, airports) may not need to input an access password, the terminal only records IDs of WiFi networks after accessing such WiFi networks.
Referring to fig. 2, in the embodiment of the present invention, a detailed procedure for a terminal to perform handover between WiFi networks is as follows:
step 200: the terminal accesses a first WiFi network.
Specifically, after the user turns on the WiFi function of the terminal, the terminal will automatically connect to the nearby WiFi network with the strongest signal strength.
Step 210: the terminal scans the WiFi network with the use authority within a preset range, and records the scanning result as a WiFi network set to be switched. Will be provided with
Specifically, the terminal records, as a set of WiFi networks to be switched, WiFi networks meeting a preset condition and scanned within a preset range, where the WiFi networks meeting the preset condition (i.e., WiFi networks for which the terminal has a use right) include at least the following:
the first method comprises the following steps: the terminal has accessed and saved the WiFi network of the access password.
And the second method comprises the following steps: the terminal has ever accessed and does not need to use the WiFi network of the access password.
And the third is that: a WiFi network that the terminal has not accessed but does not need to use an access password.
Specifically, the terminal stores the set of WiFi networks to be switched in a list form, and optionally, the list at least includes an ID, an access password, and a signal strength of the WiFi network that the terminal has permission to use.
Further, the terminal may also record the following contents in the set of WiFi networks to be switched:
and fourthly: the terminal has not accessed and needs a WiFi network using an access password.
Step 220: and the terminal calculates a corresponding network state evaluation value aiming at each WiFi network in the WiFi network set to be switched.
Specifically, the terminal traverses each WiFi network in the list, and calculates a network status evaluation value for each WiF network, wherein,
specifically, the network state evaluation value of a WiFi network is positively correlated with the signal strength of the WiFi network, and is negatively correlated with the network delay and the network anomaly number of the WiFi network.
For example, optionally, taking one WiFi network x in the list as an example, the following steps may be adopted but not limited when calculating the corresponding network state evaluation value x.
Step A: the terminal detects the signal intensity of the WiFi network x and records the signal intensity as A, the greater the value of A is, the better the reliability of the representation WiFi network x is, and correspondingly, the higher the network state evaluation value is.
And B: the terminal detects the network delay of the WiFi network x and records the network delay as B, the larger the value of B is, the worse the reliability of the representation WiFi network x is, and correspondingly, the lower the network state evaluation value is.
Specifically, the terminal may send an Internet Control Protocol (ICMP) echo request Message to the WiFi hotspot x by using a ping command based on an IP address of the WiFi hotspot x in the WiFi network x, and receive a corresponding ICMP echo response Message, and by this means, the terminal may test connectivity between the local and the WiFi hotspot x, and may calculate the network delay of the WiFi network x based on a sending time of the ICMP echo request Message and a receiving time of the ICMP echo response Message.
For example, the message format of the ICMP echo reply message is as follows:
reply from 61.135.169.121: byte 32 time 19ms TTL 52
Reply from 61.135.169.121: byte-32 time-17 ms TTL-52
Reply from 61.135.169.121: byte 32 time 19ms TTL 52
Reply from 61.135.169.121: byte-32 time-20 ms TTL-52
Generally, 4 ICMP echo response messages are sent, and the calculated average network delay is denoted as B.
And C: the terminal detects the network abnormal times of the WiFi network x, the network abnormal times are recorded as C, the larger the value of C is, the worse the reliability of the representation WiFi network x is, and correspondingly, the lower the network state evaluation value is.
Specifically, when the working state of the current WiFi network x changes, it is optional that the WiFi hotspot x is present
The method includes the steps that a broadcast mode is adopted, a first notification message is sent in a system, for example, WIFI _ STATE _ CHANGED _ ACTION, a terminal receives the first notification message regularly, and can acquire the current connection STATE of a WIFI network x according to a field int WIFI STATE (int ext, 0), if the connection STATE is not connectable (i.e., enabled), the connection STATE of the WIFI network x is indicated to be in a problem, the terminal sets the WIFI network x to be ErrorCount, exception counting is carried out, and the network exception times of the WIFI network x can be acquired according to a counting result.
Step D: the terminal calculates a network state evaluation value of the WiFi network based on the signal intensity, the network time delay and the network abnormal frequency of the WiFi network, wherein the network state evaluation value is positively correlated with the signal intensity and negatively correlated with the network time delay and the network abnormal frequency.
Optionally, the terminal may adopt a formulaCalculating the network state evaluation value of the WiFi network x, wherein the evaluation value can be different according to different application environmentsTo add different coefficients for A, B and C, which are not described in detail herein.
The bigger the value of P is, the better the signal intensity, the lower the network delay and the less the network abnormal times of the WiFi network x are proved.
Step 230: when the terminal judges whether the network state evaluation value of the first WiFi network currently accessed meets the use requirement, if yes, returning to step 210; otherwise, step 240 is performed.
Further, for the currently accessed first WiFi network, the terminal also needs to calculate a corresponding network state evaluation value by using the above method, and then when determining whether the network state evaluation value of the currently accessed first WiFi network meets the use requirement, the terminal may use, but is not limited to, the following two methods:
the first method comprises the following steps: and the terminal compares the network state evaluation value of the first WiFi network with the network state evaluation values of all the WiFi networks in the to-be-switched WiFi network set, and determines that the working state of the first WiFi network does not meet the use requirement when the network state evaluation value of the first WiFi network is judged not to be the highest value.
In this case, as long as the terminal perceives that the first WiFi network is not the WiFi network with the best working state in the peripheral range, it may be determined that the network state evaluation value of the first WiFi network does not meet the usage requirement, thereby triggering the subsequent handover procedure. Therefore, in a scene that the terminal frequently moves, the terminal can be always accessed to the WiFi network with the best current working state, so that the network smoothness of the application service used by the terminal is ensured, and the service performance is further ensured.
The second method is as follows: and when the terminal judges that the network state evaluation value of the first WiFi network is lower than a set switching threshold value, determining that the working state of the first WiFi network does not meet the use requirement.
In this case, when the terminal perceives that the first WiFi network is not the WiFi network with the best working state in the peripheral range, the terminal does not immediately trigger the subsequent handover procedure, but further determines that the network state evaluation value of the first WiFi network is lower than the set handover threshold value, and then determines that the network state evaluation value of the first WiFi network does not meet the use requirement, so as to trigger the subsequent handover procedure, where the handover threshold value is not a threshold value representing that the first WiFi network has a network abnormality, but may be a threshold value representing that the first WiFi network is in an intermediate state, for example, 50% of a highest value of the network state evaluation value. Therefore, in the scene of infrequent movement of the terminal, frequent switching of the terminal can be avoided, so that the network stability of the application service used by the terminal is ensured, and the service performance is further ensured.
On the other hand, the switching threshold may be set by advance notice by a manager in a preprocessing stage according to management experience, or may be set in real time by a terminal after comprehensive evaluation is performed according to the current network state evaluation value of the first WiFi network and the current network state evaluation values of other WiFi networks within a preset range, which is not described herein again.
Step 240: and the terminal selects a WiFi network with the network state evaluation value not lower than a set switching threshold value from the to-be-switched WiFi network set as a second WiFi network based on the obtained network state evaluation value.
Optionally, in the step 240, the terminal may adopt, but is not limited to, the following two methods:
the first method comprises the following steps: and the terminal screens out all WiFi networks with the network state evaluation values not lower than a set switching threshold value from the WiFi network set to be switched, and selects the WiFi network with the highest network state evaluation value from the screened WiFi networks to serve as a second WiFi network.
The second method comprises the following steps: and the terminal screens out all WiFi networks of which the network state evaluation value is not lower than a set switching threshold value from the WiFi network set to be switched, and randomly selects one WiFi network from the screened WiFi networks to serve as a second WiFi network.
Step 250: and the terminal is switched from the first WiFi network to the second WiFi network.
Specifically, when the terminal determines that the working state of the terminal meets a preset switching condition, the terminal is switched from the first WiFi network to the second WiFi network.
The switching of the WiFi network inevitably causes a temporary interruption between the terminal and the internet, in order to not affect user experience, the terminal needs to compress the interruption time to the shortest as possible, that is, to implement seamless switching to the maximum extent, then the terminal selects switching as much as possible when the terminal is inactive so as to reduce the perception of the user to switching, and therefore the terminal needs to select a switching opportunity based on the preset switching condition, and the specific preset switching condition includes but is not limited to the following:
the first method comprises the following steps: the terminal determines that it is in a standby state or the generated network traffic is 0.
When the terminal is in a standby state or the generated network flow is 0, it indicates that the user does not use the terminal to surf the internet currently, so that the user experience is not influenced by the WiFi network switching.
Specifically, the system transmits a broadcast message of android. intent. action. SCREEN _ OFF when the terminal is in the standby state, and thus, when the terminal determines that it has transmitted the broadcast message, it determines that it is in the standby state inactive.
And the second method comprises the following steps: and the terminal judges that the network flow generated by the terminal is lower than a set flow threshold value.
For example, when a user is using the terminal to surf the internet, the terminal monitors the current real-time network traffic, and if the monitoring result indicates that the uploading network traffic or/and the downloading network traffic at the moment tend to 0, it indicates that the WiFi network at the current moment is stuck, and then the WiFi network switching at the moment does not affect the user experience.
And the third is that: the terminal judges that the network flow generated by the terminal reaches a set flow threshold value, but the fluctuation range of the network flow is higher than a preset range threshold value.
In practical application, when a user uses a terminal to surf the internet, the terminal is in an active state, and in principle, in order not to affect the user experience, WiFi network switching should not be performed at this time, but if the terminal is in an edge zone of a currently accessed WiFi network, the signal strength at this time can only support the user to surf the internet, network traffic generated by the terminal fluctuates to a greater extent, and the fluctuation of the network traffic affects the user experience.
Further, referring to fig. 3, in the embodiment of the present invention, in a process of switching a terminal from a first WiFi network to a second WiFi network, the terminal specifically executes the following steps:
first, the terminal requests access to the second WiFi network.
Secondly, the terminal disconnects with the first WiFi network;
and thirdly, the terminal passes the authentication of the second WiFi network.
In the authentication process, the terminal can adopt two types of authentication modes defined based on the IEEE802.11 standard: open system (OpenSystem) authentication and Shared Key (Shared Key) authentication.
Take shared key authentication as an example.
If the terminal accesses the second WiFi network, the terminal can automatically input the access password of the second WiFi network according to the locally recorded related information so as to pass the authentication process of the second WiFi network.
And if the terminal never accesses the second WiFi network, the terminal prompts the user to input an access password and passes through the authentication process of the second WiFi network according to the access password input by the user.
And finally, the terminal is re-associated to a second WiFi network, the second WiFi network is triggered to acquire a cache data frame which is not transmitted aiming at the terminal from the first WiFi network, namely, the cache data frame is formally accessed to the second WiFi network, the complete access right of the second WiFi network is acquired, and data transmission is started.
A specific application scenario is taken as an example for explanation, it is assumed that a user deploys a hotspot 1 in a home 1, the optimal coverage area of a WiFi signal is floor 1, meanwhile, the user deploys a hotspot 2 in a home 2, and the optimal coverage area of the WiFi signal is floor 2, when the terminal accesses for the first time, the terminal stores WiFi IDs and access passwords of the hotspot 1 and the hotspot 2 locally, and then, when the user carries the terminal at home, the terminal does not need to be manually operated by the user, and can automatically switch between the hotspot 1 and the hotspot 2 when the user moves to and from the floor 1 and the floor 2, so that the user can access the internet through the hotspot with the best working state at any time, and the service performance of the application service of the user is ensured.
Based on the above embodiments, in the embodiment of the present invention, the terminal (e.g., a mobile phone) at least includes the scanning unit 40, the calculating unit 41, the selecting unit 42, and the switching unit 43, wherein,
the scanning unit 40 is configured to scan WiFi networks with usage rights within a preset range after accessing the first WiFi network, and obtain a corresponding WiFi network set to be switched;
a calculating unit 41, configured to calculate a corresponding network state evaluation value for each WiFi network in the WiFi network set to be switched;
a selecting unit 42, configured to select, when it is determined that the network state evaluation value of the first WiFi network does not meet the use requirement, one WiFi network whose network state evaluation value is not lower than a set handover threshold value from the to-be-handed WiFi network set as a second WiFi network;
a switching unit 43, configured to switch from the first WiFi network to the second WiFi network.
Optionally, when the WiFi networks with usage permission in the preset range are scanned and the corresponding WiFi network set to be switched is obtained, the scanning unit 40 is configured to:
recording WiFi networks which are scanned in a preset range and meet preset conditions as a set of WiFi networks to be switched, wherein the WiFi networks meeting the preset conditions comprise WiFi networks which are accessed and store access passwords, WiFi networks which are accessed and store the access passwords, WiFi networks which are accessed and do not need to use the access passwords, and WiFi networks which are not accessed and do not need to use the access passwords.
Optionally, when calculating the network state evaluation value of the WiFi network, the calculating unit 41 is configured to:
detecting signal strength of the WiFi network;
detecting a network delay of the WiFi network;
detecting the network abnormity times of the WiFi network;
and calculating a network state evaluation value of the network based on the signal intensity, the network delay and the network abnormal frequency of the WiFi network, wherein the network state evaluation value is positively correlated with the signal intensity and negatively correlated with the network delay and the network abnormal frequency.
Optionally, when determining that the operating state of the first WiFi network does not meet the usage requirement, the selecting unit 42 is configured to:
comparing the network state evaluation value of the first WiFi network with the network state evaluation values of all WiFi networks in the to-be-switched WiFi network set, and determining that the working state of the first WiFi network does not meet the use requirement when the network state evaluation value of the first WiFi is judged not to be the highest value; or,
and when the network state evaluation value of the first WiFi network is judged to be lower than a set switching threshold value, determining that the working state of the first WiFi network does not meet the use requirement.
Optionally, when a WiFi network with a network state evaluation value not lower than a set handover threshold is selected from the to-be-handed over WiFi network set based on the obtained network state evaluation value as a second WiFi network, the selecting unit 42 is configured to:
screening all WiFi networks with network state evaluation values not lower than a set switching threshold value from the WiFi network set to be switched, and selecting the WiFi network with the highest network state evaluation value from the screened WiFi networks to serve as a second WiFi network; or,
and screening all WiFi networks of which the network state evaluation values are not lower than a set switching threshold value from the WiFi network set to be switched, and randomly selecting one WiFi network from the screened WiFi networks to serve as a second WiFi network.
Optionally, before switching from the first WiFi network to the second WiFi network, the switching unit 43 is further configured to:
when the working state of the self-body is determined to meet a preset switching condition, the preset switching condition comprises any one or any combination of the following conditions:
judging that the self is in a standby state or the generated network flow is 0;
judging that the network flow generated by the self is lower than a set flow threshold;
and judging that the network flow generated by the self reaches a set flow threshold, wherein the fluctuation amplitude of the network flow is higher than a preset amplitude threshold.
Optionally, when switching from the first WiFi network to the second WiFi network, the switching unit 43 is configured to:
requesting access to a second WiFi network;
authentication over a second WiFi network;
re-associating to a second WiFi network, and triggering the second WiFi network to acquire a cache data frame which is not transmitted from the first WiFi network;
the connection with the first WiFi network is disconnected.
Based on the same inventive concept, an embodiment of the present invention provides a storage medium storing a program for implementing a method for switching a WiFi network, where the program is executed by a processor to perform the following steps:
after receiving the first WiFi network, scanning WiFi networks with use authority in a peripheral range to obtain a corresponding WiFi network set to be switched;
calculating a corresponding network state evaluation value aiming at each WiFi network in the WiFi network set to be switched;
when the working state of the first WiFi network is determined not to meet the use requirement, selecting a second WiFi network meeting the use requirement from the WiFi network set to be switched on the basis of the obtained network state evaluation value;
switching from the first WiFi network to the second WiFi network.
Based on the same inventive concept, the embodiment of the invention provides a communication device, which comprises one or more processors; and one or more computer-readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform any of the methods described above.
In summary, in the embodiment of the present invention, after accessing the first WiFi network, the terminal records WiFi networks with usage rights in the peripheral area as the WiFi network set to be switched, and when it is determined that the first WiFi network does not meet the usage requirement, based on the network evaluation values of each WiFi in the WiFi network set to be switched, selects a network status evaluation value that is not lower than the set switching threshold. Therefore, the terminal can rapidly select and access the WiFi network with the best current working state at a proper time by monitoring the working state of each WiFi network without the indication of a user, so that the switching time is shortened to the maximum extent, seamless switching among the WiFi networks is realized, the service quality of application services used by the user is guaranteed, and the user experience is effectively improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

Claims (10)

CN201811426393.7A2018-11-272018-11-27A kind of method and device switching WiFi networkPendingCN109379766A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201811426393.7ACN109379766A (en)2018-11-272018-11-27A kind of method and device switching WiFi network

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201811426393.7ACN109379766A (en)2018-11-272018-11-27A kind of method and device switching WiFi network

Publications (1)

Publication NumberPublication Date
CN109379766Atrue CN109379766A (en)2019-02-22

Family

ID=65383239

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201811426393.7APendingCN109379766A (en)2018-11-272018-11-27A kind of method and device switching WiFi network

Country Status (1)

CountryLink
CN (1)CN109379766A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110831112A (en)*2019-11-072020-02-21深圳市欧瑞博科技有限公司Network connection method, intelligent household equipment, intelligent gateway and electronic equipment
CN110868747A (en)*2019-11-282020-03-06上海商米科技集团股份有限公司Method for detecting delay and automatically switching multiple network modes
CN112867171A (en)*2021-03-172021-05-28惠州Tcl移动通信有限公司WIFI connection method and device, storage medium and mobile terminal
CN114221862A (en)*2021-12-082022-03-22深圳绿米联创科技有限公司 Device network configuration method, device, electronic device, and storage medium
CN114531709A (en)*2020-11-232022-05-24中国联合网络通信集团有限公司Network switching method and device
CN114765776A (en)*2021-01-142022-07-19青岛海信宽带多媒体技术有限公司Method for automatically connecting set top box with WIFI, set top box and storage medium
CN115379311A (en)*2022-08-242022-11-22上海航天测控通信研究所 A method for processing information flow of a WiFi communicator on a space station service platform
CN115834391A (en)*2022-11-282023-03-21广州高新兴机器人有限公司 A method, system, and readable storage medium for extending the upper limit of mobile device bandwidth
CN116056188A (en)*2022-11-162023-05-02湖北星纪时代科技有限公司 WiFi connection method, device, equipment and storage medium
CN116614831A (en)*2023-05-102023-08-18中国联合网络通信集团有限公司 Network exception processing method, device and readable storage medium
CN112351461B (en)*2019-08-082023-08-22Oppo广东移动通信有限公司WiFi network switching method, wiFi network switching device, terminal and storage medium
CN116669128A (en)*2023-07-312023-08-29深圳淇诺科技有限公司Method, device, equipment and medium for reporting acquired data based on network switching

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105263154A (en)*2015-09-172016-01-20广东欧珀移动通信有限公司Method and system of Wi-Fi equipment for switching wireless access point
CN106604280A (en)*2017-01-062017-04-26国网新疆电力公司电力科学研究院Handover method of wireless network
CN107820289A (en)*2017-11-202018-03-20珠海市魅族科技有限公司A kind of WIFI network switching method, device, terminal and medium
CN108337707A (en)*2018-04-172018-07-27Oppo广东移动通信有限公司Wireless network switching method, mobile terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105263154A (en)*2015-09-172016-01-20广东欧珀移动通信有限公司Method and system of Wi-Fi equipment for switching wireless access point
CN106604280A (en)*2017-01-062017-04-26国网新疆电力公司电力科学研究院Handover method of wireless network
CN107820289A (en)*2017-11-202018-03-20珠海市魅族科技有限公司A kind of WIFI network switching method, device, terminal and medium
CN108337707A (en)*2018-04-172018-07-27Oppo广东移动通信有限公司Wireless network switching method, mobile terminal and storage medium

Cited By (16)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112351461B (en)*2019-08-082023-08-22Oppo广东移动通信有限公司WiFi network switching method, wiFi network switching device, terminal and storage medium
CN110831112A (en)*2019-11-072020-02-21深圳市欧瑞博科技有限公司Network connection method, intelligent household equipment, intelligent gateway and electronic equipment
CN110868747A (en)*2019-11-282020-03-06上海商米科技集团股份有限公司Method for detecting delay and automatically switching multiple network modes
CN110868747B (en)*2019-11-282020-09-25上海商米科技集团股份有限公司Method for detecting delay and automatically switching multiple network modes
CN114531709A (en)*2020-11-232022-05-24中国联合网络通信集团有限公司Network switching method and device
CN114765776A (en)*2021-01-142022-07-19青岛海信宽带多媒体技术有限公司Method for automatically connecting set top box with WIFI, set top box and storage medium
CN112867171A (en)*2021-03-172021-05-28惠州Tcl移动通信有限公司WIFI connection method and device, storage medium and mobile terminal
CN114221862A (en)*2021-12-082022-03-22深圳绿米联创科技有限公司 Device network configuration method, device, electronic device, and storage medium
CN114221862B (en)*2021-12-082025-03-18深圳绿米联创科技有限公司 Device network configuration method, device, electronic device and storage medium
CN115379311A (en)*2022-08-242022-11-22上海航天测控通信研究所 A method for processing information flow of a WiFi communicator on a space station service platform
CN116056188A (en)*2022-11-162023-05-02湖北星纪时代科技有限公司 WiFi connection method, device, equipment and storage medium
CN115834391A (en)*2022-11-282023-03-21广州高新兴机器人有限公司 A method, system, and readable storage medium for extending the upper limit of mobile device bandwidth
CN115834391B (en)*2022-11-282025-03-28广州高新兴机器人有限公司 A method, system and readable storage medium for extending bandwidth upper limit of mobile device
CN116614831A (en)*2023-05-102023-08-18中国联合网络通信集团有限公司 Network exception processing method, device and readable storage medium
CN116669128A (en)*2023-07-312023-08-29深圳淇诺科技有限公司Method, device, equipment and medium for reporting acquired data based on network switching
CN116669128B (en)*2023-07-312023-11-03深圳淇诺科技有限公司Method, device, equipment and medium for reporting acquired data based on network switching

Similar Documents

PublicationPublication DateTitle
CN109379766A (en)A kind of method and device switching WiFi network
US11246076B2 (en)Wireless network handover method and apparatus based on distance change between terminal and access points
JP6479652B2 (en) Handoff between access points in Wi-Fi environment
US9313786B2 (en)Dynamically dedicated wireless local area network service for high definition video teleconferencing
KR101833841B1 (en)Method for distributing data to wireless local area network, terminal, and network device
US9526058B2 (en)Smart roam system and method
EP2375807B1 (en)Handover processing method, home base station gateway and network system
CN108024278B (en)mobility management method, user terminal and network side equipment
CN103209446A (en)Method for implementing in wireless transmit/receive unit (WTRU)
EP3236692A1 (en)Method for triggering terminal roaming by access point
US10681596B2 (en)Neighbor list management and connection control in a network environment
KR20160141829A (en)Method of controlling handover in mobile communication networks and apparatus and system emplementing the method
EP2770701B1 (en)Apparatus and method for providing a wireless communication in a portable terminal
US20150358885A1 (en)Balancing Access Point Workloads
CN108419230B (en)Communication method, base station and storage medium
CN110149669B (en) Method and related equipment for controlling terminal to use wireless network
CN106358248A (en)Wireless local area network (WLAN) switching method and device
JP2008113220A (en)Radio base station, radio communication system, communication control method and communication control program
US20210329519A1 (en)Cell Connection Processing Method and Mobile Terminal
CN111432395B (en)Roaming control method and device
CN114205756A (en)Roaming method and device of wireless terminal
CN114567892B (en) Access point interference coordination method, base station, user equipment, and readable storage medium
KR100943760B1 (en) Method and system for handover decision making through service measurement management
WO2012097597A1 (en)Method of processing neighboring cell information, method of instructing handover, user equipment and base station
CN111526549B (en) Base station apparatus, communication system, and communication method

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20190222

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp