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
CN109379766A CN201811426393.7A CN201811426393A CN109379766A CN 109379766 A CN109379766 A CN 109379766A CN 201811426393 A CN201811426393 A CN 201811426393A CN 109379766 A CN109379766 A CN 109379766A
Authority
CN
China
Prior art keywords
wifi network
network
wifi
assessed value
switched
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 Ltd filed Critical Hisense Broadband Multimedia Technology Co Ltd
Priority to CN201811426393.7A priority Critical patent/CN109379766A/en
Publication of CN109379766A publication Critical patent/CN109379766A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • H04W36/18Performing reselection for specific purposes for allowing seamless reselection, e.g. soft reselection
    • 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 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

A kind of method and device switching WiFi network
Technical field
The present invention relates to computer technology, in particular to a kind of method and device for switching WiFi network.
Background technique
In recent years, with the rapid development of information technology, demand of the user to network communication is continuously improved, it is desirable to no matter Anywhere, any time, with anyone can carry out include the plurality of kinds of contents form such as data, voice, image communication.And lead to It crosses Wireless Fidelity (Wireless Fidelity, WiFi) network insertion Internet and can be provided for user and meet each of needs Kind application service, for example, Online Video, game, chat etc..
For these application services, continual and steady network insertion becomes inevitable realization condition.However, due to The covering finite energy of WiFi network access point (Access Point, also known as hot spot), usually only tens square metres, so that right The support of user mobility is extremely limited.
Specifically, in a typical wireless local area network architecture, it is divided into the server-side of terminal and WiFi network (i.e. Wi-Fi hotspot).Terminal is the transceiver of information, and in cable network, the position ordinary circumstance of terminal is fixed, but It is that in the wireless network, the position of terminal can often change, i.e., terminal has mobility.
Under prior art, terminal if it is First Contact Connections, then can prompt to use when First Contact Connections are to WiFi network Family inputs access pin, and after access pin input is correct, terminal can get IP address and be connected to WiFi network.Terminal is logical The access pin that user's input can often be automatically saved, when subsequent terminal is accessed again in the coverage area of above-mentioned WiFi network, eventually End automatically accesses corresponding WiFi network, is not necessarily to user's active operation.
But the covering of the signal of WiFi network has regional scope limitation, this range is usually to be with WiFi network Center it is round, the power of signal determines the size of round radius.Terminal is closer from the center of circle, and signal strength is better.One A little biggish regions of area ratio, such as: the large areas such as office, market can be completed by disposing multiple WiFi networks The covering of wireless signal.
Due to position of the terminal in Wifi network be not it is fixed, currently connected when terminal is exactly in When the covering marginal position of WiFi network, signal strength can become very weak.In practical application, it is limited by operating system limitation, when When the signal poor quality for the WiFi network that terminal currently connects, terminal can only be according to the instruction of user between WIFI network It switches over, establishes the connection for being more able to satisfy user demand.
However, it is generally the case that only lead to network access delay in turn in the signal strength degradation of WiFi signal When increase, user, which can just discover the WiFi network being currently accessed, cannot meet use demand, cut to carry out WiFi network manually Change, and the process reconnected needs certain time-consuming, this to a certain extent, can interrupt that user is being currently used answers With service, to seriously affect user experience.
Summary of the invention
The embodiment of the present invention provide it is a kind of switch WIFI network method and device, to realize WIFI network without seaming and cutting It changes.
Specific technical solution provided in an embodiment of the present invention is as follows:
A method of switching WiFi network, comprising:
After accessing the first WiFi network, scanning preset range in access right WiFi network, obtain accordingly to Switch WiFi network set;
For each WiFi network in the to be switched WiFi network set, corresponding network state assessed value is calculated;
When determining that the network state assessed value of first WiFi network is unsatisfactory for use demand, in the to be switched WiFi In collection of network, WiFi network of the network state assessed value not less than the switching threshold of setting is chosen as the 2nd WiFi net Network;
Second WiFi network is switched to from first WiFi network.
Optionally, the WiFi network with access right in the scanning preset range, obtains corresponding to be switched WiFi Collection of network, comprising:
The WiFi network for meeting preset condition scanned in preset range is recorded as to be switched WiFi network set, In, the WiFi network for meeting preset condition includes having accessed and having saved the WiFi network of access pin, once connect Enter and saved access pin WiFi network, once access and without using the WiFi network of access pin, not It accesses but without using the WiFi network of access pin.
Optionally, the network state assessed value of WiFi network is calculated, comprising:
Detect the signal strength of the WiFi network;
Detect the network delay of the WiFi network;
Detect the Network Abnormal number of the WiFi network;
Signal strength, network delay and Network Abnormal number based on the WiFi network, calculate the network of the network Status assessment value, wherein the network state assessed value is positively correlated with the signal strength, with the network delay and described Network Abnormal number is negatively correlated.
Optionally, determine that the working condition of first WiFi network does not meet use demand, comprising:
By each WiFi in the network state assessed value of first WiFi network, with the to be switched WiFi network set The network state assessed value of network is compared, when the network state assessed value for determining the first WiFi is not peak, really The working condition of fixed first WiFi network does not meet use demand;Alternatively,
When determining the network state assessed value of first WiFi network lower than the switching threshold set, described first is determined The working condition of WiFi network does not meet use demand.
Optionally, the network state assessed value based on acquisition chooses a net from the to be switched WiFi network set Network status assessment value is not less than the WiFi network of the switching threshold of setting as the second WiFi network, comprising:
From the to be switched WiFi network set, network state assessed value is filtered out not less than the switching threshold set Each WiFi network, and the highest WiFi network of network state assessed value is selected from each WiFi network filtered out, make For the second WiFi network;Alternatively,
From the to be switched WiFi network set, network state assessed value is filtered out not less than the switching threshold set Each WiFi network, and from each WiFi network filtered out, a WiFi network is randomly selected, as the 2nd WiFi net Network.
Optionally, before switching to second WiFi network from first WiFi network, further comprise:
Meet preset switching condition in the working condition for determining itself, the preset switching condition includes the following conditions In any one or an any combination:
Determine that the network flow for itself being in standby or generating is 0;
Determine that the network flow that itself is generated is lower than the flow threshold set;
Determine that the network flow of itself generation reaches the flow threshold of setting, but the fluctuating range of the network flow is higher than Preset amplitude threshold.
Optionally, second WiFi network is switched to from first WiFi network, comprising:
Request the second WiFi network of access;
Pass through the certification of the second WiFi network;
Series of fortified passes is coupled to the second WiFi network, and the second WiFi network of triggering obtains the caching not yet transmitted from the first WiFi network Data frame;
Disconnect the connection with the first WiFi network.
A kind of device switching WiFi network, comprising:
Scanning element, for after accessing the first WiFi network, there is the WiFi net of access right in scanning preset range Network obtains corresponding to be switched WiFi network set;
Computing unit, for calculating corresponding net for each WiFi network in the to be switched WiFi network set Network status assessment value;
Selection unit, when for determining that the network state assessed value of first WiFi network is unsatisfactory for use demand, In the to be switched WiFi network set, WiFi network of the network state assessed value not less than the switching threshold of setting is chosen As the second WiFi network;
Switch unit, for switching to second WiFi network from first WiFi network.
Optionally, the WiFi network with access right in the scanning preset range, obtains corresponding to be switched WiFi When collection of network, the scanning element is used for:
The WiFi network for meeting preset condition scanned in preset range is recorded as to be switched WiFi network set, In, the WiFi network for meeting preset condition includes having accessed and having saved the WiFi network of access pin, once connect Enter and saved access pin WiFi network, once access and without using the WiFi network of access pin, not It accesses but without using the WiFi network of access pin.
Optionally, when calculating the network state assessed value of WiFi network, the computing unit is used for:
Detect the signal strength of the WiFi network;
Detect the network delay of the WiFi network;
Detect the Network Abnormal number of the WiFi network;
Signal strength, network delay and Network Abnormal number based on the WiFi network, calculate the network of the network Status assessment value, wherein the network state assessed value is positively correlated with the signal strength, with the network delay and described Network Abnormal number is negatively correlated.
Optionally, when determining that the working condition of first WiFi network does not meet use demand, the selection unit is used In:
By each WiFi in the network state assessed value of first WiFi network, with the to be switched WiFi network set The network state assessed value of network is compared, when the network state assessed value for determining the first WiFi is not peak, really The working condition of fixed first WiFi network does not meet use demand;Alternatively,
When determining the network state assessed value of first WiFi network lower than the switching threshold set, described first is determined The working condition of WiFi network does not meet use demand.
Optionally, the network state assessed value based on acquisition chooses a net from the to be switched WiFi network set When network status assessment value is not less than the WiFi network of the switching threshold of setting as the second WiFi network, the selection unit an ancient wind instrument:
From the to be switched WiFi network set, network state assessed value is filtered out not less than the switching threshold set Each WiFi network, and the highest WiFi network of network state assessed value is selected from each WiFi network filtered out, make For the second WiFi network;Alternatively,
From the to be switched WiFi network set, network state assessed value is filtered out not less than the switching threshold set Each WiFi network, and from each WiFi network filtered out, a WiFi network is randomly selected, as the 2nd WiFi net Network.
Optionally, before switching to second WiFi network from first WiFi network, the switch unit is into one Step is used for:
Meet preset switching condition in the working condition for determining itself, the preset switching condition includes the following conditions In any one or an any combination:
Determine that the network flow for itself being in standby or generating is 0;
Determine that the network flow that itself is generated is lower than the flow threshold set;
Determine that the network flow of itself generation reaches the flow threshold of setting, but the fluctuating range of the network flow is higher than Preset amplitude threshold.
Optionally, when switching to second WiFi network from first WiFi network, the switch unit is used for:
Request the second WiFi network of access;
Pass through the certification of the second WiFi network;
Series of fortified passes is coupled to the second WiFi network, and the second WiFi network of triggering obtains the caching not yet transmitted from the first WiFi network Data frame;
Disconnect the connection with the first WiFi network.
A kind of storage medium preserves the program of the method for realizing switching WiFi network, and described program is by processor When operation, following steps are executed:
After accessing the first WiFi network, scanning preset range in access right WiFi network, obtain accordingly to Switch WiFi network set;
For each WiFi network in the to be switched WiFi network set, corresponding network state assessed value is calculated;
When determining that the network state assessed value of first WiFi network is unsatisfactory for use demand, in the to be switched WiFi In collection of network, WiFi network of the network state assessed value not less than the switching threshold of setting is chosen as the 2nd WiFi net Network;
Second WiFi network is switched to from first WiFi network.
A kind of communication device, including one or more processors;And one or more computer-readable mediums, it is described can It reads to be stored with instruction on medium, when described instruction is executed by one or more of processors, so that described device execution is above-mentioned Described in any item methods.
In the embodiment of the present invention, terminal can will have access right after accessing the first WiFi network in peripheral extent WiFi network is recorded as to be switched WiFi network set, and when determining that the first WiFi does not meet use demand, based on above-mentioned The network evaluation value of each WiFi in be switched WiFi network set selects switching of the network state assessed value not less than setting Second WiFi network of threshold value simultaneously switches over.In this way, indicating without user, terminal can be by monitoring each WiFi network Working condition is chosen rapidly in proper moment and accesses the optimal WiFi network of current working status, to contract to the full extent Short switching duration, realizes the seamless switching between WiFi network, and then ensured the service for the application service that user uses Quality effectively improves user experience.
Detailed description of the invention
Fig. 1 is Wifi network distribution schematic diagram in the embodiment of the present invention;
Fig. 2 is the flow diagram that terminal switches WiFi network in the embodiment of the present invention;
Fig. 3 is that terminal switches WiFi network schematic illustration in the embodiment of the present invention;
Fig. 4 is terminal function structural schematic diagram in the embodiment of the present invention.
Specific embodiment
In order to realize the seamless switching of WiFi network, in the embodiment of the present invention, detect in peripheral extent to terminal periodic The signal strength of each WiFi network of deployment, if being not in good state for Wifi network currently connected meets switching condition, In the case where not influencing the current operating experience of user, the best WiFi network of working condition is switched to.
Further description is made to the preferred embodiment of the present invention with reference to the accompanying drawing.
As shown in fig.1, terminal, can be by way of the signal of multiple Wi-Fi hotspots in moving process in the embodiment of the present invention Coverage area, and terminal can scan always the WiFi network in peripheral extent from the background, and the ID of each WiFi network is carried out It saves, if user accessed certain WiFi networks, terminal will record the identification information (e.g., ID) of WiFi network and connect accordingly Enter password, further, since (e.g., megastore, airport) middle WiFi network arranged is possible to not need in public Access pin is inputted, then terminal only records the ID of Wifi network after accessing such WiFi network.
As shown in fig.2, the detailed process that terminal switches between WiFi network is as follows in the embodiment of the present invention:
Step 200: terminal accesses the first WiFi network.
Specifically, it is strongest that terminal can be connected automatically to neighbouring signal strength after the WiFi function that user opens a terminal WiFi network.
Step 210: terminal scans the WiFi network with access right within a preset range, by scanning result be recorded as to Switch WiFi network set.It will
Specifically, terminal the WiFi network for meeting preset condition scanned within a preset range can be recorded as it is to be switched WiFi network set, wherein described WiFi network (i.e. WiFi network of the terminal with access right) packet for meeting preset condition It includes at least following several:
The first: terminal once accesses and has saved the WiFi network of access pin.
Second: terminal once accessed and without using the WiFi network of access pin.
The third: terminal does not access but without using the WiFi network of access pin.
Specifically, terminal can be saved to be switched WiFi network set with tabular form, optionally, needed in list The ID, access pin and signal strength of the WiFi network used are had permission including at least terminal.
Further, terminal can also record the following contents in above-mentioned to be switched WiFi network set:
4th kind: terminal does not access and needs the WiFi network using access pin.
Step 220: terminal calculates corresponding network for each WiFi network in the to be switched WiFi network set Status assessment value.
Specifically, each WiFi network in terminal meeting traversal of lists, calculates separately the network state of each WiF network Assessed value, wherein
Specifically, the network state assessed value of WiFi network and the signal strength of one WiFi network are in just The network delay and Network Abnormal number of correlation and one WiFi network are negatively correlated.
For example, it is optional, by taking a WiFi network x in list as an example, calculating corresponding network state assessed value x When, it can use but be not limited to following steps.
Step A: terminal detects the signal strength of WiFi network x, is denoted as A, and A value is bigger, and characterization WiFi network x's is reliable Property is better, correspondingly, network state assessed value can be higher.
Step B: terminal detects the network delay of WiFi network x, is denoted as B, and B value is bigger, and characterization WiFi network x's is reliable Property is poorer, correspondingly, network state assessed value can be lower.
Specifically, terminal can be hot to WiFi using ping order based on the IP address of Wi-Fi hotspot x in WiFi network x Point x sends internet control protocol (Internet Control Message Protocol, ICMP) and echoes request message, with And corresponding icmp echo reply message is received, in this way, terminal can test the company between local and Wi-Fi hotspot x The general character, and the sending time of request message and the receiving time of icmp echo reply message can be echoed based on ICMP, it calculates The network delay of WiFi network x out.
For example, the message format of icmp echo reply message is as follows:
Reply from 61.135.169.121: byte=32 times=19ms TTL=52
Reply from 61.135.169.121: byte=32 times=17ms TTL=52
Reply from 61.135.169.121: byte=32 times=19ms TTL=52
Reply from 61.135.169.121: byte=32 times=20ms TTL=52
It generally sends 4 icmp echo reply messages and calculated averaging network time delay is denoted as B.
Step C: terminal detects the Network Abnormal number of WiFi network x, is denoted as C, and C value is bigger, characterization WiFi network x's Reliability is poorer, correspondingly, network state assessed value can be lower.
Specifically, when the working condition of current WiFi network x changes, optionally, Wi-Fi hotspot x
The forms of broadcasting can be used, send the first notification message, such as WiFiManager.WIFI_STATE_ in systems CHANGED_ACTION, terminal can periodically receive the first notification message, and according to field int WiFiState= Intent.getIntExtra (WiFiManager.EXTRA_WIFI_STATE, 0) can know the current connection of WiFi network x State illustrates that the connection status of WiFi network x there is a problem, then if connection status is not that can connect (i.e. enabled) WiFi network x can be set as ErrorCount by terminal, and WiFi network x can be known by carrying out anomalous counts according to count results Network Abnormal number.
Step D: signal strength, network delay and Network Abnormal number of the terminal based on one WiFi network, Calculate the network state assessed value of one network, wherein the network state assessed value and the signal strength are in positive It closes, it is negatively correlated with the network delay and the Network Abnormal number.
Optionally, terminal can use formulaCalculate the network state assessed value of WiFi network x, wherein root According to the difference of application environment, different coefficients can also be added for A, B and C, details are not described herein.
The value of P is bigger, it was demonstrated that WiFi network x has better signal strength, lower network delay and less net Network frequency of abnormity.
Step 230: whether the network state assessed value for the first WiFi network that terminal judgement is currently accessed, which meets to use, needs When asking, if so, return step 210;Otherwise, step 240 is executed.
Further, for the first WiFi network being currently accessed, terminal is also required to calculate using the above method corresponding Network state assessed value, then, whether meet use in the network state assessed value for the first WiFi network that judgement is currently accessed When demand, terminal can use but be not limited to following two method:
First method are as follows: the terminal is and described to be switched by the network state assessed value of first WiFi network The network state assessed value of each WiFi network is compared in WiFi network set, determines the network state of the first WiFi When assessed value is not peak, determine that the working condition of first WiFi network does not meet use demand.
In this case, as long as it is that working condition is optimal in peripheral extent that terminal, which perceives the first WiFi network not, WiFi network will determine that the network state assessed value of the first WiFi network does not meet use demand, so that triggering following is cut Change of current journey.In this way, terminal can access the optimal WiFi network of current working status always under the scene that terminal frequently moves, To guarantee the network smoothness for the application service that terminal uses, and then ensure service performance.
Second method are as follows: the terminal determines network state assessed value the cutting lower than setting of first WiFi network When changing threshold value, determine that the working condition of first WiFi network does not meet use demand.
In this case, it is the optimal WiFi net of working condition in peripheral extent that terminal, which perceives the first WiFi network not, When network, will not triggering following immediately switching flow, but in the network state assessed value for further determining the first WiFi network Lower than setting switching threshold when, can just determine that the network state assessed value of the first WiFi network does not meet use demand, thus The switching flow of triggering following, wherein switching threshold is not that the first WiFi network of characterization the threshold value of Network Abnormal occurs, can To be the threshold value for characterizing the first WiFi network and being in intermediate state, e.g., the 50% of the peak of network state assessed value.This Sample can be to avoid terminal frequent switching, to guarantee the application service that terminal uses under the non-scene frequently moved of terminal Network stabilization, and then ensure service performance.
On the other hand, above-mentioned switching threshold predict according to managerial experiences and set by administrative staff in pretreatment stage It sets, it can also be by terminal according to other WiFi in the current network state assessed value and preset range of the first WiFi network After the current network state assessed value of network carries out Comprehensive Assessment, it is arranged in real time, details are not described herein.
Step 240: network state assessed value of the terminal based on acquisition is chosen in the to be switched WiFi network set One network state assessed value is not less than the WiFi network of the switching threshold of setting as the second WiFi network.
Optionally, when executing step 240, terminal can use but be not limited to following two method:
First method: terminal filters out network state assessed value and is not less than from the to be switched WiFi network set Each WiFi network of the switching threshold of setting, and network state assessed value is selected most from each WiFi network filtered out High WiFi network, as the second WiFi network.
Second method: terminal filters out network state assessed value and is not less than from the to be switched WiFi network set Each WiFi network of the switching threshold of setting, and from each WiFi network filtered out, a WiFi network is randomly selected, As the second WiFi network.
Step 250: terminal switches to second WiFi network from first WiFi network.
Specifically, terminal is when the working condition for determining itself meets preset switching condition, from the first WiFi net Network switches to second WiFi network.
The switching of WiFi network inevitably results in the temporary interruption of terminal and internet, in order to not influence user experience, Terminal needs to be compressed to the break period as far as possible most short, i.e., realizes seamless switching to the full extent, then, terminal selects as far as possible It is switched over when terminal is sluggish, to reduce perception of the user to switching, therefore, terminal is needed based on above-mentioned preset Switching condition selects switching time, and specific above-mentioned preset switching condition is including but not limited to following several:
The first: terminal determines that the network flow for itself being in standby or generating is 0.
When the network flow that terminal is in standby or generates is 0, illustrate that user surfs the Internet currently without using terminal, because This, carrying out WiFi network switching at this time will not influence user experience.
Specifically, system sends an android.intent.action.SCREEN_OFF when terminal standby state Broadcast message therefore itself have sent above-mentioned broadcast message when terminal determines, it is determined that itself sluggish standby mode.
Second: terminal determines that the network flow that itself is generated is lower than the flow threshold of setting.
For example, terminal online is used in user, then terminal can monitor current real-time network flow, if snoop results Upload network flow or/and the downloading network flow characterized at this time is all intended to 0, then shows that the WiFi network at current time occurs Caton, then, carrying out WiFi network switching at this time will not influence user experience.
The third: terminal determines that the network flow that itself is generated reaches the flow threshold of setting, but the fluctuation of network flow Amplitude is higher than preset amplitude threshold.
In practical application, when user's using terminal is surfed the Internet, terminal is in active state, in principle, in order to not influence user Usage experience should not carry out WiFi network switching at this time, still, if the border land for the WiFi network that terminal is currently accessed finally Band, signal strength at this time are only capable of that user is supported to surf the Internet reluctantly, and the network flow that terminal generates, which can generate, more significantly to be fluctuated, And the fluctuation of network flow will affect the usage experience of user, therefore, in this case, even if user is being currently used The application service of net class, terminal are also required to carry out WiFi network switching, to guarantee to provide top quality service for user.
Further, as shown in fig.3, in the embodiment of the present invention, in terminal from the first WiFi network to the 2nd WiFi net During network switches, terminal, which specifically executes, executes following steps:
Firstly, terminal request accesses the second WiFi network.
Secondly, terminal disconnects the connection with the first WiFi network;
Again, terminal passes through the certification of the second WiFi network.
In verification process, terminal can be using the two class authentication modes defined based on IEEE802.11 standard: open system (OpenSystem) certification and shared key (Shared Key) certification.
By taking shared key authentication as an example.
If terminal once accessed the second WiFi network, terminal can be automatically entered according to the relevant information of local record The access pin of second WiFi network, to pass through the identifying procedure of the second WiFi network.
If terminal never accessed the second WiFi network, terminal can prompt user to input access pin, and according to The access pin of family input, passes through the identifying procedure of the second WiFi network.
Finally, terminal series of fortified passes is coupled to the second WiFi network, the second WiFi network of triggering is directed to from the acquisition of the first WiFi network The data cached frame that terminal is not yet transmitted formally accesses the second WiFi network, obtain the complete access right of the second WiFi network, Start to carry out data transmission.
It is illustrated by taking a specific application scenarios as an example, it is assumed that user deploys hot spot 1, WiFi 1 building at home The Optimal coverage range of signal is 1 building, while user deploys hot spot 2, the Optimal coverage range of WiFi signal 2 buildings at home It is 2 buildings, then the WiFi ID and access pin of hot spot 1 and hot spot 2 can be maintained in local when accessing for the first time by terminal, that , when user's carried terminal is walked about at home, without user be manually operated, terminal can when user is to and from 1 building and 2 buildings, Automatically switch between hot spot 1 and hot spot 2, to keep user can be at any time by the optimal hot spot access interconnection of working condition Net ensure that the service performance of the application service of user.
Based on the above embodiment, in the embodiment of the present invention, terminal (e.g., mobile phone) includes at least scanning element 40, calculates list Member 41, selection unit 42 and switch unit 43, wherein
Scanning element 40, for after accessing the first WiFi network, there is the WiFi of access right in scanning preset range Network obtains corresponding to be switched WiFi network set;
Computing unit 41, for calculating corresponding for each WiFi network in the to be switched WiFi network set Network state assessed value;
Selection unit 42, when for determining that the network state assessed value of first WiFi network is unsatisfactory for use demand, In the to be switched WiFi network set, WiFi net of the network state assessed value not less than the switching threshold of setting is chosen Network is as the second WiFi network;
Switch unit 43, for switching to second WiFi network from first WiFi network.
Optionally, the WiFi network with access right in scanning preset range, obtains corresponding to be switched WiFi network When set, scanning element 40 is used for:
The WiFi network for meeting preset condition scanned in preset range is recorded as to be switched WiFi network set, In, the WiFi network for meeting preset condition includes having accessed and having saved the WiFi network of access pin, once connect Enter and saved access pin WiFi network, once access and without using the WiFi network of access pin, not It accesses but without using the WiFi network of access pin.
Optionally, when calculating the network state assessed value of WiFi network, computing unit 41 is used for:
Detect the signal strength of the WiFi network;
Detect the network delay of the WiFi network;
Detect the Network Abnormal number of the WiFi network;
Signal strength, network delay and Network Abnormal number based on the WiFi network, calculate the network of the network Status assessment value, wherein the network state assessed value is positively correlated with the signal strength, with the network delay and described Network Abnormal number is negatively correlated.
Optionally, when determining that the working condition of first WiFi network does not meet use demand, selection unit 42 is used for:
By each WiFi in the network state assessed value of first WiFi network, with the to be switched WiFi network set The network state assessed value of network is compared, when the network state assessed value for determining the first WiFi is not peak, really The working condition of fixed first WiFi network does not meet use demand;Alternatively,
When determining the network state assessed value of first WiFi network lower than the switching threshold set, described first is determined The working condition of WiFi network does not meet use demand.
Optionally, the network state assessed value based on acquisition chooses a net from the to be switched WiFi network set When network status assessment value is not less than the WiFi network of the switching threshold of setting as the second WiFi network, selection unit 42 is used for:
From the to be switched WiFi network set, network state assessed value is filtered out not less than the switching threshold set Each WiFi network, and the highest WiFi network of network state assessed value is selected from each WiFi network filtered out, make For the second WiFi network;Alternatively,
From the to be switched WiFi network set, network state assessed value is filtered out not less than the switching threshold set Each WiFi network, and from each WiFi network filtered out, a WiFi network is randomly selected, as the 2nd WiFi net Network.
Optionally, before switching to second WiFi network from first WiFi network, switch unit 43 is further For:
Meet preset switching condition in the working condition for determining itself, the preset switching condition includes the following conditions In any one or an any combination:
Determine that the network flow for itself being in standby or generating is 0;
Determine that the network flow that itself is generated is lower than the flow threshold set;
Determine that the network flow of itself generation reaches the flow threshold of setting, but the fluctuating range of the network flow is higher than Preset amplitude threshold.
Optionally, when switching to second WiFi network from first WiFi network, switch unit 43 is used for:
Request the second WiFi network of access;
Pass through the certification of the second WiFi network;
Series of fortified passes is coupled to the second WiFi network, and the second WiFi network of triggering obtains the caching not yet transmitted from the first WiFi network Data frame;
Disconnect the connection with the first WiFi network.
Based on the same inventive concept, the embodiment of the present invention provides a kind of storage medium, preserves for realizing switching WiFi The program of the method for network, which is characterized in that when described program is run by processor, execute following steps:
After receiving the first WiFi network, the WiFi network that itself there is access right is scanned in peripheral extent, obtains phase The to be switched WiFi network set answered;
For each WiFi network in the to be switched WiFi network set, corresponding network state assessed value is calculated;
When determining that the working condition of first WiFi network does not meet use demand, the network state assessment based on acquisition Value selects the second WiFi network for meeting use demand from the to be switched WiFi network set;
Second WiFi network is switched to from first WiFi network.
Based on the same inventive concept, the embodiment of the present invention provides a kind of communication device, including one or more processors;With And one or more computer-readable mediums, instruction is stored on the readable medium, and described instruction is one or more of When processor executes, so that described device executes any of the above-described method.
In conclusion terminal can make after accessing the first WiFi network by having in peripheral extent in the embodiment of the present invention It is recorded as to be switched WiFi network set with the WiFi network of permission, 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, network state assessed value is selected not less than setting Fixed switching threshold.In this way, indicating without user, terminal can closed by the working condition of each WiFi network of monitoring In due course machine is chosen rapidly and accesses the optimal WiFi network of current working status, so that switching duration is shortened 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, is effectively promoted User experience.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, those skilled in the art can carry out various modification and variations without departing from this hair to the embodiment of the present invention The spirit and scope of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention And its within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of method for switching WiFi network characterized by comprising
After accessing the first WiFi network, the WiFi network with access right in scanning preset range is obtained corresponding to be switched WiFi network set;
For each WiFi network in the to be switched WiFi network set, corresponding network state assessed value is calculated;
When determining that the network state assessed value of first WiFi network is unsatisfactory for use demand, in the to be switched WiFi network In set, WiFi network of the network state assessed value not less than the switching threshold of setting is chosen as the second WiFi network;
Second WiFi network is switched to from first WiFi network.
2. the method as described in claim 1, which is characterized in that the WiFi network with access right in scanning preset range, Obtain corresponding to be switched WiFi network set, comprising:
The WiFi network for meeting preset condition scanned in preset range is recorded as to be switched WiFi network set, wherein The WiFi network for meeting preset condition includes having accessed and having saved the WiFi network of access pin, once accessed simultaneously And the WiFi network of access pin, once access and without using the WiFi network of access pin, do not access are saved But without using the WiFi network of access pin.
3. the method as described in claim 1, which is characterized in that calculate the network state assessed value of WiFi network, comprising:
Detect the signal strength of the WiFi network;
Detect the network delay of the WiFi network;
Detect the Network Abnormal number of the WiFi network;
Signal strength, network delay and Network Abnormal number based on the WiFi network, calculate the network state of the network Assessed value, wherein the network state assessed value is positively correlated with the signal strength, with the network delay and the network Frequency of abnormity is negatively correlated.
4. the method according to claim 1, which is characterized in that determine the work shape of first WiFi network State does not meet use demand, comprising:
By each WiFi network in the network state assessed value of first WiFi network, with the to be switched WiFi network set Network state assessed value be compared, when the network state assessed value for determining the first WiFi is not peak, determine institute The working condition for stating the first WiFi network does not meet use demand;Alternatively,
When determining the network state assessed value of first WiFi network lower than the switching threshold set, the first WiFi is determined The working condition of network does not meet use demand.
5. method as claimed in claim 4, which is characterized in that the network state assessed value based on acquisition is from described to be switched In WiFi network set, WiFi network of the network state assessed value not less than the switching threshold of setting is chosen as second WiFi network, comprising:
From the to be switched WiFi network set, it is each not less than the switching threshold of setting to filter out network state assessed value WiFi network, and the highest WiFi network of network state assessed value is selected from each WiFi network filtered out, as Two WiFi networks;Alternatively,
From the to be switched WiFi network set, it is each not less than the switching threshold of setting to filter out network state assessed value WiFi network, and from each WiFi network filtered out, a WiFi network is randomly selected, as the second WiFi network.
6. such as any one of claim 1-3 the method, which is characterized in that switch to described the from first WiFi network Before two WiFi networks, further comprise:
Meet preset switching condition in the working condition for determining itself, the preset switching condition includes one in the following conditions Any one or any combination:
Determine that the network flow for itself being in standby or generating is 0;
Determine that the network flow that itself is generated is lower than the flow threshold set;
Determine that the network flow of itself generation reaches the flow threshold of setting, but the fluctuating range of the network flow is higher than default Amplitude threshold.
7. the method according to claim 1, which is characterized in that switched to from first WiFi network described Second WiFi network, comprising:
Request the second WiFi network of access;
Pass through the certification of the second WiFi network;
Series of fortified passes is coupled to the second WiFi network, and the second WiFi network of triggering is not yet transmitted data cached from the acquisition of the first WiFi network Frame;
Disconnect the connection with the first WiFi network.
8. a kind of device for switching WiFi network characterized by comprising
Scanning element, for after accessing the first WiFi network, the WiFi network with access right in scanning preset range to be obtained Obtain to be switched WiFi network set accordingly;
Computing unit, for calculating corresponding network-like for each WiFi network in the to be switched WiFi network set State assessed value;
Selection unit, when for determining that the network state assessed value of first WiFi network is unsatisfactory for use demand, described In to be switched WiFi network set, WiFi network conduct of the network state assessed value not less than the switching threshold of setting is chosen Second WiFi network;
Switch unit, for switching to second WiFi network from first WiFi network.
9. a kind of storage medium preserves the program of the method for realizing switching WiFi network, which is characterized in that described program When being run by processor, following steps are executed:
After accessing the first WiFi network, the WiFi network with access right in scanning preset range is obtained corresponding to be switched WiFi network set;
For each WiFi network in the to be switched WiFi network set, corresponding network state assessed value is calculated;
When determining that the network state assessed value of first WiFi network is unsatisfactory for use demand, in the to be switched WiFi network In set, WiFi network of the network state assessed value not less than the switching threshold of setting is chosen as the second WiFi network;
Second WiFi network is switched to from first WiFi network.
10. a kind of communication device, which is characterized in that including one or more processors;And it is one or more computer-readable Medium is stored with instruction on the readable medium, when described instruction is executed by one or more of processors, so that the dress Set the method executed as described in any one of claims 1 to 7.
CN201811426393.7A 2018-11-27 2018-11-27 A kind of method and device switching WiFi network Pending CN109379766A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811426393.7A CN109379766A (en) 2018-11-27 2018-11-27 A kind of method and device switching WiFi network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811426393.7A CN109379766A (en) 2018-11-27 2018-11-27 A kind of method and device switching WiFi network

