CN107277877A - Method for switching network, mobile terminal and computer-readable recording medium - Google Patents

Method for switching network, mobile terminal and computer-readable recording medium Download PDF

Info

Publication number
CN107277877A
CN107277877A CN201710666622.1A CN201710666622A CN107277877A CN 107277877 A CN107277877 A CN 107277877A CN 201710666622 A CN201710666622 A CN 201710666622A CN 107277877 A CN107277877 A CN 107277877A
Authority
CN
China
Prior art keywords
wlan
mobile terminal
network access
network
carry out
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
CN201710666622.1A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710666622.1A priority Critical patent/CN107277877A/en
Publication of CN107277877A publication Critical patent/CN107277877A/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/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 is applied to communication technical field there is provided a kind of method for switching network, mobile terminal and computer-readable recording medium, and this method includes:When the current connected WLAN of mobile terminal can not carry out network access, detect whether there are other WLAN;If so, and can carry out in the WLAN lists of network access exist other WLAN in WLAN, then obtain the WLAN of presence RSSI value, the number of times and network quality fraction of network access can be carried out;If RSSI value is more than the first predetermined threshold value, the number of times that can carry out network access more than the second predetermined threshold value and the network quality fraction WLAN current connected more than mobile terminal network quality fraction, the current connected WLAN of mobile terminal is switched into the WLAN.It can be solved by the present invention when the WLAN that mobile terminal is connected can not carry out network access, it is impossible to the problem of meeting the online demand of user.

Description

Method for switching network, mobile terminal and computer-readable recording medium
Technical field
The invention belongs to communication technical field, more particularly to method for switching network, mobile terminal and computer-readable storage Medium.
Background technology
With the development of the communication technology, most mobile terminal (such as mobile phone, tablet personal computer) can be by even Connect WLAN (Wireless Local Area Networks, WLAN) and carry out network access, such as mobile phone is in connection The operation such as web page browsing or chat is carried out under WLAN.However, when the WLAN that mobile terminal is connected can not carry out network access, The online demand of user can not be met.
Therefore be necessary to propose a kind of new technical scheme, to solve above-mentioned technical problem.
The content of the invention
In view of this, the embodiments of the invention provide a kind of method for switching network, mobile terminal and computer-readable storage Medium, to solve when the WLAN that mobile terminal is connected can not carry out network access, it is impossible to which the online demand for meeting user is asked Topic.
The first aspect of the embodiment of the present invention provides a kind of method for switching network, and the method for switching network includes:
Detect the current connected network of mobile terminal;
If the current connected network of the mobile terminal is WLAN WLAN, detect that the mobile terminal is current Whether the WLAN connected can carry out network access;
If whether the current connected WLAN of the mobile terminal can not carry out depositing in network access, detection preset range In other WLAN;
If there are other WLAN in the preset range, that detects the mobile terminal storage can carry out network access With the presence or absence of the WLAN in other described WLAN in WLAN lists;
If there is the WLAN in other described WLAN in the WLAN lists that network access can be carried out, the energy is obtained The intensity indicating RSSI value of the reception signal of WLAN present in the WLAN lists of progress network access in other described WLAN, The number of times and network quality fraction of network access can be carried out;
If the RSSI value that can carry out the WLAN present in the WLAN lists of network access in other described WLAN is big It is more than the second predetermined threshold value and network quality fraction in the first predetermined threshold value, the number of times that can carry out network access and is more than the movement The current connected WLAN of terminal network quality fraction, then by the WLAN alternately WLAN, and the mobile terminal is worked as Preceding connected WLAN switches to the alternative WLAN.
The second aspect of the embodiment of the present invention provides a kind of mobile terminal, and the mobile terminal includes:
First detection module, the network current connected for detecting mobile terminal;
Second detection module, if the network current connected for the mobile terminal is WLAN WLAN, is examined Survey whether the current connected WLAN of the mobile terminal can carry out network access;
3rd detection module, if the WLAN current connected for the mobile terminal can not carry out network access, is examined Survey and whether there is other WLAN in preset range;
4th detection module, if for there are other WLAN in the preset range, detecting the mobile terminal storage The WLAN lists that can carry out network access in the presence or absence of the WLAN in other described WLAN;
Acquisition module, if for existing in the WLAN lists that can carry out network access in other described WLAN WLAN, then obtain the reception signal of the WLAN in other WLAN described in described can carry out present in the WLAN lists of network access Intensity indicating RSSI value, the number of times and network quality fraction of network access can be carried out;
First handover module, if can be carried out present in the WLAN lists of network access in other described WLAN for described WLAN RSSI value be more than the first predetermined threshold value, can carry out network access number of times be more than the second predetermined threshold value and network quality Fraction is more than the current connected WLAN of mobile terminal network quality fraction, then by the WLAN alternately WLAN, and The current connected WLAN of the mobile terminal is switched into the alternative WLAN.
The third aspect of the embodiment of the present invention provides a kind of mobile terminal, including memory, processor and is stored in In the memory and the computer program that can run on the processor, described in the computing device during computer program Realize as described in above-mentioned first aspect the step of method for switching network.
The fourth aspect of the embodiment of the present invention provides a kind of computer-readable recording medium, the computer-readable storage Media storage has computer program, realizes that the network as described in above-mentioned first aspect is cut when the computer program is executed by processor The step of changing method.
The beneficial effect that the embodiment of the present invention exists compared with prior art is:The embodiment of the present invention passes through in mobile terminal When current connected WLAN can not carry out network access, it whether there is other WLAN in detection preset range, and can carry out When there is the WLAN in other WLAN in the WLAN lists of network access, deposited from the WLAN lists that this can carry out network access Other WLAN in WLAN in select RSSI value and be more than more than the first predetermined threshold value, the number of times that can carry out network access The WLAN and network quality fraction of second predetermined threshold value are more than the current connected WLAN of mobile terminal WLAN, and by the WLAN Alternately WLAN, alternative WLAN is switched to by the current connected WLAN of mobile terminal.The embodiment of the present invention by RSSI value, The number of times and network quality fraction of network access can be carried out search can carry out network access and network condition better than it is mobile eventually The current connected WLAN in end WLAN, so that may be implemented in the current connected WLAN of mobile terminal can not carry out network access When, switch it to network access and the preferable WLAN of network state can be carried out, and then meet the online demand of user.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art In required for the accompanying drawing that uses be briefly described, it should be apparent that, drawings in the following description are only some of the present invention Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Accompanying drawing obtains other accompanying drawings.
Fig. 1 is the implementation process schematic diagram for the method for switching network that the embodiment of the present invention one is provided;
Fig. 2 is the implementation process schematic diagram for the method for switching network that the embodiment of the present invention two is provided;
Fig. 3 is the schematic diagram for the mobile terminal that the embodiment of the present invention three is provided;
Fig. 4 is the schematic diagram for the mobile terminal that the embodiment of the present invention four is provided;
Fig. 5 is the schematic diagram for the mobile terminal that the embodiment of the present invention five is provided.
Embodiment
In describing below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc Body details, thoroughly to understand the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention can also be realized in the other embodiments of details.In other situations, omit to well-known system, device, electricity Road and the detailed description of method, in case unnecessary details hinders description of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " indicates described spy Levy, entirety, step, operation, the presence of element and/or component, but be not precluded from one or more of the other feature, entirety, step, Operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, " one " and "the" are intended to include plural form.
It will be further appreciated that, the term "and/or" used in description of the invention and appended claims is Refer to any combinations of one or more of the associated item listed and be possible to combination, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, the mobile terminal described in the embodiment of the present invention is including but not limited to such as with the sensitive table of touch Mobile phone, laptop computer or the tablet PC in face (for example, touch-screen display and/or touch pad) etc it is other Portable set.It is to be further understood that in certain embodiments, the equipment not portable communication device, but have The desktop computer of touch sensitive surface (for example, touch-screen display and/or touch pad).
In discussion below, the mobile terminal including display and touch sensitive surface is described.However, should manage Solution, one or more of the other physical User that mobile terminal can include such as physical keyboard, mouse and/or control-rod connects Jaws equipment.
Mobile terminal supports various application programs, such as one or more of following:Drawing application program, demonstration application Program, word-processing application, website establishment application program, disk imprinting application program, spreadsheet applications, game are answered With program, telephony application, videoconference application, email application, instant messaging applications, forging Refining supports application program, photo management application program, digital camera application program, digital camera application program, web-browsing should With program, digital music player application and/or video frequency player application program.
The various application programs that can be performed on mobile terminals can use at least one of such as touch sensitive surface Public physical user-interface device.It can be adjusted among applications and/or in corresponding application programs and/or change touch is quick Feel the corresponding information shown in the one or more functions and terminal on surface.So, terminal public physical structure (for example, Touch sensitive surface) the various application programs with user interface directly perceived and transparent for a user can be supported.
It should be understood that the size of the sequence number of each step is not meant to the priority of execution sequence in the present embodiment, each process Execution sequence should be determined with its function and internal logic, and any limit is constituted without tackling the implementation process of the embodiment of the present invention.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
It is the implementation process schematic diagram for the method for switching network that the embodiment of the present invention one is provided, the network switching referring to Fig. 1 Method is applied to mobile terminal, and the method for switching network may comprise steps of as shown in the figure:
Step S101, the current connected network of detection mobile terminal.
In embodiments of the present invention, unlatching WLAN switch and opening for data network are usually provided with the terminal Close, the mobile terminal can be determined described mobile whole by detecting WLAN on off state and the on off state of data network The current connected network in end is WLAN or data network.Specifically, detecting WLAN on off state for opening When, determine that the current connected network of the mobile terminal is WLAN, when detecting WLAN on off state closed mode, really The fixed mobile terminal current time is not connected with WLAN;When detecting the on off state of data network for opening, it is determined that The current connected network of the mobile terminal is data network, is detecting the on off state of data network for closed mode When, determine the mobile terminal current time unconnected data network.
Wherein, the data network refers to the subscriber identification card (Subscriber that the mobile terminal is installed Identification Module, SIM card) belonging to the network that is provided of operator, such as three big UNICOMs of operator, movement, The logical network provided of telecommunications, such as general packet radio service technology (General Packet Radio Service, GPRS) Network, 3 G mobile communication network (i.e. 3G network), forth generation mobile communications network (i.e. 4G networks) etc., are not limited herein It is fixed.The WLAN includes but is not limited to Wireless Fidelity (Wireless Fidelity, WiFi) network.
Step S102, if the current connected network of the mobile terminal is WLAN WLAN, detects the shifting Whether the current connected WLAN of dynamic terminal can carry out network access.
In embodiments of the present invention, if detecting the current connected network of the mobile terminal for WLAN, triggering pair The current connected WLAN of mobile terminal network detection, detects that the current connected WLAN of the mobile terminal whether can Network access is carried out, i.e., whether can be surfed the Net.For example trigger the current connected WLAN of the mobile terminal and access what is pre-set Web page address, detect the current connected WLAN of the mobile terminal (such as 5 seconds) in preset time whether can receive with The corresponding page info of the web page address, if receiving the page info in preset time, it is determined that the mobile terminal is worked as Preceding connected WLAN can carry out network access;If not receiving the page info in preset time, it is determined that the movement The current connected WLAN of terminal can not carry out network access.
Step S103, if the current connected WLAN of the mobile terminal can not carry out network access, the default model of detection It whether there is other WLAN in enclosing.
In embodiments of the present invention, if the current connected WLAN of the mobile terminal can not carry out network access, open The WLAN scan functions of the mobile terminal are opened, be whether there is with detecting in preset range except the mobile terminal is current connected WLAN outside WLAN.Wherein, the preset range be can ensure the mobile terminal can search other WLAN and The distance range of communication connection can be set up with the WLAN searched.For example, using the current location of mobile terminal as the center of circle, radius For 10 meters of circle.
Step S104, if there are other WLAN in the preset range, detects carrying out for the mobile terminal storage With the presence or absence of the WLAN in other described WLAN in the WLAN lists of network access.
In embodiments of the present invention, the WLAN in the WLAN lists that can carry out network access of the mobile terminal storage is The number of times that network access can be carried out in the WLAN that the mobile terminal was connected before current time is more than zero WLAN, described Can carry out network access WLAN lists include but is not limited to carry out network access number of times be more than zero WLAN title and It is corresponding to carry out the number of times of network access.Wherein, the number of times that can carry out network access refers to the number of times that can be surfed the Net. The WLAN number of times that can carry out network access is bigger, illustrates that mobile terminal can carry out the probability of network access and get over when connecting the WLAN Greatly.
Optionally, the method for switching network also includes:
When the mobile terminal connects WLAN, detect whether the WLAN can carry out network access;
If the WLAN can carry out network access, the number of times that can carry out network access of the WLAN plus 1;
If the WLAN can not carry out network access, the number of times that can carry out network access of the WLAN is subtracted 1.
In embodiments of the present invention, the mobile terminal all can first be detected and connected in connection WLAN every time Whether WLAN can carry out network access, if network access can be carried out, and setting can carry out network access attribute, and (can surf the Net category Property) (can for example carry out network access attribute netValid=true) is identified for first, and the WLAN can be subjected to network visit The number of times asked plus 1;If network access can not be carried out, setting can carry out network access attribute and be identified (for example for second NetValid=flase), the number of times that can carry out network access of the WLAN subtracts 1;If the list of network access can be carried out by detecting Middle presence can carry out WLAN of the number of times less than 0 of network access, then reset the number of times that can carry out network access of the WLAN, and The WLAN is deleted from the list that can carry out network access;If detecting, any WLAN number of times that can carry out network access is become by 0 More than 0, then the WLAN to be added in the list that can carry out network access.Wherein it is possible to which each WLAN can be carried out into net The initial value for the number of times that network is accessed is set to 0.
Step S105, if there is the WLAN in other described WLAN in the WLAN lists that network access can be carried out, Obtain the intensity of the reception signal that can carry out the WLAN present in the WLAN lists of network access in other described WLAN Indicating RSSI value, the number of times and network quality fraction that network access can be carried out.
In embodiments of the present invention, with that may be wrapped in other described WLAN in the WLAN lists that network access can be carried out WLAN containing identical, if detecting the WLAN existed in the WLAN lists that can carry out network access in other described WLAN (be detected simultaneously by and be present in the WLAN lists that can carry out network access and the WLAN in other described WLAN), then obtain The intensity of the reception signal of the WLAN is taken to indicate (Received Signal Strength Indication, RSSI) value and net Network mass fraction, and search from the WLAN lists that can carry out network access the WLAN can carry out time of network access Number.It should be noted that be present in simultaneously in the WLAN lists that can carry out network access with other described WLAN WLAN quantity may be multiple.So just obtain it is multiple and meanwhile be present in the WLAN lists that can carry out network access with The RSSI value of each WLAN in WLAN in other described WLAN, the number of times and network quality point that network access can be carried out Number.
In embodiments of the present invention, transmission that can be by detecting the current connected WLAN links of the mobile terminal is controlled Agreement (Transmission Control Protocol, TCP), HTTP (HyperText Transfer Protocol, HTTP), packet loss and receive signal intensity indicate (Received Signal Strength Indication, RSSI) parameter such as value, acquired aforementioned four parameter is weighted algorithm calculates the mobile terminal and work as Preceding connected WLAN network quality fraction, can according to the current connected WLAN of mobile terminal network quality fraction The network state for judging the current connected WLAN of the mobile terminal is good or poor.
Step S106, if described can carry out the WLAN's present in the WLAN lists of network access in other described WLAN The number of times that RSSI value is more than the first predetermined threshold value, can carry out network access is more than the second predetermined threshold value and network quality fraction and is more than The current connected WLAN of mobile terminal network quality fraction, then by the WLAN alternately WLAN, and being moved described The current connected WLAN of dynamic terminal switches to the alternative WLAN.
Wherein, the first predetermined threshold value and the second predetermined threshold value are used to limit the preferable WLAN of network quality, can according to Family, which is actually needed, voluntarily to be set, and is not limited thereto.
If the WLAN in other described WLAN is not present in the WLAN lists that network access can be carried out, or the energy Carry out default more than first in the absence of RSSI value in the WLAN present in the WLAN lists of network access in other described WLAN Threshold value, the number of times that can carry out network access are more than the second predetermined threshold value and network quality fraction and are more than the current institute of the mobile terminal The WLAN of the WLAN of connection network quality fraction, then can point out the current connected WLAN of mobile terminal described in user can not Network access is carried out, the current connected WLAN of mobile terminal router please be check.
Optionally, it is described that the mobile terminal is current connected when the quantity of the alternative WLAN is multiple WLAN, which switches to the alternative WLAN, to be included:
The current connected WLAN of the mobile terminal is switched into RSSI value maximum in the multiple alternative WLAN WLAN。
In embodiments of the present invention, when the quantity of the alternative WLAN is multiple, relatively more the multiple alternative WLAN's RSSI value, selects the WLAN of RSSI value maximum from the multiple alternative WLAN, and the mobile terminal is current connected WLAN switches to the WLAN.The current connected WLAN of the mobile terminal can also be switched to can carry out time of network access The maximum WLAN of the maximum WLAN of number, network quality fraction, RSSI value are maximum and can carry out the number of times of network access maximum WLAN, RSSI value maximum and the maximum WLAN of network quality fraction, the number of times maximum and network quality point that network access can be carried out The maximum WLAN of number or RSSI value, the equal maximum WLAN of number of times and network quality fraction that network access can be carried out, herein It is not construed as limiting.
The embodiment of the present invention can be entered by RSSI value, the number of times and network quality fraction that can carry out network access to search The WLAN of row network access and the network condition WLAN current connected better than mobile terminal, works as so as to may be implemented in mobile terminal When preceding connected WLAN can not carry out network access, switch it to the preferable WLAN of network access network state can be carried out, And then meet the online demand of user.
It is the implementation process schematic diagram for the method for switching network that the embodiment of the present invention two is provided, the network switching referring to Fig. 2 Method is applied to mobile terminal, and the method for switching network may comprise steps of as shown in the figure:
Step S201, the current connected network of detection mobile terminal.
The step is identical with step S101, for details, reference can be made to step S101 associated description, will not be repeated here.
Step S202, if the current connected network of the mobile terminal is WLAN WLAN, detects the shifting Whether the current connected WLAN of dynamic terminal can carry out network access.
The step is identical with step S102, for details, reference can be made to step S102 associated description, will not be repeated here.
Step S203, if the current connected WLAN of the mobile terminal can not carry out network access, the default model of detection It whether there is other WLAN in enclosing.
The step is identical with step S103, for details, reference can be made to step S103 associated description, will not be repeated here.
Step S204, if there are other WLAN in the preset range, detects carrying out for the mobile terminal storage With the presence or absence of the WLAN in other described WLAN in the WLAN lists of network access.
The step is identical with step S104, for details, reference can be made to step S104 associated description, will not be repeated here.
Step S205, if there is the WLAN in other described WLAN in the WLAN lists that network access can be carried out, Obtain the intensity of the reception signal that can carry out the WLAN present in the WLAN lists of network access in other described WLAN Indicating RSSI value, the number of times and network quality fraction that network access can be carried out.
The step is identical with step S105, for details, reference can be made to step S105 associated description, will not be repeated here.
Step S206, if in the WLAN that can be carried out present in the WLAN lists of network access in other described WLAN It is more than the first predetermined threshold value in the absence of RSSI value, the number of times of network access can be carried out more than the second predetermined threshold value and network quality point The WLAN of the number WLAN current connected more than mobile terminal network quality fraction, it is determined that be not detected by alternative WLAN, data network is switched to by the current connected WLAN of the mobile terminal.
In the present invention is implemented, if described can be carried out present in the WLAN lists of network access in other described WLAN WLAN RSSI value is less than or equal to the first predetermined threshold value, can carry out the number of times of network access less than or equal to the second predetermined threshold value And/or network quality fraction is less than or equal to the current connected WLAN of mobile terminal network quality fraction, then really Surely it is not detected by alternative WLAN.
Wherein, the first predetermined threshold value and the second predetermined threshold value are used to limit the preferable WLAN of network quality, can according to Family, which is actually needed, voluntarily to be set, and is not limited thereto.
The embodiment of the present invention is by the way that when mobile terminal is presently in that alternative WLAN is not present in environment, mobile terminal is worked as Preceding connected WLAN, which is switched to, can carry out the data network of network access, so that it is current connected to may be implemented in mobile terminal When can not carry out network access of WLAN, switches it to can carry out the data network of network access, and then meet the upper of user Net demand.
Referring to Fig. 3, it is the schematic diagram for the mobile terminal that the embodiment of the present invention three is provided, for convenience of description, illustrate only The part related to the embodiment of the present invention.
The mobile terminal includes:
First detection module 30, the network current connected for detecting mobile terminal;
Second detection module 31, if the network current connected for the mobile terminal is WLAN WLAN, Detect whether the current connected WLAN of the mobile terminal can carry out network access;
3rd detection module 32, if the WLAN current connected for the mobile terminal can not carry out network access, Detect and whether there is other WLAN in preset range;
4th detection module 33, if for there are other WLAN in the preset range, detecting that the mobile terminal is deposited With the presence or absence of the WLAN in other described WLAN in the WLAN lists that can carry out network access of storage;
Acquisition module 34, if for existing in the WLAN lists that can carry out network access in other described WLAN WLAN, then obtain the reception signal of the WLAN in other WLAN described in described can carry out present in the WLAN lists of network access Intensity indicating RSSI value, the number of times and network quality fraction of network access can be carried out;
First handover module 35, if other described WLAN present in the WLAN lists of network access can be carried out for described In WLAN RSSI value be more than the first predetermined threshold value, can carry out network access number of times be more than the second predetermined threshold value and network matter Measure the network quality fraction that fraction is more than the current connected WLAN of the mobile terminal, then by the WLAN alternately WLAN, And the current connected WLAN of the mobile terminal is switched into the alternative WLAN.
Optionally, the mobile terminal also includes:
Second handover module 36, if for being not detected by alternative WLAN, the mobile terminal is current connected WLAN switches to data network;
Second handover module 36 includes
Detection unit, if for being not detected by alternative WLAN, whether detection data network can carry out network access;
Switch unit, if for network access can be carried out, the current connected WLAN of the mobile terminal is switched to Data network.
Optionally, first handover module 35 is used for:
When the quantity of the alternative WLAN is multiple, the current connected WLAN of the mobile terminal is switched to described RSSI in multiple alternative WLAN refers to the WLAN of maximum;
The mobile terminal also includes:
5th detection module 37, for when the mobile terminal connects WLAN, detecting whether the WLAN can carry out net Network is accessed;
Number of times increases module 38, if can carry out network access for the WLAN, the WLAN can be carried out into network The number of times of access adds 1;
Number of times reduces module 39, if can not carry out network access for the WLAN, the WLAN can be carried out into net The number of times that network is accessed subtracts 1.
The embodiment of the present invention can be entered by RSSI value, the number of times and network quality fraction that can carry out network access to search The WLAN of row network access and the network condition WLAN current connected better than mobile terminal, works as so as to may be implemented in mobile terminal When preceding connected WLAN can not carry out network access, switch it to the preferable WLAN of network access network state can be carried out, And then meet the online demand of user.
Fig. 4 is the schematic diagram for the mobile terminal that the embodiment of the present invention four is provided.The mobile terminal as depicted can be wrapped Include:One or more processors 401 (only show one) in figure;One or more input equipments 402 (one is only shown in figure), One or more output equipments 403 (one is only shown in figure) and memory 404.It is above-mentioned processor 401, input equipment 402, defeated Go out equipment 403 and memory 404 is connected by bus 404.Memory 404 is used for store instruction, and processor 401 is deposited for execution The instruction that reservoir 404 is stored.Wherein:
The processor 401, the network current connected for detecting mobile terminal;If the mobile terminal currently connects The network connect is WLAN WLAN, then detects whether the current connected WLAN of the mobile terminal can carry out network visit Ask;If the current connected WLAN of the mobile terminal can not carry out whether there is it in network access, detection preset range He is WLAN;If there are other WLAN in the preset range, that detects the mobile terminal storage can carry out network access With the presence or absence of the WLAN in other described WLAN in WLAN lists;If there is institute in the WLAN lists that network access can be carried out The WLAN in other WLAN is stated, then obtains described can carry out present in the WLAN lists of network access in other described WLAN The intensity indicating RSSI value of WLAN reception signal, the number of times and network quality fraction of network access can be carried out;If the energy The RSSI value for carrying out the WLAN present in the WLAN lists of network access in other described WLAN is more than the first predetermined threshold value, energy The number of times of progress network access is more than the second predetermined threshold value and network quality fraction is current connected more than the mobile terminal WLAN network quality fraction, then by the WLAN alternately WLAN, and the current connected WLAN of the mobile terminal is cut Shift to the alternative WLAN.
Optionally, the processor 401, if being additionally operable to be not detected by alternative WLAN, by the current institute of the mobile terminal The WLAN of connection switches to data network.
Optionally, the processor 401, if specifically for being not detected by alternative WLAN, whether detection data network can Carry out network access;If network access can be carried out, the current connected WLAN of the mobile terminal is switched into data network.
Optionally, the processor 401, it is described specifically for the current connected WLAN of the mobile terminal is switched to The maximum WLAN of RSSI value in multiple alternative WLAN.
Optionally, the processor 401, is additionally operable to, when the mobile terminal connects WLAN, whether detect the WLAN Network access can be carried out;If the WLAN can carry out network access, the number of times that can carry out network access of the WLAN is added 1;If the WLAN can not carry out network access, the number of times that can carry out network access of the WLAN is subtracted 1.
The memory 404, for storing software program and module.The processor 401 is stored in institute by operation The software program and module of memory 404 are stated, so that various function application and data processing are performed, will be described mobile whole The current connected WLAN in end switches to alternative WLAN.
It should be appreciated that in embodiments of the present invention, the processor 401 can be CPU (Central Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at It can also be any conventional processor etc. to manage device.
Input equipment 402 can include Trackpad, fingerprint adopt sensor (finger print information that is used to gathering user and fingerprint Directional information), microphone, data receiver interface etc..Output equipment 403 can include display (LCD etc.), loudspeaker, data Transmission interface etc..
The memory 404 can include read-only storage and random access memory, and to processor 401 provide instruction and Data.The a part of of memory 404 can also include nonvolatile RAM.For example, memory 404 can also be deposited Store up the information of device type.
In the specific implementation, processor 401, input equipment 402, the and of output equipment 403 described in the embodiment of the present invention Memory 404 can perform the implementation described in the embodiment of method for switching network provided in an embodiment of the present invention, also may be used The implementation described in mobile terminal described in embodiment three is performed, be will not be repeated here.
Fig. 5 is the schematic diagram for the mobile terminal that the embodiment of the present invention five is provided.As shown in figure 5, the mobile end of the embodiment End 5 includes:Processor 50, memory 51 and it is stored in the meter that can be run in the memory 51 and on the processor 50 Calculation machine program 52.The processor 50 is realized when performing the computer program 52 in each above-mentioned method for switching network embodiment The step of, such as the step S101 to S106 shown in Fig. 1.Or, the processor 50 performs real during the computer program 52 The function of each module/unit, such as function of module 31 to 39 shown in Fig. 3 in existing above-mentioned each device embodiment.
Exemplary, the computer program 52 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 51, and are performed by the processor 50, to complete the present invention.Described one Individual or multiple module/units can complete the series of computation machine programmed instruction section of specific function, and the instruction segment is used for Implementation procedure of the computer program 52 in the mobile terminal 5 is described.For example, the computer program 52 can be divided It is cut into first detection module, the second detection module, the 3rd detection module, the 4th detection module, acquisition module, the first switching mould Block, the second handover module, the 5th detection module, number of times increase module and number of times reduce module, and each module concrete function is as follows:
First detection module, the network current connected for detecting mobile terminal;
Second detection module, if the network current connected for the mobile terminal is WLAN WLAN, is examined Survey whether the current connected WLAN of the mobile terminal can carry out network access;
3rd detection module, if the WLAN current connected for the mobile terminal can not carry out network access, is examined Survey and whether there is other WLAN in preset range;
4th detection module, if for there are other WLAN in the preset range, detecting the mobile terminal storage The WLAN lists that can carry out network access in the presence or absence of the WLAN in other described WLAN;
Acquisition module, if for existing in the WLAN lists that can carry out network access in other described WLAN WLAN, then obtain the reception signal of the WLAN in other WLAN described in described can carry out present in the WLAN lists of network access Intensity indicating RSSI value, the number of times and network quality fraction of network access can be carried out;
First handover module, if can be carried out present in the WLAN lists of network access in other described WLAN for described WLAN RSSI value be more than the first predetermined threshold value, can carry out network access number of times be more than the second predetermined threshold value and network quality Fraction is more than the current connected WLAN of mobile terminal network quality fraction, then by the WLAN alternately WLAN, and The current connected WLAN of the mobile terminal is switched into the alternative WLAN.
Optionally, the mobile terminal also includes:
Second handover module, if for being not detected by alternative WLAN, by the current connected WLAN of the mobile terminal Switch to data network;
Second handover module includes
Detection unit, if for being not detected by alternative WLAN, whether detection data network can carry out network access;
Switch unit, if for network access can be carried out, the current connected WLAN of the mobile terminal is switched to Data network.
Optionally, first handover module is used for:
When the quantity of the alternative WLAN is multiple, the current connected WLAN of the mobile terminal is switched to described RSSI in multiple alternative WLAN refers to the WLAN of maximum;
The mobile terminal also includes:
5th detection module, for when the mobile terminal connects WLAN, detecting whether the WLAN can carry out network Access;
Number of times increases module, if can carry out network access for the WLAN, the WLAN can be carried out into network visit The number of times asked plus 1;
Number of times reduces module, if can not carry out network access for the WLAN, the WLAN can be carried out into network The number of times of access subtracts 1.
The mobile terminal 5 can be that the calculating such as desktop PC, notebook, palm PC and cloud server is set It is standby.The mobile terminal may include, but be not limited only to, processor 50, memory 51.It will be understood by those skilled in the art that Fig. 5 Only the example of mobile terminal 5, does not constitute the restriction to mobile terminal 5, can include than illustrating more or less portions Part, either combines some parts or different parts, such as described mobile terminal can also include input-output equipment, net Network access device, bus etc..
Alleged processor 50 can be central processing unit CPU, can also be other general processors, Digital Signal Processing Device DSP, application-specific integrated circuit ASIC, ready-made programmable gate array FPGA or other PLDs, discrete gate or Transistor logic, discrete hardware components etc..General processor can be microprocessor or the processor can also be appointed What conventional processor etc..
The memory 51 can be the internal storage unit of the mobile terminal 5, such as hard disk of mobile terminal 5 or interior Deposit.The memory 51 can also be the External memory equipment of the mobile terminal 5, such as is equipped with described mobile terminal 5 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodges Deposit card (Flash Card) etc..Further, the memory 51 can also both include the storage inside list of the mobile terminal 5 Member also includes External memory equipment.The memory 51 is used for needed for storing the computer program and the mobile terminal Other programs and data.The memory 51 can be also used for temporarily storing the data that has exported or will export.Institute The technical staff in category field can be understood that, for convenience of description and succinctly, only with above-mentioned each functional unit, module Division progress for example, in practical application, can be as needed and by above-mentioned functions distribution by different functional units, mould Block is completed, i.e., the internal structure of described device is divided into different functional unit or module, to complete whole described above Or partial function.Each functional unit, module in embodiment can be integrated in a processing unit or each list Member is individually physically present, can also two or more units it is integrated in a unit, above-mentioned integrated unit both can be with Realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.In addition, the tool of each functional unit, module Body title is also only to facilitate mutually differentiation, is not limited to the protection domain of the application.Unit, module in said system Specific work process, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, without detailed description or note in some embodiment The part of load, may refer to the associated description of other embodiments.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
, can be by it in embodiment provided by the present invention, it should be understood that disclosed mobile terminal and method Its mode is realized.For example, mobile terminal embodiment described above is only schematical, for example, the module or list The division of member, only a kind of division of logic function can have other dividing mode when actually realizing, such as multiple units or Component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, show Show or the coupling each other discussed or direct-coupling or communication connection can be by some interfaces, between device or unit Coupling or communication connection are connect, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated module/unit realized using in the form of SFU software functional unit and as independent production marketing or In use, can be stored in a computer read/write memory medium.Understood based on such, the present invention realizes above-mentioned implementation All or part of flow in example method, can also instruct the hardware of correlation to complete, described meter by computer program Calculation machine program can be stored in a computer-readable recording medium, and the computer program can be achieved when being executed by processor The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or some intermediate forms etc..The computer-readable medium It can include:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic of the computer program code can be carried Dish, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium is included can carry out appropriate increasing according to legislation in jurisdiction and the requirement of patent practice Subtract, such as, in some jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier signal and electricity Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to foregoing reality Example is applied the present invention is described in detail, it will be understood by those within the art that:It still can be to foregoing each Technical scheme described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed Or replace, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme, all should Within protection scope of the present invention.

Claims (10)

1. a kind of method for switching network, it is characterised in that the method for switching network includes:
Detect the current connected network of mobile terminal;
If the current connected network of the mobile terminal is WLAN WLAN, detect that the mobile terminal currently connects Whether the WLAN connect can carry out network access;
If the current connected WLAN of the mobile terminal can not carry out whether there is it in network access, detection preset range He is WLAN;
If there are other WLAN in the preset range, that detects the mobile terminal storage can carry out the WLAN of network access With the presence or absence of the WLAN in other described WLAN in list;
If there is the WLAN in other described WLAN in the WLAN lists that network access can be carried out, obtain the energy and carry out The intensity indicating RSSI value of the reception signal of WLAN present in the WLAN lists of network access in other described WLAN, it can enter The number of times and network quality fraction of row network access;
If the RSSI value that can carry out present in the WLAN lists of network access the WLAN in other described WLAN is more than the One predetermined threshold value, the number of times that can carry out network access are more than the second predetermined threshold value and network quality fraction and are more than the mobile terminal Current connected WLAN network quality fraction, then by the WLAN alternately WLAN, and by the current institute of the mobile terminal The WLAN of connection switches to the alternative WLAN.
2. method for switching network as claimed in claim 1, it is characterised in that the method for switching network also includes:
If being not detected by alternative WLAN, the current connected WLAN of the mobile terminal is switched into data network.
3. method for switching network as claimed in claim 2, it is characterised in that if being not detected by alternative WLAN, is moved described The current connected WLAN of dynamic terminal, which switches to data network, to be included:
If being not detected by alternative WLAN, whether detection data network can carry out network access;
If network access can be carried out, the current connected WLAN of the mobile terminal is switched into data network.
4. method for switching network as claimed in claim 1, it is characterised in that when the quantity of the alternative WLAN is multiple, The WLAN that the mobile terminal is current connected, which switches to the alternative WLAN, to be included:
The current connected WLAN of the mobile terminal is switched into the maximum WLAN of RSSI value in the multiple alternative WLAN.
5. method for switching network as claimed in claim 1, it is characterised in that the method for switching network also includes:
When the mobile terminal connects WLAN, detect whether the WLAN can carry out network access;
If the WLAN can carry out network access, the number of times that can carry out network access of the WLAN plus 1;
If the WLAN can not carry out network access, the number of times that can carry out network access of the WLAN is subtracted 1.
6. a kind of mobile terminal, it is characterised in that the mobile terminal includes:
First detection module, the network current connected for detecting mobile terminal;
Second detection module, if the network current connected for the mobile terminal is WLAN WLAN, detects institute State whether the current connected WLAN of mobile terminal can carry out network access;
3rd detection module, if the WLAN current connected for the mobile terminal can not carry out network access, detection is pre- If whether there is other WLAN in scope;
4th detection module, if for there are other WLAN in the preset range, detecting the energy of the mobile terminal storage Carry out in the WLAN lists of network access with the presence or absence of the WLAN in other described WLAN;
Acquisition module, if for there is the WLAN in other described WLAN in the WLAN lists that can carry out network access, Obtain the intensity of the reception signal that can carry out the WLAN present in the WLAN lists of network access in other described WLAN Indicating RSSI value, the number of times and network quality fraction that network access can be carried out;
First handover module, if can be carried out present in the WLAN lists of network access in other described WLAN for described WLAN RSSI value is more than the first predetermined threshold value, can carry out the number of times of network access more than the second predetermined threshold value and network quality point The number WLAN current connected more than mobile terminal network quality fraction, then by the WLAN alternately WLAN, and will The current connected WLAN of the mobile terminal switches to the alternative WLAN.
7. mobile terminal as claimed in claim 6, it is characterised in that the mobile terminal also includes:
Second handover module, if for being not detected by alternative WLAN, the current connected WLAN of the mobile terminal is switched To data network;
Second handover module includes:
Detection unit, if for being not detected by alternative WLAN, whether detection data network can carry out network access;
Switch unit, if for network access can be carried out, the current connected WLAN of the mobile terminal is switched into data Network.
8. mobile terminal as claimed in claim 6, it is characterised in that first handover module is used for:
When the quantity of the alternative WLAN is multiple, the current connected WLAN of the mobile terminal is switched to the multiple RSSI in alternative WLAN refers to the WLAN of maximum;
The mobile terminal also includes:
5th detection module, for when the mobile terminal connects WLAN, detecting whether the WLAN can carry out network access;
Number of times increases module, if can carry out network access for the WLAN, the WLAN can be carried out into network access Number of times adds 1;
Number of times reduces module, if can not carry out network access for the WLAN, the WLAN can be carried out into network access Number of times subtract 1.
9. a kind of mobile terminal, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, it is characterised in that realize such as claim 1 to 5 described in the computing device during computer program The step of any one method for switching network.
10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, its feature exists In the step of realization method for switching network as described in any one of claim 1 to 5 when the computer program is executed by processor Suddenly.
CN201710666622.1A 2017-08-07 2017-08-07 Method for switching network, mobile terminal and computer-readable recording medium Pending CN107277877A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710666622.1A CN107277877A (en) 2017-08-07 2017-08-07 Method for switching network, mobile terminal and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710666622.1A CN107277877A (en) 2017-08-07 2017-08-07 Method for switching network, mobile terminal and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107277877A true CN107277877A (en) 2017-10-20

Family

ID=60076759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710666622.1A Pending CN107277877A (en) 2017-08-07 2017-08-07 Method for switching network, mobile terminal and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107277877A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107708141A (en) * 2017-11-27 2018-02-16 广东欧珀移动通信有限公司 A kind of scan method of wireless network, mobile terminal and storage medium
CN110267302A (en) * 2019-06-18 2019-09-20 广东以诺通讯有限公司 A kind of raising VoWiFi business service quality method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080014934A1 (en) * 2006-07-14 2008-01-17 Srinivasan Balasubramanian Wlan system scanning and selection
CN104967990A (en) * 2015-04-29 2015-10-07 深圳市金立通信设备有限公司 Terminal
CN105050118A (en) * 2015-07-31 2015-11-11 腾讯科技(深圳)有限公司 Wi-Fi hotspot connecting method and device
CN106454976A (en) * 2016-10-08 2017-02-22 广东欧珀移动通信有限公司 Switching method and device for wireless network and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080014934A1 (en) * 2006-07-14 2008-01-17 Srinivasan Balasubramanian Wlan system scanning and selection
CN104967990A (en) * 2015-04-29 2015-10-07 深圳市金立通信设备有限公司 Terminal
CN105050118A (en) * 2015-07-31 2015-11-11 腾讯科技(深圳)有限公司 Wi-Fi hotspot connecting method and device
CN106454976A (en) * 2016-10-08 2017-02-22 广东欧珀移动通信有限公司 Switching method and device for wireless network and terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107708141A (en) * 2017-11-27 2018-02-16 广东欧珀移动通信有限公司 A kind of scan method of wireless network, mobile terminal and storage medium
CN107708141B (en) * 2017-11-27 2020-01-10 Oppo广东移动通信有限公司 Wireless network scanning method, mobile terminal and storage medium
CN110267302A (en) * 2019-06-18 2019-09-20 广东以诺通讯有限公司 A kind of raising VoWiFi business service quality method and system

Similar Documents

Publication Publication Date Title
CN107484190B (en) Method for connecting network, mobile terminal and computer readable storage medium
CN107222898A (en) Method for switching network, mobile terminal and computer-readable recording medium
CN107197489A (en) Method for switching network, mobile terminal and computer-readable recording medium
US20160357616A1 (en) Application management method and application management apparatus
CN110225104A (en) Data capture method, device and terminal device
CN107241771A (en) Method for switching network, mobile terminal and computer-readable recording medium
CN107295592A (en) Method for switching network, mobile terminal and computer-readable recording medium
CN108810260A (en) antenna switching control method and related product
CN107318140A (en) Method for switching network, mobile terminal and computer-readable recording medium
CN107346397A (en) Information processing method and related product
CN107404740B (en) Method for switching network, device and the terminal device of safety
CN108196458A (en) Intelligent home equipment control method, device and terminal device
CN106951057A (en) The control method and mobile terminal of application
CN110445558A (en) Performance test methods, device and terminal device
CN107291327A (en) Application control method and related product
CN109309735A (en) Connection processing method, server, system and storage medium
CN106209918A (en) The method of a kind of internet security management and terminal
CN107506494A (en) Document handling method, mobile terminal and computer-readable recording medium
CN107277896A (en) Wifi hotspot management method, device and terminal device
CN107277877A (en) Method for switching network, mobile terminal and computer-readable recording medium
CN107343326A (en) A kind of data transmission method and device
CN106302519A (en) The method of a kind of internet security management and terminal
CN106535249A (en) Control method and control device for wireless local area networks, and terminal
CN108337706A (en) A kind of switching method of wireless network, mobile terminal and storage medium
CN107864295A (en) Call control method, mobile terminal and computer-readable recording 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171020