CN107277876A - Method for switching network, device and terminal device - Google Patents

Method for switching network, device and terminal device Download PDF

Info

Publication number
CN107277876A
CN107277876A CN201710659798.4A CN201710659798A CN107277876A CN 107277876 A CN107277876 A CN 107277876A CN 201710659798 A CN201710659798 A CN 201710659798A CN 107277876 A CN107277876 A CN 107277876A
Authority
CN
China
Prior art keywords
terminal device
network
data network
switching
available data
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
CN201710659798.4A
Other languages
Chinese (zh)
Inventor
胡亚东
刘铭
宋永耀
候祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710659798.4A priority Critical patent/CN107277876A/en
Publication of CN107277876A publication Critical patent/CN107277876A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • H04W48/04Access restriction performed under specific conditions based on user or terminal location or mobility data, e.g. moving direction, speed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/32Reselection being triggered by specific parameters by location or mobility data, e.g. speed data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention is applied to network switching technical field, and there is provided a kind of method for switching network, device and terminal device.Including:Detect whether that presence can connect wifi hotspot;When in the absence of wifi hotspot can be connected, available data network is judged whether;When there is available data network, the current geographic position information of terminal device is obtained;Whether the current location that the terminal device is judged according to the current geographic position information of the terminal device is the registered operator's cellular network ownership place of the terminal device;In the current location of the terminal device during operator's cellular network ownership place registered for the terminal device, the available data network is connected.By the above method, can access network in time, keep the unobstructed of network.

Description