Publications (1)

Publication Number Publication Date
CN109379766A true CN109379766A (en) 2019-02-22

Family

ID=65383239

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811426393.7A Pending CN109379766A (en) 2018-11-27 2018-11-27 A kind of method and device switching WiFi network

Country Status (1)

Country Link
CN (1) CN109379766A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110831112A (en) * 2019-11-07 2020-02-21 深圳市欧瑞博科技有限公司 Network connection method, intelligent household equipment, intelligent gateway and electronic equipment
CN110868747A (en) * 2019-11-28 2020-03-06 上海商米科技集团股份有限公司 Method for detecting delay and automatically switching multiple network modes
CN112867171A (en) * 2021-03-17 2021-05-28 惠州Tcl移动通信有限公司 WIFI connection method and device, storage medium and mobile terminal
CN114221862A (en) * 2021-12-08 2022-03-22 深圳绿米联创科技有限公司 Network configuration method and device of equipment, electronic equipment and storage medium
CN114531709A (en) * 2020-11-23 2022-05-24 中国联合网络通信集团有限公司 Network switching method and device
CN114765776A (en) * 2021-01-14 2022-07-19 青岛海信宽带多媒体技术有限公司 Method for automatically connecting set top box with WIFI, set top box and storage medium
CN112351461B (en) * 2019-08-08 2023-08-22 Oppo广东移动通信有限公司 WiFi network switching method, wiFi network switching device, terminal and storage medium
CN116669128A (en) * 2023-07-31 2023-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 number Priority date Publication date Assignee Title
CN105263154A (en) * 2015-09-17 2016-01-20 广东欧珀移动通信有限公司 Method and system of Wi-Fi equipment for switching wireless access point
CN106604280A (en) * 2017-01-06 2017-04-26 国网新疆电力公司电力科学研究院 Handover method of wireless network
CN107820289A (en) * 2017-11-20 2018-03-20 珠海市魅族科技有限公司 A kind of WIFI network switching method, device, terminal and medium
CN108337707A (en) * 2018-04-17 2018-07-27 Oppo广东移动通信有限公司 A kind of switching method of wireless network, mobile terminal and storage medium

