CN106973404A - The method and device that a kind of network is reconnected - Google Patents
The method and device that a kind of network is reconnected Download PDFInfo
- Publication number
- CN106973404A CN106973404A CN201710372932.2A CN201710372932A CN106973404A CN 106973404 A CN106973404 A CN 106973404A CN 201710372932 A CN201710372932 A CN 201710372932A CN 106973404 A CN106973404 A CN 106973404A
- Authority
- CN
- China
- Prior art keywords
- cycle
- reconnect
- reconnects
- network
- location data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/04—Arrangements for maintaining operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0225—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
- H04W52/0248—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/19—Connection re-establishment
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiments of the invention provide the method and device that a kind of network is reconnected, it is related to communication technical field.This method includes:First, when detecting the terminal network connection disconnection, start positioning function and simultaneously positioned, to obtain the first location data;Then, the cycle is reconnected according to first, reconnects network;Secondly, judge whether to reconnect to network;When reaching the positioning intervals specified and the terminal does not reconnect to network, the terminal is positioned again, to obtain the second location data;Again, the first location data and the second location data are compared;So as to which according to comparative result, adjustment reconnects the cycle of network.Technical scheme provided in an embodiment of the present invention can be realized when terminal is in network black spots for a long time, reduced terminal and performed the number of times for reconnecting network automatically, and then reduce the power consumption of terminal.
Description
【Technical field】
The present invention relates to communication technical field, more particularly to the method and device that a kind of network is reconnected.
【Background technology】
The fast development of network technology, the covering of network is also more and more wider, however it remains many places are not covered with network,
When the terminal of user is in this network black spots, terminal will be unable to connect network, and no network information is, it is necessary to reconnect net
Network.The mode of terminal reconnect network has two kinds in the prior art.
A kind of is the operation specified in the terminal by owner, and performing network with triggering terminal reconnects.This mode is grasped
Make cumbersome, with very big dependence, when owner does not perceive terminal network connection disconnection, terminal may be in nothing for a long time
The state of network connection.
In order to reduce the operation of user, also provide another way, which be when terminal detects no network connection,
Terminal starts network connecting function, and terminal is automatically according to the execution network connection of fixed cycle.This mode, if terminal is long
Between be in network black spots in, terminal can frequently perform network connection automatically, until detect terminal connection network after stop, this
Sample will increase the power consumption of terminal again, reduce the continuation of the journey of terminal.
【The content of the invention】
In view of this, the embodiments of the invention provide the method and device that a kind of network is reconnected, when terminal is in for a long time
During network black spots, reduce terminal and perform the number of times for reconnecting network automatically, and then reduce the power consumption of terminal.
On the one hand, the embodiments of the invention provide a kind of method that network is reconnected, it is adaptable in terminal, methods described bag
Include:
When detecting the terminal network connection disconnection, start positioning function and simultaneously positioned, to obtain the first positioning
Data;
The cycle is reconnected according to first, network is reconnected;
Judge whether to reconnect to network;
When reaching the positioning intervals specified and the terminal does not reconnect to network, the terminal is entered again
Row positioning, to obtain the second location data;
Compare the first location data and the second location data;
According to comparative result, adjustment reconnects the cycle of network.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, it is described according to than
Relatively result, the cycle that adjustment reconnects network includes:
When the first location data and the second location data are differed, reconnect the cycle by first and increase to second and reconnect week
Phase;
Or, when the first location data is identical with the second location data, reconnects the cycle by first and narrow down to the 3rd and reconnect
Cycle.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, when the first positioning
When data and the second location data are differed, reconnect the cycle by first and increase to second and reconnect the cycle and specifically include:
Cycle increase, which is reconnected, by first specifies the time;
Compare first and reconnect cycle increase and specify corresponding cycle and the default maximum of reconnecting after the time to reconnect the size in cycle;
Reconnect and corresponding after the time is specified in cycle increase reconnect the cycle and reconnect the cycle less than or equal to maximum when described first
When, determine that described first reconnects cycle increase and specify and corresponding after the time reconnect the cycle and reconnect the cycle for second;
When described first reconnect cycle increase specify after the time it is corresponding reconnect the cycle and reconnect the cycle more than maximum when, it is determined that
The maximum reconnects the cycle and reconnects the cycle for second.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, when the first positioning
When data are identical with the second location data, reconnect the cycle by first and narrow down to the 3rd and reconnect the cycle and specifically include:
Cycle reduction, which is reconnected, by first specifies the time;
Compare first and reconnect the cycle and reduce corresponding cycle and the default minimum of reconnecting after the time of specifying and reconnect the size in cycle;
When described first reconnect the cycle reduce the time of specifying after corresponding reconnect the cycle and reconnect week more than or equal to minimum
During the phase, determine that described first reconnects the cycle and reduce and corresponding after the time of specifying reconnect the cycle and reconnect the cycle for the 3rd;
When described first reconnect the cycle reduce after the time of specifying it is corresponding reconnect the cycle and reconnect the cycle less than minimum when, it is determined that
The minimum reconnects the cycle and reconnects the cycle for the 3rd.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, when judging
State terminal to reconnect to after network, methods described also includes:
Close positioning function.
On the other hand, the embodiment of the present invention additionally provides the device that a kind of network is reconnected, it is adaptable in terminal, described device
Including:
Start unit, for when detecting the terminal network connection disconnection, starting positioning function and simultaneously being positioned, with
Obtain the first location data;
Unit is reconnected, for reconnecting the cycle according to first, network is reconnected;
Judging unit, for judging whether to reconnect to network;
Positioning unit, for when reaching the positioning intervals specified and the terminal does not reconnect to network, then
It is secondary that the terminal is positioned, to obtain the second location data;
Comparing unit, for comparing the first location data and the second location data;
Adjustment unit, for according to comparative result, adjustment to reconnect the cycle of network.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, the adjustment list
Member specifically for:When the first location data and the second location data are differed, reconnect the cycle by first and increase to second and reconnect
Cycle;Or, when the first location data is identical with the second location data, reconnects the cycle by first and narrow down to the 3rd and reconnect week
Phase.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, the adjustment list
Member is specifically included:
Increase module, the time is specified for reconnecting cycle increase by first;
First comparison module, for compare first reconnect cycle increase specify after the time it is corresponding reconnect the cycle with it is default most
The big size for reconnecting the cycle;
First determining module, for when described first reconnect the cycle increase specify the time after it is corresponding reconnect the cycle be less than or
When reconnecting the cycle equal to maximum, determine that described first reconnects cycle increase and specify and corresponding after the time reconnect the cycle and reconnect for second
Cycle;
The determining module is additionally operable to when described first reconnects and corresponding after the time is specified in cycle increase reconnect the cycle and be more than
When maximum reconnects the cycle, determine that the maximum reconnects the cycle and reconnects the cycle for second.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, the adjustment list
Member also includes:
Reduce module, the time is specified for reconnecting cycle reduction by first;
Second comparison module, for compare first reconnect the cycle reduce after the time of specifying it is corresponding reconnect the cycle with it is default most
The small size for reconnecting the cycle;
Second determining module, for when described first reconnect the cycle reduce specify the time after it is corresponding reconnect the cycle be more than or
When reconnecting the cycle equal to minimum, determine that described first reconnects the cycle and reduce and corresponding after the time of specifying reconnect the cycle and reconnect for the 3rd
Cycle;
The determining module be additionally operable to when described first reconnect the cycle reduce the time of specifying after corresponding reconnect the cycle and be less than
When minimum reconnects the cycle, determine that the minimum reconnects the cycle and reconnects the cycle for the 3rd.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, described device is also
Including:
Closing unit, for closing positioning function.
The method and device that network provided in an embodiment of the present invention is reconnected, when terminal disconnect network connection when, terminal according to
Specify reconnect the cycle carry out periodically reconnect network during, start positioning function terminal is positioned, by than
Compared with the location data for reconnecting the double positioning of terminal during cycle progress network is reconnected according to specifying, to determine end
End position changes situation, according to comparative result, and corresponding adjustment reconnects the cycle, so as to realize when terminal is blind in network for a long time
Qu Shi, reduces terminal and performs the number of times for reconnecting network automatically, and then reduce the power consumption of terminal.
【Brief description of the drawings】
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be attached to what is used required in embodiment
Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this area
For those of ordinary skill, without having to pay creative labor, it can also be obtained according to these accompanying drawings other attached
Figure.
Fig. 1 is the method flow diagram that a kind of network provided in an embodiment of the present invention is reconnected;
Fig. 2 is the method flow diagram that another network provided in an embodiment of the present invention is reconnected;
Fig. 3 is the method flow diagram that another network provided in an embodiment of the present invention is reconnected;
Fig. 4 is the method flow diagram that another network provided in an embodiment of the present invention is reconnected;
Fig. 5 is the method flow diagram that another network provided in an embodiment of the present invention is reconnected;
Fig. 6 is the composition frame chart that a kind of network provided in an embodiment of the present invention reconnects device;
Fig. 7 is a kind of composition frame chart of adjustment unit provided in an embodiment of the present invention;
Fig. 8 is the composition frame chart of another adjustment unit provided in an embodiment of the present invention;
Fig. 9 is the composition frame chart that another network provided in an embodiment of the present invention reconnects device.
【Embodiment】
In order to be better understood from technical scheme, the embodiment of the present invention is retouched in detail below in conjunction with the accompanying drawings
State.
It will be appreciated that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Base
Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of creative work is not paid it is all its
Its embodiment, belongs to the scope of protection of the invention.
The term used in embodiments of the present invention is the purpose only merely for description specific embodiment, and is not intended to be limiting
The present invention." one kind ", " described " and "the" of singulative used in the embodiment of the present invention and appended claims
It is also intended to including most forms, unless context clearly shows that other implications.
It will be appreciated that though may describe to reconnect week in embodiments of the present invention using term first, second, third
Phase, but these reconnect the cycle and should not necessarily be limited by these terms.These terms are only distinguished from each other out for that will reconnect the cycle.For example,
In the case of not departing from range of embodiment of the invention, first, which reconnects the cycle, can also be referred to as second and reconnect the cycle, similarly, and
Two, which reconnect the cycle, can also be referred to as first and reconnect the cycle.
Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining " or " in response to detection ".Similarly, depending on linguistic context, phrase " if it is determined that " or " if detection
(condition or event of statement) " can be construed to " when it is determined that when " or " in response to determine " or " when the detection (condition of statement
Or event) when " or " in response to detection (condition or event of statement) ".
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, represent
There may be three kinds of relations, for example, A and/or B, can be represented:Individualism A, while there is A and B, individualism B these three
Situation.In addition, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
The embodiments of the invention provide a kind of network reconnection method, it is adaptable to during terminal reconnects network, such as
Shown in Fig. 1, methods described includes:
101st, when detecting the terminal network connection disconnection, start positioning function and simultaneously positioned, to obtain first
Location data.
Wherein, terminal network connection disconnection refers to that terminal can not move communication (for example, terminal can not access any net
Page, short message etc. can not be sent).
Terminal positioning has two kinds of positioning methods, and the first is mobile network's positioning, is handed over by information between terminal and base station
Mutually positioned.But this positioning method needs to realize the positioning to terminal by carrier network or Wi-Fi.
Positioned by global position system for second, the receiver module in terminal receives several satellite launch observed numbers
According to by the calculating to observed data, the position of terminal being determined, so as to realize the positioning to terminal.
Because the first positioning method needs to complete to position by external network, when terminal no signal or not connected network
When, the positioning method also will be unable to realize.And second of positioning method is the information that terminal directly receives satellite launch, it is not necessary to
The assistance of base station, i.e., this positioning method is when terminal is without network connection, and terminal can still realize positioning.Thus it is guaranteed that eventually
End is when disconnecting network connection, and it is at least to start second to determine that can get startup positioning function in location data, step 101
Position mode is positioned.
102nd, the cycle is reconnected according to first, reconnects network.
Terminal network search module re-searches for the network of current locale, and the net by the network-feedback searched to terminal
Network link block, terminal attempts connection network.
It should be noted that first to reconnect the cycle can be that the initial of terminal acquiescence reconnects the cycle, if can also be by
The cycle is reconnected after dry adjustment.For example, after terminal disconnects in network connection, the operation that network is reconnected is performed first, now
First to reconnect the cycle be initially to reconnect the cycle;Or, terminal is after network connection disconnection, and it is fixed twice to have been carried out
Position, but terminal remains as and is connected to network, and terminal needs to continue executing with step 102, and now first reconnect the cycle for eventually
The cycle is reconnected after the adjustment of end.
103rd, judge whether to reconnect to network.
104th, when reaching the positioning intervals specified and the terminal does not reconnect to network, again to the end
End is positioned, to obtain the second location data.
Wherein, the positioning intervals specified refer to time difference when terminal continuously performs positioning action twice.This refers to
When fixed positioning intervals can be that terminal acquiescence terminal performs the positioning that the locating periodically of positioning or user are set
Between the cycle.
Supplementary notes, when not reaching the positioning intervals specified and the terminal does not reconnect to network,
Return to step 102, terminal reconnects the cycle according to first, reconnects network, until terminal was detected before current time and terminal
Time interval when once performing positioning action reaches the time interval specified, or judges that terminal has reconnected to net
Network.
It should be noted that the second location data is stored in specified location, while when being used for terminal execution next time positioning
The reference data that the location data got is compared.
105th, the first location data and the second location data are compared.
106th, according to comparative result, adjustment reconnects the cycle of network.
Wherein, comparative result can reflect the situation of terminal location change.When the first location data and the second positioning number
According to identical, or the first location data, when being less than certain numerical value with the second location data diversity factor, the comparative result reflects end
End position change is little, and terminal is currently at the probability of network black spots than larger;And when the first location data and the second positioning number
According to differing, or the first location data, when being more than certain numerical value with the second location data diversity factor, the comparative result reflects
Terminal location change is obvious, and the probability that terminal is currently at network black spots is smaller.
Terminal adjusts terminal and performs the frequency for reconnecting network according to the actual change situation of terminal position.Terminal is adjusted
Whole terminal was performed after the cycle for reconnecting network, and terminal will be performed according to the cycle of the reconnect network after adjustment to be connected again
Network is connect, step 104 is then returned to, the method that above-mentioned network is reconnected is continued executing with.
The method that network provided in an embodiment of the present invention is reconnected, when terminal disconnects network connection, terminal is according to specified weight
Even the cycle carry out periodically reconnect network during, start positioning function terminal is positioned, by compare by
According to the location data for specifying the cycle that reconnects to carry out the double positioning of terminal during network is reconnected, to determine terminal location
Change situation, according to comparative result, corresponding adjustment reconnects the cycle, so that realize when terminal is in network black spots for a long time,
Reduce terminal and perform the number of times for reconnecting network automatically, and then reduce the power consumption of terminal.
Further, with reference to foregoing schemes, the first location data is identical with the second location data possibility, it is also possible to different,
Therefore according to the comparative result of the first location data and the second location data, it is directed to terminal and performs the week for reconnecting network
The realization of the adjustment of phase, the embodiments of the invention provide two kinds of implementations,
The first situation:When the first location data and the second location data are differed, reconnect the cycle by first and increase to
Second reconnects the cycle, and the flow chart of the adjustment mode is as shown in Fig. 2 specifically include:
It should be noted that second reconnects the cycle and reconnects the cycle more than or equal to first.Specifically, reconnecting the cycle and being when first
When maximum reconnects the cycle, second after adjustment reconnects the cycle, and to reconnect the cycle with first equal;Reconnect the cycle and be not up to end when first
When end acquiescence maximum reconnects the cycle, second after adjustment reconnects the cycle more than the period 1.
201A, first reconnected cycle increase and specify the time.
202A, compare first and reconnect cycle increase and specify corresponding cycle and the default maximum of reconnecting after the time to reconnect the cycle
Size.
Wherein, maximum to reconnect the cycle can be the time value set by user oneself, or terminal is before dispatching from the factory
The time value just set.It is a kind of static parameter that maximum, which reconnects the cycle, and the process that whole network is reconnected is performed in terminal,
It is constant that maximum reconnects the cycle.Maximum reconnects the cycle and is stored in the storage location specified.
203A, reconnect and corresponding after the time is specified in cycle increase reconnect the cycle and reconnected less than or equal to maximum when described first
During the cycle, determine that described first reconnects cycle increase and specify and corresponding after the time reconnect the cycle and reconnect the cycle for second.
204A, reconnect and corresponding after the time is specified in cycle increase reconnect the cycle and reconnect the cycle more than maximum when described first
When, determine that the maximum reconnects the cycle and reconnects the cycle for second.
Wherein, second reconnect the cycle and hereinafter the 3rd to reconnect the cycle be all dynamic parameter, second reconnects the cycle (the
Three reconnect the cycle) it is to reconnect to reconnect the cycle after the adjustment that the cycle carries out according to the method described above based on the adjacent last time.
Second of situation:When the first location data is identical with the second location data, reconnects the cycle by first and narrow down to
Three reconnect the cycle, and the method flow diagram of the adjustment mode is as shown in figure 3, concrete operations are as follows:.
It should be noted that the 3rd reconnects the cycle and reconnects the cycle less than or equal to first.Specifically, reconnecting the cycle and being when first
When minimum reconnects the cycle, the after adjustment the 3rd reconnects the cycle, and to reconnect the cycle with first equal;Reconnect the cycle and be not up to end when first
When end acquiescence minimum reconnects the cycle, the after adjustment the 3rd reconnects the cycle less than the period 1.201B, first is reconnected cycle reduction
The time of specifying.
202B, compare first and reconnect the cycle and reduce corresponding cycle and the default minimum of reconnecting after the time of specifying and reconnect the cycle
Size.
203B, when described first reconnect the cycle reduce the time of specifying after corresponding reconnect the cycle and reconnected more than or equal to minimum
During the cycle, determine that described first reconnects the cycle and reduce and corresponding after the time of specifying reconnect the cycle and reconnect the cycle for the 3rd.
Wherein, it is also static parameter that minimum, which reconnects the cycle, and the process that whole network is reconnected is performed in terminal, and minimum reconnects week
Phase is constant.
204B, when described first reconnect the cycle reduce the time of specifying after corresponding reconnect the cycle and reconnect the cycle less than minimum
When, determine that the minimum reconnects the cycle and reconnects the cycle for the 3rd.
After judging that terminal location changes, terminal deviated from network blind area enters the possibility increase of network area,
The time cycle that network is reconnected is performed by reducing terminal so that when terminal location changes, terminal can be quickly connected to net
Network.
Further, with reference to foregoing schemes, after judging that the terminal reconnects to network, the present invention implements to provide
Another implementation, as described in Figure 4, methods described also includes:
107th, positioning function is closed.
Positioning function is closed, is then handled according to normal process flow.Wherein, positioning function is closed in time, can be with
When reducing terminal execution positioning, the consumption to final energy.
Further, another schematic flow sheet of network reconnection method provided in an embodiment of the present invention, as shown in figure 5,
This method comprises the following steps:
301st, whether monitoring terminal connects network.
302nd, when monitoring that the terminal network connection disconnects, start positioning function and positioned, to obtain first
Location data.
303rd, the cycle is reconnected according to initial, reconnects network.
304th, judge whether to be connected to network, if it is, step 310 is performed, if it has not, performing step 305.
305th, judge whether to the positioning intervals specified greatly, if it is, performing step 306, performed if it has not, returning
Step 303.
306th, the terminal is positioned, to obtain the second location data.
307th, the first location data and the second location data are compared.
308th, according to comparative result, adjustment reconnects the cycle of network.
309th, the cycle is reconnected according to after adjustment, reconnects connection network, then, perform step 304.
310th, positioning function is closed.
It should be noted that terminal involved in the embodiment of the present invention can include but is not limited to personal computer
(Personal Computer, PC), personal digital assistant (Personal Digital Assistant, PDA), wireless handheld
Equipment, tablet personal computer (Tablet Computer), mobile phone, MP3 player, MP4 players etc..
It should be noted that the executive agent of above-mentioned steps can be alarm clock prompting device, the device can be located locally
The application of terminal, or can also be the plug-in unit being located locally in the application of terminal or SDK (Software
Development Kit, SDK) etc. functional unit, the embodiment of the present invention is to this without being particularly limited to.
It is understood that the application can be mounted in the application program (nativeApp) in terminal, or may be used also
To be a web page program (webApp) of browser in terminal, the embodiment of the present invention is to this without limiting.
The method that network based on above-mentioned offer is reconnected, the embodiment of the present invention additionally provides the device that a kind of network is reconnected,
Suitable for terminal, the composition frame chart of the device is as shown in fig. 6, described device includes:
Start unit 61, for when detecting the terminal network connection disconnection, starting positioning function and simultaneously being positioned,
To obtain the first location data.
Unit 62 is reconnected, for reconnecting the cycle according to first, network is reconnected.
Judging unit 63, for judging whether to reconnect to network.
Positioning unit 64, for when reaching the positioning intervals specified and the terminal does not reconnect to network,
The terminal is positioned again, to obtain the second location data.
Comparing unit 65, for comparing the first location data and the second location data.
Adjustment unit 66, for according to comparative result, adjustment to reconnect the cycle of network.
Optionally, the adjustment unit 66 specifically for:When the first location data and the second location data are differed,
The cycle is reconnected by first to increase to second and reconnect the cycle;Or, when the first location data is identical with the second location data, by
One, which reconnects the cycle, narrows down to the 3rd and reconnects the cycle.
Optionally, as shown in fig. 7, the adjustment unit 66 is specifically included:
Increase module 661, the time is specified for reconnecting cycle increase by first.
First comparison module 662, for compare first reconnect cycle increase specify after the time it is corresponding reconnect the cycle with it is pre-
If maximum reconnects the size in cycle.
First determining module 663, for reconnecting that corresponding after the time is specified in cycle increase to reconnect the cycle small when described first
When maximum reconnects the cycle, determine that described first reconnects cycle increase and specify and corresponding after the time reconnect the cycle for second
Reconnect the cycle.
The determining module 663 is additionally operable to when described first reconnects that corresponding after the time is specified in cycle increase to reconnect the cycle big
When maximum reconnects the cycle, determine that the maximum reconnects the cycle and reconnects the cycle for second.
Optionally, as shown in figure 8, the adjustment unit 66 also includes:
Reduce module 664, the time is specified for reconnecting cycle reduction by first.
Second comparison module 665, for compare first reconnect the cycle reduce after the time of specifying it is corresponding reconnect the cycle with it is pre-
If minimum reconnects the size in cycle.
Second determining module 666, for when described first reconnect the cycle reduce the time of specifying after corresponding to reconnect the cycle big
When minimum reconnects the cycle, determine that described first reconnects the cycle and reduce and corresponding after the time of specifying reconnect the cycle for the 3rd
Reconnect the cycle.
The determining module 666 be additionally operable to when described first reconnect the cycle reduce the time of specifying after corresponding to reconnect the cycle small
When minimum reconnects the cycle, determine that the minimum reconnects the cycle and reconnects the cycle for the 3rd.
Optionally, as shown in figure 9, described device also includes:
Closing unit 67, for closing positioning function.
The device that network provided in an embodiment of the present invention is reconnected, when terminal disconnects network connection, terminal is according to specified weight
Even the cycle carry out periodically reconnect network during, start positioning function terminal is positioned, by compare by
According to the location data for specifying the cycle that reconnects to carry out the double positioning of terminal during network is reconnected, to determine terminal location
Change situation, according to comparative result, corresponding adjustment reconnects the cycle, so that realize when terminal is in network black spots for a long time,
Reduce terminal and perform the number of times for reconnecting network automatically, and then reduce the power consumption of terminal
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method can be with
Realize by another way.For example, device embodiment described above is only schematical, for example, the unit
Divide, only a kind of division of logic function there can be other dividing mode when actually realizing, for example, multiple units or group
Part can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown
Or the coupling each other discussed or direct-coupling or communication connection can be by some interfaces, device or unit it is indirect
Coupling is communicated to connect, and can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in an embodied on computer readable and deposit
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are to cause a computer
Device (can be personal computer, server, or network equipment etc.) or processor (Processor) perform the present invention each
The part steps of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is various
Can be with the medium of store program codes.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
God is with principle, and any modification, equivalent substitution and improvements done etc. should be included within the scope of protection of the invention.
Claims (10)
1. a kind of method that network is reconnected, it is characterised in that suitable for terminal, methods described includes:
When detecting the terminal network connection disconnection, start positioning function and simultaneously positioned, to obtain the first location data;
The cycle is reconnected according to first, network is reconnected;
Judge whether to reconnect to network;
When reaching the positioning intervals specified and the terminal does not reconnect to network, the terminal is determined again
Position, to obtain the second location data;
Compare the first location data and the second location data;
According to comparative result, adjustment reconnects the cycle of network.
2. according to the method described in claim 1, it is characterised in that described according to comparative result, adjustment reconnects network
Cycle includes:
When the first location data and the second location data are differed, reconnect the cycle by first and increase to second and reconnect the cycle;
Or, when the first location data is identical with the second location data, reconnects the cycle by first and narrow down to the 3rd and reconnect the cycle.
3. method according to claim 2, it is characterised in that when the first location data and the second location data are differed,
The cycle is reconnected by first to increase to second and reconnect the cycle and specifically include:
Cycle increase, which is reconnected, by first specifies the time;
Compare first and reconnect cycle increase and specify corresponding cycle and the default maximum of reconnecting after the time to reconnect the size in cycle;
When described first reconnect cycle increase specify after the time it is corresponding reconnect the cycle and reconnect the cycle less than or equal to maximum when, really
Fixed described first, which reconnects cycle increase, specifies and corresponding after the time reconnect the cycle and reconnect the cycle for second;
When described first reconnect cycle increase specify after the time it is corresponding reconnect the cycle and reconnect the cycle more than maximum when, it is determined that described
Maximum reconnects the cycle and reconnects the cycle for second.
4. method according to claim 2, it is characterised in that when the first location data is identical with the second location data,
The cycle is reconnected by first to narrow down to the 3rd and reconnect the cycle and specifically include:
Cycle reduction, which is reconnected, by first specifies the time;
Compare first and reconnect the cycle and reduce corresponding cycle and the default minimum of reconnecting after the time of specifying and reconnect the size in cycle;
When described first reconnect the cycle reduce after the time of specifying it is corresponding reconnect the cycle and reconnect the cycle more than or equal to minimum when,
Determine that described first reconnects the cycle and reduce and corresponding after the time of specifying reconnect the cycle and reconnect the cycle for the 3rd;
When described first reconnect the cycle reduce after the time of specifying it is corresponding reconnect the cycle and reconnect the cycle less than minimum when, it is determined that described
Minimum reconnects the cycle and reconnects the cycle for the 3rd.
5. according to the method described in claim 1, it is characterised in that after judging that the terminal reconnects to network, institute
Stating method also includes:
Close positioning function.
6. the device that a kind of network is reconnected, it is characterised in that suitable for terminal, described device includes:
Start unit, for when detecting the terminal network connection disconnection, starting positioning function and simultaneously being positioned, to obtain
First location data;
Unit is reconnected, for reconnecting the cycle according to first, network is reconnected;
Judging unit, for judging whether to reconnect to network;
Positioning unit, it is right again for when reaching the positioning intervals specified and the terminal does not reconnect to network
The terminal is positioned, to obtain the second location data;
Comparing unit, for comparing the first location data and the second location data;
Adjustment unit, for according to comparative result, adjustment to reconnect the cycle of network.
7. device according to claim 6, it is characterised in that the adjustment unit specifically for:When the first location data
When being differed with the second location data, reconnect the cycle by first and increase to second and reconnect the cycle;Or, when the first location data with
When second location data is identical, reconnects the cycle by first and narrow down to the 3rd and reconnect the cycle.
8. device according to claim 7, it is characterised in that the adjustment unit is specifically included:
Increase module, the time is specified for reconnecting cycle increase by first;
First comparison module, reconnects cycle increase and specifies for comparing first and corresponding after the time reconnect cycle and default maximum weight
Connect the size in cycle;
First determining module, for reconnecting and corresponding after the time is specified in cycle increase reconnecting the cycle and be less than or equal to when described first
When maximum reconnects the cycle, determine that described first reconnects cycle increase and specify and corresponding after the time reconnect the cycle and reconnect week for second
Phase;
The determining module be additionally operable to when described first reconnect the cycle increase specify the time after it is corresponding reconnect the cycle be more than maximum
When reconnecting the cycle, determine that the maximum reconnects the cycle and reconnects the cycle for second.
9. device according to claim 7, it is characterised in that the adjustment unit also includes:
Reduce module, the time is specified for reconnecting cycle reduction by first;
Second comparison module, reconnects the cycle for comparing first and reduces and corresponding after the time of specifying reconnect cycle and default minimum weight
Connect the size in cycle;
Second determining module, for when described first reconnect the cycle reduce the time of specifying after corresponding reconnect the cycle and be more than or equal to
When minimum reconnects the cycle, determine that described first reconnects the cycle and reduce and corresponding after the time of specifying reconnect the cycle and reconnect week for the 3rd
Phase;
The determining module be additionally operable to when described first reconnect the cycle reduce specify the time after it is corresponding reconnect the cycle be less than minimum
When reconnecting the cycle, determine that the minimum reconnects the cycle and reconnects the cycle for the 3rd.
10. device according to claim 6, it is characterised in that described device also includes:
Closing unit, for closing positioning function.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710372932.2A CN106973404A (en) | 2017-05-24 | 2017-05-24 | The method and device that a kind of network is reconnected |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710372932.2A CN106973404A (en) | 2017-05-24 | 2017-05-24 | The method and device that a kind of network is reconnected |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106973404A true CN106973404A (en) | 2017-07-21 |
Family
ID=59325877
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710372932.2A Pending CN106973404A (en) | 2017-05-24 | 2017-05-24 | The method and device that a kind of network is reconnected |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106973404A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110611923A (en) * | 2019-09-24 | 2019-12-24 | 中国联合网络通信集团有限公司 | Method and device for determining communication blind area |
CN111373777A (en) * | 2017-10-09 | 2020-07-03 | 华为技术有限公司 | Soft SIM card network access control method and equipment |
CN111538037A (en) * | 2020-05-12 | 2020-08-14 | 上海海洋大学 | GNSS receiver data acquisition unit and data, network access and energy consumption management method thereof |
CN112087772A (en) * | 2020-10-10 | 2020-12-15 | Oppo(重庆)智能科技有限公司 | Network abnormity recovery method, terminal and computer storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103546862A (en) * | 2013-09-30 | 2014-01-29 | 酷派软件技术(深圳)有限公司 | Cloud server, intelligent terminal and method and system for accessing intelligent terminal to LTE (long term evolution) network |
CN103607752A (en) * | 2013-09-11 | 2014-02-26 | 东莞宇龙通信科技有限公司 | Network searching method and terminal |
CN103906189A (en) * | 2014-04-15 | 2014-07-02 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for network searching and terminal |
CN104899275A (en) * | 2015-05-27 | 2015-09-09 | 深圳市金立通信设备有限公司 | Cell search method and terminal |
WO2015157925A1 (en) * | 2014-04-15 | 2015-10-22 | 宇龙计算机通信科技(深圳)有限公司 | Network searching method and network searching device, and terminal |
CN105611605A (en) * | 2015-08-31 | 2016-05-25 | 宇龙计算机通信科技(深圳)有限公司 | Network searching control method, network searching control device and terminal |
CN105898836A (en) * | 2015-12-21 | 2016-08-24 | 乐视移动智能信息技术(北京)有限公司 | Mobile network searching method and device |
CN106455002A (en) * | 2016-12-01 | 2017-02-22 | 深圳天珑无线科技有限公司 | Wireless search method and device, and terminal |
-
2017
- 2017-05-24 CN CN201710372932.2A patent/CN106973404A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103607752A (en) * | 2013-09-11 | 2014-02-26 | 东莞宇龙通信科技有限公司 | Network searching method and terminal |
CN103546862A (en) * | 2013-09-30 | 2014-01-29 | 酷派软件技术(深圳)有限公司 | Cloud server, intelligent terminal and method and system for accessing intelligent terminal to LTE (long term evolution) network |
CN103906189A (en) * | 2014-04-15 | 2014-07-02 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for network searching and terminal |
WO2015157925A1 (en) * | 2014-04-15 | 2015-10-22 | 宇龙计算机通信科技(深圳)有限公司 | Network searching method and network searching device, and terminal |
CN104899275A (en) * | 2015-05-27 | 2015-09-09 | 深圳市金立通信设备有限公司 | Cell search method and terminal |
CN105611605A (en) * | 2015-08-31 | 2016-05-25 | 宇龙计算机通信科技(深圳)有限公司 | Network searching control method, network searching control device and terminal |
CN105898836A (en) * | 2015-12-21 | 2016-08-24 | 乐视移动智能信息技术(北京)有限公司 | Mobile network searching method and device |
CN106455002A (en) * | 2016-12-01 | 2017-02-22 | 深圳天珑无线科技有限公司 | Wireless search method and device, and terminal |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111373777A (en) * | 2017-10-09 | 2020-07-03 | 华为技术有限公司 | Soft SIM card network access control method and equipment |
CN110611923A (en) * | 2019-09-24 | 2019-12-24 | 中国联合网络通信集团有限公司 | Method and device for determining communication blind area |
CN110611923B (en) * | 2019-09-24 | 2022-07-15 | 中国联合网络通信集团有限公司 | Method and device for determining communication blind area |
CN111538037A (en) * | 2020-05-12 | 2020-08-14 | 上海海洋大学 | GNSS receiver data acquisition unit and data, network access and energy consumption management method thereof |
CN112087772A (en) * | 2020-10-10 | 2020-12-15 | Oppo(重庆)智能科技有限公司 | Network abnormity recovery method, terminal and computer storage medium |
CN112087772B (en) * | 2020-10-10 | 2023-04-07 | Oppo(重庆)智能科技有限公司 | Network anomaly recovery method, terminal and computer storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106973404A (en) | The method and device that a kind of network is reconnected | |
CN103716906A (en) | Apparatus and method for controling power in a short-range communication device | |
EP3633880B1 (en) | Radio frequency interference processing method and electronic device | |
CN106060909A (en) | Network access method and mobile terminal | |
CN104837168A (en) | Method and system for switching devices, and devices | |
CN106658753B (en) | Data migration method and terminal equipment | |
WO2012048118A2 (en) | Method and apparatus for adaptive searching of distributed datasets | |
CN105138239A (en) | Application operation method and device and terminal device | |
CN106549451A (en) | A kind of wireless charging method and device | |
CN106714275A (en) | Wi-Fi connection method and mobile terminal | |
CN104994224A (en) | Antitheft method and device for mobile terminal | |
CN105657656A (en) | Transmission power adjustment method and user equipment | |
CN106790981A (en) | A kind of terminal device method to set up and terminal device | |
CN103209418A (en) | Mobile terminal and wireless fidelity (WIFI) hot spot information updating method thereof | |
CN111008090B (en) | Battery electric quantity control method and device, storage medium and terminal equipment | |
CN104684056B (en) | User equipment matching method, device and server | |
CN105357628A (en) | Electronic card exchange method and system, and apparatuses | |
CN104899275A (en) | Cell search method and terminal | |
JP2015162734A (en) | mobile terminal device | |
CN105828290A (en) | Method and device for selecting terminal to process business event | |
CN108700975B (en) | Anti-interference method and device for touch panel | |
CN104811563A (en) | Method for adjusting working performance of mobile terminal | |
CN103559091A (en) | Data scheduling method and split type terminal system | |
CN104604296B (en) | Intelligent search of wireless devices using device location information | |
US8811972B2 (en) | Communication terminal and communication control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170721 |
|
RJ01 | Rejection of invention patent application after publication |