Method for switching network, device and terminal device
Technical field
The invention belongs to network switching technical field, more particularly to method for switching network, device and terminal device.
Background technology
At present, the activity of people is generally directed to multiple areas, such as friends and family's walks about, the progress of business activity, And to terminal device (such as mobile phone) that user carries with, also the corresponding movement with user is related to multiple areas.But mobile phone exists After trans-regional, it is likely to from the coverage of registration, is moved to another service area, and then incited somebody to action when causing to use the mobile phone Produce corresponding wandering fee.
, will when detecting the unavailable wifi hotspot currently connected or signal weaker in existing method for switching network Detect whether there is other available wifi hotspots, if so, then switching to other available wifi hotspots, if not having, disconnect network Connection.Due to when not detecting other available wifi hotspots, the network connection of disconnected end equipment, therefore, if disconnect When time point is the time point that user's urgent need is netted, this method delays the time of terminal equipment access network, also, due to existing When some method for switching network switch between wifi hotspot, the geographical position where terminal device, therefore pole can't be considered There may be extra rate.
Therefore, it is desirable to provide a kind of new method, to solve above-mentioned technical problem.
The content of the invention
In view of this, the embodiments of the invention provide method for switching network, device and terminal device, to solve prior art When not detecting other available wifi hotspots, the network connection of disconnected end equipment, so as to cause Network access delay Problem.
The first aspect of the embodiment of the present invention provides a kind of method for switching network, including:
Detect whether that presence can connect wifi hotspot;
When in the absence of wifi hotspot can be connected, available data network is judged whether;
When there is available data network, the current geographic position information of terminal device is obtained;
Whether the current location that the terminal device is judged according to the current geographic position information of the terminal device is institute State the registered operator's cellular network ownership place of terminal device;
In the current location of the terminal device during operator's cellular network ownership place registered for the terminal device, Connect the available data network.
The second aspect of the embodiment of the present invention provides a kind of network switching device, including:
Wifi Hot spots detection units, for detecting whether presence can connect wifi hotspot;
Data network whether there is judging unit, for when in the absence of that can connect wifi hotspot, judging whether can Data network;
Current geographic position information acquiring unit, for when there is available data network, obtaining working as terminal device Preceding geographical location information;
Network home ground judging unit, for judging the terminal according to the current geographic position information of the terminal device Whether the current location of equipment is the registered operator's cellular network ownership place of the terminal device;
Data network connection unit, for being the registered fortune of the terminal device in the current location of the terminal device When seeking business's cellular network ownership place, the available data network is connected.
The third aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer program that can run on the processor, described in the computing device during computer program Realize such as the step of any one of method for switching network methods described.
The fourth aspect of the embodiment of the present invention provides a kind of computer-readable recording medium, the computer-readable storage Media storage has computer program, is realized when the computer program is executed by processor as described in any one of method for switching network The step of method.
The beneficial effect that the embodiment of the present invention exists compared with prior art is:
During due to being the registered operator's cellular network ownership place of the terminal device in the current location of terminal device, It is local data network to show available data network, and now, connecting the available data network will not be due to roaming Produce extra rate, also, due in the absence of can also connect data network when can connect wifi hotspot, therefore, it is possible to protect The timely access network of terminal device is demonstrate,proved, the unobstructed of network is kept, the good online experience of user is improved.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art In required for the accompanying drawing that uses be briefly described, it should be apparent that, drawings in the following description are only some of the present invention Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Accompanying drawing obtains other accompanying drawings.
Fig. 1 is a kind of flow chart for method for switching network that the embodiment of the present invention one is provided;
Fig. 2 is a kind of structural representation for mobile terminal that the embodiment of the present invention one is provided;
Fig. 3 is a kind of structural representation for network switching device that the embodiment of the present invention two is provided;
Fig. 4 is the schematic diagram for the terminal device that the embodiment of the present invention three is provided.
Embodiment
In describing below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc Body details, thoroughly to understand the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention can also be realized in the other embodiments of details.In other situations, omit to well-known system, device, electricity Road and the detailed description of method, in case unnecessary details hinders description of the invention.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Embodiment one:
Fig. 1 shows a kind of flow chart for method for switching network that first embodiment of the invention is provided, and details are as follows:
Step S11, detects whether that presence can connect wifi hotspot.
Specifically, when user opens a terminal wifi linkage functions (such as WLAN) of equipment, terminal device receives wifi Whether there is attachable wifi hotspot in link order, terminal device detection preset range.
Specifically, when terminal device is mobile terminal, the schematic diagram of the mobile terminal is as shown in Fig. 2 in fig. 2, be somebody's turn to do Mobile terminal includes memory 201, processor 202, input equipment 203, output equipment 204, bus 205.
Alternatively, before the step S11, including:
The network state information of current connection network is obtained, the network state information includes current connection network and whether may be used The information of access network, the information of network quality quality.So, judged currently to connect network according to the network state information Can not access network, or network quality performs step S11 when being deteriorated when default quality index (such as less than).
Step S12, when in the absence of that can connect wifi hotspot, judges whether available data network.
Wherein, available data network refers to its corresponding transmission control protocol (Transmission Control Protocol, tcp), HTTP (HyperText Transfer Protocol, http), packet loss, receive Signal intensity indicates that the one or more of of (Received Signal Strength Indication, rssi) etc. meet default Network can use condition.
Alternatively, because local wifi hotspot will not produce roaming rate, therefore, for the expense of saving, the network Switching method also includes:
A1, when presence can connect wifi hotspot, obtain terminal device current geographic position information.
A2, judged according to the current geographic position information of the terminal device terminal device current location whether be The registered operator's cellular network ownership place of terminal device, if so, the wifi hotspot is connected, if it is not, being not connected to institute State wifi hotspot.
The wifi hotspot that wifi hotspot is also likely to be other places is connected due to presence, that is, belongs to the wifi hotspot of roaming, Therefore, the wifi hotspot is just only connected when judging that the wifi hotspot belongs to local wifi hotspot, otherwise, be not connected to The wifi hotspot, so as to avoid the wandering fee produced by trans-regional use wif focuses.
Step S13, when there is available data network, obtains the current geographic position information of terminal device.
Specifically, can by GLONASS (Global Navigation Satellite System, GNSS) or network positions obtain terminal device current geographic position information.
Step S14, the current location of the terminal device is judged according to the current geographic position information of the terminal device Whether it is the registered operator's cellular network ownership place of the terminal device.
Specifically, return when the current location of the terminal device belongs to the registered operator's cellular network of the terminal device During the scope of possession, the terminal device region is judged to be local, otherwise, it is determined that the terminal device region is outer Ground.
Step S15, is the registered operator's cellular network of the terminal device in the current location of the terminal device During ownership place, the available data network is connected.
Because the available data network belongs to local data network, therefore connect, will not be produced using the data network Wandering fee.
Alternatively, the step S15 includes:
B1, the attribute for judging network switching are manual switching or automatic switchover, and the attribute of the network switching is extension Attribute.Specifically, when user starts or restarts terminal device first, the terminal device shows the attribute of network switching Corresponding setting option, when user selects manual switching, the attribute of the network switching of the terminal device is manual switching, works as user When selection is automatically switched, the attribute of the network switching of the terminal device is to automatically switch.
B2, when the attribute of network switching is manual switching, point out user to connect the available data network, and connecing When receiving link order, the available data network is connected.Specifically, prompt the user whether that selection connects by ejecting prompting frame Available data network is connect, such as when user clicks on " confirmation " button (or other represent the button of confirmation), terminal is set Standby to receive link order, and perform the link order, when user clicks on " cancellations " button, (or other represent cancellation information Button) when, terminal device, which is received, is not connected to instruction.
B3, network switching attribute be automatically switch when, the available data network is connected automatically.Further, Show the prompt message that current network is data network.Because although the data network for connecting local will not produce roaming rate, But certain expense can be still produced, therefore, display reminding information knows so as to user.
Alternatively, it is not the registered operator's cellular network of the terminal device in the current location of the terminal device During ownership place, the available data network is not connected to.When judging that terminal device belongs to other places, available data are not connected to Network, in order to avoid produce roaming rate.Further, if user connects the data network of roaming, the network switching side manually Method also includes:Detect whether to receive the instruction being connected with the available data network foundation that user sends;Receiving During the instruction being connected with the available data network foundation that user sends, available data network described in prompting user is unrestrained The data network of trip.Specifically, before the instruction being connected with the available data network foundation is performed, pass through to eject and point out The available data network that frame prompting user currently connects is the data network of roaming, will produce certain rate.Further, Eject whether options needs the connection available data network so that user further confirms that again, when user clicks on " confirmation " After options, terminal device will be set up with the available data network and be connected, after user clicks on " cancellation " options, terminal Equipment will not be set up with the available data network and be connected.
Alternatively, still it can be produced necessarily due to compared with connecting local wifi hotspot, connecting local data network Expense, therefore, in order to reduce unnecessary expense as far as possible, after the step S15, including:
C1, judge whether the acquisition condition of geographical location information of terminal device meets, if meeting, obtain the terminal The current geographic position information of equipment.Wherein, the acquisition condition of the geographical location information of terminal device includes:Judge the number of connection Whether changed according to the signal intensity of network, and the scope changed is more than default range threshold, if so, then judging full The acquisition condition of the geographical location information of sufficient terminal device, if it is not, judging to be unsatisfactory for obtaining for the geographical location information of terminal device Take condition;Or, judge the time point and the time difference of current point in time of the last geographical location information for obtaining terminal device Whether default difference threshold is more than, if so, then judge to meet the acquisition condition of the geographical location information of terminal device, if it is not, Judgement is unsatisfactory for the acquisition condition of the geographical location information of terminal device.
The terminal device that C2, the current geographic position information for judging the terminal device obtained and last time obtain Geographical location information positional distance whether exceed pre-determined distance threshold value.
C3, acquisition the terminal device current geographic position information and the upper terminal device once obtained When the positional distance of geographical location information exceedes pre-determined distance threshold value, poll is detected whether in the presence of current with the terminal device The available wifi hotspot of location matches, if in the presence of being switched to from the available data network described can use wifi hotspot.When So, if the geographical position of the current geographic position information of the terminal device obtained and the last terminal device obtained The positional distance of information is not above pre-determined distance threshold value, then poll does not detect whether the present bit for having with the terminal device Put the available wifi hotspot of matching.
Wherein, in order to avoid long-time poll expends excessive resource, then the time for setting poll to detect is less than 1 minute, Such as it is set to 30 seconds.
Wherein, available wifi hotspot here includes the wifi hotspot for needing authentication information and does not need authentication information Wifi hotspot, when available wifi hotspot is not need the wifi hotspot of authentication information, connects the wifi hotspot, when available automatically When wifi hotspot is the wifi hotspot for needing authentication information, then being reconnected after the authentication information of the wifi hotspot is obtained should Wifi hotspot.
In first embodiment of the invention, detect whether that presence can connect wifi hotspot, in the absence of wifi hotspot can be connected When, available data network being judged whether, when there is available data network, the current geographic position of terminal device is obtained Confidence cease, according to the current geographic position information of the terminal device judge the terminal device current location whether be described in The registered operator's cellular network ownership place of terminal device, the current location of the terminal device be the terminal device During operator's cellular network ownership place of registration, the available data network is connected.Due in the current location of terminal device During operator's cellular network ownership place registered for the terminal device, it is local data network to show available data network Network, now, extra rate will not be produced due to roaming by connecting the available data network, also, due in the absence of Also data network can be connected when can connect wifi hotspot, thereby it is ensured that the timely access network of terminal device, keeps network It is unobstructed, improve the good online experience of user.
Embodiment two:
Corresponding with a kind of method for switching network that embodiment one is provided, Fig. 3 shows what second embodiment of the invention was provided A kind of structural representation of network switching device, the network switching device can be applied in terminal device, for convenience of description, only Show the part related to the embodiment of the present invention:
The network switching device includes:Wifi Hot spots detections unit 31, data network are with the presence or absence of judging unit 32, current Geographical location information acquiring unit 33, network home ground judging unit 34, data network connection unit 35, wherein:
Wifi Hot spots detections unit 31, for detecting whether presence can connect wifi hotspot.
Alternatively, the network switching device includes:
Network state information acquiring unit, the network state information for obtaining current connection network, the network state Information includes the information whether current connection network can access net, the information of network quality quality.So, according to the network Status information judge currently to connect network can not access network, or during network quality variation, perform Wifi Hot spots detection units 31。
Data network whether there is judging unit 32, for when in the absence of that can connect wifi hotspot, judging whether Available data network.
Wherein, available data network refers to its corresponding tcp, http, packet loss, rssi etc. one or more of satisfactions Default network can use condition.
Alternatively, because local wifi hotspot will not produce roaming rate, therefore, for the expense of saving, the network Switching device also includes:
Current geographic position information acquiring unit, for when presence can connect wifi hotspot, obtaining working as terminal device Preceding geographical location information.
Whether Wifi focuses connect selecting unit, for judging institute according to the current geographic position information of the terminal device Whether the current location for stating terminal device is the registered operator's cellular network ownership place of the terminal device, if so, connection The wifi hotspot, if it is not, being not connected to the wifi hotspot.
Current geographic position information acquiring unit 33, for when there is available data network, obtaining terminal device Current geographic position information.
Specifically, the current geographic position information of terminal device can be obtained by GNSS or network positions.
Network home ground judging unit 34, for judging the end according to the current geographic position information of the terminal device Whether the current location of end equipment is the registered operator's cellular network ownership place of the terminal device.
Data network connection unit 35, for being that the terminal device is registered in the current location of the terminal device During operator's cellular network ownership place, the available data network is connected.
Alternatively, the data network connection unit 35 includes:
The determined property module of network switching, for judging that the attribute of network switching is manual switching or automatic switchover, The attribute of the network switching is the attribute of extension.Specifically, when user starts or restarts terminal device first, the end End equipment shows the corresponding setting option of attribute of network switching, and when user selects manual switching, the network of the terminal device is cut The attribute changed is manual switching, and when user selects to automatically switch, the attribute of the network switching of the terminal device is to automatically switch.
Data network connects reminding module, for when the attribute of network switching is manual switching, pointing out user's connection institute Available data network is stated, and when receiving link order, connects the available data network.Specifically, ejection is passed through Prompting frame prompts the user whether the available data network of selection connection
The automatic link block of data network, for when the attribute of network switching is to automatically switch, automatic connection is described can Data network.Further, display current network is the prompt message of data network.
Alternatively, the network switching device also includes:
Data network is not connected to unit, for registered not for the terminal device in the current location of the terminal device Operator's cellular network ownership place when, be not connected to the available data network.Further, if user connects roaming manually Data network, then the network switching device also include:Instruction detection unit, for detecting whether receiving what user sent The instruction being connected is set up with the available data network;Roaming information Tip element, for receive that user sends with When the available data network sets up the instruction of connection, it is the data network of roaming to point out available data network described in user Network.Specifically, before the instruction being connected with the available data network foundation is performed, user is pointed out by ejecting prompting frame The available data network currently connected is the data network of roaming, will produce certain rate.Further, then selection is ejected Whether item needs the connection available data network so that user further confirms that, after user clicks on " confirmation " options, Terminal device will be set up with the available data network and be connected, and after user clicks on " cancellation " options, terminal device will not Set up and be connected with the available data network.
Alternatively, still it can be produced necessarily due to compared with connecting local wifi hotspot, connecting local data network Expense, therefore, in order to reduce unnecessary expense as far as possible, the network switching device includes:
Whether the acquisition condition of geographical location information meets judging unit, the geographical location information for judging terminal device Acquisition condition whether meet, if meet, obtain the current geographic position information of the terminal device.Wherein, terminal device The acquisition condition of geographical location information include:Judge whether the signal intensity of the data network of connection changes, and occur The scope of change is more than default range threshold, if so, then judge to meet the acquisition condition of the geographical location information of terminal device, If it is not, judging to be unsatisfactory for the acquisition condition of the geographical location information of terminal device;Or, judge last acquisition terminal device Whether the time point of geographical location information and the time difference of current point in time are more than default difference threshold, if so, then judging full The acquisition condition of the geographical location information of sufficient terminal device, if it is not, judging to be unsatisfactory for obtaining for the geographical location information of terminal device Take condition.
Whether pre-determined distance threshold value exceedes judging unit, for the current geographic position for the terminal device for judging to obtain Whether information and the positional distance of the geographical location information of the last terminal device obtained exceed pre-determined distance threshold value.
Wifi hotspot detection unit can be used, the current geographic position information and upper one for the terminal device in acquisition When the positional distance of the geographical location information of the terminal device of secondary acquisition exceedes pre-determined distance threshold value, poll detects whether to deposit In the available wifi hotspot with the current location matches of the terminal device, if in the presence of being cut from the available data network Wifi hotspot can be used described in shifting to.
Wherein, in order to avoid long-time poll expends excessive resource, then the time for setting poll to detect is less than 1 minute, Such as it is set to 30 seconds.
Wherein, available wifi hotspot here includes the wifi hotspot for needing authentication information and does not need authentication information Wifi hotspot, when available wifi hotspot is not need the wifi hotspot of authentication information, connects the wifi hotspot, when available automatically When wifi hotspot is the wifi hotspot for needing authentication information, then being reconnected after the authentication information of the wifi hotspot is obtained should Wifi hotspot.
In second embodiment of the invention, due to being the registered operation of the terminal device in the current location of terminal device During business's cellular network ownership place, it is local data network to show available data network, now, connects the available data network Network will not produce extra rate due to roaming, also, due in the absence of can also connect number when can connect wifi hotspot According to network, thereby it is ensured that the timely access network of terminal device, keeps the unobstructed of network, the well upper dictyosome of user is improved Test.
It should be understood that the size of the sequence number of each step is not meant to the priority of execution sequence, each process in above-described embodiment Execution sequence should determine that the implementation process without tackling the embodiment of the present invention constitutes any limit with its function and internal logic It is fixed.
Embodiment three:
Fig. 4 is the schematic diagram for the terminal device that one embodiment of the invention is provided.As shown in figure 4, the terminal of the embodiment is set Standby 4 include:Processor 40, memory 41 and it is stored in the meter that can be run in the memory 41 and on the processor 40 Calculation machine program 42.The processor 40 realizes that each above-mentioned wifi hotspot management method is implemented when performing the computer program 42 Step in example, such as the step S11 to S15 shown in Fig. 1.Or, when the processor 40 performs the computer program 42 The function of each module/unit in above-mentioned each device embodiment is realized, such as the function of module 31 to 35 shown in Fig. 3.
Exemplary, the computer program 42 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 41, and are performed by the processor 40, to complete the present invention.Described one Individual or multiple module/units can complete the series of computation machine programmed instruction section of specific function, and the instruction segment is used for Implementation procedure of the computer program 42 in the terminal device 4 is described.For example, the computer program 42 can be divided Wifi Hot spots detections unit, data network is cut into the presence or absence of judging unit, current geographic position information acquiring unit, network to return Possession judging unit, data network connection unit, concrete function are as follows:
Wifi Hot spots detection units, for detecting whether presence can connect wifi hotspot;
Data network whether there is judging unit, for when in the absence of that can connect wifi hotspot, judging whether can Data network;
Current geographic position information acquiring unit, for when there is available data network, obtaining working as terminal device Preceding geographical location information;
Network home ground judging unit, for judging the terminal according to the current geographic position information of the terminal device Whether the current location of equipment is the registered operator's cellular network ownership place of the terminal device;
Data network connection unit, for being the registered fortune of the terminal device in the current location of the terminal device When seeking business's cellular network ownership place, the available data network is connected.
The terminal device 4 can be that the calculating such as desktop PC, notebook, palm PC and cloud server is set It is standby.The terminal device may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4 Only the example of terminal device 4, does not constitute the restriction to terminal device 4, can include than illustrating more or less portions Part, either combines some parts or different parts, such as described terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 40 can be CPU (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
The memory 41 can be the internal storage unit of the terminal device 4, such as hard disk of terminal device 4 or interior Deposit.The memory 41 can also be the External memory equipment of the terminal device 4, such as is equipped with described terminal device 4 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodges Deposit card (Flash Card) etc..Further, the memory 41 can also both include the storage inside list of the terminal device 4 Member also includes External memory equipment.The memory 41 is used for needed for storing the computer program and the terminal device Other programs and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that, for convenience of description and succinctly, only with above-mentioned each work( Energy unit, the division progress of module are for example, in practical application, as needed can distribute above-mentioned functions by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completion The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used To be that unit is individually physically present, can also two or more units it is 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.In addition, each function list Member, the specific name of module are also only to facilitate mutually differentiation, is not limited to the protection domain of the application.Said system The specific work process of middle unit, module, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, without detailed description or note in some embodiment The part of load, may refer to the associated description of other embodiments.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
, can be with embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method Realize by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of division of logic function there can be other dividing mode, for example when actually realizing Multiple units or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.Separately A bit, shown or discussed coupling or direct-coupling or communication connection each other can be by some interfaces, device Or INDIRECT COUPLING or the communication connection of unit, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated module/unit realized using in the form of SFU software functional unit and as independent production marketing or In use, can be stored in a computer read/write memory medium.Understood based on such, the present invention realizes above-mentioned implementation All or part of flow in example method, can also instruct the hardware of correlation to complete, described meter by computer program Calculation machine program can be stored in a computer-readable recording medium, and the computer program can be achieved when being executed by processor The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or some intermediate forms etc..The computer-readable medium It can include:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic of the computer program code can be carried Dish, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium is included can carry out appropriate increasing according to legislation in jurisdiction and the requirement of patent practice Subtract, such as, in some jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier signal and electricity Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to foregoing reality Example is applied the present invention is described in detail, it will be understood by those within the art that:It still can be to foregoing each Technical scheme described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed Or replace, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme, all should Within protection scope of the present invention.

Claims (10)

1. a kind of method for switching network, it is characterised in that including:
Detect whether that presence can connect wifi hotspot;
When in the absence of wifi hotspot can be connected, available data network is judged whether;
When there is available data network, the current geographic position information of terminal device is obtained;
Whether the current location that the terminal device is judged according to the current geographic position information of the terminal device is the end The registered operator's cellular network ownership place of end equipment;
In the current location of the terminal device during operator's cellular network ownership place registered for the terminal device, connection The available data network.
2. method for switching network as claimed in claim 1, it is characterised in that the connection available data network, bag Include:
The attribute for judging network switching is manual switching or automatic switchover, and the attribute of the network switching is the attribute of extension;
When the attribute of network switching is manual switching, user is pointed out to connect the available data network, and in the company of receiving When connecing instruction, the available data network is connected;
When the attribute of network switching is to automatically switch, the available data network is connected automatically.
3. method for switching network as claimed in claim 1, it is characterised in that the connection available data network it Afterwards, including:
Judge whether the acquisition condition of the geographical location information of terminal device meets, if meeting, obtain the terminal device Current geographic position information;
Judge the geography of the current geographic position information and the last terminal device obtained of the terminal device obtained Whether the positional distance of positional information exceedes pre-determined distance threshold value;
In the geographical position of the current geographic position information and the upper terminal device once obtained of the terminal device of acquisition When the positional distance of confidence breath exceedes pre-determined distance threshold value, poll detects whether the current location for having with the terminal device The available wifi hotspot matched somebody with somebody, if in the presence of being switched to from the available data network described can use wifi hotspot.
4. the method for switching network as described in any one of claims 1 to 3, it is characterised in that the method for switching network is also wrapped Include:
When presence can connect wifi hotspot, the current geographic position information of terminal device is obtained;
Whether the current location that the terminal device is judged according to the current geographic position information of the terminal device is the end The registered operator's cellular network ownership place of end equipment, if so, the wifi hotspot is connected, if it is not, being not connected to the wifi Focus.
5. the method for switching network as described in any one of claims 1 to 3, it is characterised in that the method for switching network is also wrapped Include:
In the current location of the terminal device during not operator's cellular network ownership place registered for the terminal device, no Connect the available data network.
6. a kind of network switching device, it is characterised in that including:
Wifi Hot spots detection units, for detecting whether presence can connect wifi hotspot;
Data network whether there is judging unit, for when in the absence of that can connect wifi hotspot, judging whether available Data network;
Current geographic position information acquiring unit, for when there is available data network, obtaining the current position of terminal device Manage positional information;
Network home ground judging unit, for judging the terminal device according to the current geographic position information of the terminal device Current location whether be the registered operator's cellular network ownership place of the terminal device;
Data network connection unit, for being the registered operator of the terminal device in the current location of the terminal device During cellular network ownership place, the available data network is connected.
7. network switching device as claimed in claim 6, it is characterised in that the data network connection unit includes:
The determined property module of network switching, it is described for judging that the attribute of network switching is manual switching or automatic switchover The attribute of network switching is the attribute of extension;
Data network connects reminding module, for when the attribute of network switching is manual switching, pointing out user's connection is described can Data network, and when receiving link order, connect the available data network;
The automatic link block of data network, for when the attribute of network switching is to automatically switch, connecting described available automatically Data network.
8. network switching device as claimed in claim 6, it is characterised in that the network switching device includes:
Whether the acquisition condition of geographical location information meet judging unit, for judging that the geographical location information of terminal device is obtained Take whether condition meets, if meeting, obtain the current geographic position information of the terminal device;
Whether pre-determined distance threshold value exceedes judging unit, for the current geographic position information for the terminal device for judging to obtain Whether the positional distance of the geographical location information of the terminal device obtained with the last time exceedes pre-determined distance threshold value;
Wifi hotspot detection unit can be used, the current geographic position information for the terminal device in acquisition is once obtained with upper The positional distance of the geographical location information of the terminal device taken exceed pre-determined distance threshold value when, poll detect whether exist with The available wifi hotspot of the current location matches of the terminal device, if in the presence of being switched to from the available data network It is described to use wifi hotspot.
9. a kind of terminal device, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, it is characterised in that realize such as claim 1 to 5 described in the computing device during computer program The step of any one methods described.
10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, its feature exists In the step of realizing such as any one of claim 1 to 5 methods described when the computer program is executed by processor.
CN201710659798.4A 2017-08-04 2017-08-04 Method for switching network, device and terminal device Pending CN107277876A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710659798.4A CN107277876A (en) 2017-08-04 2017-08-04 Method for switching network, device and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710659798.4A CN107277876A (en) 2017-08-04 2017-08-04 Method for switching network, device and terminal device

Publications (1)

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

Family

ID=60075609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710659798.4A Pending CN107277876A (en) 2017-08-04 2017-08-04 Method for switching network, device and terminal device

Country Status (1)

Country Link
CN (1) CN107277876A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115696483A (en) * 2021-07-30 2023-02-03 荣耀终端有限公司 Network link switching method based on electronic equipment state and electronic equipment
CN116347550A (en) * 2022-12-30 2023-06-27 荣耀终端有限公司 Network switching method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798427A (en) * 2004-12-21 2006-07-05 华为技术有限公司 Method for switching languages
CN101019451A (en) * 2004-09-17 2007-08-15 艾利森电话股份有限公司 3G/GSM and WLAN integration of telephony
CN102917330A (en) * 2012-10-17 2013-02-06 广东欧珀移动通信有限公司 Method and device for prompting wandering during conversation with mobilephone
US20150241983A1 (en) * 2014-02-21 2015-08-27 Nod, Inc. Location Determination and Registration Methodology for Smart Devices Based on Direction and Proximity and Usage of the Same
US20150334623A1 (en) * 2010-11-16 2015-11-19 Apple Inc. Cell Reselection Based on Information Collected from a Plurality of Mobile Devices
CN105554852A (en) * 2015-12-29 2016-05-04 大连楼兰科技股份有限公司 Method for switching WIFI signal sources

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101019451A (en) * 2004-09-17 2007-08-15 艾利森电话股份有限公司 3G/GSM and WLAN integration of telephony
CN1798427A (en) * 2004-12-21 2006-07-05 华为技术有限公司 Method for switching languages
US20150334623A1 (en) * 2010-11-16 2015-11-19 Apple Inc. Cell Reselection Based on Information Collected from a Plurality of Mobile Devices
CN102917330A (en) * 2012-10-17 2013-02-06 广东欧珀移动通信有限公司 Method and device for prompting wandering during conversation with mobilephone
US20150241983A1 (en) * 2014-02-21 2015-08-27 Nod, Inc. Location Determination and Registration Methodology for Smart Devices Based on Direction and Proximity and Usage of the Same
CN105554852A (en) * 2015-12-29 2016-05-04 大连楼兰科技股份有限公司 Method for switching WIFI signal sources

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115696483A (en) * 2021-07-30 2023-02-03 荣耀终端有限公司 Network link switching method based on electronic equipment state and electronic equipment
CN115696483B (en) * 2021-07-30 2023-10-31 荣耀终端有限公司 Network link switching method based on electronic equipment state and electronic equipment
CN116347550A (en) * 2022-12-30 2023-06-27 荣耀终端有限公司 Network switching method and electronic equipment
CN116347550B (en) * 2022-12-30 2023-10-31 荣耀终端有限公司 Network switching method and electronic equipment

Similar Documents

Publication Publication Date Title
CN102317884B (en) For supporting the wake up trigger signal of multiple user interfaces, environment and/or virtual machine
CN110049505A (en) Data transmission method and relevant apparatus
CN104053126B (en) Show wireless communication terminal, the device and method of both call sides position
CN106097057A (en) A kind of virtual objects distribution method and device
CN106231626A (en) A kind of method and device sending measurement report
CN107241771A (en) Method for switching network, mobile terminal and computer-readable recording medium
CN104619045A (en) Access control method and device for mobile terminal
CN102932862A (en) Method for selecting network connection mode based on business use condition of user
CN106453558A (en) Information push method and device, and terminal
CN108934009A (en) A kind of WiFi network cut-in method, apparatus and system
CN108990105A (en) Wireless communication transmission method, device, mobile terminal and computer-readable storage medium
CN107484190A (en) Method for connecting network, mobile terminal and computer-readable recording medium
CN108173725A (en) Apparatus control method, device, terminal and computer readable storage medium
CN110392414A (en) Wireless network connecting method and terminal device
CN108307393A (en) Network flow resource sharing method, device, system and storage medium
CN107222898A (en) Method for switching network, mobile terminal and computer-readable recording medium
CN107277876A (en) Method for switching network, device and terminal device
CN103781122A (en) Flow management device and method
CN107277896B (en) Wifi hotspot management method, device and terminal device
CN107608720A (en) Using the display methods of footmark, device, mobile terminal and storage medium
CN107396316B (en) Method for switching network, device and terminal device
CN107079393A (en) The power consumption control method and wearable device of wearable device
CN108096838A (en) Gift bag gets method, apparatus, server, mobile terminal and storage medium
CN105138107B (en) Downloading method of mobile terminal, device and mobile terminal
CN107343326A (en) A kind of data transmission method and device

Legal Events

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

Application publication date: 20171020

RJ01 Rejection of invention patent application after publication