Patent Citations (4)

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

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112351461B (en) * 2019-08-08 2023-08-22 Oppo广东移动通信有限公司 WiFi network switching method, wiFi network switching device, terminal and storage medium
CN110831112A (en) * 2019-11-07 2020-02-21 深圳市欧瑞博科技有限公司 Network connection method, intelligent household equipment, intelligent gateway and electronic equipment
CN110868747A (en) * 2019-11-28 2020-03-06 上海商米科技集团股份有限公司 Method for detecting delay and automatically switching multiple network modes
CN110868747B (en) * 2019-11-28 2020-09-25 上海商米科技集团股份有限公司 Method for detecting delay and automatically switching multiple network modes
CN114531709A (en) * 2020-11-23 2022-05-24 中国联合网络通信集团有限公司 Network switching method and device
CN114765776A (en) * 2021-01-14 2022-07-19 青岛海信宽带多媒体技术有限公司 Method for automatically connecting set top box with WIFI, set top box and storage medium
CN112867171A (en) * 2021-03-17 2021-05-28 惠州Tcl移动通信有限公司 WIFI connection method and device, storage medium and mobile terminal
CN114221862A (en) * 2021-12-08 2022-03-22 深圳绿米联创科技有限公司 Network configuration method and device of equipment, electronic equipment and storage medium
CN116669128A (en) * 2023-07-31 2023-08-29 深圳淇诺科技有限公司 Method, device, equipment and medium for reporting acquired data based on network switching
CN116669128B (en) * 2023-07-31 2023-11-03 深圳淇诺科技有限公司 Method, device, equipment and medium for reporting acquired data based on network switching

