CN107155202A - A kind of method and terminal of control network switching - Google Patents

A kind of method and terminal of control network switching Download PDF

Info

Publication number
CN107155202A
CN107155202A CN201710221813.7A CN201710221813A CN107155202A CN 107155202 A CN107155202 A CN 107155202A CN 201710221813 A CN201710221813 A CN 201710221813A CN 107155202 A CN107155202 A CN 107155202A
Authority
CN
China
Prior art keywords
test
network
terminal
wireless network
available wireless
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
CN201710221813.7A
Other languages
Chinese (zh)
Inventor
刘然
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201710221813.7A priority Critical patent/CN107155202A/en
Publication of CN107155202A publication Critical patent/CN107155202A/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/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters used to improve the performance of a single terminal
    • H04W36/32Reselection being triggered by specific parameters used to improve the performance of a single terminal by location or mobility data, e.g. speed data

Abstract

The embodiment of the invention discloses a kind of method and terminal of control network switching, wherein, a kind of method for controlling network switching, if by detecting available wireless network, obtaining the current movement velocity of terminal;If the movement velocity is more than or equal to predetermined threshold value, the available wireless network is not switched to;If the movement velocity is less than the predetermined threshold value, network test is carried out to the available wireless network;Handover network is determined whether according to the test result of the network test;Wherein, if test result correspondence test passes through, the available wireless network is switched to;If the test result correspondence test crash, the available wireless network is not switched to.Improve the intelligence degree that terminal carries out network switching.

Description

