CN106454976B - A kind of switching method of wireless network, device and terminal - Google Patents
A kind of switching method of wireless network, device and terminal Download PDFInfo
- Publication number
- CN106454976B CN106454976B CN201610882608.0A CN201610882608A CN106454976B CN 106454976 B CN106454976 B CN 106454976B CN 201610882608 A CN201610882608 A CN 201610882608A CN 106454976 B CN106454976 B CN 106454976B
- Authority
- CN
- China
- Prior art keywords
- wireless network
- terminal
- currently
- access
- currently connected
- 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.)
- Expired - Fee Related
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/14—Reselecting a network or an air interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0083—Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
- H04W36/00837—Determination of triggering parameters for hand-off
- H04W36/008375—Determination of triggering parameters for hand-off based on historical data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/16—Performing reselection for specific purposes
- H04W36/22—Performing reselection for specific purposes for handling the traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/18—Selecting a network or a communication service
Abstract
The invention discloses a kind of switching method of wireless network, device and terminals, this method comprises: obtaining the mark for the wireless network that terminal currently connects;Whether the wireless network currently connected according to mark judgement is default wireless network;If the wireless network currently connected is default wireless network, judge whether get access data using the wireless network currently connected;If not getting access data, the wireless network set that the terminal currently can be switched is obtained, and switch over to the wireless network currently connected according to the wireless network set.The above method can carry out automatically network switching when terminal is connected to invalid wireless network, carry out manually without user, and method is simple, and switching efficiency is high.
Description
Technical field
The present invention relates to mobile communication technology field more particularly to a kind of switching methods of wireless network, device and terminal.
Background technique
With the development of computer technology, network has become a part of people's daily life, and people are obtained by network
It various information and is exchanged.In order to access network, need to be linked into the switching point (Wireless of wireless network by terminal
Access Point, WAP), internet is linked into using the switching point of wireless network.
Currently, WAP can be divided into two kinds: one is China Mobile, connection, the WiMAX of telecommunications or certain occasions
The access point of wireless network (ad hoc network), there are also (common one is cable network is converted to wireless network using router
Network) access point.For the access point of ad hoc network, when terminal accesses every time, requires user and be manually entered login account
And password, and each account of synchronization can only be for a personal use, and the access point of general network need to only input an account
Number password, terminal will automatically record, and next time can automatically access when logging in, and each account of synchronization is for more
People uses.
Although the coverage area of ad hoc network is wider than general network, since general network is low-cost and access operation
Simply, still can preferentially selection access general network take, only when general network network speed is bad or suspension, just meeting
Consider access ad hoc network, but due to connection mechanism, when both wireless networks exist simultaneously, terminal first can
Access ad hoc network is attempted, general network is if desired switched to, then user is needed to carry out manually, it is cumbersome.
Summary of the invention
The purpose of the present invention is to provide a kind of switching method of wireless network, device and terminals, to solve existing switching
Method need to carry out, cumbersome technical problem manually when invalid special wireless network is switched to common radio network.
In order to solve the above technical problems, the embodiment of the present invention the following technical schemes are provided:
A kind of switching method of wireless network comprising:
Obtain the mark for the wireless network that terminal currently connects;
Whether the wireless network currently connected according to the mark judgement is default wireless network;
If the wireless network currently connected is default wireless network, judge whether obtain using the wireless network currently connected
Get access data;
If not getting access data, the wireless network set that the terminal currently can be switched is obtained, and according to institute
Wireless network set is stated to switch over the wireless network currently connected.
In order to solve the above technical problems, the embodiment of the present invention also the following technical schemes are provided:
A kind of switching device of wireless network comprising:
Module is obtained, for obtaining the mark for the wireless network that terminal currently connects;
First judgment module, whether the wireless network for currently being connected according to the mark judgement is default wireless network
Network;
Second judgment module judges if the wireless network for currently connecting is default wireless network using currently connecting
Whether the wireless network connect gets access data;
Switching module, if detecting the wireless network that the terminal currently can be switched for not getting access data
Set, and the wireless network currently connected is switched over according to the wireless network set.
In order to solve the above technical problems, the embodiment of the present invention also the following technical schemes are provided:
A kind of terminal comprising processor, memory, input unit and output device, processor, memory, input dress
It sets and is connected with output device by bus, wherein processor is for executing following steps:
Obtain the mark for the wireless network that terminal currently connects;
Whether the wireless network currently connected according to the mark judgement is default wireless network;
If the wireless network currently connected is default wireless network, judge whether obtain using the wireless network currently connected
Get access data;
If not getting access data, the wireless network set that the terminal currently can be switched is obtained, and according to institute
Wireless network set is stated to switch over the wireless network currently connected.
Switching method, device and the terminal of wireless network of the present invention are currently connected wireless by acquisition terminal
The mark of network, and whether the wireless network currently connected according to mark judgement is default wireless network, if currently connect
Wireless network is default wireless network, then judges whether get access data using the wireless network currently connected;If no
Access data are got, then detect the wireless network set that the terminal currently can be switched, and according to the wireless network set to working as
The wireless network of preceding connection switches over, and network switching can be carried out automatically when terminal is connected to invalid wireless network, is not necessarily to
User carries out manually, and method is simple, and switching efficiency is high.
Detailed description of the invention
With reference to the accompanying drawing, by the way that detailed description of specific embodiments of the present invention, technical solution of the present invention will be made
And other beneficial effects are apparent.
Fig. 1 is the flow diagram of the switching method of wireless network provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of the switching method of wireless network provided in an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of the switching device of wireless network provided in an embodiment of the present invention;
Fig. 4 is another structural schematic diagram of the switching device of wireless network provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides the switching method, device and terminal of a kind of wireless network.It will carry out respectively below detailed
Explanation.It should be noted that restriction of the serial number of following embodiment not as embodiment priority.
First embodiment
The angle of switching device from wireless network is described the present embodiment, and the switching device of the wireless network is specific
It can integrate in the terminals such as mobile phone, tablet computer or laptop.
Referring to Fig. 1, the switching method of the wireless network of first embodiment of the invention offer has been described in detail in Fig. 1, it can
To include:
S101, the mark for obtaining the wireless network that terminal currently connects.
In the present embodiment, which mainly includes that user is allowed to establish the data network that remote-wireless connects,
It may include two types: login account and password can not be recorded one is terminal, user logs in every time and needs to be manually entered
Wireless network, such as the WiMAX that the operators such as China Mobile or connection provide, another kind are that user logs in input for the first time
When account and password, terminal can be recorded so as to the wireless network of subsequent automated log on, for example use routing by cable network
Device is converted to wireless wireless network.The mark is mainly used for distinguishing different wireless networks, may include the wireless network
Account name.
Whether S102, the wireless network currently connected according to mark judgement are default wireless networks, if so, under executing
Step S103 is stated, if it is not, then terminal can not execute any operation.
In the present embodiment, which refers mainly to the wireless network of above-mentioned first seed type namely terminal can not
Record login account and password, user log in the wireless network for needing to be manually entered every time.Under existing network connection mechanism,
If terminal even once connected the wireless network of above two type, when the coverage area for entering both wireless networks simultaneously
When, the wireless network of terminal meeting the first seed type of default connection, at this moment, even if user does not input account and password, terminal
It will be considered that successful connection, the commonly referred to as invalid connection of this connection.Since under invalid connection status, terminal can neither receive and dispatch number
According to, network switching will not be carried out automatically, therefore, if the wireless network currently connected is the first seed type, need further
Detect whether the network connection is to connect in vain.
S103, judge whether get access data using the wireless network currently connected, if getting access data,
Terminal can not execute any operation, if not getting access data, execute following step S104.
In the present embodiment, when terminal gets access data, illustrates that current network communication is normal, cut without carrying out network
It changes.When terminal does not get access data, illustrate that current network is in suspension state, since the suspension state can be nothing
Caused by effect connection, caused by being also possible to of short duration failure, therefore need further to be judged.
For example, above-mentioned steps S103 can specifically include:
Open the clocking capability of the terminal;
Data access is carried out to preset interface using the wireless network currently connected, and obtains access result;
Access data whether are got according to the wireless network that access result judgement currently connects.
In the present embodiment, the preset interface can according to actual needs depending on, such as can be certain downloading application in connecing
Mouthful, the interface, etc. being also possible in the included application of system.The access result is mainly used for indicating whether the access succeeds,
It may include accessing successfully to fail with access.
For example, above-mentioned steps " whether getting access data according to the wireless network that access result judgement currently connects "
It can specifically include:
When access result instruction accesses successfully, judge that the wireless network currently connected gets access data;
When the access result indicates access failure, detects whether to reach preset duration, if reaching preset duration, judge
The wireless network currently connected does not get access data;If not reaching preset duration, returns and execute the utilization currently
The wireless network of connection carries out the operation of data access to preset interface.
In the present embodiment, the preset duration can according to actual needs depending on, for example can be 5 minutes or 3 minutes, etc.
Deng.When accessing successfully, terminal can continue through the wireless network sending and receiving data, without carrying out network switching, when access is lost
When losing, terminal need in preset duration repeated attempt access operation with confirm network it is abnormal be as caused by connecting in vain,
Or caused by of short duration failure, wherein the frequency of repeated attempt access operation can according to demand depending on, for example can be 1 minute
Once or half a minute is primary etc..It should be noted that the access result still indicates that access is lost only after preset duration
When losing, just show network it is abnormal be as caused by connecting in vain, at this time, it may be necessary to carry out network switching.
S104, the wireless network set that the terminal currently can be switched is obtained, and according to the wireless network set to currently connecting
The wireless network connect switches over.
In the present embodiment, terminal can detecte the available wireless network in periphery, and removes and work as in the wireless network that will test
Wireless network except preceding connection is determined as changeable wireless network set, in general, only including in the wireless network set
The wireless network of two seed types.
For example, above-mentioned steps " being switched over according to the wireless network set to the wireless network currently connected " specifically can be with
Include:
Obtain the historical record for having connected network of the terminal storage;
It is searched and the matched wireless network of the historical record from the wireless network set;
The wireless network currently connected is switched over according to the wireless network found.
In the present embodiment, for the wireless network of above-mentioned second of type, since after logging in for the first time, terminal can be automatic
Record the relevant information of the wireless network, such as the account name and password etc. of the wireless network, therefore when in the wireless network set
When the network having connected there are terminal, it can be switched over according to these networks.
For example, above-mentioned steps " being switched over according to the wireless network found to the wireless network currently connected " specifically may be used
To include:
When the wireless network found is one, the wireless network currently connected is switched to the wireless network found
Network;
When the wireless network found is multiple, the wireless network currently connected is switched to the wireless network found
The middle strongest wireless network of signal strength.
In the present embodiment, due to being stored with the account and password of the wireless network that these find in terminal, when terminal from
In when a wireless network having been selected to be attached, the account number cipher that can obtain the wireless network automatically is accessed, to replace
The invalid network currently connected is changed, guarantees the normal communication of network.
It can be seen from the above, the switching method of wireless network provided in this embodiment, the nothing currently connected by obtaining terminal
The mark of gauze network, and whether the wireless network currently connected according to mark judgement is default wireless network, if current connection
Wireless network be default wireless network, then judge whether get access data using the wireless network currently connected;If not yet
Access data are got, then detect the wireless network set that the terminal currently can be switched, and according to the wireless network set pair
The wireless network currently connected switches over, and network switching, nothing can be carried out automatically when terminal is connected to invalid wireless network
User is needed to carry out manually, method is simple, and switching efficiency is high.
Second embodiment
According to method described in embodiment one, citing is described in further detail below.
In the present embodiment, it will be described in detail so that the switching device of the wireless network is integrated in the terminal as an example.
As shown in Fig. 2, a kind of switching method of wireless network, detailed process can be such that
S201, terminal obtain the mark of the wireless network currently connected.
For example, which may include two types: one is terminals can not record login account and password, user
The wireless network for all needing to be manually entered, such as the WiMAX that the operators such as China Mobile or connection provide are logged in every time, it is another
Kind is user when inputting login account and password for the first time, and terminal can record so as to the wireless network of subsequent automated log on,
For example wireless wireless network is converted to using router by cable network.The mark may include the account of the wireless network
Name.
Whether the wireless network that S202, terminal are currently connected according to mark judgement is default wireless network, if so, eventually
End can execute following step S203-S204, if it is not, then terminal can not execute any operation.
For example, the title of current network can be compared analysis with the title of default wireless network by terminal, with judgement
It whether is consolidated network.The default network can be the WiMAX of the operators such as China Mobile or connection offer.
S203, terminal open clocking capability.
For example, when terminal judges current network and default network is consolidated network, timer can be opened and start to count
When.
S204, terminal using the wireless network currently connected to preset interface carry out data access, and obtain access as a result,
When access result instruction accesses successfully, terminal can not execute any operation, when the access result indicates access failure,
Terminal can execute following step S205.
For example, which can be the data-interface that same day weather is obtained in weather application, is also possible to obtain and work as
Data-interface of its customized horoscope, etc..When terminal gets access data, illustrate that current network connection is good, at this point, nothing
Network switching need to be carried out, when terminal is obtained less than access data, illustrates that current network is in suspension state, at this time, it may be necessary into
The reason of one step detection suspension is caused by invalid connection or caused by of short duration failure.
S205, terminal judge whether to reach preset duration, if so, following step S206-S208 can be executed, if it is not,
It can then return and execute above-mentioned steps S204.
For example, which can be 5 minutes, and when accessing result instruction access failure, terminal can be with per half a minute
It is carried out an access operation, just stops access when accessing successfully or reaching 5 minutes.It should be noted that when reaching 5
Minute after the access result still indicate access fail, show current network suspension state be as caused by connecting in vain, this
When, it needs to carry out network switching.
What S206, terminal obtained storage has connected the historical record of network, and obtains currently changeable wireless of the terminal
Collection of network.
For example, terminal can detecte the available wireless network in periphery, and except current connection in the wireless network that will test
Except wireless network be determined as changeable wireless network set, in general, only including second species in the wireless network set
The wireless network of type.
S207, terminal are searched and the matched wireless network of the historical record from the wireless network set.
For example, for the wireless network of above-mentioned second of type, since after logging in for the first time, terminal can automatically record this
The account and password of a little networks, to can use and deposit when the network having connected in the wireless network set there are terminal
The account and password of storage automatically switch over network.
S208, when the wireless network found be one when, the wireless network currently connected is switched to and is found by terminal
Wireless network;When the wireless network found is multiple, terminal, which switches to the wireless network currently connected, to be found
The strongest wireless network of signal strength in wireless network.
For example, when the wireless network found only has A, the account of A and close can be obtained directly from the data of storage
Code is accessed, when the wireless network found has A, B and C, and C signal it is most strong when, C can be obtained from the data of storage
Account and password accessed.
It can be seen from the above, the switching method of wireless network provided in this embodiment, terminal is by obtaining the nothing currently connected
The mark of gauze network, and whether the wireless network currently connected according to mark judgement is default wireless network, if so, terminal
Clocking capability is opened, data access is carried out to preset interface using the wireless network currently connected, and obtains access as a result, when should
When accessing result instruction access failure, judges whether to reach preset duration, if reaching preset duration, obtain having connected for storage
The historical record of network, and obtain the wireless network set that the terminal currently can be switched and obtain having connected for the terminal storage later
Connect the historical record of network, and search from the wireless network set with the matched wireless network of the historical record, when finding
Wireless network be one when, the wireless network currently connected is switched to the wireless network found by terminal;When what is found
When wireless network is multiple, it is most strong that the wireless network currently connected is switched to signal strength in the wireless network found by terminal
Wireless network, if not reaching preset duration, return execution using the wireless network currently connected to preset interface progress
The operation of data access is not necessarily to user hand so as to carry out network switching automatically when terminal is connected to invalid wireless network
Dynamic to carry out, method is simple, and switching efficiency is high.
3rd embodiment
On the basis of two the method for embodiment one and embodiment, the present embodiment will be from the switching device of wireless network
Angle is further described below.
Referring to Fig. 3, the switching device of the wireless network of third embodiment of the invention offer has been described in detail in Fig. 3, it can
To include: to obtain module 10, first judgment module 20, the second judgment module 30 and switching module 40, in which:
(1) module 10 is obtained
Module 10 is obtained, for obtaining the mark for the wireless network that terminal currently connects.
In the present embodiment, which mainly includes that user is allowed to establish the data network that remote-wireless connects,
It may include two types: login account and password can not be recorded one is terminal, user logs in every time and needs to be manually entered
Wireless network, such as the WiMAX that the operators such as China Mobile or connection provide, another kind are that user logs in input for the first time
When account and password, terminal can be recorded so as to the wireless network of subsequent automated log on, for example use routing by cable network
Device is converted to wireless wireless network.The mark is mainly used for distinguishing different wireless networks, may include the wireless network
Account name.
(2) first judgment module 20
First judgment module 20, whether the wireless network for currently being connected according to mark judgement is default wireless network
Network.
In the present embodiment, which refers mainly to the wireless network of above-mentioned first seed type namely terminal can not
Record login account and password, user log in the wireless network for needing to be manually entered every time.Under existing network connection mechanism,
If terminal even once connected the wireless network of above two type, when the coverage area for entering both wireless networks simultaneously
When, the wireless network of terminal meeting the first seed type of default connection, at this moment, even if user does not input account and password, terminal
It will be considered that successful connection, the commonly referred to as invalid connection of this connection.Since under invalid connection status, terminal can neither receive and dispatch number
According to network switching will not be carried out automatically, therefore, if first judgment module 20 judges that the wireless network currently connected is first
Seed type then needs further to detect whether the network connection is to connect in vain.
(3) second judgment modules 30
Second judgment module 30 judges if the wireless network for currently connecting is default wireless network using current
Whether the wireless network of connection gets access data.
In the present embodiment, when getting access data, illustrate that current network communication is normal, without carrying out network switching.
When not getting access data, illustrate that current network is in suspension state, since the suspension state can be invalid connection
Caused by, caused by being also possible to of short duration failure, therefore the second judgment module 30 needs are further judged.
For example, referring to Fig. 4, second judgment module 30 can specifically include opening unit 31, access unit 32 and sentence
Disconnected unit 33, in which:
Opening unit 31, for opening the clocking capability of the terminal.
Access unit 32 for carrying out data access to preset interface using the wireless network currently connected, and obtains visit
Ask result.
Whether judging unit 33, the wireless network for currently being connected according to access result judgement get access number
According to.
In the present embodiment, the preset interface can according to actual needs depending on, such as can be certain downloading application in connecing
Mouthful, the interface, etc. being also possible in the included application of system.The access result is mainly used for indicating whether the access succeeds,
It may include accessing successfully to fail with access.
For example, the judging unit 33 specifically can be used for:
When access result instruction accesses successfully, judge that the wireless network currently connected gets access data;
When the access result indicates access failure, detects whether to reach preset duration, if reaching preset duration, judge
The wireless network currently connected does not get access data;If not reaching preset duration, triggers the access unit 32 and hold
Row carries out the operation of data access using the wireless network currently connected to preset interface.
In the present embodiment, the preset duration can according to actual needs depending on, for example can be 5 minutes or 3 minutes, etc.
Deng.When accessing successfully, terminal can continue through the wireless network sending and receiving data, without carrying out network switching, when access is lost
When losing, access unit 32 need in preset duration repeated attempt access operation with confirm network it is abnormal be to be made by connecting in vain
At or of short duration failure caused by, wherein the frequency of repeated attempt access operation can according to demand depending on, for example can be
1 minute primary or half a minute is primary etc..It should be noted that the access result still indicates only after preset duration
Access failure when, just show network it is abnormal be as caused by connecting in vain, at this time, it may be necessary to carry out network switching.
(4) switching module 40
Switching module 40, if detecting the wireless network that the terminal currently can be switched for not getting access data
Set, and the wireless network currently connected is switched over according to the wireless network set.
In the present embodiment, switching module 40 can detecte the available wireless network in periphery, and the wireless network that will test
In wireless network in addition to current connection be determined as changeable wireless network set, in general, in the wireless network set only
Wireless network including second of type.
For example, the switching module 40 can specifically include acquiring unit 41, searching unit 42 and switch unit 43, in which:
Acquiring unit 41, for obtaining the historical record for having connected network of the terminal storage.
Searching unit 42, for being searched and the matched wireless network of the historical record from the wireless network set.
Switch unit 43, for being switched over according to the wireless network found to the wireless network currently connected.
In the present embodiment, for the wireless network of above-mentioned second of type, since after logging in for the first time, terminal can be automatic
Record the relevant information of the wireless network, such as the account name and password etc. of the wireless network, therefore when in the wireless network set
When the network having connected there are terminal, switch unit 43 can be switched over according to these networks.
For example, the switch unit 43 specifically can be used for:
When the wireless network found is one, the wireless network currently connected is switched to the wireless network found
Network;
When the wireless network found is multiple, the wireless network currently connected is switched to the wireless network found
The middle strongest wireless network of signal strength.
In the present embodiment, due to being stored with the account and password of the wireless network that these find in terminal, when terminal from
In when a wireless network having been selected to be attached, the account number cipher that switch unit 43 can obtain the wireless network automatically carries out
Access guarantees the normal communication of network to replace the invalid network currently connected.
When it is implemented, above each unit can be used as independent entity to realize, any combination can also be carried out, is made
It is realized for same or several entities, the specific implementation of above each unit can be found in the embodiment of the method for front, herein not
It repeats again.
It can be seen from the above, the switching device of wireless network provided in this embodiment, is worked as by obtaining the acquisition of module 10 terminal
Whether the mark of the wireless network of preceding connection, first judgment module 20 are pre- according to the wireless network that mark judgement currently connects
If wireless network, if the wireless network currently connected is default wireless network, the judgement of the second judgment module 30, which utilizes, currently to be connected
Whether the wireless network connect gets access data;If not getting access data, switching module 40 detects the terminal and works as
Preceding changeable wireless network set, and being switched over according to the wireless network set to the wireless network currently connected, can be
Terminal carries out network switching when being connected to invalid wireless network automatically, carries out manually without user, method is simple, switching efficiency
It is high.
Fourth embodiment
Correspondingly, the embodiment of the present invention also provides a kind of terminal, as shown in figure 5, the terminal may include radio frequency (RF,
Radio Frequency) circuit 501, the memory 502, defeated that includes one or more computer readable storage medium
Enter unit 503, display unit 504, sensor 505, voicefrequency circuit 505, Wireless Fidelity (WiFi, Wireless Fidelity)
The components such as module 507, the processor 508 for including one or more than one processing core and power supply 509.This field skill
Art personnel are appreciated that the restriction of the not structure paired terminal of terminal structure shown in Fig. 5, may include more or more than illustrating
Few component perhaps combines certain components or different component layouts.Wherein:
RF circuit 501 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station
After downlink information receives, one or the processing of more than one processor 508 are transferred to;In addition, the data for being related to uplink are sent to
Base station.In general, RF circuit 501 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, uses
Family identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low-noise amplifier
(LNA, Low Noise Amplifier), duplexer etc..In addition, RF circuit 501 can also by wireless communication with network and its
He communicates equipment.Any communication standard or agreement, including but not limited to global system for mobile telecommunications system can be used in the wireless communication
Unite (GSM, Global System of Mobile communication), general packet radio service (GPRS, General
Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division it is more
Location (WCDMA, Wideband Code Division Multiple Access), long term evolution (LTE, Long Term
Evolution), Email, short message service (SMS, Short Messaging Service) etc..
Memory 502 can be used for storing software program and module, and processor 508 is stored in memory 502 by operation
Software program and module, thereby executing various function application and data processing.Memory 502 can mainly include storage journey
Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function
Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created data according to terminal
(such as audio data, phone directory etc.) etc..In addition, memory 502 may include high-speed random access memory, can also include
Nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Phase
Ying Di, memory 502 can also include Memory Controller, to provide processor 508 and input unit 503 to memory 502
Access.
Input unit 503 can be used for receiving the number or character information of input, and generate and user setting and function
Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, in a specific embodiment
In, input unit 503 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen or touching
Control plate, collect user on it or nearby touch operation (such as user using any suitable object such as finger, stylus or
Operation of the attachment on touch sensitive surface or near touch sensitive surface), and corresponding connection dress is driven according to preset formula
It sets.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined
The touch orientation of user is surveyed, and detects touch operation bring signal, transmits a signal to touch controller;Touch controller from
Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 508, and can reception processing
Order that device 508 is sent simultaneously is executed.Furthermore, it is possible to a variety of using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Type realizes touch sensitive surface.In addition to touch sensitive surface, input unit 503 can also include other input equipments.Specifically, other are defeated
Entering equipment can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse
One of mark, operating stick etc. are a variety of.
Display unit 504 can be used for showing information input by user or be supplied to user information and terminal it is various
Graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof.Display
Unit 504 may include display panel, optionally, can using liquid crystal display (LCD, Liquid Crystal Display),
The forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configure display panel.Further
, touch sensitive surface can cover display panel, after touch sensitive surface detects touch operation on it or nearby, send processing to
Device 508 is followed by subsequent processing device 508 and is provided on a display panel accordingly according to the type of touch event to determine the type of touch event
Visual output.Although touch sensitive surface and display panel are to realize input and input as two independent components in Fig. 5
Function, but in some embodiments it is possible to touch sensitive surface and display panel are integrated and realizes and outputs and inputs function.
Terminal may also include at least one sensor 505, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light
Light and shade adjust the brightness of display panel, proximity sensor can close display panel and/or back when terminal is moved in one's ear
Light.As a kind of motion sensor, gravity accelerometer can detect (generally three axis) acceleration in all directions
Size can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (such as horizontal/vertical screen switching,
Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as terminal
The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 506, loudspeaker, microphone can provide the audio interface between user and terminal.Voicefrequency circuit 506 can
By the electric signal after the audio data received conversion, it is transferred to loudspeaker, voice signal output is converted to by loudspeaker;It is another
The voice signal of collection is converted to electric signal by aspect, microphone, is converted to audio data after being received by voicefrequency circuit 506, then
After the processing of audio data output processor 508, it is sent to such as another terminal through RF circuit 501, or by audio data
Output is further processed to memory 502.Voicefrequency circuit 506 is also possible that earphone jack, with provide peripheral hardware earphone with
The communication of terminal.
WiFi belongs to short range wireless transmission technology, and terminal can help user's transceiver electronics postal by WiFi module 507
Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 5 is shown
WiFi module 507, but it is understood that, and it is not belonging to must be configured into for terminal, it can according to need do not changing completely
Become in the range of the essence of invention and omits.
Processor 508 is the control centre of terminal, using the various pieces of various interfaces and connection whole mobile phone, is led to
It crosses operation or executes the software program and/or module being stored in memory 502, and call and be stored in memory 502
Data execute the various functions and processing data of terminal, to carry out integral monitoring to mobile phone.Optionally, processor 508 can wrap
Include one or more processing cores;Preferably, processor 508 can integrate application processor and modem processor, wherein answer
With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication.
It is understood that above-mentioned modem processor can not also be integrated into processor 508.
Terminal further includes the power supply 509 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe
Reason system and processor 508 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system
Etc. functions.Power supply 509 can also include one or more direct current or AC power source, recharging system, power failure inspection
The random components such as slowdown monitoring circuit, power adapter or inverter, power supply status indicator.
In addition, terminal can also include camera, bluetooth module etc., details are not described herein.Specifically in the present embodiment, eventually
Processor 508 in end can be corresponding executable by the process of one or more application program according to following instruction
File is loaded into memory 502, and the application program being stored in memory 502 is run by processor 508, to realize
Various functions:
Obtain the mark for the wireless network that terminal currently connects;
Whether the wireless network currently connected according to mark judgement is default wireless network;
If the wireless network currently connected is default wireless network, judge whether obtain using the wireless network currently connected
Get access data;
If not getting access data, the wireless network set that the terminal currently can be switched is obtained, and according to the nothing
Line collection of network switches over the wireless network currently connected.
For details, reference can be made to above-described embodiments for the implementation method respectively operated above, and details are not described herein again.
The terminal may be implemented achieved by the switching device of any wireless network provided by the embodiment of the present invention
Effective effect is detailed in the embodiment of front, and details are not described herein.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
The switching method, device and terminal for being provided for the embodiments of the invention a kind of wireless network above have carried out in detail
It introduces, used herein a specific example illustrates the principle and implementation of the invention, the explanation of above embodiments
It is merely used to help understand method and its core concept of the invention;Meanwhile for those skilled in the art, according to the present invention
Thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be understood
For limitation of the present invention.
Claims (5)
1. a kind of switching method of wireless network characterized by comprising
Obtain the mark for the wireless network that terminal currently connects;
Whether the wireless network currently connected according to the mark judgement is default wireless network, and the default wireless network refers to
Terminal can not record login account and password and the wireless network that needs user to be manually entered;
If the wireless network currently connected is default wireless network, the clocking capability of the terminal is opened;
Data access is carried out to preset interface using the wireless network currently connected, and obtains access result;
When the access result indicates access failure, the wireless network for utilizing and currently connecting is executed at interval of predetermined period
Data access is carried out to preset interface, and the step of obtaining access result;
It detects whether to reach preset duration, if reaching preset duration, judges that the wireless network currently connected does not obtain visiting
It asks data and is connected to be invalid, then obtain the wireless network set that the terminal currently can be switched;
Obtain the historical record for having connected network of the terminal storage;
It is searched and the matched wireless network of the historical record from the wireless network set;
The wireless network currently connected is switched over according to the wireless network found.
2. the switching method of wireless network according to claim 1, which is characterized in that the wireless network that the basis is found
Network switches over the wireless network currently connected, comprising:
When the wireless network found is one, the wireless network currently connected is switched to the wireless network found;
When the wireless network found is multiple, the wireless network currently connected is switched in the wireless network found and is believed
Number strongest wireless network of intensity.
3. a kind of switching device of wireless network characterized by comprising
Module is obtained, for obtaining the mark for the wireless network that terminal currently connects;
First judgment module, whether the wireless network for currently being connected according to the mark judgement is default wireless network, institute
State the wireless network that default wireless network refers to that terminal can not record login account and password and user is needed to be manually entered;
Opening unit opens the clocking capability of the terminal if the wireless network for currently connecting is default wireless network;
Access unit for carrying out data access to preset interface using the wireless network currently connected, and obtains access result;
Judging unit, for being executed at interval of predetermined period described using current when the access result indicates access failure
The wireless network of connection carries out data access to preset interface, and obtains access result;
Switching module, if reaching preset duration, judges the wireless network currently connected for detecting whether reaching preset duration
It does not get access data and is connected to be invalid, then detect the wireless network set that the terminal currently can be switched;
Acquiring unit, for obtaining the historical record for having connected network of the terminal storage;
Searching unit, for being searched and the matched wireless network of the historical record from the wireless network set;
Switch unit, for being switched over according to the wireless network found to the wireless network currently connected.
4. the switching device of wireless network according to claim 3, which is characterized in that the switch unit is specifically used for:
When the wireless network found is one, the wireless network currently connected is switched to the wireless network found;
When the wireless network found is multiple, the wireless network currently connected is switched in the wireless network found and is believed
Number strongest wireless network of intensity.
5. a kind of terminal, which is characterized in that including processor, memory, input unit and output device, processor, memory,
Input unit is connected with output device by bus, wherein processor is for executing following steps:
Obtain the mark for the wireless network that terminal currently connects;
Whether the wireless network currently connected according to the mark judgement is default wireless network, and the default wireless network refers to
Terminal can not record login account and password and the wireless network that needs user to be manually entered;
If the wireless network currently connected is default wireless network, the clocking capability of the terminal is opened;
Data access is carried out to preset interface using the wireless network currently connected, and obtains access result;
When the access result indicates access failure, the wireless network for utilizing and currently connecting is executed at interval of predetermined period
Data access is carried out to preset interface, and the step of obtaining access result;
It detects whether to reach preset duration, if reaching preset duration, judges that the wireless network currently connected does not obtain visiting
It asks data and is connected to be invalid, then obtain the wireless network set that the terminal currently can be switched;
Obtain the historical record for having connected network of the terminal storage;
It is searched and the matched wireless network of the historical record from the wireless network set;
The wireless network currently connected is switched over according to the wireless network found.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610882608.0A CN106454976B (en) | 2016-10-08 | 2016-10-08 | A kind of switching method of wireless network, device and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610882608.0A CN106454976B (en) | 2016-10-08 | 2016-10-08 | A kind of switching method of wireless network, device and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106454976A CN106454976A (en) | 2017-02-22 |
CN106454976B true CN106454976B (en) | 2019-11-22 |
Family
ID=58172191
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610882608.0A Expired - Fee Related CN106454976B (en) | 2016-10-08 | 2016-10-08 | A kind of switching method of wireless network, device and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106454976B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107277877A (en) * | 2017-08-07 | 2017-10-20 | 广东欧珀移动通信有限公司 | Method for switching network, mobile terminal and computer-readable recording medium |
CN107222898A (en) * | 2017-08-07 | 2017-09-29 | 广东欧珀移动通信有限公司 | Method for switching network, mobile terminal and computer-readable recording medium |
CN107992041A (en) * | 2017-12-06 | 2018-05-04 | 浙江大华技术股份有限公司 | A kind of AGV trolleies means of communication |
CN108337707B (en) * | 2018-04-17 | 2020-10-02 | Oppo广东移动通信有限公司 | Wireless network switching method, mobile terminal and storage medium |
CN112566218B (en) * | 2020-12-01 | 2021-10-26 | 中兴通讯股份有限公司 | SIM card selection method, device, terminal and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101600240B (en) * | 2009-05-31 | 2011-07-20 | 腾讯科技(北京)有限公司 | Method for switching multiple networks, instant messaging client, management server and system |
CN102711164A (en) * | 2012-05-15 | 2012-10-03 | 上海交通大学无锡研究院 | Intelligent management method for data communication link of mobile terminal |
CN103686674A (en) * | 2013-09-30 | 2014-03-26 | 深圳市通力科技开发有限公司 | Network access method, intelligent terminal and WiFi access equipment |
CN104301949A (en) * | 2014-09-15 | 2015-01-21 | 深圳市金立通信设备有限公司 | Connection method for wireless hotspot |
CN104768198A (en) * | 2015-03-23 | 2015-07-08 | 努比亚技术有限公司 | Mobile terminal and intelligent switching method and device for terminal network of mobile terminal |
-
2016
- 2016-10-08 CN CN201610882608.0A patent/CN106454976B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101600240B (en) * | 2009-05-31 | 2011-07-20 | 腾讯科技(北京)有限公司 | Method for switching multiple networks, instant messaging client, management server and system |
CN102711164A (en) * | 2012-05-15 | 2012-10-03 | 上海交通大学无锡研究院 | Intelligent management method for data communication link of mobile terminal |
CN103686674A (en) * | 2013-09-30 | 2014-03-26 | 深圳市通力科技开发有限公司 | Network access method, intelligent terminal and WiFi access equipment |
CN104301949A (en) * | 2014-09-15 | 2015-01-21 | 深圳市金立通信设备有限公司 | Connection method for wireless hotspot |
CN104768198A (en) * | 2015-03-23 | 2015-07-08 | 努比亚技术有限公司 | Mobile terminal and intelligent switching method and device for terminal network of mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106454976A (en) | 2017-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104135501B (en) | Page sharing method, Apparatus and system | |
CN106454976B (en) | A kind of switching method of wireless network, device and terminal | |
CN106686626B (en) | The setting method and terminal device of WiFi roaming | |
CN104519485B (en) | Communication means, device and system between a kind of terminal | |
CN104572430B (en) | A kind of test method, the device and system at terminal applies interface | |
CN104426919B (en) | Page sharing method, apparatus and system | |
CN104571787B (en) | A kind of message display method and communication terminal | |
CN104618873B (en) | Access-in point information sharing method and device | |
CN106851654A (en) | Pseudo-base station recognition methods, device and terminal | |
CN106331359B (en) | A kind of speech signal collection method, device and terminal | |
CN104135728B (en) | Method for connecting network and device | |
CN103501485B (en) | Push the method, apparatus and terminal device of application | |
CN106658354B (en) | A kind of data transmission method and equipment | |
CN106330211B (en) | LTE Frequency Band Selection method and apparatus | |
CN105898839B (en) | Communication network cut-in method and device | |
CN105389259B (en) | A kind of method, apparatus and system for carrying out Application testing | |
CN104346368A (en) | Indoor scene switch displaying method and device and mobile terminal | |
CN106028316A (en) | Network search method and device for international roaming | |
CN103561155B (en) | Send the method for note, device and terminal | |
CN104573437A (en) | Information authentication method, device and terminal | |
CN105744600B (en) | Communication network cut-in method and user equipment | |
CN109688611A (en) | A kind of configuration method, device, terminal and the storage medium of frequency range parameter | |
CN106656803B (en) | A kind of method, apparatus and system updating route table items | |
CN106331302A (en) | Method and equipment for adding contact | |
CN105744602B (en) | Communication network cut-in method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20191122 |