CN107820289A - A kind of WIFI network switching method, device, terminal and medium - Google Patents

A kind of WIFI network switching method, device, terminal and medium Download PDF

Info

Publication number
CN107820289A
CN107820289A CN201711160659.3A CN201711160659A CN107820289A CN 107820289 A CN107820289 A CN 107820289A CN 201711160659 A CN201711160659 A CN 201711160659A CN 107820289 A CN107820289 A CN 107820289A
Authority
CN
China
Prior art keywords
wifi network
signal intensity
source
connection
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711160659.3A
Other languages
Chinese (zh)
Other versions
CN107820289B (en
Inventor
余哪杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meizu Technology Co Ltd
Original Assignee
Meizu 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 Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201711160659.3A priority Critical patent/CN107820289B/en
Publication of CN107820289A publication Critical patent/CN107820289A/en
Application granted granted Critical
Publication of CN107820289B publication Critical patent/CN107820289B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service

Abstract

The invention discloses a kind of WIFI network switching method, device, terminal and medium, to be actively switched to the more preferable WIFI network of signal quality when detecting that terminal WIFI signal quality reduces, reduces network access delay, improves Consumer's Experience.The WIFI network switching method, including:After intelligent terminal is connected to source WIFI network, whether monitoring source WIFI network signal intensity is less than default signal strength threshold;If monitoring source WIFI network signal intensity is less than default signal strength threshold, judge whether that signal intensity is more than the WIFI network of the source WIFI network signal intensity;If determine WIFI network of the signal intensity more than the source WIFI network signal intensity be present according to judged result, the then connection between release and the source WIFI network, and selection signal intensity is more than the WIFI network foundation connection of the source WIFI network signal intensity.

Description

A kind of WIFI network switching method, device, terminal and medium
Technical field
The present invention relates to intelligent terminal technical field, more particularly to a kind of WIFI network switching method, device, terminal and Jie Matter.
Background technology
This part is it is intended that the embodiments of the present invention stated in claims provide background or context.Herein Description recognizes it is prior art not because not being included in this part.
Wi-Fi (WIreless-Fidelity, Wireless Fidelity) is that a kind of permission electronic equipment is connected to a wireless local The technology of net (WLAN), usually using 2.4G or 5G radio frequency bands, it is typically to have cryptoguard to be connected to WLAN;But It may also be open, so allow for any equipment in the range of WLAN to connect.
According to prior art, electronic equipment, such as intelligent terminal are when First Contact Connections are to WIFI network, if necessary to close Code, then prompt user to input password, if user's input password is correct, allow user to be connected to the WIFI network, intelligence is eventually End operating system automatically saves the password of user's input, will be automatic when user is subsequently entered in the coverage of the WIFI network The WIFI network is connected, without user's active operation.The covering of WIFI network signal is that have what certain region limited, if Some big regions, for example, the large area such as Office Area, market completes covering for wireless signal by disposing multiple WIFI networks Lid.
In the moving process of intelligent terminal, if being moved to the covering marginal position of the WIFI network currently connected, though Right WIFI signal is more and more weaker, still, according to the wireless network connection mechanism of Android operation system, if the WIFI currently connected Signal quality is very poor, even if being deployed with the stronger WIFI network of signal quality around detecting, intelligent terminal also will not actively with The WIFI network currently connected disconnects, until being moved to outside the WIFI network overlay area currently connected.And WIFI believes Number Quality Down will cause network access delay increase, and it reduce Consumer's Experience.
The content of the invention
The embodiment of the present invention provides a kind of WIFI network switching method, device, terminal and medium, to detect terminal WIFI signal quality is actively switched to signal quality more preferable WIFI network when reducing, reduce network access delay, improve user Experience.
First aspect, there is provided a kind of WIFI network switching method, including:
After intelligent terminal is connected to source Wireless Fidelity WIFI network, whether monitoring source WIFI network signal intensity is less than Default signal strength threshold;
If monitoring source WIFI network signal intensity is less than default signal strength threshold, judge whether that signal is strong WIFI network of the degree more than the source WIFI network signal intensity;
If determining WIFI network of the signal intensity more than the source WIFI network signal intensity be present according to judged result, The then connection between release and the source WIFI network, and selection signal intensity is more than the source WIFI network signal intensity WIFI network establishes connection.
Alternatively, the connection between release and the source WIFI network, is specifically included:
Call WIFI Connection Release application programming interfaces API, the connection between release and the source WIFI network.
Alternatively, selection signal intensity is more than before the WIFI network foundation connection of the source WIFI network signal intensity, Also include:
According to the SSID service sets of the WIFI network detected, the area type belonging to current region is determined;And
The WIFI network that selection signal intensity is more than the source WIFI network signal intensity establishes connection, specifically includes:
Area type according to belonging to the current region determined, selection signal intensity are more than the source WIFI network signal The WIFI network of intensity establishes connection.
Preferably, according to the service set SSID of the WIFI network detected, the region class belonging to current region is determined Type, specifically include:
If detect multiple and source WIFI network SSID at least part content identical WIFI networks, it is determined that Current region is office areas;And
Area type according to belonging to the current region determined, selection signal intensity are more than the source WIFI network signal The WIFI network of intensity establishes connection, specifically includes:
Selection WIFI network identical with SSID at least part contents of the source WIFI network and that signal intensity is most strong is built Vertical connection;
If detect multiple WIFI networks different from the SSID of the source WIFI network, it is determined that current region is family Front yard region;And
Area type according to belonging to the current region determined, selection signal intensity are more than the source WIFI network signal The WIFI network of intensity establishes connection, specifically includes:
Selection have recorded connection password and the most strong WIFI network of signal intensity establishes connection;
If detect at least one WIFI network that SSID is present in the SSID set prestored, it is determined that current Region is public domain;And
Area type according to belonging to the current region determined, selection signal intensity are more than the source WIFI network signal The WIFI network of intensity establishes connection, specifically includes:
Target SSID corresponding to the WIFI network for being more than the source WIFI network signal intensity according to signal intensity, to network Side request signal intensity is more than the connection password of the WIFI network of the source WIFI network signal intensity;And
The connection password returned according to the network side, selection are established with the most strong WIFI network of signal intensity and connected.
Second aspect, there is provided a kind of WIFI network switching device, including:
Monitoring unit, after being connected to source Wireless Fidelity WIFI network in intelligent terminal, monitoring source WIFI network letter Whether number intensity is less than default signal strength threshold;
Judging unit, if it is strong less than default signal to monitor source WIFI network signal intensity for the monitoring unit Threshold value is spent, judges whether that signal intensity is more than the WIFI network of the source WIFI network signal intensity;
Network connection control unit, if big for signal intensity be present according to the determination of the judged result of the judging unit In the WIFI network of the source WIFI network signal intensity, the then connection between release and the source WIFI network, and select to believe The WIFI network that number intensity is more than the source WIFI network signal intensity establishes connection.
Alternatively, the network connection control unit, specifically for calling WIFI Connection Release application programming interfaces API, Connection between release and the source WIFI network.
Alternatively, the WIFI network switching device, in addition to determining unit, wherein:
The determining unit, for being more than the source WIFI network in the network connection control unit selection signal intensity The WIFI network of signal intensity is established before connection, according to the service set SSID of the WIFI network detected, it is determined that currently Area type belonging to region;
The network connection control unit, specifically for the area type according to belonging to the current region determined, selection The WIFI network that signal intensity is more than the source WIFI network signal intensity establishes connection.
Preferably, the determining unit, if specifically for detecting the multiple and SSID of the source WIFI network at least Partial content identical WIFI network, it is determined that current region is office areas;The network connection control unit is specific to use Connection is established in selecting WIFI network identical with SSID at least part contents of the source WIFI network and that signal intensity is most strong; Or
The determining unit, if specifically for detecting multiple WIFI nets different from the SSID of the source WIFI network Network, it is determined that current region is home area;The network connection control unit, specifically for selection have recorded connection password and The most strong WIFI network of signal intensity establishes connection;Or
The determining unit, if at least one in the SSID set prestored specifically for detecting SSID to be present in Individual WIFI network, it is determined that current region is public domain;The network connection control unit, specifically for according to signal intensity More than target SSID corresponding to the WIFI network of the source WIFI network signal intensity, it is more than institute to network side request signal intensity State the connection password of the WIFI network of source WIFI network signal intensity;And the connection password returned according to the network side, choosing Select to establish with the most strong WIFI network of signal intensity and connect.
The third aspect, there is provided a kind of terminal, the terminal include processor and memory, and the processor is deposited for execution The step described in any of the above-described method is realized during the computer program stored in reservoir.
A kind of fourth aspect, there is provided readable storage medium storing program for executing, be stored thereon with computer program, it is characterised in that the meter Calculation machine program realizes the step described in any of the above-described method when being executed by processor.
WIFI network switching method, device, terminal and medium provided in an embodiment of the present invention, it is whole by real-time monitoring intelligent The signal intensity of the WIFI network currently connected is held, if the signal intensity of current WIFI network is less than preset signal strength threshold Value, and the higher WIFI network of signal intensity be present, then the connection between the WIFI network for actively discharging and currently connecting, and with The higher WIFI network of signal intensity establishes connection, thus, it is possible to reduce intelligent terminal net access delay, improves user's body Test.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations write Specifically noted structure is realized and obtained in book, claims and accompanying drawing.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the present invention, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the implementation process diagram according to the WIFI network switching method of embodiment of the present invention;
Fig. 2 is the structural representation according to the WIFI network switching device of embodiment of the present invention;
Fig. 3 is the structural representation according to the terminal of embodiment of the present invention.
Embodiment
In order to reduce intelligent terminal network access delay, Consumer's Experience is improved, the embodiments of the invention provide a kind of WIFI Method for switching network, device, terminal and medium.
The preferred embodiments of the present invention are illustrated below in conjunction with Figure of description, it will be appreciated that described herein Preferred embodiment is merely to illustrate and explain the present invention, and is not intended to limit the present invention, and in the case where not conflicting, this hair The feature in embodiment and embodiment in bright can be mutually combined.
As shown in figure 1, it is implementation process diagram of WIFI network switching method provided in an embodiment of the present invention, can be with Comprise the following steps:
S11, after intelligent terminal is connected to source WIFI network, whether monitoring source WIFI network signal intensity less than default Signal strength threshold.
During with implementing, after intelligent terminal and WIFI network establish connection, the WIFI nets currently connected are monitored in real time The signal intensity of network.If the signal intensity of the WIFI network currently connected is more than default signal strength threshold, continue to supervise Control.
It should be noted that connected to distinguish after intelligent terminal carries out the preceding switching with WIFI network of WIFI network switching Different WIFI networks, in the embodiment of the present invention, the WIFI network that intelligent terminal connected before WIFI network switching is referred to as Source WIFI network.
If S12, monitoring source WIFI network signal intensity and being less than default signal strength threshold, letter is judged whether Number intensity is more than the WIFI network of the source WIFI network signal intensity, if it is, performing step S13, otherwise, performs step S11。
Wherein, signal strength threshold can be pre-set according to being actually needed, as the source WIFI that intelligent terminal currently connects When the signal intensity of network is less than the signal strength threshold, illustrate that current network conditions are poor, connect if signal is higher The WIFI network connect, then it can trigger WIFI network switching.
Based on this, in the embodiment of the present invention, if monitoring source WIFI network signal intensity is less than default signal intensity During threshold value, then further determine whether the WIFI network that signal intensity is more than source WIFI network signal intensity be present.
Connection between S13, release and source WIFI network, and selection signal intensity is more than source WIFI network signal intensity WIFI network establishes connection.
In step s 13, WIFI Connection Releases API (application programming interfaces), release and the source WIFI nets can be called Connection between network.Specifically, WifiManager can be called::Disconnect () method, nesting allocation WifiServiceImpl method of the same name, specific implementation program are as follows:
When it is implemented, also need to call the internalist methodology of WIFI state machines, to change the network connection shape of intelligent terminal State.Specifically, the instruction CMD_DISCONNECT for disconnecting WIFI is sent.During due to the success of network connection before, intelligent terminal State is ConnectedState, so handling the message by its parent status L2ConnectedState:
Pass through WifiNative::Disconnect () method issues open command, when disconnection and the connection of WIFI network Afterwards, wpa_s feeds back disconnected event, and WifiMonitor receives the event from wpa_s, and is fed back to WifiStateMachine NETWORK_DISCONNECTION_EVENT message.
When it is implemented, intelligent terminal release is connected with WIFI network, mainly include the following steps that:
1、stopDhcp():Stopping DHCP, (Dynamic Host Configuration Protocol, DynamicHost are matched somebody with somebody Put agreement) process, that is, stop dhcpcd processes.
2、mNwService.clearInterfaceAddresses(mInterfaceName):
Netd is notified to remove wlan0 address information by NetworkManagementService.
3、mWifiInfo.reset():Reset the state of WifiInfo objects.
4、setNetworkDetailedState(DetailedState.DISCONNECTED):
MNetworkInfo connection status is set to DISCONNECTED.
5、mWifiConfigStore.updateStatus(mLastNetworkId,DetailedState.DISCONN ECTED):WifiConfiguration Obj States corresponding to mLastNetworkId are set to DISCONNECTED.
6、clearLinkProperties():Remove the configuration information of mLinkProperties objects.
7、sendNetworkStateChangeBroadcast():Hair broadcast notice upper layer network state change.
8、registerDisconnected():Do some cleaning, writing tasks.
The network connection state of last intelligent terminal is switched to DisconnectedState, so far, completes release and source The flow of connection between WIFI network, wait the initiation connected next time.
In the embodiment of the present invention, after the connection between the WIFI network of source is released, it is also necessary to further selection letter The higher WIFI network of number intensity establishes connection.
In order to improve WIFI network switching efficiency, in the embodiment of the present invention, it is identified for different area types, root Corresponding WIFI network connection method is provided according to different area types.The area type of deployment WIFI network can include public Region, office areas and home area.The characteristics of WIFI network of different types of regional deployment has its each.For example, Administrative Area is generally bigger, the limited coverage area of a WIFI network, so, in the WIFI network of office areas deployment The similar multiple WIFI networks of SSID (service set) may be disposed, therefore, in the WIFI network tool of office areas deployment Body has following characteristics:With multiple SSID at least part content identical WIFI networks.I.e. intelligent terminal can in office areas Multiple WIFI networks can be detected, the SSID of these networks is identical, or at least part content is identical, for example, it may be possible to have phase With prefix title, or there is identical suffix title, or possibility center section content is identical etc., i.e., SSID is included Common character string.And for home dwelling, according to area of residence size, one WIFI network of deployment can cover substantially Whole residence area, and because SSID can have user's modification, therefore, the WIFI of home deployments has the characteristics that:Tool There are the SSID differences of the different WIFI networks of multiple SSID, the i.e. WIFI network of different home deployment.And for public domain, its Free WIFI network may be deployed with for users to use.These WIFI networks can be that to exempt from password i.e. attachable, it is also possible to With connection password.And for the ease of customer access network, intelligent terminal generation manufacturer may be with public domain, such as large-scale business WIFI network is disposed in the cooperations such as field, scenic spot, and the connection password storage of WIFI network is pre- inside intelligent terminal in cloud server SSID set and the network address of cloud server of the WIFI network of deployment are equipped with, when detecting this kind of WIFI network, then Corresponding connection password can be asked to cloud server according to the network address prestored.
Based on this, in the embodiment of the present invention, in step s 13, believe in selection signal intensity more than the source WIFI network The WIFI network of number intensity is established before connection, further comprising the steps of:According to the service set of the WIFI network detected SSID, determine the area type belonging to current region;So, in step s 13, can be with according to the current region institute determined The area type of category, the WIFI network that selection signal intensity is more than source WIFI network signal intensity establish connection.
Below in conjunction with different area types, the connection procedure with WIFI network is introduced respectively.
First, office areas.
The characteristics of according to WIFI network is disposed in office areas, in office areas, intelligent terminal can detect more Individual and SSID at least part content identical WIFI networks of source WIFI network.So, in intelligent terminal moving process, if The WIFI network signal intensity for judging currently to connect is less than default signal strength threshold, and detects the multiple and source SSID at least part content identical WIFI networks of WIFI network, then it is office areas that can determine current region, this In the case of, in step S13, it can select that identical with SSID at least part contents of source WIFI network and signal intensity is most strong WIFI network establishes connection.
If it should be noted that when it is implemented, with the WIFI network connection failure selected, can again with source WIFI network establishes connection.
2nd, home area.
According to the characteristics of the WIFI network disposed in home area, in home area, intelligent terminal can detect multiple The WIFI networks different SSID of source WIFI network.So, in intelligent terminal moving process, if it is judged that currently connect WIFI network signal intensity is less than default signal strength threshold, and detects the different WIFI of the SSID of multiple source WIFI networks Network, then it is home area that can determine current region, in this case, in step S13, can select to have recorded connection password And the most strong WIFI network of signal intensity establishes connection.
Equally, if with the WIFI network connection failure selected, it can establish and connect with source WIFI network again.
3rd, public domain
According to the characteristics of the WIFI network of public domain deployment, in public domain, if intelligent terminal detects that SSID is deposited In at least one WIFI network in the SSID prestored set, it is determined that current region is public domain.So, in intelligence In energy terminal moving process, if it is judged that the WIFI network signal intensity currently connected is less than default signal strength threshold, And detect at least one WIFI network that SSID is present in the SSID set prestored, then it can determine that current region is Public domain, in this case, according to below scheme WIFI network can be selected to establish connection:Source is more than according to signal intensity Target SSID corresponding to the WIFI network of WIFI network signal intensity, believe to network side request signal intensity more than source WIFI network The connection password of the WIFI network of number intensity;And the connection password returned according to the network side, selection and signal intensity are most Strong WIFI network establishes connection.Specifically, intelligent terminal can send to cloud server and ask, and be detected wherein carrying Be present in prestore SSID set in and signal intensity be more than source WIFI network target WIFI network corresponding to target SSID, after cloud server receives the request, password is connected according to corresponding to target SSID searches it and is returned, intelligence is eventually End is established with the most strong WIFI network of signal intensity according to the connection codon usage received and connected.
Equally, if with the WIFI network connection failure selected, it can establish and connect with source WIFI network again.
Said below exemplified by establishing the flow of connection with WIFI network based on the intelligent terminal of Android operation system It is bright.Specifically, when intelligent terminal is by Settings connection WIFI networks, WifiManager connect () is called indirectly Method, connect () method have two kinds of forms, and one kind receives WifiConfiguration objects, and one kind receives some WIFI The networkID of network.WifiConfiguration describes all configuration informations of a WIFI connection.
WifiManager ServiceHandler and WifiService ClientHandler are entered by asynchronous paths Row communication, by AsyncChannel mechanism, CONNECT_NETWORK message is sent to WifiServiceImpl, including it is following Step:
1. connect () the WIFI network informations for being transmitted through are saved in WifiConfigStore objects.
2. pass through WifiConfigStore::SelectNetwork () function updates WifiConfigStore and config Priority priority attributes, final updating is into wpa_s configuration files;The enable WIFI networks currently to be connected, Disable others WIFI networks.
3. pass through WifiNative::Reconnect () function sends link order to wpa_s, connects selected WIFI nets Network.
In WIFI network switching method provided in an embodiment of the present invention, in the source WIFI for monitoring intelligent terminal and currently connecting When network signal intensity is less than default signal strength threshold, then judge that current region is higher with the presence or absence of signal intensity and can connect The WIFI network connect, if it is, the actively connection between release and source WIFI network, the higher WIFI nets of selection signal intensity Network establishes connection.For different zones type, different method for connecting network provided in an embodiment of the present invention.Thus, reduce Intelligent terminal network access delay, improves Consumer's Experience.
Based on same inventive concept, a kind of WIFI network switching device is additionally provided in the embodiment of the present invention, due to above-mentioned The principle that device solves problem is similar to WIFI network switching method, therefore the implementation of said apparatus may refer to the reality of method Apply, repeat part and repeat no more.
As shown in Fig. 2 it is the structural representation of WIFI network switching device provided in an embodiment of the present invention, including:
Monitoring unit 21, after being connected to source Wireless Fidelity WIFI network in intelligent terminal, monitor source WIFI network Whether signal intensity is less than default signal strength threshold;
Judging unit 22, if monitoring source WIFI network signal intensity for the monitoring unit is less than default signal Intensity threshold, judge whether that signal intensity is more than the WIFI network of the source WIFI network signal intensity;
Network connection control unit 23, if for determining signal intensity be present according to the judged result of the judging unit More than the WIFI network of the source WIFI network signal intensity, the then connection between release and the source WIFI network, and selecting The WIFI network that signal intensity is more than the source WIFI network signal intensity establishes connection.
Alternatively, the network connection control unit 23, specifically for calling WIFI Connection Release application programming interfaces API, the connection between release and the source WIFI network.
Alternatively, the WIFI network switching device, in addition to determining unit, wherein:
The determining unit, for being more than the source WIFI nets in the selection signal intensity of network connection control unit 23 The WIFI network of network signal intensity is established before connection, according to the service set SSID of the WIFI network detected, it is determined that working as Area type belonging to forefoot area;
The network connection control unit 23, specifically for the area type according to belonging to the current region determined, choosing The WIFI network that signal intensity is selected more than the source WIFI network signal intensity establishes connection.
Preferably, the determining unit, if specifically for detecting the multiple and SSID of the source WIFI network at least Partial content identical WIFI network, it is determined that current region is office areas;The network connection control unit 23, specifically Connect for selecting WIFI network identical with SSID at least part contents of the source WIFI network and that signal intensity is most strong to establish Connect;Or
The determining unit, if specifically for detecting multiple WIFI nets different from the SSID of the source WIFI network Network, it is determined that current region is home area;The network connection control unit 23, connection password is have recorded specifically for selection And the most strong WIFI network of signal intensity establishes connection;Or
The determining unit, if at least one in the SSID set prestored specifically for detecting SSID to be present in Individual WIFI network, it is determined that current region is public domain;The network connection control unit 23, specifically for strong according to signal Degree is more than more than target SSID corresponding to the WIFI network of the source WIFI network signal intensity to network side request signal intensity The connection password of the WIFI network of the source WIFI network signal intensity;And the connection password returned according to the network side, Selection is established with the most strong WIFI network of signal intensity and connected.
For convenience of description, above each several part is divided by function describes respectively for each module (or unit).Certainly, exist The function of each module (or unit) can be realized in same or multiple softwares or hardware when implementing of the invention.
After the WIFI network switching method and apparatus of exemplary embodiment of the invention are described, next, introducing According to the terminal of the another exemplary embodiment of the present invention.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be implemented as following form, i.e.,:It is complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.), or hardware and software, can unite here Referred to as " circuit ", " module " or " system ".
In some possible embodiments, according to the present invention terminal can comprise at least at least one processing unit, And at least one memory cell.Wherein, the memory cell has program stored therein code, when described program code is by the processing When unit performs so that the processing unit perform this specification foregoing description according to the various illustrative embodiments of the present invention WIFI network switching method in step.For example, the processing unit can perform step S11 as shown in fig. 1, in intelligence Energy terminal is connected to after the WIFI network of source, and whether monitoring source WIFI network signal intensity is less than default signal strength threshold, With step S12, after intelligent terminal is connected to source WIFI network, whether monitoring source WIFI network signal intensity less than default Signal strength threshold, step S13, the connection between release and source WIFI network, and selection signal intensity are more than source WIFI network The WIFI network of signal intensity establishes connection.
The terminal 30 according to the embodiment of the invention is described referring to Fig. 3.The terminal 30 that Fig. 3 is shown is only It is an example, any restrictions should not be brought to the function and use range of the embodiment of the present invention.
As shown in figure 3, terminal 30 is showed in the form of universal computing device.The component of terminal 30 can include but unlimited In:(including storage is single for above-mentioned at least one processing unit 31, above-mentioned at least one memory cell 32, connection different system component Member 32 and processing unit 31) bus 33.
Bus 33 represents the one or more in a few class bus structures, including memory bus or Memory Controller, Peripheral bus, processor or the local bus using any bus structures in a variety of bus structures.
Memory cell 32 can include the computer-readable recording medium of form of volatile memory, such as random access memory (RAM) 321 and/or cache memory 322, it can further include read-only storage (ROM) 323.
Memory cell 32 can also include program/utility 325 with one group of (at least one) program module 324, Such program module 324 includes but is not limited to:Operating system, one or more application program, other program modules and Routine data, the realization of network environment may be included in each or certain combination in these examples.
Terminal 30 can also communicate with one or more external equipments 34 (such as keyboard, sensing equipment etc.), can also be with one Individual or multiple equipment communications for enabling a user to interact with terminal 30, and/or with enabling the terminal 30 and one or more Any equipment (such as router, modem etc.) communication that other computing devices are communicated.This communication can lead to Input/output (I/O) interface 35 is crossed to carry out.Also, terminal 30 can also pass through network adapter 36 and one or more net Network (such as LAN (LAN), wide area network (WAN) and/or public network, such as internet) communication.As shown in figure 3, network is fitted Orchestration 36 is communicated by bus 33 with other modules for terminal 30.It will be appreciated that though not shown in figure, can combine eventually End 30 uses other hardware and/or software module, includes but is not limited to:It is microcode, device driver, redundant processing unit, outer Portion's disk drive array, RAID system, tape drive and data backup storage system etc..
In some possible embodiments, the various aspects of WIFI network switching method provided by the invention can also be real It is now a kind of form of program product, it includes program code, described when described program product is run on a computing device Program code be used to making the computer equipment perform this specification foregoing description according to the various exemplary embodiment party of the present invention Step in the WIFI network switching method of formula, for example, the computer equipment can perform step S11 as shown in fig. 1, After intelligent terminal is connected to source WIFI network, whether monitoring source WIFI network signal intensity is less than default signal intensity threshold Value, and step S12, after intelligent terminal is connected to source WIFI network, whether monitoring source WIFI network signal intensity less than pre- If signal strength threshold, the step S13, connection between release and source WIFI network, and selection signal intensity is more than source WIFI The WIFI network of network signal intensity establishes connection.
Described program product can use any combination of one or more computer-readable recording mediums.Computer-readable recording medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, red The system of outside line or semiconductor, device or device, or any combination above.The more specifically example of readable storage medium storing program for executing (non exhaustive list) includes:Electrical connection, portable disc with one or more wires, hard disk, random access memory (RAM), read-only storage (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc Read memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
The program product for being used for WIFI network switching of embodiments of the present invention can use portable compact disc read-only Memory (CD-ROM) and including program code, and can run on the computing device.However, the program product of the present invention is unlimited In this, in this document, readable storage medium storing program for executing can be any includes or the tangible medium of storage program, the program can be referred to Make the either device use or in connection of execution system, device.
Readable signal medium can be included in a base band or as a part of data-signal propagated of carrier wave, wherein carrying Readable program code.The data-signal of this propagation can take various forms, including --- but being not limited to --- electromagnetism letter Number, optical signal or above-mentioned any appropriate combination.Readable signal medium can also be beyond readable storage medium storing program for executing it is any can Read medium, the computer-readable recording medium can send, propagate either transmit for being used by instruction execution system, device or device or Program in connection.
The program code included on computer-readable recording medium can be transmitted with any appropriate medium, including --- but being not limited to --- Wirelessly, wired, optical cable, RF etc., or above-mentioned any appropriate combination.
Can being combined to write the program operated for performing the present invention with one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., include routine Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user Perform on computing device, partly perform on a user device, the software kit independent as one performs, is partly calculated in user Its upper side point is performed or performed completely in remote computing device or server on a remote computing.It is remote being related to In the situation of journey computing device, remote computing device can pass through the network of any kind --- including LAN (LAN) or wide Domain net (WAN)-be connected to user calculating equipment, or, it may be connected to external computing device (such as utilize Internet service Provider passes through Internet connection).
It should be noted that although being referred to some units or subelement of device in above-detailed, but this stroke Point it is merely exemplary not enforceable.In fact, according to the embodiment of the present invention, it is above-described two or more The feature and function of unit can embody in a unit.Conversely, the feature and function of an above-described unit can To be further divided into being embodied by multiple units.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (10)

  1. A kind of 1. WIFI network switching method, it is characterised in that including:
    After intelligent terminal is connected to source Wireless Fidelity WIFI network, whether monitoring source WIFI network signal intensity is less than default Signal strength threshold;
    If monitoring source WIFI network signal intensity is less than default signal strength threshold, judge whether that signal intensity is big In the WIFI network of the source WIFI network signal intensity;
    If determining WIFI network of the signal intensity more than the source WIFI network signal intensity be present according to judged result, release The connection between the source WIFI network is put, and selection signal intensity is more than the WIFI nets of the source WIFI network signal intensity Network establishes connection.
  2. 2. the method as described in claim 1, it is characterised in that the connection between release and the source WIFI network, specific bag Include:
    Call WIFI Connection Release application programming interfaces API, the connection between release and the source WIFI network.
  3. 3. the method as described in claim 1, it is characterised in that selection signal intensity is more than the source WIFI network signal intensity WIFI network establish connection before, in addition to:
    According to the service set SSID of the WIFI network detected, the area type belonging to current region is determined;And
    The WIFI network that selection signal intensity is more than the source WIFI network signal intensity establishes connection, specifically includes:
    Area type according to belonging to the current region determined, selection signal intensity are more than the source WIFI network signal intensity WIFI network establish connection.
  4. 4. method as claimed in claim 3, it is characterised in that according to the SSID service sets of the WIFI network detected, The area type belonging to current region is determined, is specifically included:
    If detect multiple and source WIFI network SSID at least part content identical WIFI networks, it is determined that current Region is office areas;And
    Area type according to belonging to the current region determined, selection signal intensity are more than the source WIFI network signal intensity WIFI network establish connection, specifically include:
    The WIFI network that selection is identical with SSID at least part contents of the source WIFI network and signal intensity is most strong, which is established, to be connected Connect;
    If detect multiple WIFI networks different from the SSID of the source WIFI network, it is determined that current region is Home Zone Domain;And
    Area type according to belonging to the current region determined, selection signal intensity are more than the source WIFI network signal intensity WIFI network establish connection, specifically include:
    Selection have recorded connection password and the most strong WIFI network of signal intensity establishes connection;
    If detect at least one WIFI network that SSID is present in the SSID set prestored, it is determined that current region For public domain;And
    Area type according to belonging to the current region determined, selection signal intensity are more than the source WIFI network signal intensity WIFI network establish connection, specifically include:
    Target SSID corresponding to the WIFI network for being more than the source WIFI network signal intensity according to signal intensity, please to network side Signal intensity is asked to be more than the connection password of the WIFI network of the source WIFI network signal intensity;And
    The connection password returned according to the network side, selection are established with the most strong WIFI network of signal intensity and connected.
  5. A kind of 5. WIFI network switching device, it is characterised in that including:
    Monitoring unit, after being connected to source Wireless Fidelity WIFI network in intelligent terminal, monitoring source WIFI network signal is strong Whether degree is less than default signal strength threshold;
    Judging unit, if monitoring source WIFI network signal intensity for the monitoring unit is less than default signal intensity threshold Value, judge whether that signal intensity is more than the WIFI network of the source WIFI network signal intensity;
    Network connection control unit, if for determining that signal intensity be present is more than institute according to the judged result of the judging unit The WIFI network of source WIFI network signal intensity is stated, then the connection between release and the source WIFI network, and selection signal is strong Degree establishes connection more than the WIFI network of the source WIFI network signal intensity.
  6. 6. device as claimed in claim 5, it is characterised in that
    The network connection control unit, specifically for calling WIFI Connection Release application programming interfaces API, release and the source Connection between WIFI network.
  7. 7. device as claimed in claim 5, it is characterised in that also including determining unit, wherein:
    The determining unit, for being more than the source WIFI network signal in the network connection control unit selection signal intensity The WIFI network of intensity is established before connection, according to the service set SSID of the WIFI network detected, determines current region Affiliated area type;
    The network connection control unit, specifically for the area type according to belonging to the current region determined, selection signal The WIFI network that intensity is more than the source WIFI network signal intensity establishes connection.
  8. 8. device as claimed in claim 7, it is characterised in that
    The determining unit, if multiple identical with SSID at least part contents of the source WIFI network specifically for detecting WIFI network, it is determined that current region is office areas;The network connection control unit, specifically for selection with it is described The WIFI network that SSID at least part contents of source WIFI network are identical and signal intensity is most strong establishes connection;Or
    The determining unit, if specifically for detecting multiple WIFI networks different from the SSID of the source WIFI network, Then determine that current region is home area;The network connection control unit, connection password and letter are have recorded specifically for selection The most strong WIFI network of number intensity establishes connection;Or
    The determining unit, if at least one in the SSID set prestored specifically for detecting SSID to be present in WIFI network, it is determined that current region is public domain;The network connection control unit, specifically for big according to signal intensity Target SSID corresponding to WIFI network in the source WIFI network signal intensity, it is more than to network side request signal intensity described The connection password of the WIFI network of source WIFI network signal intensity;And the connection password returned according to the network side, selection Establish and connect with the most strong WIFI network of signal intensity.
  9. 9. a kind of terminal, it is characterised in that the terminal includes processor and memory, and the processor is used to perform memory Realized during the computer program of middle storage as any one of claim 1-4 the step of method.
  10. A kind of 10. readable storage medium storing program for executing, it is characterised in that be stored thereon with computer program, it is characterised in that the computer Realized when program is executed by processor as any one of claim 1-4 the step of method.
CN201711160659.3A 2017-11-20 2017-11-20 WIFI network switching method, device, terminal and medium Active CN107820289B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711160659.3A CN107820289B (en) 2017-11-20 2017-11-20 WIFI network switching method, device, terminal and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711160659.3A CN107820289B (en) 2017-11-20 2017-11-20 WIFI network switching method, device, terminal and medium

Publications (2)

Publication Number Publication Date
CN107820289A true CN107820289A (en) 2018-03-20
CN107820289B CN107820289B (en) 2020-09-25

Family

ID=61609629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711160659.3A Active CN107820289B (en) 2017-11-20 2017-11-20 WIFI network switching method, device, terminal and medium

Country Status (1)

Country Link
CN (1) CN107820289B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109379766A (en) * 2018-11-27 2019-02-22 青岛海信宽带多媒体技术有限公司 A kind of method and device switching WiFi network
CN110809300A (en) * 2019-11-19 2020-02-18 上海商米科技集团股份有限公司 WiFi channel switching method and wireless access point
CN111787599A (en) * 2020-08-06 2020-10-16 Oppo(重庆)智能科技有限公司 WIFI frequency band selection method and device, electronic equipment and storage medium
CN113660684A (en) * 2021-08-20 2021-11-16 中国工商银行股份有限公司 Terminal equipment network self-adaptive optimization method and device
CN114339912A (en) * 2021-12-28 2022-04-12 达闼机器人有限公司 Network connection method, device, equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070232307A1 (en) * 2004-12-16 2007-10-04 Tarek Ibrahim Pico Cell Wireless Local Area Network (Wlan)
WO2009093799A1 (en) * 2008-01-23 2009-07-30 Kyungpook National University Industry-Academic Cooperation Foundation Methods and system for application-aware and power-efficient fast handover in wireless lan
CN101959321A (en) * 2010-09-17 2011-01-26 惠州Tcl移动通信有限公司 Scene mode switching method based on mobile phone WIFI and mobile phone
CN102083152A (en) * 2011-03-07 2011-06-01 宇龙计算机通信科技(深圳)有限公司 Method for switching hotspots in wireless local area network (WLAN) and terminal
CN102917424A (en) * 2012-10-25 2013-02-06 陕西科技大学 AP (application process) switching method used in WiFi (wireless fidelity) communication
CN104683546A (en) * 2013-11-29 2015-06-03 深圳富泰宏精密工业有限公司 Profile switching device and method
CN105550591A (en) * 2015-12-10 2016-05-04 厦门美图移动科技有限公司 Security protection device and method for user data in mobile terminal
CN105592517A (en) * 2016-02-17 2016-05-18 宇龙计算机通信科技(深圳)有限公司 Network connection processing method, network connection processing device, and network connection processing terminal
CN105657706A (en) * 2015-10-30 2016-06-08 东莞酷派软件技术有限公司 Access method, related device and access apparatus

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070232307A1 (en) * 2004-12-16 2007-10-04 Tarek Ibrahim Pico Cell Wireless Local Area Network (Wlan)
WO2009093799A1 (en) * 2008-01-23 2009-07-30 Kyungpook National University Industry-Academic Cooperation Foundation Methods and system for application-aware and power-efficient fast handover in wireless lan
CN101959321A (en) * 2010-09-17 2011-01-26 惠州Tcl移动通信有限公司 Scene mode switching method based on mobile phone WIFI and mobile phone
CN102083152A (en) * 2011-03-07 2011-06-01 宇龙计算机通信科技(深圳)有限公司 Method for switching hotspots in wireless local area network (WLAN) and terminal
CN102917424A (en) * 2012-10-25 2013-02-06 陕西科技大学 AP (application process) switching method used in WiFi (wireless fidelity) communication
CN104683546A (en) * 2013-11-29 2015-06-03 深圳富泰宏精密工业有限公司 Profile switching device and method
CN105657706A (en) * 2015-10-30 2016-06-08 东莞酷派软件技术有限公司 Access method, related device and access apparatus
CN105550591A (en) * 2015-12-10 2016-05-04 厦门美图移动科技有限公司 Security protection device and method for user data in mobile terminal
CN105592517A (en) * 2016-02-17 2016-05-18 宇龙计算机通信科技(深圳)有限公司 Network connection processing method, network connection processing device, and network connection processing terminal

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109379766A (en) * 2018-11-27 2019-02-22 青岛海信宽带多媒体技术有限公司 A kind of method and device switching WiFi network
CN110809300A (en) * 2019-11-19 2020-02-18 上海商米科技集团股份有限公司 WiFi channel switching method and wireless access point
CN110809300B (en) * 2019-11-19 2024-03-22 上海商米科技集团股份有限公司 WiFi channel switching method and wireless access point
CN111787599A (en) * 2020-08-06 2020-10-16 Oppo(重庆)智能科技有限公司 WIFI frequency band selection method and device, electronic equipment and storage medium
CN111787599B (en) * 2020-08-06 2022-09-16 Oppo(重庆)智能科技有限公司 WIFI frequency band selection method and device, electronic equipment and storage medium
CN113660684A (en) * 2021-08-20 2021-11-16 中国工商银行股份有限公司 Terminal equipment network self-adaptive optimization method and device
CN114339912A (en) * 2021-12-28 2022-04-12 达闼机器人有限公司 Network connection method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN107820289B (en) 2020-09-25

Similar Documents

Publication Publication Date Title
CN107820289A (en) A kind of WIFI network switching method, device, terminal and medium
US10791492B2 (en) Method and apparatus for monitoring internet connection status in wireless communication system
CN103518418B (en) A kind of method and apparatus connected between bluetooth equipment
US10171997B2 (en) Method and apparatus for interconnection between terminal device and gateway device
CN110167201A (en) A kind of method, relevant apparatus and the system of data transmission
CN104170460A (en) Network switching method and terminal
CN104486762A (en) Access control method of intelligent home appliance and intelligent home appliance system
CN105122896A (en) Access network discovery and selection
CN108512870A (en) Access method, platform of internet of things and the internet of things equipment of platform of internet of things
US20190238613A1 (en) Self-Organizing Network Communication
CN106068637B (en) The method and system of service conversation is established between searchers's device and advertizer's device
CN109548178A (en) A kind of communication means and the network equipment
CN108770008A (en) Configuration method, device and the storage medium that household appliance networks
CN109314723A (en) A kind of method, apparatus and terminal for realizing data service
CN103716901A (en) Method and system used for building connection between apparatuses and related equipment
WO2012110078A1 (en) Coordination between self-organizing networks
CN112346751B (en) Application program installation method and device, electronic equipment and storage medium
CN115669077A (en) Electronic gateway device, system, method, and program for prompting creation of hotspots on mobile devices for client devices
CN107567070B (en) Household appliance networking method and device
CN105960817B (en) Communication equipment and the method for configuration of communications device, storage medium
CN104954484A (en) IoT (Internet of Things) connection method and device
CN105978606A (en) Remote communication method for Bluetooth device, Bluetooth device and client
CN108462984A (en) A kind of method and terminal carrying out access network management
CN103781138B (en) Method, apparatus and system for connecting WiMo sending terminal to WLAN
CN108966281A (en) Mesh network processing method, device, equipment and storage medium

Legal Events

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