A kind of method and terminal of control network switching
Technical field
The invention belongs to electronic technology field, more particularly to a kind of method and terminal of control network switching.
Background technology
Nowadays terminal has become instrument essential when social people or work, therefore many public arenas are all people Wireless network hotspot service is provided.
Although existing terminal can be preserved the information of the focus after a wireless network focus is connected, when again Secondary to connect automatically when detecting the wireless network focus, still, many public wireless network hotspot services usually require to use Family operation terminal, which sends related checking message, to be networked.Therefore, when the application that terminal is currently run is being used During data traffic, if terminal detects the public wireless network focus connected, public wireless network focus will be switched to Network, simultaneously closes off terminal data flow, causes terminal current network to be interrupted.
In summary, there is the problem of network switching intelligence degree is low in existing terminal.
The content of the invention
The embodiment of the present invention provides a kind of method and terminal of control network switching, and network switching is carried out to improve terminal Intelligence degree.
In a first aspect, the embodiments of the invention provide a kind of method for controlling network switching, including:
If detecting available wireless network, the current movement velocity of terminal is obtained;
If the movement velocity is more than or equal to predetermined threshold value, the available wireless network is not switched to;
If the movement velocity is less than the predetermined threshold value, network test is carried out to the available wireless network;
Handover network is determined whether according to the test result of the network test;Wherein, if test result correspondence is surveyed Pinged, then switch to the available wireless network;If test result correspondence test crash, do not switch to it is described can Wireless network.
On the other hand, a kind of terminal of the embodiment of the present invention, including:
Acquiring unit, if for detecting available wireless network, obtaining the current movement velocity of terminal;
First execution unit, if being more than or equal to predetermined threshold value for the movement velocity, not switching to described can use Wireless network;
Network test unit, if being less than the predetermined threshold value for the movement velocity, to the available wireless network Network carries out network test;
Second execution unit, for determining whether handover network according to the test result of the network test;Wherein, if institute State test result correspondence test to pass through, then switch to the available wireless network;If the test result correspondence test crash, The available wireless network is not switched to then.
In such scheme, if by detecting available wireless network, obtaining the current movement velocity of terminal;If described Movement velocity is more than or equal to predetermined threshold value, then does not switch to the available wireless network;If the movement velocity is less than institute Predetermined threshold value is stated, then network test is carried out to the available wireless network;Determined according to the test result of the network test Whether handover network;Wherein, if test result correspondence test passes through, the available wireless network is switched to;If institute Test result correspondence test crash is stated, then does not switch to the available wireless network.Improve terminal and carry out network switching Intelligence degree.
Brief description of the drawings
Technical scheme, is used required in being described below to embodiment in order to illustrate the embodiments of the present invention more clearly Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow diagram of the method for control network switching provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow diagram of the method for control network switching that another embodiment of the present invention is provided;
Fig. 3 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention;
Fig. 4 is a kind of terminal schematic block diagram that another embodiment of the present invention is provided;
Fig. 5 is a kind of terminal schematic block diagram that yet another embodiment of the invention is provided.
Embodiment
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 clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" be indicated Described feature, entirety, step, operation, the presence of element and/or component, but be not precluded from one or more of the other feature, it is whole Body, 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 terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface The mobile phone, laptop computer or tablet PC of (for example, touch-screen display and/or touch pad) etc it is other just Portable device.It is to be further understood that in certain embodiments, the equipment not portable communication device, but with touching Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch pad).
In discussion below, the terminal including display and touch sensitive surface is described.It is, however, to be understood that It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one or more of following:Drawing application programs, demonstration Application programs, word-processing application program, website create application programs, disk imprinting application programs, electricity Sub-table application programs, game application program, telephony application program, videoconference application program, electricity Application programs, photo management application are supported in sub- mail applications program, instant messaging applications program, exercise Program program, digital camera application program program, digital camera application programs, web-browsing application programs, numeral Music player application program program and/or video frequency player application programs.
The various application programs that can be performed in terminal can use at least one of such as touch sensitive surface Public physical user-interface device.It can adjust and/or change between application programs and/or in corresponding application programs program Become the corresponding information shown in the one or more functions and terminal of touch sensitive surface.So, the public physics frame of terminal Structure (for example, touch sensitive surface) can support the various application programs with user interface directly perceived and transparent for a user Program.
Fig. 1 is referred to, Fig. 1 is a kind of schematic flow diagram of the method for control network switching provided in an embodiment of the present invention. The executive agent that the method for network switching is controlled in the present embodiment is terminal.Terminal can move for smart mobile phone, tablet personal computer etc. Dynamic terminal, but not limited to this, can also be other-end, not be limited herein.As shown in figure 1, the method for control network switching It may comprise steps of:
S101:If detecting available wireless network, the current movement velocity of terminal is obtained.
In step S101, available wireless network includes:Wireless network or do not accessed that terminal had been connected Wireless network, the wireless network not accessed is not provided with the wireless network of access pin, wherein, the nothing that terminal had been connected Gauze network can include the wireless network for being provided with access pin.
It should be noted that the current movement velocity of terminal is used to describe the current movement velocity of user.
It is understood that it can be examined by the gyroscope set in terminal to obtain the current movement velocity of terminal Measure, or corresponding acceleration is measured in preset time range by the acceleration transducer set in terminal, according to Preset time range or its subinterval are calculated.
As for when detecting whether surrounding has available wireless network, its application scenarios is a lot, includes but is not limited to following Two kinds:
Scene one:, can when the application currently run in terminal needs to obtain data by the data traffic for communicating operator With by detecting whether surrounding has available wireless network, to provide the user the data acquisition scheme that flow need not be lost.
Scene two:The application currently run in terminal needs to obtain data by the data traffic for communicating operator, and logical , can be by detecting whether surrounding have available when communication speed when crossing data traffic acquisition data is less than setting speed threshold value Wireless network, flow and the more preferable data acquisition scheme of effect need not be lost to provide the user selection.
In the present embodiment, setting speed threshold value is that terminal normally obtains data by communicating the data traffic of operator Critical value, if less than the critical value, the proper communication of terminal cannot be ensured.Wherein, setting speed threshold value can be terminal root The threshold value set according to self performance, the threshold value that can also be set according to user's request.
S102:If the movement velocity is more than or equal to predetermined threshold value, the available wireless network is not switched to.
In step s 102, predetermined threshold value is used to describe user in carried terminal, and the speed of user movement speed leads to The speed of movement velocity is crossed to correspond to whether user has demand to any wireless network services.Wherein, predetermined threshold value can be system Threshold speed set in advance, or user's sets itself threshold speed.
It should be noted that in all embodiments of invention, available wireless network is that signal coverage areas is fixed not The corresponding wireless network of hotspot of change, for example, using the teaching of the invention it is possible to provide the private area of wireless network, or can provide wireless network The public domain of network.
When the movement velocity is more than or equal to predetermined threshold value, movement velocity is more big then to correspond to user to wireless network clothes The possibility of business demand is smaller.
For example, when user is running, the current movement velocity of the terminal that gets is more than or equal to predetermined threshold value, then not Switch to the available wireless network.
For another example when user is in means of transportation, the current movement velocity of the terminal that gets is more than or equal to pre- If threshold value, then the available wireless network is not switched to.
It is understood that when movement velocity is more than or equal to predetermined threshold value, it may be determined that user or terminal are from nothing The distance of the focus signal source of gauze network is being continually changing, or more and more remote.
For example, available wireless network is the corresponding wireless network of hotspot in some shop in user's running region Network, when user is running around the region, the current movement velocity of terminal is more than or equal to predetermined threshold value, i.e. user or terminal It is continually changing with the distance between the hotspot, then does not switch to the available wireless network.
For another example available wireless network is the corresponding wireless network of hotspot in user family, when user is driving When leaving residence, the current movement velocity of terminal is more than or equal between predetermined threshold value, i.e. user or terminal and the hotspot Distance it is more and more remote, then do not switch to the available wireless network.
S103:If the movement velocity is less than the predetermined threshold value, network survey is carried out to the available wireless network Examination.
In step s 103, predetermined threshold value is used to describe user in carried terminal, and the speed of user movement speed leads to The speed of movement velocity is crossed to correspond to whether user has demand to any wireless network services.Wherein, predetermined threshold value can be system Threshold speed set in advance, or user's sets itself threshold speed.
It is understood that when the movement velocity is less than predetermined threshold value, movement velocity is smaller then to correspond to user to nothing The possibility of line network service requirement is bigger, you can by carrying out network test to wireless network, and then determines whether to carry out net Network switches.
For example, when user is taking a walk, the current movement velocity of the terminal that gets is less than predetermined threshold value, then to it is described can Wireless network carries out network test.
For another example when user is static, the current movement velocity of the terminal that gets is less than predetermined threshold value, then to it is described can Wireless network carries out network test.
It should be noted that step S103 and step S102 belongs between step arranged side by side, i.e. step S103 and step S102 Order in no particular order, just no longer performs step S102, after step S102 is performed just not after step S103 is performed Step S103 is performed again, untill reacquiring the current movement velocity of terminal.
S104:Handover network is determined whether according to the test result of the network test.
In step S104, if test result correspondence test passes through, the available wireless network is switched to;If The test result correspondence test crash, then do not switch to the available wireless network.
It should be noted that test result is used to describe whether available wireless network can directly network, or it is available Wireless network when can directly network, whether the network state of available wireless network meets the requirements.
It is understood that only when available wireless network can directly network, terminal is switching to available nothing During gauze network, the integrality of data transfer can be ensured, it is to avoid the phenomenon of packet loss or the phenomenon generation for avoiding the occurrence of interim card.
In such scheme, if by detecting available wireless network, obtaining the current movement velocity of terminal;If described Movement velocity is more than or equal to predetermined threshold value, then does not switch to the available wireless network;If the movement velocity is less than institute Predetermined threshold value is stated, then network test is carried out to the available wireless network;Determined according to the test result of the network test Whether handover network;Wherein, if test result correspondence test passes through, the available wireless network is switched to;If institute Test result correspondence test crash is stated, then does not switch to the available wireless network.Terminal can be according to current motion speed Degree determines whether to switch to the wireless network detected, improves the intelligence degree that terminal carries out network switching.
Fig. 2 is referred to, Fig. 2 is a kind of exemplary flow of the method for control network switching that another embodiment of the present invention is provided Figure.The executive agent that the method for network switching is controlled in the present embodiment is terminal.Terminal can be smart mobile phone, tablet personal computer etc. Mobile terminal, but not limited to this, can also be other-end, not be limited herein.As shown in Fig. 2 the side of control network switching Method may comprise steps of:
S201:If detecting available wireless network, the current movement velocity of terminal is obtained.
In step s 201, available wireless network includes:Wireless network or be not provided with clothes that terminal had been connected The wireless network of business set identifier password, wherein, the wireless network that terminal had been connected is available including being provided with service set The wireless network of password.
It should be noted that the current movement velocity of terminal is used to describe the current movement velocity of user.
It is understood that it can be examined by the gyroscope set in terminal to obtain the current movement velocity of terminal Measure, or corresponding acceleration is measured in preset time range by the acceleration transducer set in terminal, according to Preset time interval is calculated.
It is understood that step S201 in the present embodiment and step S101 in above-described embodiment implementation and Particular content is consistent, for details, reference can be made to the description of step S101 in above-described embodiment, here is omitted.
S202:If the movement velocity is more than or equal to predetermined threshold value, the available wireless network is not switched to.
In step s 102, predetermined threshold value is used to describe user in carried terminal, and the speed of user movement speed leads to The speed of movement velocity is crossed to correspond to whether user has demand to any wireless network services.Wherein, predetermined threshold value can be system Threshold speed set in advance, or user's sets itself threshold speed.
It should be noted that in all embodiments of invention, available wireless network is that signal coverage areas is fixed not The corresponding wireless network of hotspot of change, for example, using the teaching of the invention it is possible to provide the private area of wireless network, or can provide wireless network The public domain of network.
When the movement velocity is more than or equal to predetermined threshold value, movement velocity is more big then to correspond to user to wireless network clothes The possibility of business demand is lower.
For example, when user is running, the current movement velocity of the terminal that gets is more than or equal to predetermined threshold value, then not Switch to the available wireless network.
For another example when user is in means of transportation, the current movement velocity of the terminal that gets is more than or equal to pre- If threshold value, then the available wireless network is not switched to.
It is understood that when movement velocity is more than or equal to predetermined threshold value, it may be determined that user or terminal are from nothing The distance of the focus signal source of gauze network is being continually changing, or more and more remote.
It is understood that terminal obtains default access list from server or updates default access list, its is specific Implementation is consistent with implementation and particular content in S102 in above-described embodiment, for details, reference can be made in above-described embodiment Step S102 description, here is omitted.
S203:If the movement velocity is less than the predetermined threshold value, network survey is carried out to the available wireless network Examination.
In step S203, predetermined threshold value is used to describe user in carried terminal, and the speed of user movement speed leads to The speed of movement velocity is crossed to correspond to whether user has demand to any wireless network services.Wherein, predetermined threshold value can be system Threshold speed set in advance, or user's sets itself threshold speed.
It should be noted that when the movement velocity is less than predetermined threshold value, movement velocity is smaller then to correspond to user to nothing The possibility of line network service requirement is bigger, you can by carrying out network test to wireless network, and then determines whether to carry out net Network switches.
As a kind of possibility realized of the invention, step S203 can specifically include:Pass through the wireless communication port of terminal Test request is sent to default network server address;If getting presupposed information corresponding with the test request, know Do not pass through for test;If not getting presupposed information corresponding with the test request, test crash is identified as.
Wherein, test request is obtains the request of presupposed information, and the default webserver is used to test available wireless Whether network can network, i.e., solicited message whether can be sent to the default webserver, and receive default network clothes The information that business device is returned.
It should be noted that presupposed information is used to describe the information that the default webserver receives test request, i.e., Presupposed information can specifically include test request and receive successful interface content, or can for describing available wireless network The interface content of networking.
For example, test request is sent to default network server address by the wireless communication port of terminal, when default Webserver when can receive the test request, then the default webserver according to test request to the terminal Wireless communication port, which is sent, receives successful interface content, when the terminal gets the successful interface content of the reception, then Test is identified as to pass through.
For another example test request is sent to default network server address by the wireless communication port of terminal, when pre- If webserver when not receiving the test request, then the default webserver can not be according to test request to the end The wireless communication port at end sends presupposed information, when the terminal is to get presupposed information, is then identified as test crash.
As the possibility of another realization of the invention, step S203 can also specifically include:Pass through the radio communication of terminal Port sends test request to default network server address;If getting network data corresponding with the test request, Then state is sent to the corresponding first server of the available wireless network and obtained and asked, and obtain the first server root The status information that request is returned is obtained according to the state;If the status information meets preset requirement, it is identified as test and passes through; If the status information does not meet preset requirement, test crash is identified as;If not getting corresponding with the test request Network data, then be identified as test crash.
Wherein, test request is obtains the request of presupposed information, and the default webserver is used to test available wireless Whether network can network, i.e., solicited message whether can be sent to the default webserver, and receive default network clothes The information that business device is returned.
The first server is obtained according to the state asks the status information returned to include:The available nothing At least one of signal strength information, channel degree of crowding information and the channel load ability information of gauze network information.
It should be noted that the signal strength information is used for the signal strength degree for describing available wireless network, letter Road degree of crowding information is used to describe the corresponding single or multiple selected situations of channel of available wireless network, channel load Ability is used for the payload capability for describing channel.
Preset requirement can support terminal to carry out the condition of normal data transfer for describing wireless network.
So that status information is signal strength information as an example, if getting network data corresponding with the test request, Send state to the corresponding first server of the available wireless network and obtain request, and obtain the first server according to The state obtains the signal strength information that request is returned.Preset requirement is signal strength values at least below 80dbm.
If for example, network data corresponding with the test request is got, to the available wireless network correspondence First server send state obtain request, and obtain the first server according to the state obtain ask return letter Number strength information, wherein signal strength information include signal strength values in 40dbm to preset requirement between 60dbm, is then met, and know Do not pass through for test.
If for another example network data corresponding with the test request is got, to the available wireless network pair The first server answered sends state and obtains request, and obtains what the first server was returned according to state acquisition request Signal strength information, wherein signal strength information include signal strength values and are more than 80dbm, then do not meet preset requirement, be identified as Test crash.
As for judging whether channel degree of crowding information or channel load ability information meet preset requirement, wherein, letter The corresponding preset requirement of road degree of crowding information, or channel load ability information correspondence preset requirement, can be according to reality Situation is set in advance.
It is understood that when the channel degree of crowding characterized in the status information meets preset requirement, or state When channel load-carrying ability characterized in information meets preset requirement, then it is identified as test and passes through.Characterized in status information Channel degree of crowding when can not meet preset requirement, or channel load-carrying ability characterized in status information can not meet pre- If it is required that when, then be identified as test crash.
It should be noted that step S203 and step S202 belongs between step arranged side by side, i.e. step S203 and step S202 Order in no particular order, just no longer performs step S203, after step S203 is performed just not after step S202 is performed Step S202 is performed again, untill reacquiring the current movement velocity of terminal.
S204:Handover network is determined whether according to the test result of the network test.
It is understood that step S204 in the present embodiment and step S104 in above-described embodiment implementation and Particular content is consistent, for details, reference can be made to the description of step S104 in above-described embodiment, here is omitted.
S205:Test result message is shown, the test result message is used to prompt the user whether handover network, Huo Zheti Showing can not handover network.
Wherein, if the test result message tests the message passed through to be described, handover network is prompted the user whether;If The test result message is the message of the test crash, then prompting can not handover network.
In step S205, display test result message can be the display reminding window in current interface was interrupted, Information in the prompt window can be the content for choosing whether handover network for user, or prompting can not handover network Content.
It should be noted that step S205 and step S204 belongs between step arranged side by side, i.e. step S205 and step S204 Order in no particular order, just no longer performs step S204, after step S204 is performed just not after step S205 is performed Step S205 is performed again.
It is understood that can be automatically switched net by terminal by step S204 according to the test result of network test Network, or test result message is shown by step S205, decide whether that handover network, or prompting are used according to the selection of user Family can not handover network.
In such scheme, if by detecting available wireless network, obtaining the current movement velocity of terminal;If described Movement velocity is more than or equal to predetermined threshold value, then does not switch to the available wireless network;If the movement velocity is less than institute Predetermined threshold value is stated, then network test is carried out to the available wireless network;Determined according to the test result of the network test Whether handover network;Wherein, if test result correspondence test passes through, the available wireless network is switched to;If institute Test result correspondence test crash is stated, then does not switch to the available wireless network.Improve terminal and carry out network switching Intelligence degree.
It by showing test result information, can not only prompt the user whether that network switching can be carried out, additionally it is possible to can Under conditions of handover network, the selection for whether carrying out network switching is provided the user.Improve the security that user uses network.
It is a kind of schematic block diagram of terminal provided in an embodiment of the present invention referring to Fig. 3.Terminal 300 can be intelligent hand The mobile terminals such as machine, tablet personal computer, can also be other-end, not be limited herein.It is each that the terminal 300 of the present embodiment includes Unit is used to perform each step in the corresponding embodiments of Fig. 1, specifically refers to the phase in the corresponding embodiments of Fig. 1 and Fig. 1 Description is closed, is not repeated herein.
The terminal 300 of the present embodiment includes:Acquiring unit 301, the first execution unit 302 or network test unit 303 And second execution unit 304.Specifically:
Acquiring unit 301, if for detecting available wireless network, the current movement velocity of terminal is obtained, and will The movement velocity is sent to the first execution unit 302 or network test unit 303.
For example, if acquiring unit 301 detects available wireless network, the current movement velocity of terminal is obtained, and will The movement velocity is sent to the first execution unit 302 or network test unit 303.
First execution unit 302, the movement velocity for receiving the transmission of acquiring unit 301, and if the motion speed Degree is more than or equal to predetermined threshold value, then does not switch to the available wireless network.
For example, the first execution unit 302 receives the movement velocity that acquiring unit 301 is sent, and if the motion speed Degree is more than or equal to predetermined threshold value, then does not switch to the available wireless network.
Network test unit 303, the movement velocity for receiving the transmission of acquiring unit 301, and if the motion speed Degree is less than the predetermined threshold value, then carries out network test to the available wireless network, and test result is sent into second Execution unit 304.
For example, network test unit 303 receives the movement velocity that acquiring unit 301 is sent, and if the motion speed Degree is less than the predetermined threshold value, then carries out network test to the available wireless network, and test result is sent into second Execution unit 304.
Second execution unit 304, the test result for receiving the transmission of network test unit 303, and according to the network The test result of test determines whether handover network;Wherein, if test result correspondence test passes through, switch to it is described can Wireless network;If the test result correspondence test crash, the available wireless network is not switched to.
For example, the second execution unit 304, the test result for receiving the transmission of network test unit 303, and according to described The test result of network test determines whether handover network;Wherein, if test result correspondence test passes through, institute is switched to State available wireless network;If the test result correspondence test crash, the available wireless network is not switched to.
In such scheme, if by detecting available wireless network, obtaining the current movement velocity of terminal;If described Movement velocity is more than or equal to predetermined threshold value, then does not switch to the available wireless network;If the movement velocity is less than institute Predetermined threshold value is stated, then network test is carried out to the available wireless network;Determined according to the test result of the network test Whether handover network;Wherein, if test result correspondence test passes through, the available wireless network is switched to;If institute Test result correspondence test crash is stated, then does not switch to the available wireless network.Improve terminal and carry out network switching Intelligence degree.
It is a kind of schematic block diagram for terminal that another embodiment of the present invention is provided referring to Fig. 4.Terminal 400 can be intelligence The mobile terminals such as energy mobile phone, tablet personal computer, can also be other-end, not be limited herein.The terminal 400 of the present embodiment includes Each unit be used to perform each step in the corresponding embodiments of Fig. 2, specifically refer in the corresponding embodiments of Fig. 2 and Fig. 2 Associated description, do not repeat herein.
The terminal 400 of the present embodiment includes:Acquiring unit 401, the first execution unit 402 or network test unit 403, Second execution unit 404 and message display unit 405.Specifically:
Acquiring unit 401, if for detecting available wireless network, the current movement velocity of terminal is obtained, and will The movement velocity is sent to the first execution unit 402 or network test unit 403.
For example, if acquiring unit 401 detects available wireless network, the current movement velocity of terminal is obtained, and will The movement velocity is sent to the first execution unit 402 or network test unit 403.
First execution unit 402, the movement velocity for receiving the transmission of acquiring unit 401, and if the motion speed Degree is more than or equal to predetermined threshold value, then does not switch to the available wireless network.
For example, the first execution unit 402 receives the movement velocity that acquiring unit 401 is sent, and if the motion speed Degree is more than or equal to predetermined threshold value, then does not switch to the available wireless network.
Network test unit 403, the movement velocity for receiving the transmission of acquiring unit 401, and if the motion speed Degree is less than the predetermined threshold value, then carries out network test to the available wireless network, and test result is sent into second Execution unit 404 or message display unit 405.
For example, network test unit 403 receives the movement velocity that acquiring unit 401 is sent, and if the motion speed Degree is less than the predetermined threshold value, then carries out network test to the available wireless network, and test result is sent into second Execution unit 404 or message display unit 405.
Further, network test unit 403 includes:First transmitting element 4031, the first recognition unit 4032 and Two recognition units 4033.
First transmitting element 4031, sends for the wireless communication port by terminal to default network server address Test request.
For example, the first transmitting element 4031 is sent by the wireless communication port of terminal to default network server address Test request.
First recognition unit 4032, if for getting presupposed information corresponding with the test request, being identified as surveying Pinged.
If for example, the first recognition unit 4032 gets presupposed information corresponding with the test request, being identified as surveying Pinged.
Second recognition unit 4033, if for not getting presupposed information corresponding with the test request, being identified as Test crash.
If for example, the second recognition unit 4033 does not get presupposed information corresponding with the test request, being identified as Test crash.
As the possibility of another realization, network test unit 403 can also include:Second transmitting element 4034, request Send and information acquisition unit 4035, the 3rd recognition unit 4036, the 4th recognition unit 4037 and the 5th recognition unit 4038.
Second transmitting element 4034, sends for the wireless communication port by terminal to default network server address Test request.
For example, the second transmitting element 4034 is sent by the wireless communication port of terminal to default network server address Test request.
Request is sent and information acquisition unit 4035, if for getting network data corresponding with the test request, Then state is sent to the corresponding first server of the available wireless network and obtained and asked, and obtain the first server root The status information that request is returned is obtained according to the state.
For example, request is sent and information acquisition unit 4035, if for getting network corresponding with the test request Data, then send state to the corresponding first server of the available wireless network and obtain and ask, and obtain first clothes Business device obtains the status information for asking to return according to the state.
3rd recognition unit 4036, if meeting preset requirement for the status information, is identified as test and passes through.
If for example, the status information of the 3rd recognition unit 4036 meets preset requirement, being identified as test and passing through.
4th recognition unit 4037, if not meeting preset requirement for the status information, is identified as test crash.
For example, the 4th recognition unit 4037, if not meeting preset requirement for the status information, is identified as test and loses Lose.
5th recognition unit 4038, if for not getting network data corresponding with the test request, being identified as Test crash.
If for example, the 5th recognition unit 4038 does not get network data corresponding with the test request, being identified as Test crash.
Second execution unit 404, the test result for receiving the transmission of network test unit 403, and according to the network The test result of test determines whether handover network;Wherein, if test result correspondence test passes through, switch to it is described can Wireless network;If the test result correspondence test crash, the available wireless network is not switched to.
For example, the second execution unit 404, the test result for receiving the transmission of network test unit 403, and according to described The test result of network test determines whether handover network;Wherein, if test result correspondence test passes through, institute is switched to State available wireless network;If the test result correspondence test crash, the available wireless network is not switched to.
Message display unit 405, for receiving the test result of the transmission of network test unit 403, and shows test result Message, the test result message is used to prompt the user whether handover network, or prompting can not handover network;Wherein, if institute State test result message and test the message passed through to be described, then prompt the user whether handover network;If the test result message For the message of the test crash, then prompting can not handover network.
For example, message display unit 405 is used for the test result for receiving the transmission of network test unit 403, and show test Results messages, the test result message is used to prompt the user whether handover network, or prompting can not handover network;Wherein, If the test result message tests the message passed through to be described, handover network is prompted the user whether;If the test result Message is the message of the test crash, then prompting can not handover network.
In such scheme, if by detecting available wireless network, obtaining the current movement velocity of terminal;If described Movement velocity is more than or equal to predetermined threshold value, then does not switch to the available wireless network;If the movement velocity is less than institute Predetermined threshold value is stated, then network test is carried out to the available wireless network;Determined according to the test result of the network test Whether handover network;Wherein, if test result correspondence test passes through, the available wireless network is switched to;If institute Test result correspondence test crash is stated, then does not switch to the available wireless network.Improve terminal and carry out network switching Intelligence degree.
It by showing test result information, can not only prompt the user whether that network switching can be carried out, additionally it is possible to can Under conditions of handover network, the selection for whether carrying out network switching is provided the user.Improve the security that user uses network.
It is a kind of terminal schematic block diagram that yet another embodiment of the invention is provided referring to Fig. 5.The present embodiment as shown in Figure 5 In terminal 500 can include:It is one or more processors 501, one or more input equipments 502, one or more then defeated Go out equipment 503 and one or more memories 504.Above-mentioned processor 501, then input equipment 502, output equipment 503 and storage Device 504 completes mutual communication by communication bus 505.
Memory 504 is instructed for storage program.
The programmed instruction that processor 501 is used to be stored according to memory 504 performs following operate:
If processor 501 is used to detect available wireless network, the current movement velocity of terminal is obtained.
If processor 501 is additionally operable to the movement velocity more than or equal to predetermined threshold value, do not switch to described available Wireless network.
If processor 501 is additionally operable to the movement velocity less than the predetermined threshold value, to the available wireless network Carry out network test.
Processor 501 is additionally operable to determine whether handover network according to the test result of the network test;Wherein, if described Test result correspondence test passes through, then switches to the available wireless network;If the test result correspondence test crash, The available wireless network is not switched to.
Processor 501 is additionally operable to show test result message, and the test result message is used to prompt the user whether switching Network, or prompting can not handover network;Wherein, if the test result message tests the message passed through to be described, point out User whether handover network;If the test result message is the message of the test crash, pointing out can not handover network.
Processor 501 sends to default network server address specifically for the wireless communication port by terminal and tested Request.
If processor 501 is identified as test logical specifically for getting presupposed information corresponding with the test request Cross.
If processor 501 is identified as test specifically for not getting presupposed information corresponding with the test request Failure.
Processor 501 sends to default network server address specifically for the wireless communication port by terminal and tested Request.
If processor 501 is specifically for getting network data corresponding with the test request, to described available The corresponding first server of wireless network sends state and obtains request, and obtains the first server and obtained according to the state Ask the status information returned.
If processor 501 meets preset requirement specifically for the status information, it is identified as test and passes through.
If processor 501 does not meet preset requirement specifically for the status information, test crash is identified as.
If processor 501 is identified as test specifically for not getting network data corresponding with the test request Failure.
In such scheme, if by detecting available wireless network, obtaining the current movement velocity of terminal;If described Movement velocity is more than or equal to predetermined threshold value, then does not switch to the available wireless network;If the movement velocity is less than institute Predetermined threshold value is stated, then network test is carried out to the available wireless network;Determined according to the test result of the network test Whether handover network;Wherein, if test result correspondence test passes through, the available wireless network is switched to;If institute Test result correspondence test crash is stated, then does not switch to the available wireless network.Improve terminal and carry out network switching Intelligence degree.
It should be appreciated that in embodiments of the present invention, alleged processor 501 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 software lication Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other can Programmed logic device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor Or the processor can also be any conventional processor etc..
Input equipment 502 can include Trackpad, fingerprint adopt sensor (finger print information that is used to gathering user and fingerprint Directional information), camera, microphone etc., then output equipment 503 can include display (LCD etc.), loudspeaker etc..
The memory 505 can include read-only storage and random access memory, and to processor 501 provide instruction and Data.The a part of of memory 505 can also include nonvolatile RAM.For example, memory 505 can also be deposited Store up the information of device type.
In the specific implementation, processor 501, input equipment 502, the output equipment 503 described in the embodiment of the present invention can Perform the reality described in the first embodiment and second embodiment of the method for control network switching provided in an embodiment of the present invention Existing mode, also can perform the implementation of the terminal described by the embodiment of the present invention, will not be repeated here.
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 electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This A little functions are performed with hardware or software mode actually, depending on the application-specific and design constraint bar of technical scheme Part.Professional and technical personnel can realize described function to each specific application program using distinct methods, still This realization is it is not considered that beyond the scope of this invention.
It is apparent to those skilled in the art that, for convenience of description and succinctly, the end of foregoing description End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
, can be by it in several embodiments provided herein, it should be understood that disclosed terminal and method Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only Only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can be tied Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed phase Coupling or direct-coupling or communication connection between mutually can be INDIRECT COUPLING or the communication by some interfaces, device or unit Connection or electricity, mechanical or other forms are connected.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.
Unit in terminal of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
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 scheme of the embodiment of the present invention according to the actual needs Purpose.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated Unit 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 unit is realized using in the form of SFU software functional unit and as independent production marketing or used When, it can be stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially The part contributed in other words to prior art, or all or part of the technical scheme can be in the form of software product Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the invention Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain be defined.