Similar Documents

Publication Publication Date Title
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
CN107820717B (en) The method and apparatus of cell switching
JP6479652B2 (en) Handoff between access points in Wi-Fi environment
US11240740B2 (en) Method for processing radio frequency resources and terminal
RU2267224C2 (en) Method for switching communication channels in wireless local network, access point and mobile station, implemented for realization of communication channels switching method
US9526058B2 (en) Smart roam system and method
CN105792290A (en) Method and device for controlling intelligent terminal to perform wireless roaming
CN107592644B (en) Circuit domain fallback method, base station and terminal
US20200252850A1 (en) Method of automatically switching between wlan and lte networks and communication terminal
EP2949152A1 (en) Balancing access point workloads
CN107371204B (en) Traffic sharing switching method, device and system based on mobile terminal
CN111404762A (en) User video quality difference positioning method and device
US20210329519A1 (en) Cell Connection Processing Method and Mobile Terminal
CN109963312A (en) A kind of method for switching network, system, link switch equipment and storage medium
CN107318172B (en) Method and device for establishing communication connection between terminals
CN108738053B (en) Terminal roaming detection method and device
Mouton et al. On the evaluation of make-before-break handovers in urban WiFi networks for moving vehicles
KR101429091B1 (en) Apparatus and method for determining radio access technology for high speed data service in communication system
KR20040099050A (en) Method and System for Realtime Monitoring of Wireless Packet Data Call
CN116846771A (en) Service operation method, device, terminal and readable storage medium
Sanchez et al. Experimental analysis of connectivity management in mobile operating systems
CN113543282B (en) Wireless roaming method and system
CN114051258A (en) Test method and test system for double-frequency seamless roaming of wireless router
CN107333250B (en) Traffic request detection method, device and system based on mobile terminal

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190222

RJ01 Rejection of invention patent application after publication