CN107396316B - Method for switching network, device and terminal device - Google Patents
Method for switching network, device and terminal device Download PDFInfo
- Publication number
- CN107396316B CN107396316B CN201710659789.5A CN201710659789A CN107396316B CN 107396316 B CN107396316 B CN 107396316B CN 201710659789 A CN201710659789 A CN 201710659789A CN 107396316 B CN107396316 B CN 107396316B
- Authority
- CN
- China
- Prior art keywords
- wifi hotspot
- terminal device
- wifi
- network
- ssid
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/025—Services making use of location information using location based information parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72457—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72463—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
- H04W48/14—Access restriction or access information delivery, e.g. discovery data delivery using user query or user detection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/18—Management of setup rejection or failure
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Environmental & Geological Engineering (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention is suitable for network switching technical field, provides a kind of method for switching network, device and terminal device.Include: detecting whether that presence can connect wifi hotspot;When in the presence of wifi hotspot can be connected, judge whether to have stored SSID identical with the service set SSID of the wifi hotspot;When having stored SSID identical with the service set SSID of the 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 registered operator's cellular network ownership place of the terminal device;When the current location of the terminal device is not the registered operator's cellular network ownership place of the terminal device, the wifi hotspot is not connected automatically.By the above method, can be avoided due to roaming and additional increased rate.
Description
Technical field
The invention belongs to network switching technical field more particularly to method for switching network, device and terminal device.
Background technique
Currently, the activity of people is usually directed to multiple areas, for example friends and family walks about, the progress of business activity,
And it is related to multiple areas to the portable terminal device of user (such as mobile phone) the also corresponding movement with user.But mobile phone exists
It after trans-regional, is likely to be moved to another service area from the coverage of registration, and then causes to incite somebody to action using when the mobile phone
Generate corresponding wandering fee.
In existing method, after detecting the wifi hotspot saved, meeting Auto-reconnect wifi hotspot, for example, examining
It measures after having saved the public wifi hotspot of local operator, no matter user locally or in other places can connect the operation automatically
The public wifi hotspot of quotient, but due to local and other places rate be most likely it is different, most probably lead to additional money
Take.
Therefore, it is desirable to provide a kind of new method, to solve the above technical problems.
Summary of the invention
In view of this, the embodiment of the invention provides method for switching network, device and terminal device, to solve the prior art
When connecting wifi hotspot, the problem of the local additional rate with the rate in other places caused by different.
The first aspect of the embodiment of the present invention provides a kind of method for switching network, comprising:
Detect whether that presence can connect wifi hotspot;
When in the presence of wifi hotspot can be connected, judge whether to have stored the service set SSID phase with the wifi hotspot
Same SSID;
When having stored SSID identical with the service set SSID of the wifi hotspot, the current of terminal device is obtained
Geographical location information;
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;
It is not the registered operator's cellular network ownership place of the terminal device in the current location of the terminal device
When, the wifi hotspot is not connected automatically.
The second aspect of the embodiment of the present invention provides a kind of network switching device, comprising:
Wifi hotspot detection unit can be connected, for detecting whether in the presence of wifi hotspot can be connected;
Same services set identifier detection unit, for when in the presence of wifi hotspot can be connected, judging whether to have stored and institute
State the identical SSID of service set SSID of wifi hotspot;
Current geographic position information acquiring unit, for storing the service set SSID phase with the wifi hotspot
With SSID when, obtain the current geographic position information of terminal device;
Current location judging unit, for judging that the terminal is set according to the current geographic position information of the terminal device
Whether standby current location is the registered operator's cellular network ownership place of the terminal device;
Wifi hot spot is not connected to unit, for not being that the terminal device is registered in the current location of the terminal device
Operator's cellular network ownership place when, do not connect the wifi hotspot automatically.
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, when the processor executes the computer program
It realizes such as the step of any one of method for switching network the method.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, realizes as described in any one of method for switching network when the computer program is executed by processor
The step of method.
Existing beneficial effect is the embodiment of the present invention compared with prior art:
Due to not being the registered operator's cellular network ownership place of the terminal device in the current location of terminal device
When, the wifi hotspot of storage is usually the wifi hotspot roamed, therefore, the SSID phase with storage that not automatic connecting detection arrives
Same SSID can be avoided due to roaming and additional increased rate.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of flow chart for method for switching network that the embodiment of the present invention one provides;
Fig. 2 is a kind of structural schematic diagram for mobile terminal that the embodiment of the present invention one provides;
Fig. 3 is a kind of structural schematic diagram of network switching device provided by Embodiment 2 of the present invention;
Fig. 4 is the schematic diagram for the terminal device that the embodiment of the present invention three provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly 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 also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Embodiment one:
Fig. 1 shows a kind of flow chart of method for switching network of first embodiment of the invention offer, and details are as follows:
Step S11 detects whether that presence can connect wifi hotspot.
Specifically, when user open a terminal equipment wifi linkage function (such as WLAN) when, terminal device receives wifi
Link order, the terminal device detect in preset range whether have attachable wifi hotspot.
Specifically, when terminal device is mobile terminal, the schematic diagram of the mobile terminal is somebody's turn to do as shown in Fig. 2, in Fig. 2
Mobile terminal includes memory 201, processor 202, input equipment 203, output equipment 204, bus 205.
Step S12 judges whether to have stored the services set mark with the wifi hotspot when in the presence of that can connect wifi hotspot
Know the identical SSID of SSID.
Wherein, the service set (Service Set Identifier, SSID) of terminal device storage may have one,
May also have multiple, then one by one by the SSID of storage compared with it can connect the SSID of wifi hotspot, if the two is identical, determine end
End equipment has stored SSID identical with the SSID of the wifi hotspot, otherwise, it is determined that terminal device is not stored with the wifi
The identical SSID of the SSID of hot spot.
Step S13 obtains terminal and sets when having stored SSID identical with the service set SSID of the wifi hotspot
Standby current geographic position information.
Specifically, can by Global Navigation Satellite System (Global Navigation Satellite System,
GNSS) or network positions obtain terminal device current geographic position information.
Step S14 judges the current location of the terminal device according to the current geographic position information of the terminal device
It whether 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
When the range of possession, determine that the terminal device region is local, otherwise, it is determined that the terminal device region is outer
Ground.
Step S15 is not the registered operator's Cellular Networks of the terminal device in the current location of the terminal device
When network ownership place, the wifi hotspot is not connected automatically.
Optionally, due to may include and the wifi hotspot of current location matches in the wifi hotspot of terminal device storage
SSID will not generate additional rate at this point, the wifi hotspot of detection is not belonging to roaming wifi hotspot, therefore, the step
S15 includes:
The current location of terminal device with whether belonging to network home belonging to wifi hotspot range is judged, in terminal
The current location of equipment with being not belonging to network home belonging to the wifi hotspot range when, do not connect wifi heat automatically
Point.
Certainly, in the current location of terminal device with belonging to network home belonging to wifi hotspot range, automatically
Connect the wifi hotspot.
Optionally, in order to improve the speed that terminal device accesses hot spot, after the step S15, comprising:
Poll detects whether the available wifi hotspot for having with the current location matches of the terminal device, and connects presence
Available wifi hotspot.
Wherein, available wifi hotspot here includes needing the wifi hotspot of authentication information and not needing authentication information
Wifi hotspot connects the wifi hotspot when available wifi hotspot is the wifi hotspot for not needing authentication information automatically, when available
When wifi hotspot is the wifi hotspot for needing authentication information, then reconnecting after the authentication information for obtaining the wifi hotspot should
Wifi hotspot.
Specifically, since real-time detection wifi hotspot will expend the resource of terminal device, in order to save terminal device
Resource, automatic regular polling inspection policies or current with terminal device using the detection of condition poll inspection policies poll can be used
The available wifi hotspot of location matches.Wherein, condition polling schemas can specifically: obtains the current geographic position letter of terminal device
Breath, judges whether the current geographic position information is greater than pre-determined distance at a distance from the geographical location information that the last time obtains,
If so, determining that terminal device meets condition poll inspection policies, poll can be started and detect whether exist and terminal device
Otherwise the available wifi hotspot of current location matches does not detect whether exist and the current location matches of terminal device temporarily
Wifi hotspot can be used.
Optionally, if user connects the wifi hotspot of roaming manually, i.e., after the step S15, comprising:
A1, it detects whether to receive the instruction for establishing connection with the wifi hotspot of user's sending.It should be pointed out that
Here wifi hotspot refers to the wifi hotspot of roaming.
A2, when establishing the instruction of connection with the wifi hotspot of user's sending is being received, is prompting wifi described in user
Hot spot is roaming hot-spot mode.Specifically, it before execution establishes the instruction of connection with the wifi hotspot, is mentioned by popping up prompting frame
Show that the wifi hotspot that user currently connects is roaming hot-spot mode, certain rate will be generated.Further, then pop up options so as to
User further confirms that whether need to connect the wifi hotspot, and after " confirming " options when the user clicks, terminal device will be with
The wifi hotspot establishes connection, and after " cancelling " options when the user clicks, terminal device will not be established with the wifi hotspot
Connection.
Optionally, since the local wifi hotspot of connection will not generate roaming rate, the method for switching network is also
Include:
In the current location of the terminal device when operator's cellular network ownership place registered for the terminal device,
Automatically the wifi hotspot is connected.
Further, if it exists 2 and 2 or more connect wifi hotspot, then obtain multiple wifi hotspot first
Packet loss and/or tcp link state and/or the instruction of received signal intensity, reselection packet loss is minimum and/or tcp link
In the best state and/or received signal intensity indicates maximum wifi hotspot as the wifi hotspot that will be connected automatically.
Optionally, since the wifi hotspot that terminal device saves may be the wifi for needing authentication information and having time limitation
Hot spot, therefore, in order to avoid as being connected to the case where network caused by such wifi hotspot disconnects suddenly, then described automatic
After connecting the wifi hotspot, comprising:
It detects whether to disconnect the connection with the wifi hotspot automatically, in the automatic connection disconnected with the wifi hotspot
When, judge whether the reason of disconnecting is to need to input login authentication information, needs to input login authentication letter the reason of disconnecting
When breath, the wifi hotspot is disabled.Further, the wifi hotspot of storage is deleted.
Optionally, since wifi hotspot can only be covered on a certain range, the network in order to guarantee terminal device is smooth
It is logical, then it is described connect the wifi hotspot automatically after, comprising:
It detects whether to disconnect the connection with the wifi hotspot automatically, in the automatic connection disconnected with the wifi hotspot
When, judge whether the reason of disconnecting is the coverage area beyond the wifi hotspot, for beyond the wifi the reason of disconnecting
When the coverage area of hot spot, detect whether that there are other available networks, other available networks here include other available wifi
Hot spot and other available data networks, and other available networks include other available wifi hotspots and other available data networks
The region holds in the range of terminal device registered operator's cellular network ownership place.When there are other available wifi heat
When point, connecting other available wifi hotspots automatically, (certain, multiple wifi hotspots, then preferentially select packet loss minimum if it exists
And/or tcp link state preferably and/or received signal intensity indicates maximum wifi hotspot), that there is no other is available
Wifi hotspot but there are when other available data networks, prompts user to connect other available data networks, alternatively, automatic connection
Other available data networks simultaneously prompt user's current network for data network, will generate certain rate.
In first embodiment of the invention, detect whether that presence can connect wifi hotspot, when in the presence of wifi hotspot can be connected,
Judge whether to have stored SSID identical with the service set SSID of the wifi hotspot, store and the wifi hotspot
Service set SSID identical SSID when, the current geographic position information of terminal device is obtained, according to the terminal device
Current geographic position information judge whether the current location of the terminal device is the registered operator of the terminal device
Cellular network ownership place is not the registered operator's cellular network of the terminal device in the current location of the terminal device
When ownership place, the wifi hotspot is not connected automatically.Due to not being that the terminal device has been infused in the current location of terminal device
When operator's cellular network ownership place of volume, the wifi hotspot of storage is usually therefore the wifi hotspot roamed does not connect automatically
SSID identical with storage SSID that be detecting is met, can be avoided due to roaming and additional increased rate.
Embodiment two:
Corresponding with a kind of method for switching network that embodiment one provides, Fig. 3 shows second embodiment of the invention offer
A kind of structural schematic diagram of network switching device, the network switching device can be applied in terminal device, for ease of description, only
Show part related to the embodiment of the present invention:
The network switching device include: can connect wifi hotspot detection unit 31, same services set identifier detection unit 32,
Current geographic position information acquiring unit 33, current location judging unit 34, Wifi hot spot are not connected to unit 35.Wherein:
Wifi hotspot detection unit 31 can be connected, for detecting whether in the presence of wifi hotspot can be connected.
Same services set identifier detection unit 32, in the presence of can connect wifi hotspot when, judge whether to have stored with
The identical SSID of service set SSID of the wifi hotspot.
Wherein, the SSID of terminal device storage may have one, it is also possible to have multiple.
Current geographic position information acquiring unit 33, for storing the service set SSID with the wifi hotspot
When identical SSID, the current geographic position information of terminal device is obtained.
Specifically, the current geographic position information of terminal device can be obtained by GNSS or network positions.
Current location judging unit 34, 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.
Wifi hot spot is not connected to unit 35, for not being that the terminal device has been infused in the current location of the terminal device
When operator's cellular network ownership place of volume, the wifi hotspot is not connected automatically.
Optionally, due to may include and the wifi hotspot of current location matches in the wifi hotspot of terminal device storage
SSID will not generate additional rate at this point, the wifi hotspot of detection is not belonging to roaming wifi hotspot, therefore, the Wifi
Hot spot is not connected to unit 35 and is specifically used for: judging whether the current location of terminal device belongs to network belonging to the wifi hotspot
Ownership place range, in the current location of terminal device when with being not belonging to network home belonging to wifi hotspot range, not certainly
The dynamic connection wifi hotspot.
Certainly, in the current location of terminal device with belonging to network home belonging to wifi hotspot range, automatically
Connect the wifi hotspot.
Optionally, in order to improve the speed that terminal device accesses hot spot, the network switching device includes:
Wifi hot spot poll detection unit detects whether the current location matches for having with the terminal device for poll
Available wifi hotspot, and connect existing for can use wifi hotspot.
Wherein, available wifi hotspot here includes needing the wifi hotspot of authentication information and not needing authentication information
Wifi hotspot connects the wifi hotspot when available wifi hotspot is the wifi hotspot for not needing authentication information automatically, when available
When wifi hotspot is the wifi hotspot for needing authentication information, then reconnecting after the authentication information for obtaining the wifi hotspot should
Wifi hotspot.
Specifically, since real-time detection wifi hotspot will expend the resource of terminal device, in order to save terminal device
Resource, automatic regular polling inspection policies or current with terminal device using the detection of condition poll inspection policies poll can be used
The available wifi hotspot of location matches.Wherein, condition polling schemas can specifically: obtains the current geographic position letter of terminal device
Breath, judges whether the current geographic position information is greater than pre-determined distance at a distance from the geographical location information that the last time obtains,
If so, determining that terminal device meets condition poll inspection policies, poll can be started and detect whether exist and terminal device
Otherwise the available wifi hotspot of current location matches does not detect whether exist and the current location matches of terminal device temporarily
Wifi hotspot can be used.
Optionally, if user connects the wifi hotspot of roaming manually, the network switching device includes:
Command reception detection unit, for detecting whether receive user sending establish connection with the wifi hotspot
Instruction.
Roaming hot-spot mode prompt unit, in the instruction for establishing connection with the wifi hotspot for receiving user's sending
When, prompting wifi hotspot described in user is roaming hot-spot mode.
Specifically, before execution establishes the instruction of connection with the wifi hotspot, pass through pop-up prompting frame and prompt user
The wifi hotspot currently connected is roaming hot-spot mode, will generate certain rate.Further, then pop up options so as to user into
One step is confirmed whether to need to connect the wifi hotspot, after " confirming " options when the user clicks, terminal device will with it is described
Wifi hotspot establishes connection, and after " cancelling " options when the user clicks, terminal device will not establish connection with the wifi hotspot.
Optionally, since the local wifi hotspot of connection will not generate roaming rate, the network switching device is also
Include:
Local automatic connection unit, for being the registered fortune of the terminal device in the current location of the terminal device
When seeking quotient's cellular network ownership place, the wifi hotspot is connected automatically.
Further, if it exists 2 and 2 or more connect wifi hotspot, then obtain multiple wifi hotspot first
Packet loss and/or tcp link state and/or the instruction of received signal intensity, reselection packet loss is minimum and/or tcp link
In the best state and/or received signal intensity indicates maximum wifi hotspot as the wifi hotspot that will be connected automatically.
Optionally, since the wifi hotspot that terminal device saves may be the wifi for needing authentication information and having time limitation
Hot spot, therefore, in order to avoid as being connected to the case where network caused by such wifi hotspot disconnects suddenly, then the network is cut
Changing device further include:
Hot spot forbidden cell, for detecting whether the automatic connection disconnected with the wifi hotspot, in automatic disconnection and institute
When stating the connection of wifi hotspot, judge whether the reason of disconnecting is to need to input login authentication information, is needed the reason of disconnecting
When inputting login authentication information, the wifi hotspot is disabled.Further, the wifi hotspot of storage is deleted.
Optionally, since wifi hotspot can only be covered on a certain range, the network in order to guarantee terminal device is smooth
Lead to, then the network switching device further include:
Other available network detection units, for detecting whether the automatic connection disconnected with the wifi hotspot, automatic
When disconnecting the connection with the wifi hotspot, judge whether the reason of disconnecting is the coverage area beyond the wifi hotspot,
When the reason of disconnection is beyond the coverage area of the wifi hotspot, detect whether that there are other available networks, here other
Available network includes other available wifi hotspots and other available data networks, and other available networks include that other are available
Model of the region described in wifi hotspot and other available data networks in the registered operator's cellular network ownership place of terminal device
Enclose content.When there are other available wifi hotspots, it is (certainly, multiple if it exists that other available wifi hotspots are connected automatically
Wifi hotspot, then preferentially selection packet loss is minimum and/or tcp link state is best and/or the instruction of received signal intensity is maximum
Wifi hotspot), there is no other available wifi hotspots but exist when other available data networks, prompt user connects this its
He incites somebody to action at available data network alternatively, connecting other available data networks automatically and prompting user's current network is data network
Generate certain rate.
In second embodiment of the invention, due to not being the registered fortune of the terminal device in the current location of terminal device
When seeking quotient's cellular network ownership place, the wifi hotspot of storage is usually the wifi hotspot roamed, therefore, not automatic connecting detection
SSID identical with storage SSID that be arriving can be avoided due to roaming and additional increased rate.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Embodiment three:
Fig. 4 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in figure 4, the terminal of the embodiment is set
Standby 4 include: processor 40, memory 41 and are 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 above-mentioned each wifi hotspot management method is implemented when executing the computer program 42
Step in example, such as step S11 to S15 shown in FIG. 1.Alternatively, when the processor 40 executes the computer program 42
Realize the function of each module/unit in above-mentioned each Installation practice, such as the function of module 31 to 35 shown in Fig. 3.
Illustratively, 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 executed by the processor 40, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which 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
Be cut into can connect wifi hotspot detection unit, same services set identifier detection unit, current geographic position information acquiring unit, when
It is as follows that front position judging unit, Wifi hot spot are not connected to unit each unit concrete function:
Wifi hotspot detection unit can be connected, for detecting whether in the presence of wifi hotspot can be connected;
Same services set identifier detection unit, for when in the presence of wifi hotspot can be connected, judging whether to have stored and institute
State the identical SSID of service set SSID of wifi hotspot;
Current geographic position information acquiring unit, for storing the service set SSID phase with the wifi hotspot
With SSID when, obtain the current geographic position information of terminal device;
Current location judging unit, for judging that the terminal is set according to the current geographic position information of the terminal device
Whether standby current location is the registered operator's cellular network ownership place of the terminal device;
Wifi hot spot is not connected to unit, for not being that the terminal device is registered in the current location of the terminal device
Operator's cellular network ownership place when, do not connect the wifi hotspot automatically.
The terminal device 4 can be the calculating such as desktop PC, notebook, palm PC and cloud server and 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
The only example of terminal device 4 does not constitute the restriction to terminal device 4, may include than illustrating more or fewer portions
Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 41 can be the internal storage unit of the terminal device 4, such as the hard disk or interior of terminal device 4
It deposits.The memory 41 is also possible to the External memory equipment of the terminal device 4, such as be equipped on the terminal device 4
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
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 for storing needed for 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 function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution 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 completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with
It realizes 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 logical function partition, there may be another division manner in actual implementation, such as
Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device
Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
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 certain intermediate forms etc..The computer-readable medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (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 includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions
Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of method for switching network characterized by comprising
Detect whether that presence can connect wifi hotspot;
When in the presence of wifi hotspot can be connected, judge whether to have stored identical with the service set SSID of the wifi hotspot
SSID;
When having stored SSID identical with the service set SSID of the wifi hotspot, the current geographic of terminal device is obtained
Location information;
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;
When the current location of the terminal device is not the registered operator's cellular network ownership place of the terminal device, no
Automatically the wifi hotspot is connected.
2. method for switching network as described in claim 1, which is characterized in that it is described do not connect automatically the wifi hotspot it
Afterwards, comprising:
Poll detects whether the available wifi hotspot for having with the current location matches of the terminal device, and can existing for connection
Use wifi hotspot.
3. method for switching network as described in claim 1, which is characterized in that it is described do not connect automatically the wifi hotspot it
Afterwards, comprising:
It detects whether to receive the instruction for establishing connection with the wifi hotspot that user issues;
When establishing the instruction of connection with the wifi hotspot of user's sending is being received, it is unrestrained for prompting wifi hotspot described in user
Swim hot spot.
4. method for switching network as described in any one of claims 1 to 3, which is characterized in that the method for switching network also wraps
It includes:
In the current location of the terminal device when operator's cellular network ownership place registered for the terminal device, automatically
Connect the wifi hotspot.
5. method for switching network as claimed in claim 4, which is characterized in that it is described connect automatically the wifi hotspot it
Afterwards, comprising:
Detect whether that the connection disconnected automatically with the wifi hotspot is sentenced in the automatic connection disconnected with the wifi hotspot
Whether the reason of opening absolutely is to need to input login authentication information, when needing to input login authentication information the reason of disconnecting,
Disable the wifi hotspot.
6. a kind of network switching device characterized by comprising
Wifi hotspot detection unit can be connected, for detecting whether in the presence of wifi hotspot can be connected;
Same services set identifier detection unit, for when in the presence of wifi hotspot can be connected, judge whether to have stored with it is described
The identical SSID of service set SSID of wifi hotspot;
Current geographic position information acquiring unit, for stored it is identical with the service set SSID of the wifi hotspot
When SSID, the current geographic position information of terminal device is obtained;
Current location judging unit, for judging the terminal device according to the current geographic position information of the terminal device
Whether current location is the registered operator's cellular network ownership place of the terminal device;
Wifi hot spot is not connected to unit, for not being the registered fortune of the terminal device in the current location of the terminal device
When seeking quotient's cellular network ownership place, the wifi hotspot is not connected automatically.
7. network switching device as claimed in claim 6, which is characterized in that the network switching device includes:
Wifi hot spot poll detection unit, for poll detect whether exist with the current location matches of the terminal device can
Wifi hotspot can be used with wifi hotspot, and existing for connecting.
8. network switching device as claimed in claim 6, which is characterized in that the network switching device includes:
Command reception detection unit, for detecting whether receiving the finger for establishing connection with the wifi hotspot of user's sending
It enables;
Roaming hot-spot mode prompt unit is mentioned for receiving when establishing the instruction of connection with the wifi hotspot of user's sending
Show that wifi hotspot described in user is roaming hot-spot mode.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 5 when executing the computer program
The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710659789.5A CN107396316B (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 |
---|---|---|---|
CN201710659789.5A CN107396316B (en) | 2017-08-04 | 2017-08-04 | Method for switching network, device and terminal device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107396316A CN107396316A (en) | 2017-11-24 |
CN107396316B true CN107396316B (en) | 2019-03-01 |
Family
ID=60344619
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710659789.5A Active CN107396316B (en) | 2017-08-04 | 2017-08-04 | Method for switching network, device and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107396316B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109640314B (en) * | 2018-12-11 | 2022-04-22 | 上海连尚网络科技有限公司 | Method and device for processing attribution data and computer readable storage medium |
CN110225462B (en) * | 2019-07-19 | 2021-10-26 | 深圳市盛维智联科技有限公司 | Method, system and device for preventing network congestion |
CN110708739B (en) * | 2019-10-21 | 2022-05-13 | 中国联合网络通信集团有限公司 | Network connection method, device and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE10349189A1 (en) * | 2003-10-22 | 2005-05-25 | Siemens Ag | Method for selecting a WLAN network by means of a radio communication device, associated radio communication device and WLAN access point |
CN101076191A (en) * | 2006-05-19 | 2007-11-21 | 美国博通公司 | Method and system for providing addressing service in mobile terminal |
CN101223804A (en) * | 2005-06-11 | 2008-07-16 | 艾利森电话股份有限公司 | Apparatus and method for selecting visited network |
CN102448187A (en) * | 2011-10-29 | 2012-05-09 | 华为终端有限公司 | Method and terminal capable of automatically accessing Wi-Fi (Wireless Fidelity) network |
CN104320408A (en) * | 2014-11-06 | 2015-01-28 | 中山大学 | Login method of WiFi access point (AP) |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2890180B1 (en) * | 2013-12-27 | 2016-09-14 | Telefonica S.A. | Method for managing a network access user policy for offloading data traffic, using access network discovery and selection function |
-
2017
- 2017-08-04 CN CN201710659789.5A patent/CN107396316B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE10349189A1 (en) * | 2003-10-22 | 2005-05-25 | Siemens Ag | Method for selecting a WLAN network by means of a radio communication device, associated radio communication device and WLAN access point |
CN101223804A (en) * | 2005-06-11 | 2008-07-16 | 艾利森电话股份有限公司 | Apparatus and method for selecting visited network |
CN101076191A (en) * | 2006-05-19 | 2007-11-21 | 美国博通公司 | Method and system for providing addressing service in mobile terminal |
CN102448187A (en) * | 2011-10-29 | 2012-05-09 | 华为终端有限公司 | Method and terminal capable of automatically accessing Wi-Fi (Wireless Fidelity) network |
CN104320408A (en) * | 2014-11-06 | 2015-01-28 | 中山大学 | Login method of WiFi access point (AP) |
Also Published As
Publication number | Publication date |
---|---|
CN107396316A (en) | 2017-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107770815B (en) | MEC method and equipment based on position | |
EP2814276B1 (en) | Access authentication method and device for wireless local area network hotspot | |
CN107396316B (en) | Method for switching network, device and terminal device | |
CN107852410A (en) | Dissect rogue access point | |
CN107277878B (en) | Method for switching network, device and mobile terminal | |
CN108934009A (en) | A kind of WiFi network cut-in method, apparatus and system | |
CN104080194A (en) | Method for wirelessly configuring WIFI access parameters of zero-input terminal equipment through mobile phone | |
CN108337707A (en) | A kind of switching method of wireless network, mobile terminal and storage medium | |
CN105981445A (en) | Traffic steering between wlan and cellular networks | |
CN103987042A (en) | Access authentication method of terminals and access gateway | |
CN109041140A (en) | It is switched fast wireless network methods, Intelligent hardware and terminal device | |
CN107707653A (en) | A kind of advertisement sending method, device and vehicle intelligent equipment | |
CN105828413A (en) | Safety method of D2D mode B discovery, terminal and system | |
CN109561138A (en) | Document down loading method and Related product | |
CN109040213A (en) | Document down loading method and Related product | |
CN108173725A (en) | Apparatus control method, device, terminal and computer readable storage medium | |
CN104270720A (en) | Method and device for accessing wireless local area network, and mobile terminal | |
CN109963320A (en) | The control method and equipment of service access | |
CN107864500A (en) | A kind of method and apparatus for connecting into power information for being used to determine WAP | |
CN109561382A (en) | Home eNodeB parameter self-configuration method, system, storage medium and equipment | |
CN107949031A (en) | A kind of scan method of wireless network, mobile terminal and storage medium | |
CN107277896B (en) | Wifi hotspot management method, device and terminal device | |
CN110290473A (en) | Switching method and device | |
CN110299930A (en) | Antenna switching method and relevant device | |
CN107708141A (en) | A kind of scan method of wireless network, mobile terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |