CN105916181A - Network switching method and device - Google Patents
Network switching method and device Download PDFInfo
- Publication number
- CN105916181A CN105916181A CN201610488672.0A CN201610488672A CN105916181A CN 105916181 A CN105916181 A CN 105916181A CN 201610488672 A CN201610488672 A CN 201610488672A CN 105916181 A CN105916181 A CN 105916181A
- Authority
- CN
- China
- Prior art keywords
- wireless network
- connect
- network
- terminal
- blacklist
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0011—Control or signalling for completing the hand-off for data sessions of end-to-end connection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/14—Reselecting a network or an air interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
- H04W36/30—Reselection 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 invention discloses a network switching method and device. The method comprises that a terminal is connected with a connectable wireless network when the connectable wireless network is detected; whether the connectable wireless network is an available wireless network or not is judged; when the connectable wireless network is the available wireless network, whether the throughput rate of the connectable wireless network is less than a preset threshold value or not is detected; when the throughput rate of the connectable wireless network is less than the preset threshold value, the currently connected connectable wireless network is disconnected; and a data network channel is started. Through adoption of the method, the wireless network and a data network can be switched intelligently; it is unnecessary to close the wireless network channel and open the data network channel manually by a user; the method and the device are simpler and faster; and the user experience is improved.
Description
Technical field
The present invention relates to field of terminal technology, particularly to a kind of method for switching network and device.
Background technology
Terminal, as smart mobile phone, panel computer etc. use wireless netting twine or data network to access the Internet, and
And terminal would generally preferentially use wireless network access the Internet, but for some wireless network, terminal can
To connect, but the Internet can not be accessed, but or can to access the Internet network condition poor, network speed slowly,
Now user needs manual-lock wireless tunnel, and opens data network passage, cumbersome, user
It is poor to experience.
Summary of the invention
The embodiment of the invention discloses a kind of method for switching network and device, it is achieved wireless network and data network
Network intelligence switching, it is not necessary to user's manual-lock wireless tunnel with open data network passage, more
Simple and fast, improves Consumer's Experience.
The invention provides a kind of method for switching network, including:
When detect can connect wireless network time, connect the described wireless network that can connect, and can be the most wireless described in judging
Whether network is available wireless network;
When judged result is for being, whether the current described throughput connecting wireless network connected of detection is less than
Predetermined threshold value;
When the test results is yes, the current described wireless network that connects connected, and turn-on data network are disconnected
Passage.
Alternatively, can connect described in described judgement whether wireless network is that available wireless network includes:
Send access request to default website, check whether return value is first threshold, the most described can
Even wireless network is available wireless network;Otherwise, the described wireless network that connects is non-available wireless network.
Alternatively, the described wireless network that connects includes N number of wireless network;Described available wireless network includes M
Individual wireless network, wherein, M≤N, M, N are positive integer;What described detection currently connected described connects nothing
Whether the throughput of gauze network includes less than predetermined threshold value:
Check whether the throughput of M wireless network is both less than predetermined threshold value;
When checking result all for being, disconnect the connection of described wireless network, and open the data network of terminal
Passage.
Alternatively, described method also includes:
When judged result is no, will currently connect described in can connect wireless network add blacklist;Or,
When testing result is no, will currently connect described in can connect wireless network add described blacklist.
Alternatively, after the data network passage of the described terminal of described unlatching, described method also includes:
Check whether described blacklist exists by predetermined period and can connect wireless network;The most then from described black
List removes the described wireless network that can connect, and perform described when detect can connect wireless network time, connect institute
State the step that can connect wireless network.
Alternatively, after the data network passage of the described terminal of described unlatching, described method also includes:
Positional information is obtained by positioning function every preset time period;
According to described positional information, it is judged that whether the position of terminal changes, the most then remove described black
The wireless network stored in list, and perform described when detect can connect wireless network time, connect described in can connect
The step of wireless network.
Present invention also offers a kind of network switching device, including:
Connect unit, for when detect can connect wireless network time, connect described in can connect wireless network;
First judging unit, is used for judging described to connect whether wireless network is available wireless network;
Detector unit, for when judged result is for being, the current connection of detection described connects wireless network
Whether throughput is less than predetermined threshold value;
Performance element, for when the test results is yes, disconnects current the described of connection and connects wireless network,
And turn-on data network channel.
Alternatively, described first judging unit specifically for, to default website send access request, check and return
Return whether value is first threshold, the most then described in can to connect wireless network be available wireless network;Otherwise, institute
State that can to connect wireless network be non-available wireless network.
Alternatively, the described wireless network that connects includes N number of wireless network;Described available wireless network includes M
Individual wireless network, wherein, M≤N, M, N are positive integer;
Described detector unit is additionally operable to, and checks whether the throughput of M wireless network is both less than predetermined threshold value;
Described performance element is additionally operable to, and when checking result all for being, disconnects the connection of described wireless network,
And open the data network passage of terminal.
Alternatively, described device also includes:
Adding device, for when judged result is no, will currently connect described in can connect wireless network and add
Blacklist;Or, when testing result is no, will currently connect described in can connect wireless network add described black
List.
Alternatively, described device also includes:
Check unit, wireless network can be connected for checking whether described blacklist exists by predetermined period;
First removes unit, for when in described blacklist, existence can connect wireless network, then from described black name
Wireless network can be connected described in list removes.
Alternatively, described device also includes:
Acquiring unit, for obtaining positional information every preset time period by positioning function;
Second judging unit, for according to described positional information, it is judged that whether the position of terminal changes;
Second removes unit, for when the position of described terminal changes, removes in described blacklist and stores up
The wireless network deposited.
Foregoing invention, when detect can connect wireless network time, terminal connects this can connect wireless network, and judges
This can connect whether wireless network is available wireless network;When judged result is for being, being somebody's turn to do of the current connection of detection
The throughput of wireless network can be connected whether less than predetermined threshold value;When the test results is yes, current connection is disconnected
This connected wireless network, and turn-on data network channel.Wireless network and number can be realized by the method
According to network intelligence switching, it is not necessary to user's manual-lock wireless tunnel with open data network passage,
Simpler fast, improve Consumer's Experience.
And, when the throughput of the currently available wireless network of terminal judges is the most poor, just turn-on data network leads to
Road, preferentially uses wireless network, it is to avoid produce the usage charges of unnecessary data traffic.
Further, the available wireless network of non-available wireless network or rate variance of handling up is added blacklist, it is to avoid eventually
End repeats to connect, and causes terminal network switching frequently, reduces the in-fighting of terminal;And can periodically remove black
Wireless network in list, and again detect wireless network, it is to avoid the high available wireless network of network quality because of
It is added into blacklist, and use cannot be connected.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to enforcement
In example or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, describe below
In accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not paying
On the premise of going out creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of method for switching network one better embodiment that the present invention provides;
Fig. 2 is the structural representation of wireless network display interface one better embodiment that the present invention provides;
Fig. 3 is the schematic flow sheet of another better embodiment of method for switching network that the present invention provides;
Fig. 4 is the structural representation of network switching device one better embodiment that the present invention provides;
Fig. 5 is the structural representation of another better embodiment of network switching device that the present invention provides;
Fig. 6 is the structural representation of terminal one better embodiment that the present invention provides;
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly
Chu, be fully described by, it is clear that described embodiment be only a part of embodiment of the present invention rather than
Whole embodiments.
It should be noted that the term used in embodiments of the present invention is only merely for describing specific embodiment
Purpose, and be not intended to be limiting the present invention.Used in the embodiment of the present invention and appended claims
" a kind of ", " described " and " being somebody's turn to do " of singulative is also intended to include most form, unless context clearly shows that
Other implications.It is also understood that term "and/or" used herein refers to and comprises one or more relevant
Any or all of the project of listing of connection may combination.
Refer to the flow process signal that Fig. 1, Fig. 1 are method for switching network one better embodiment that the present invention provides
Figure.The method for switching network that the embodiment of the present invention provides can apply to terminal, such as smart mobile phone, flat board
Computer etc., the method includes:
Step S101: when detect can connect wireless network time, connect described in can connect wireless network;
Specifically, the described wireless network that connects can include storing without the access wireless network of password, terminal
User name and the wireless network etc. of login password, specifically, terminal can scan neighbouring wireless network launches
End, terminal can select, according to the signal intensity of the wireless network received, the wireless network that signal is the strongest,
Entering authentication, verification process may include that terminal sends authentication information, nothing to wireless network transmitting terminal
After gauze network transmitting terminal receives this authentication information, it is judged that this authentication information is the most correct, if it is, to
This terminal sends authentication response information.Terminal can send association request, wireless network to wireless network transmitting terminal
Network transmitting terminal confirms association request, and now, terminal connects this can connect wireless network.
Step S102: can connect described in Pan Duaning whether wireless network is available wireless network.
Specifically, described available wireless network is to access the wireless network of the Internet, and terminal may determine that
Whether current the connected wireless network connected may have access to the Internet.It is available wireless net when this can connect wireless network
During network, step S103 can be performed, when this can connect wireless network be non-available wireless network time, terminal is permissible
Detection attempts connecting other can connect wireless network, or opens data network passage etc., and the present invention is not restricted.
In the embodiment of the present invention, described in described judgement, can connect whether wireless network is that available wireless network can be wrapped
Include: send access request to default website, check whether return value is first threshold, as first threshold is permissible
It is " 204 ", if it is, the described wireless network that connects is available wireless network;Otherwise, described nothing is connected
Gauze network is non-available wireless network.Such as, terminal can to default website, as
" http://www.baidu.com ", sends access request, and terminal diagnostics current network, when this access request
When return value is " 204 ", then current the connected wireless network connected may have access to the Internet, can perform step S103;
When the return value of this access request is " 599 ", then current the connected wireless network inaccessible interconnection connected
Net;When the return value of this access request is for except " 204 " in addition to, more than 200 and be less than 399 value time, then when
The connected wireless network of front connection is the wireless networks needing further checking, it is believed that this wireless network be non-can
Use wireless network.
In the embodiment of the present invention, when the judged result of step S102 is no, terminal is it is also possible that state and can connect
Wireless network adds blacklist.Wherein, this blacklist is used for depositing and can connect non-available wireless net in wireless network
Network, as in figure 2 it is shown, the knot of wireless network display interface one better embodiment that Fig. 2 is the present invention to be provided
Structure schematic diagram;Fig. 2 includes blacklist menu bar, and this menu bar includes non-available wireless network, when
After wireless network is placed into blacklist, terminal is no longer attempt to connect this wireless network.
Step S103: whether the current described throughput of wireless network that connects connected of detection is less than predetermined threshold value.
Specifically, when the connected wireless network that terminal currently connects is available wireless network, terminal can be examined
Survey the throughput of this connected wireless network currently connected whether less than predetermined threshold value, such as 300Kbit/s,
500Kbit/s, 1Mbit/s etc., if it is, the poor signal quality of current the connected wireless network connected, can
Perform step S104;Otherwise, the signal quality of current the connected wireless network connected is preferable, and terminal can be protected
Hold this connection that can connect wireless network.
In the embodiment of the present invention, the described wireless network that connects includes N number of wireless network;Described available wireless net
Network includes M wireless network, and wherein, M≤N, M, N are positive integer;The institute that described detection currently connects
State and can connect the throughput of wireless network and whether may include that less than predetermined threshold value and check gulping down of M wireless network
Tell whether rate is both less than predetermined threshold value, when checking result all for being, perform step S104;Otherwise, as long as
When there is the wireless network that throughput is more than predetermined threshold value in this M wireless network, terminal keeps connect to gulp down
Tell the rate wireless network more than predetermined threshold value.
In the embodiment of the present invention, when the testing result of step S103 is no, terminal can also will currently connect
Described connect wireless network add blacklist.Wherein, this blacklist can be also used for depositing poor signal quality
Available wireless network, i.e. throughput is less than the available wireless network of predetermined threshold value, can be found in shown in 2 wireless
Network display interface, Fig. 2 include blacklist menu bar can include throughput is less than predetermined threshold value can
With wireless network, after wireless network is placed into blacklist, terminal is no longer attempt to connect this wireless network.
Step S104: disconnect the current described wireless network that connects connected, and turn-on data network channel.
Specifically, when the judged result of step S103 is for being, then the signal quality of the current wireless network connected
Difference, terminal can disconnect the connection of this wireless network, and turn-on data network channel, uses data network.
In the embodiment of the present invention, after step S104, the method can also include: checks institute by predetermined period
State whether blacklist exists and can connect wireless network, if it is, can connect described in removing from described blacklist
Wireless network, and perform step S101;Otherwise, terminal keeps the connection of current data network.Wherein, in advance
If the cycle can be 2 hours, 5 hours, 1 day, 1 week etc., the present invention is not restricted.
In the embodiment of the present invention, after step S104, the method can also include: leads to every preset time period
Cross positioning function and obtain positional information;According to described positional information, it is judged that whether the position of terminal changes,
If it is, remove the wireless network stored in described blacklist, and perform step S101.Specifically, eventually
End can obtain terminal by positioning function every Preset Time and work as such as 1 hour, 2 hours, 5 hours etc.
Front position information, compares to the positional information of adjacent twice acquisition, judges terminal according to comparison result
Whether position changes, if it is, remove the wireless network stored in described blacklist, and performs step
Rapid S101, otherwise, the position of terminal does not changes in Preset Time, and terminal can keep current data
The connection of network.Wherein, positioning function can be to include being entered terminal by modes such as GPS, BDS, WiFi
Row location, positional information can be the location point obtained by positioning function of terminal, it is also possible to be position model
Enclose, such as commercial circle, community etc..Judge that method that whether position of terminal change is it may be that judge phase
Whether the distance between the location point of adjacent twice acquisition is more than predetermined threshold value, such as 300m, 500m, 1km etc.,
If it is, the position of terminal changes, otherwise it is assumed that terminal location does not changes;Judge terminal
The method whether position changes can also be, it is judged that the position range of adjacent twice acquisition is the most consistent,
If it is, the position of terminal changes, otherwise it is assumed that terminal location does not changes.
In the embodiment of the present invention, when detect can connect wireless network time, terminal connects this can connect wireless network,
And judge that this can connect whether wireless network is available wireless network;When judged result is for being, detection currently connects
Whether the throughput of this connected wireless network connect is less than predetermined threshold value;When the test results is yes, disconnecting ought
This connected wireless network of front connection, and turn-on data network channel.Wireless network can be realized by the method
The intelligence switching of network and data network, it is not necessary to user's manual-lock wireless tunnel with open data network
Passage, simpler fast, improve Consumer's Experience.
And, when the throughput of the currently available wireless network of terminal judges is the most poor, just turn-on data network leads to
Road, preferentially uses wireless network, it is to avoid produce the usage charges of unnecessary data traffic.
Further, the available wireless network of non-available wireless network or rate variance of handling up is added blacklist, it is to avoid eventually
End repeats to connect, and causes terminal network switching frequently, reduces the in-fighting of terminal;And can periodically remove black
Wireless network in list, and again detect wireless network, it is to avoid the high available wireless network of network quality because of
It is added into blacklist, and use cannot be connected.
Refer to the flow process that Fig. 3, Fig. 3 are another better embodiment of method for switching network that the present invention provides show
It is intended to.The method for switching network that the embodiment of the present invention provides can apply to terminal, such as smart mobile phone, flat
Plate computer etc., the method includes:
Step S301: when detect can connect wireless network time, connect described in can connect wireless network.
Specifically, the described wireless network that connects can include storing without the access wireless network of password, terminal
User name and the wireless network etc. of login password, specifically, terminal can scan neighbouring wireless network launches
End, terminal can select, according to the signal intensity of the wireless network received, the wireless network that signal is the strongest,
Entering authentication, verification process may include that terminal sends authentication information, nothing to wireless network transmitting terminal
After gauze network transmitting terminal receives this authentication information, it is judged that this authentication information is the most correct, if it is, to
This terminal sends authentication response information.Terminal can send association request, wireless network to wireless network transmitting terminal
Network transmitting terminal confirms association request, and now, terminal connects this can connect wireless network.
Step S302: judge whether the current wireless network connected may have access to preset website.
Specifically, terminal sends access request to default website, checks whether return value is first threshold, as
First threshold can be " 204 ", if it is, the described wireless network that connects is available wireless network;Otherwise,
The described wireless network that connects is non-available wireless network.Such as, terminal can to default website, as
" http://www.baidu.com ", sends access request, and terminal diagnostics current network, when this access request
When return value is " 204 ", then current the connected wireless network connected may have access to this default website, can perform step
Rapid S303;When the return value of this access request is " 599 ", then current the connected wireless network connected can not
Access this default website, step S304 can be performed;When the return value of this access request is in addition to " 204 ", greatly
When 200 and value less than 399, then current the connected wireless network connected is the nothings needing checking further
Gauze network, it is believed that this default website of this wireless network inaccessible, can perform step S304.
Step S303: by the throughput of the first current wireless network connected of predetermined period detection whether less than pre-
If threshold value.
Specifically, terminal can be according to the first predetermined period, such as every 5 minutes, 10 minutes, 20 minutes
Deng, the throughput of the current wireless network connected of detection whether less than predetermined threshold value, such as 300Kbit/s,
500Kbit/s, 1Mbit/s etc., if it is, the poor signal quality of the current wireless network connected, can perform
Step S304;Otherwise, the signal quality of current the connected wireless network connected is preferable, and terminal keeps this to connect
The connection of wireless network.
Step S304: disconnect the connection of active wireless network, and the wireless network currently connected is added black name
Single.
When the judged result of step S302 is no or when the testing result of step S303 is no, terminal is also
The connected wireless network currently connected can be added blacklist.Wherein, this blacklist is used for depositing and can connect nothing
In gauze network, non-available wireless network or throughput are less than the available wireless network of predetermined threshold value, can be found in 2 institutes
Show wireless network display interface.After wireless network is placed into blacklist, it is wireless that terminal is no longer attempt to connect this
Network.
Step S305: judge whether to connect wireless network.
Specifically, after step S304, whether terminal judges exists can connect wireless network, when judged result is
When being, perform step S306;Otherwise, step S301 is performed.
Step S306: turn-on data network channel.
Specifically, when the menu bar of the connected wireless network of terminal does not exist can connect wireless network time, then say
The existing all wireless networks detected of bright terminal are all unsatisfactory for may have access to preset website and throughput is more than
The condition of predetermined threshold value, now, terminal turn-on data network channel, use data network.
Step S307: check whether to exist in blacklist by the second predetermined period and can connect wireless network.
Specifically, after step S306, terminal can by the second predetermined period, such as 2 hours, 5 hours,
Within 1 day, 1 week etc., check whether blacklist exists and can connect wireless network, if it is perform step S308, no
Then keep the connection of data network.
Step S308: remove from blacklist and can connect wireless network.
Specifically, when when checking result for being of step S307, terminal removes and can connect wireless network in blacklist,
And perform step S301.
In the embodiment of the present invention, when detect can connect wireless network time, terminal connects this can connect wireless network,
And judge whether the current wireless network connected may have access to preset website, if it is, by the first predetermined period inspection
Whether the throughput surveying the current wireless network connected is less than predetermined threshold value, if it is, disconnect current wireless
The connection of network, and the wireless network currently connected is added blacklist, can be the most wireless when terminal does not exist
During network, turn-on data network channel, and check whether blacklist exists by the second predetermined period and can connect nothing
Gauze network, can connect wireless network if it is, remove from blacklist, and reconnects this and can connect wireless network
Network.The intelligence switching of wireless network and data network can be realized, it is not necessary to user is manually closed by the method
Close wireless tunnel and open data network passage, simpler fast, improve Consumer's Experience.
And, when the throughput of the currently available wireless network of terminal judges is the most poor, just turn-on data network leads to
Road, preferentially uses wireless network, it is to avoid produce the usage charges of unnecessary data traffic.Further, by non-can
Blacklist is added, it is to avoid terminal repeats to connect, and causes by the available wireless network of wireless network or rate variance of handling up
Terminal network switching frequently, reduces the in-fighting of terminal;And can periodically remove the wireless network in blacklist,
And again detecting wireless network, it is to avoid the high available wireless network of network quality is because being added into blacklist, and nothing
Method connects use.
Refer to the structural representation that Fig. 4, Fig. 4 are network switching device one better embodiment that the present invention provides
Figure.The network switching device that the embodiment of the present invention provides can apply to terminal, such as smart mobile phone, flat board
Computers etc., this network switching device 400 includes: connect unit the 401, first judging unit 402, detection list
Unit 403 and performance element 404, wherein,
Connect unit 401, for when detect can connect wireless network time, connect described in can connect wireless network;
First judging unit 402, is used for judging described to connect whether wireless network is available wireless network;
Detector unit 403, for when judged result is for being, current the described of connection of detection connects wireless network
Throughput whether less than predetermined threshold value;
Performance element 404, for when the test results is yes, disconnects current the described of connection and connects wireless network,
And turn-on data network channel.
In the embodiment of the present invention, described first judging unit 402 specifically for, to default website send access
Request, checks whether return value is first threshold, if first threshold can be " 204 ", if it is, institute
State that can to connect wireless network be available wireless network;Otherwise, the described wireless network that connects is non-available wireless network.
In the embodiment of the present invention, the described wireless network that connects includes N number of wireless network;Described available wireless net
Network includes M wireless network, and wherein, M≤N, M, N are positive integer;
Described detector unit 403 is additionally operable to, and checks that the throughput of M wireless network the most both less than presets threshold
Value;
Described performance element 404 is additionally operable to, and when checking result all for being, disconnects the company of described wireless network
Connect, and open the data network passage of described terminal.
It should be noted that network switching device 400 in various embodiments of the present invention connects unit 401, the
The function of one judging unit 402, detector unit 403 and performance element 404 can be according to said method embodiment
In method implement, it implements process and is referred to the associated description of said method embodiment, this
Place repeats no more.
Refer to the structure that Fig. 5, Fig. 5 are another better embodiment of network switching device that the present invention provides show
It is intended to.The network switching device that the embodiment of the present invention provides can apply to terminal, such as smart mobile phone, flat
Plate computers etc., this network switching device 500, except including in network switching device 400 in addition to unit, also may be used
Including adding device 405, check unit 406, first remove unit 407, acquiring unit 408, second sentence
Disconnected unit 409 and second removes unit 410, wherein,
In the embodiment of the present invention, described network switching device 500 can also include: adding device 405, is used for
When judged result is no, will currently connect described in can connect wireless network add blacklist;Or, work as detection
When result is no, will currently connect described in can connect wireless network add described blacklist.
In the embodiment of the present invention, described network switching device 500 can also include:
Check unit 406, wireless network can be connected for checking whether described blacklist exists by predetermined period;
First removes unit 407, for when in described blacklist, existence can connect wireless network, then from described black
Wireless network can be connected described in list removes.
In the embodiment of the present invention, described network switching device 500 can also include:
Acquiring unit 408, for obtaining positional information every preset time period by positioning function;
Second judging unit 409, for according to described positional information, it is judged that whether the position of terminal changes;
Second removes unit 410, for when the position of described terminal changes, removes in described blacklist
The wireless network stored.
It should be noted that network switching device 500 in various embodiments of the present invention connects unit 401, the
One judging unit 402, detector unit 403, performance element 404, adding device 405, check unit 406,
First remove unit 407, acquiring unit the 408, second judging unit 409 and second removes unit 410
Function can implement according to the method in said method embodiment, and it implements process and is referred to above-mentioned
The associated description of embodiment of the method, here is omitted.
Refer to the structural representation that Fig. 6, Fig. 6 are terminal one better embodiment that the present invention provides.This is eventually
End is used for coordinating enforcement such scheme.This terminal can be smart mobile phone, panel computer etc..The present invention implements
The terminal that example provides may be used for implementing the method that the various embodiments of the present invention shown in above-mentioned Fig. 1 or Fig. 2 realize,
For convenience of description, illustrate only the part relevant to various embodiments of the present invention, concrete ins and outs do not disclose
, refer to the various embodiments of the present invention shown in Fig. 1 or Fig. 2.Wherein, the terminal shown in Fig. 6 can be wrapped
Include: processor 601 and the input module 603 being connected with processor 601 by interface 602, output mould
Block 604, and the memorizer 606 being connected with processor 601 by bus 605.Wherein, memorizer 606
For storing batch processing code;Processor 601 is used for calling the program code of storage in memorizer 606,
For performing following operation:
When detected by input module 603 can connect wireless network time, connect described in can connect wireless network, and
Can connect described in Pan Duaning whether wireless network is available wireless network;
When judged result is for being, whether the current described throughput connecting wireless network connected of detection is less than
Predetermined threshold value;
When the test results is yes, the current described wireless network that connects connected, and turn-on data network are disconnected
Passage.
In the embodiment of the present invention, whether described processor 601 performs can to connect described in described judgement wireless network and is
Available wireless network may include that and sends access request by output module 604 to default website, checks and returns
Return whether value is first threshold, if first threshold can be " 204 ", connect wireless network if it is, described
Network is available wireless network;Otherwise, the described wireless network that connects is non-available wireless network.
In the embodiment of the present invention, the described wireless network that connects includes N number of wireless network;Described available wireless net
Network includes M wireless network, and wherein, M≤N, M, N are positive integer;Described processor 601 performs institute
State whether the current described throughput connecting wireless network connected of detection includes less than predetermined threshold value:
Check whether the throughput of M wireless network is both less than predetermined threshold value;
When checking result all for being, disconnect the connection of described wireless network, and open the data network of terminal
Passage.
In the embodiment of the present invention, described processor 601 is additionally operable to perform:
When judged result is no, will currently connect described in can connect wireless network add blacklist;Or,
When testing result is no, will currently connect described in can connect wireless network add described blacklist.
In the embodiment of the present invention, after the data network passage of described unlatching terminal, described processor 601 is also
For performing:
Check whether described blacklist exists by predetermined period by input module 603 and can connect wireless network;
If it is, remove the described wireless network that can connect from described blacklist, and perform described when detecting and can connect
During wireless network, the step of wireless network described in connection, can be connected.
In the embodiment of the present invention, after the data network passage of the described terminal of described unlatching, described processor 601
It is additionally operable to perform:
Positional information is obtained by positioning function in input module 603 every preset time period;
According to described positional information, it is judged that whether the position of terminal changes, if it is, remove described
The wireless network stored in blacklist, and perform described to connect wireless network by input module 603 when detecting
During network, the step of wireless network described in connection, can be connected.
To sum up should, when detect can connect wireless network time, terminal connects this can connect wireless network, and judge should
Can connect whether wireless network is available wireless network;When judged result is for being, this of the current connection of detection can
Even whether the throughput of wireless network is less than predetermined threshold value;When the test results is yes, current connection is disconnected
This can connect wireless network, and turn-on data network channel.Wireless network and data can be realized by the method
Network intelligence switching, it is not necessary to user's manual-lock wireless tunnel with open data network passage, more
Add simple and fast, improve Consumer's Experience.
And, when the throughput of the currently available wireless network of terminal judges is the most poor, just turn-on data network leads to
Road, preferentially uses wireless network, it is to avoid produce the usage charges of unnecessary data traffic.
Further, the available wireless network of non-available wireless network or rate variance of handling up is added blacklist, it is to avoid eventually
End repeats to connect, and causes terminal network switching frequently, reduces the in-fighting of terminal;And can periodically remove black
Wireless network in list, and again detect wireless network, it is to avoid the high available wireless network of network quality because of
It is added into blacklist, and use cannot be connected.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method,
Can be by computer program and complete to instruct relevant hardware, described program can be stored in a calculating
In machine read/write memory medium, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.
Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory,
Or random store-memory body (Random Access Memory, RAM) etc. ROM).
Above disclosed only one preferred embodiment of the present invention, can not limit this with this certainly
Bright interest field, one of ordinary skill in the art will appreciate that all or part of stream realizing above-described embodiment
Journey, and according to the equivalent variations that the claims in the present invention are made, still fall within the scope that invention is contained.
Claims (12)
1. a method for switching network, it is characterised in that including:
When detect can connect wireless network time, connect the described wireless network that can connect, and can be the most wireless described in judging
Whether network is available wireless network;
When judged result is for being, whether the current described throughput connecting wireless network connected of detection is less than
Predetermined threshold value;
When the test results is yes, the current described wireless network that connects connected, and turn-on data network are disconnected
Passage.
Method the most according to claim 1, it is characterised in that wireless network can be connected described in described judgement
Whether it is that available wireless network includes:
Send access request to default website, check whether return value is first threshold, the most described can
Even wireless network is available wireless network;Otherwise, the described wireless network that connects is non-available wireless network.
Method the most according to claim 1, it is characterised in that the described wireless network that connects includes N number of
Wireless network;Described available wireless network includes M wireless network, and wherein, M≤N, M, N are the most whole
Number;Whether the described throughput connecting wireless network that described detection currently connects includes less than predetermined threshold value:
Check whether the throughput of M wireless network is both less than predetermined threshold value;
When checking result all for being, disconnect the connection of described wireless network, and open the data network of terminal
Passage.
Method the most according to claim 1, it is characterised in that described method also includes:
When judged result is no, will currently connect described in can connect wireless network add blacklist;Or,
When testing result is no, will currently connect described in can connect wireless network add described blacklist.
Method the most according to claim 4, it is characterised in that the data network of described unlatching terminal leads to
After road, described method also includes:
Check whether described blacklist exists by predetermined period and can connect wireless network;The most then from described black
List removes the described wireless network that can connect, and perform described when detect can connect wireless network time, connect institute
State the step that can connect wireless network.
Method the most according to claim 4, it is characterised in that the data network of described unlatching terminal leads to
After road, described method also includes:
Positional information is obtained by positioning function every preset time period;
According to described positional information, it is judged that whether the position of terminal changes, the most then remove described black
The wireless network stored in list, and perform described when detect can connect wireless network time, connect described in can connect
The step of wireless network.
7. a network switching device, it is characterised in that including:
Connect unit, for when detect can connect wireless network time, connect described in can connect wireless network;
First judging unit, is used for judging described to connect whether wireless network is available wireless network;
Detector unit, for when judged result is for being, the current connection of detection described connects wireless network
Whether throughput is less than predetermined threshold value;
Performance element, for when the test results is yes, disconnects current the described of connection and connects wireless network,
And turn-on data network channel.
Device the most according to claim 7, it is characterised in that described first judging unit specifically for,
Send access request to default website, check whether return value is first threshold, the most described can connect nothing
Gauze network is available wireless network;Otherwise, the described wireless network that connects is non-available wireless network.
Device the most according to claim 7, it is characterised in that the described wireless network that connects includes N number of
Wireless network;Described available wireless network includes M wireless network, and wherein, M≤N, M, N are the most whole
Number;
Described detector unit is additionally operable to, and checks whether the throughput of M wireless network is both less than predetermined threshold value;
Described performance element is additionally operable to, and when checking result all for being, disconnects the connection of described wireless network,
And open the data network passage of terminal.
Device the most according to claim 7, it is characterised in that described device also includes:
Adding device, for when judged result is no, will currently connect described in can connect wireless network and add
Blacklist;Or, when testing result is no, will currently connect described in can connect wireless network add described black
List.
11. devices according to claim 10, it is characterised in that described device also includes:
Check unit, wireless network can be connected for checking whether described blacklist exists by predetermined period;
First removes unit, for when in described blacklist, existence can connect wireless network, then from described black name
Wireless network can be connected described in list removes.
12. devices according to claim 10, it is characterised in that described device also includes:
Acquiring unit, for obtaining positional information every preset time period by positioning function;
Second judging unit, for according to described positional information, it is judged that whether the position of terminal changes;
Second removes unit, for when the position of described terminal changes, removes in described blacklist and stores up
The wireless network deposited.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610488672.0A CN105916181A (en) | 2016-06-28 | 2016-06-28 | Network switching method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610488672.0A CN105916181A (en) | 2016-06-28 | 2016-06-28 | Network switching method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105916181A true CN105916181A (en) | 2016-08-31 |
Family
ID=56758805
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610488672.0A Pending CN105916181A (en) | 2016-06-28 | 2016-06-28 | Network switching method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105916181A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106507289A (en) * | 2016-12-07 | 2017-03-15 | 广东欧珀移动通信有限公司 | A kind of cut-in method of wireless network and mobile terminal |
CN106790743A (en) * | 2016-11-28 | 2017-05-31 | 北京小米移动软件有限公司 | Information transferring method, device and mobile terminal |
CN106792942A (en) * | 2016-12-30 | 2017-05-31 | 珠海市魅族科技有限公司 | Communication control method and device |
CN107155202A (en) * | 2017-04-06 | 2017-09-12 | 深圳市金立通信设备有限公司 | A kind of method and terminal of control network switching |
CN115914685A (en) * | 2021-08-24 | 2023-04-04 | 广州辉群智能科技有限公司 | Play control method, terminal equipment and broadcast platform |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101668322A (en) * | 2009-09-17 | 2010-03-10 | 深圳华为通信技术有限公司 | Network switching method of terminal and terminal equipment |
CN105472678A (en) * | 2014-07-31 | 2016-04-06 | 腾讯科技(深圳)有限公司 | Wireless network switching method, wireless network switching device and terminal equipment |
CN105554831A (en) * | 2016-01-28 | 2016-05-04 | 努比亚技术有限公司 | Network switching device and method |
CN105611594A (en) * | 2016-01-28 | 2016-05-25 | 努比亚技术有限公司 | Network switching device and method |
-
2016
- 2016-06-28 CN CN201610488672.0A patent/CN105916181A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101668322A (en) * | 2009-09-17 | 2010-03-10 | 深圳华为通信技术有限公司 | Network switching method of terminal and terminal equipment |
CN105472678A (en) * | 2014-07-31 | 2016-04-06 | 腾讯科技(深圳)有限公司 | Wireless network switching method, wireless network switching device and terminal equipment |
CN105554831A (en) * | 2016-01-28 | 2016-05-04 | 努比亚技术有限公司 | Network switching device and method |
CN105611594A (en) * | 2016-01-28 | 2016-05-25 | 努比亚技术有限公司 | Network switching device and method |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106790743A (en) * | 2016-11-28 | 2017-05-31 | 北京小米移动软件有限公司 | Information transferring method, device and mobile terminal |
CN106507289A (en) * | 2016-12-07 | 2017-03-15 | 广东欧珀移动通信有限公司 | A kind of cut-in method of wireless network and mobile terminal |
US11212677B2 (en) | 2016-12-07 | 2021-12-28 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method for accessing wireless network, and terminal device |
CN106792942A (en) * | 2016-12-30 | 2017-05-31 | 珠海市魅族科技有限公司 | Communication control method and device |
CN107155202A (en) * | 2017-04-06 | 2017-09-12 | 深圳市金立通信设备有限公司 | A kind of method and terminal of control network switching |
CN115914685A (en) * | 2021-08-24 | 2023-04-04 | 广州辉群智能科技有限公司 | Play control method, terminal equipment and broadcast platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105916181A (en) | Network switching method and device | |
US8331904B2 (en) | Apparatus and a security node for use in determining security attacks | |
CN103501333B (en) | Method, device and terminal equipment for downloading files | |
CN102752730B (en) | Method and device for message handling | |
CN101257678A (en) | Method, terminal and system for realizing mobile terminal software safe detection | |
CN105163368A (en) | Wireless network access method and device | |
KR20100007944A (en) | Application logging interface for a mobile device | |
CN104703254B (en) | network access method and device | |
CN105281906A (en) | Safety authentication method and device | |
CN110830986A (en) | Method, device, equipment and storage medium for detecting abnormal behavior of Internet of things card | |
CN108629594A (en) | Method of payment, device, server and storage medium | |
CN105868040A (en) | Log collection method and collection terminal | |
CN104619045A (en) | Access control method and device for mobile terminal | |
CN109347938B (en) | Traffic monitoring method, telephone watch, mobile terminal and server | |
CN106604362A (en) | Wireless fidelity (Wi-Fi) scanning method and mobile terminal | |
CN107197462A (en) | Detection method, device and the electronic equipment of wireless network type | |
US8594624B2 (en) | Wireless provisioning solution for target devices | |
WO2016041171A1 (en) | Method and apparatus for determining terminal roaming status, terminal and server | |
CN109890019A (en) | A kind of bluetooth test method, test equipment and the storage medium of terminal | |
CN106325993A (en) | Freezing method of application program and terminal | |
CN107707571A (en) | A kind of method and apparatus for managing network external connection | |
CN104992116A (en) | Monitoring method and system based on intent sniffer | |
CN107306397B (en) | Terminal equipment network access method and device based on wireless communication technology | |
CN106550405B (en) | Network data receiving control method and system based on mobile terminal | |
CN108696857A (en) | Judge the information processing method and the network equipment of identification card service condition |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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: 20160831 |