Claims (10)

1. a kind of method for controlling network switching, it is characterised in that including:
If detecting available wireless network, the current movement velocity of terminal is obtained;
If the movement velocity is more than or equal to predetermined threshold value, the available wireless network is not switched to;
If the movement velocity is less than the predetermined threshold value, network test is carried out to the available wireless network;
Handover network is determined whether according to the test result of the network test;Wherein, if test result correspondence test is logical Cross, then switch to the available wireless network;If the test result correspondence test crash, is not switched to described available Wireless network.
2. according to the method described in claim 1, it is characterised in that if the movement velocity is less than the predetermined threshold value, Network test then is carried out to the available wireless network, including:
Test request is sent to default network server address by the wireless communication port of terminal;
If getting presupposed information corresponding with the test request, it is identified as test and passes through;
If not getting presupposed information corresponding with the test request, test crash is identified as.
3. according to the method described in claim 1, it is characterised in that if the movement velocity is less than the predetermined threshold value, Network test then is carried out to the available wireless network, including:
Test request is sent to default network server address by the wireless communication port of terminal;
If getting network data corresponding with the test request, to the corresponding first service of the available wireless network Device sends state and obtains request, and obtains the status information that the first server asks to return according to state acquisition;
If the status information meets preset requirement, it is identified as test and passes through;
If the status information does not meet preset requirement, test crash is identified as;
If not getting network data corresponding with the test request, test crash is identified as.
4. method according to claim 3, it is characterised in that the status information includes:
In signal strength information, channel degree of crowding information and the channel load ability information of the available wireless network At least one information.
5. the method according to any one of claim 2 to 4, it is characterised in that the wireless communication port by terminal After sending test request to default network server address, methods described also includes:
Test result message is shown, the test result message is used to prompt the user whether that handover network, or prompting can not be cut Switching network;Wherein, if the test result message tests the message passed through to be described, handover network is prompted the user whether;If The test result message is the message of the test crash, then prompting can not handover network.
6. a kind of terminal, it is characterised in that including:
Acquiring unit, if for detecting available wireless network, obtaining the current movement velocity of terminal;
First execution unit, if being more than or equal to predetermined threshold value for the movement velocity, the available nothing is not switched to Gauze network;
Network test unit, if being less than the predetermined threshold value for the movement velocity, enters to the available wireless network Row network test;
Second execution unit, for determining whether handover network according to the test result of the network test;Wherein, if described survey Test result correspondence test passes through, then switches to the available wireless network;If the test result correspondence test crash, no Switch to the available wireless network.
7. terminal according to claim 6, it is characterised in that the network test unit includes:
First transmitting element, sending test to default network server address for the wireless communication port by terminal please Ask;
First recognition unit, if for getting presupposed information corresponding with the test request, being identified as test and passing through;
Second recognition unit, if for not getting presupposed information corresponding with the test request, being identified as test crash.
8. terminal according to claim 6, it is characterised in that the network test unit includes:
Second transmitting element, sending test to default network server address for the wireless communication port by terminal please Ask;
Request is sent and information acquisition unit, if for getting network data corresponding with the test request, to described The corresponding first server of available wireless network sends state and obtains request, and obtains the first server according to the shape State obtains the status information that request is returned;
3rd recognition unit, if meeting preset requirement for the status information, is identified as test and passes through;
4th recognition unit, if not meeting preset requirement for the status information, is identified as test crash;
5th recognition unit, if for not getting network data corresponding with the test request, being identified as test crash.
9. terminal according to claim 8, it is characterised in that the status information includes:
In signal strength information, channel degree of crowding information and the channel load ability information of the available wireless network At least one information.
10. the terminal according to any one of claim 7 to 9, it is characterised in that the terminal also includes:Message display is single Member, for showing test result message, the test result message is used to prompt the user whether handover network, or prompting can not Handover network;Wherein, if the test result message tests the message passed through to be described, handover network is prompted the user whether; If the test result message is the message of the test crash, pointing out can not handover network.
CN201710221813.7A 2017-04-06 2017-04-06 A kind of method and terminal of control network switching Pending CN107155202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710221813.7A CN107155202A (en) 2017-04-06 2017-04-06 A kind of method and terminal of control network switching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710221813.7A CN107155202A (en) 2017-04-06 2017-04-06 A kind of method and terminal of control network switching

Publications (1)

Publication Number Publication Date
CN107155202A true CN107155202A (en) 2017-09-12

Family

ID=59793951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710221813.7A Pending CN107155202A (en) 2017-04-06 2017-04-06 A kind of method and terminal of control network switching

Country Status (1)

Country Link
CN (1) CN107155202A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110650508A (en) * 2018-06-11 2020-01-03 中国移动通信有限公司研究院 Method for controlling reselection of drive test terminal cell, drive test method, device and drive test instrument
CN110996367A (en) * 2019-12-20 2020-04-10 万申科技股份有限公司 Intelligent terminal network switching method and system based on Internet of things
CN112738187A (en) * 2020-12-24 2021-04-30 合安科技技术有限公司 Safe connection method and device of equipment, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105101317A (en) * 2015-07-28 2015-11-25 努比亚技术有限公司 Network switching device and method
CN105163355A (en) * 2015-09-29 2015-12-16 努比亚技术有限公司 Method and device for switching networks of mobile terminal
CN105264959A (en) * 2014-04-29 2016-01-20 华为技术有限公司 Handover method and device
CN105916181A (en) * 2016-06-28 2016-08-31 宇龙计算机通信科技(深圳)有限公司 Network switching method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105264959A (en) * 2014-04-29 2016-01-20 华为技术有限公司 Handover method and device
CN105101317A (en) * 2015-07-28 2015-11-25 努比亚技术有限公司 Network switching device and method
CN105163355A (en) * 2015-09-29 2015-12-16 努比亚技术有限公司 Method and device for switching networks of mobile terminal
CN105916181A (en) * 2016-06-28 2016-08-31 宇龙计算机通信科技(深圳)有限公司 Network switching method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110650508A (en) * 2018-06-11 2020-01-03 中国移动通信有限公司研究院 Method for controlling reselection of drive test terminal cell, drive test method, device and drive test instrument
CN110650508B (en) * 2018-06-11 2021-10-29 中国移动通信有限公司研究院 Method for controlling reselection of drive test terminal cell, drive test method, device and drive test instrument
CN110996367A (en) * 2019-12-20 2020-04-10 万申科技股份有限公司 Intelligent terminal network switching method and system based on Internet of things
CN110996367B (en) * 2019-12-20 2021-09-28 万申科技股份有限公司 Intelligent terminal network switching method and system based on Internet of things
CN112738187A (en) * 2020-12-24 2021-04-30 合安科技技术有限公司 Safe connection method and device of equipment, electronic equipment and storage medium
CN112738187B (en) * 2020-12-24 2022-07-05 合安科技技术有限公司 Safe connection method and device of equipment, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104133629A (en) Double-screen interaction method and mobile terminal
CN104967550A (en) Method and apparatus for displaying unread messages
US10762542B2 (en) Item transfer apparatus, system and method
CN107155202A (en) A kind of method and terminal of control network switching
CN107920122A (en) Game player's matching process, device, match server and readable storage medium storing program for executing
CN108646959A (en) Screen control method, device and mobile terminal
CN107391768B (en) Webpage data processing method, device and equipment and computer readable storage medium
CN108345422A (en) Application control method, apparatus, mobile terminal and computer-readable medium
CN107086984A (en) A kind of method, terminal and server for obtaining and generating identifying code
CN107484190B (en) Method for connecting network, mobile terminal and computer readable storage medium
KR20160009915A (en) Method for processing data and electronic device thereof
CN108228025A (en) message display method, device, mobile terminal and storage medium
CN108769299A (en) Screen control method, device and mobile terminal
CN110147186A (en) A kind of control method and terminal device of application
CN105376719A (en) Information pushing method and device
CN108681427B (en) Access right control method and terminal equipment
CN109933252A (en) A kind of icon moving method and terminal device
CN108647070B (en) Information reminding method and device, mobile terminal and computer readable medium
CN111371676B (en) Customer service function access method and related device
CN107395473B (en) Networking method and device of household appliance and terminal equipment
CN108388671A (en) Information sharing method, device, mobile terminal and computer-readable medium
CN108134838A (en) data reporting method, device, mobile terminal and computer-readable medium
CN109976611B (en) Terminal device control method and terminal device
CN108494851B (en) Application program recommended method, device and server
US11147038B2 (en) Notification message processing method and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170912