Content of the invention
In view of the above problems, it is proposed that the present invention in case provide one overcome the problems referred to above or at least in part solve on
State control method and the device of the mobile terminal network connection of problem.
According to an aspect of of the present present invention, provide the control method that a kind of mobile terminal network connects, comprising:
When listening to the control event that mobile terminal network connects, obtain current point in time and described mobile terminal is current
Network state;
Set rule according to Preset Time, determine the anticipated net that described mobile terminal should occur when described current point in time
Network state, wherein, described Preset Time sets rule and arranges: the corresponding time period is set by the network state according to described mobile terminal
It is set at least one networking time period and at least one suspension time period, and each networking time period is adjacent with each suspension time period;
If the network state that described current point in time was in a networking time period and described mobile terminal is current is suspension
State, then control the networking state that described mobile terminal switches to estimate;
If the network state that described current point in time was in a suspension time period and described mobile terminal is current is networking
State, then control the suspension state that described mobile terminal switches to estimate.
Alternatively, the control event that described network connects includes at least one following:
Backstage starts network and connects control service, opening network connection control switch, modification system time.
Alternatively, network-like if described current point in time was in a networking time period and described mobile terminal is current
State is suspension state, then control after described mobile terminal switches to the networking state estimated, also include:
When described current point in time reaches this networking time period next one adjacent suspension time period, control described movement
Terminal switches to the suspension state estimated.
Alternatively, described method also includes:
If the network state that described current point in time was in a networking time period and described mobile terminal is current is networking
State, then, when waiting described current point in time to reach this networking time period next one adjacent suspension time period, control described shifting
Dynamic terminal switches to the suspension state estimated.
Alternatively, network-like if described current point in time was in a suspension time period and described mobile terminal is current
State is networking state, then, after controlling the suspension operation that described mobile terminal switches to estimate, also include:
When described current point in time reaches this suspension time period next one adjacent networking time period, control described movement
Terminal switches to the networking state estimated.
Alternatively, described method also includes:
If the network state that described current point in time was in a suspension time period and described mobile terminal is current is suspension
State, then, when waiting described current point in time to reach this suspension time period next one adjacent networking time period, control described shifting
Dynamic terminal switches to the networking state estimated.
Alternatively, described method also includes:
If in described current point in time is not in arbitrary networking time period or suspension time period and described mobile terminal is current
Network state be networking state, then when described current point in time reach the suspension time period when, control described mobile terminal switching
To anticipated suspension state.
Alternatively, described method also includes:
If in described current point in time is not in arbitrary networking time period or suspension time period and described mobile terminal is current
Network state be suspension state, then when described current point in time reach networking the time period when, control described mobile terminal switching
To anticipated networking state.
Alternatively, the networking state that described mobile terminal switches to estimate is controlled, comprising:
Initiated the broadcast of networking operation by AlarmManager, notify that described mobile terminal switches to the networking shape estimated
State.
Alternatively, the suspension state that described mobile terminal switches to estimate is controlled, comprising:
Initiated the broadcast of suspension operation by AlarmManager, notify that described mobile terminal switches to the suspension shape estimated
State.
According to another aspect of the present invention, additionally provide the control device that a kind of mobile terminal network connects, comprising:
Acquisition module, when being adapted for listening for the control event that mobile terminal network connects, obtains current point in time and institute
State the current network state of mobile terminal;
Determining module, is suitable to set rule according to Preset Time, determines the described mobile terminal when described current point in time
The expected network state that should occur, wherein, described Preset Time sets rule and arranges: according to the network state of described mobile terminal
The corresponding time period is set at least one networking time period and at least one suspension time period, and each networking time period is disconnected with each
The net time period is adjacent;
Networking control module, is in a networking time period and described mobile terminal is worked as if being suitable to described current point in time
Front network state is suspension state, then control the networking state that described mobile terminal switches to estimate;
Suspension control module, is in a suspension time period and described mobile terminal is worked as if being suitable to described current point in time
Front network state is networking state, then control the suspension state that described mobile terminal switches to estimate.
Alternatively, the control event that described network connects includes at least one following:
Backstage starts network and connects control service, opening network connection control switch, modification system time.
Alternatively, described suspension control module is further adapted for:
After the described networking control module described mobile terminal of control switches to the networking state estimated, treat described currently
When time point reaches this networking time period next adjacent suspension time period, control that described mobile terminal switches to estimate is disconnected
Net state.
Alternatively, described suspension control module is further adapted for:
If the network state that described current point in time was in a networking time period and described mobile terminal is current is networking
State, then, when waiting described current point in time to reach this networking time period next one adjacent suspension time period, control described shifting
Dynamic terminal switches to the suspension state estimated.
Alternatively, described networking control module is further adapted for:
After the described suspension control module described mobile terminal of control switches to the suspension state estimated, treat described currently
When time point reaches this suspension time period next one adjacent networking time period, control the connection that described mobile terminal switches to estimate
Net state.
Alternatively, described networking control module is further adapted for:
If the network state that described current point in time was in a suspension time period and described mobile terminal is current is suspension
State, then, when waiting described current point in time to reach this suspension time period next one adjacent networking time period, control described shifting
Dynamic terminal switches to the networking state estimated.
Alternatively, described suspension control module is further adapted for:
If in described current point in time is not in arbitrary networking time period or suspension time period and described mobile terminal is current
Network state be networking state, then when described current point in time reach the suspension time period when, control described mobile terminal switching
To anticipated suspension state.
Alternatively, described networking control module is further adapted for:
If in described current point in time is not in arbitrary networking time period or suspension time period and described mobile terminal is current
Network state be suspension state, then when described current point in time reach networking the time period when, control described mobile terminal switching
To anticipated networking state.
Alternatively, described networking control module is further adapted for:
Initiated the broadcast of networking operation by AlarmManager, notify that described mobile terminal switches to the networking shape estimated
State.
Alternatively, described suspension control module is further adapted for:
Initiated the broadcast of suspension operation by AlarmManager, notify that described mobile terminal switches to the suspension shape estimated
State.
In the embodiment of the present invention, the network connection to mobile terminal is controlled, i.e. connect when listening to mobile terminal network
During the control event connecing, obtain current point in time and the current network state of mobile terminal, and then set according to Preset Time
Rule, determines the expected network state that mobile terminal should occur when current point in time.If current point in time is in a networking
Between in section and the current network state of mobile terminal is suspension state, then control the networking state that mobile terminal switches to estimate;
If it is networking state that current point in time is in the network state that a suspension time period is interior and mobile terminal is current, then control is mobile
Terminal switches to the suspension state estimated.Thus, present invention achieves control mobile terminal and be in networking within the networking time period
State, is in suspension state within the suspension time period, solves current mobile terminal and is constantly in networking state and causes resource, stream
The problem of amount waste, and the consumption of electricity can be saved.Further, the present invention will previously according to the network state of mobile terminal
The corresponding time period is set at least one networking time period and at least one suspension time period, and each networking time period and each suspension
Time period is adjacent so that mobile terminal can reach the networking time period after the suspension time period, moves when networking the time period
Terminal can obtain the information that the network equipment pushes in time, it is ensured that information ageing.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, the feature and advantage can
Become apparent, below the detailed description of the invention especially exemplified by the present invention.
According to below in conjunction with the detailed description to the specific embodiment of the invention for the accompanying drawing, those skilled in the art will be brighter
Above-mentioned and other purposes, the advantages and features of the present invention.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing shows the disclosure
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should be by embodiments set forth here
Limited.On the contrary, these embodiments are provided to be able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
For solving above-mentioned technical problem, embodiments provide the control method that a kind of mobile terminal network connects.
Fig. 1 shows the flow chart of the control method that mobile terminal network connects according to an embodiment of the invention.See Fig. 1, the party
Method at least includes step S102 to step S106.
Step S102, when listening to the control event that mobile terminal network connects, obtains current point in time and moves eventually
Hold current network state.
Step S104, sets rule according to Preset Time, and it is anticipated that determination mobile terminal when current point in time should occur
Network state, wherein, Preset Time set rule arrange: the network state according to mobile terminal the corresponding time period is set to
A few networking time period and at least one suspension time period, and each networking time period is adjacent with each suspension time period.
Step S106, if it is disconnected that current point in time is in the network state that a networking time period is interior and mobile terminal is current
Net state, then control the networking state that mobile terminal switches to estimate;If current point in time is in a suspension time period and moves
The current network state of dynamic terminal is networking state, then control the suspension state that mobile terminal switches to estimate.
In the embodiment of the present invention, the network connection to mobile terminal is controlled, i.e. connect when listening to mobile terminal network
During the control event connecing, obtain current point in time and the current network state of mobile terminal, and then set according to Preset Time
Rule, determines the expected network state that mobile terminal should occur when current point in time.If current point in time is in a networking
Between in section and the current network state of mobile terminal is suspension state, then control the networking state that mobile terminal switches to estimate;
If it is networking state that current point in time is in the network state that a suspension time period is interior and mobile terminal is current, then control is mobile
Terminal switches to the suspension state estimated.Thus, present invention achieves control mobile terminal and be in networking within the networking time period
State, is in suspension state within the suspension time period, solves current mobile terminal and is constantly in networking state and causes resource, stream
The problem of amount waste, and the consumption of electricity can be saved.Further, the present invention will previously according to the network state of mobile terminal
The corresponding time period is set at least one networking time period and at least one suspension time period, and each networking time period and each suspension
Time period is adjacent so that mobile terminal can reach the networking time period after the suspension time period, moves when networking the time period
Terminal can obtain the information that the network equipment pushes in time, it is ensured that information ageing.
The embodiment of the present invention provide mobile terminal network connect control method, can apply with remote server or
High in the clouds communication mobile terminal, this mobile terminal can be provided with Android (Android) operating system, this system be in without
ROOT authorizes or has obtained the state of ROOT authority, and power user is generally designated as ROOT.
The control event that the network mentioned in above step S102 connects includes that backstage starts network and connects control service, opens
Open network and connect control switch, modification system time etc., the invention is not restricted to this.
In step S104, the corresponding time period is set at least one networking time by the network state according to mobile terminal
Section and at least one suspension time period, and each networking time period is adjacent with each suspension time period.For example, the 0:00-7 in every day:
In 59, arranging 0:00-0:05 is a networking time period, and 0:06-0:59 is a suspension time period, when 1:00-1:05 is a networking
Between section, 1:06-1:59 is a suspension time period, and 2:00-2:05 is a networking time period, and 2:06-2:59 is a suspension time period,
By that analogy.It is only illustrative it should be noted that enumerate herein, be not limiting as the present invention.
In step s 106, if current point in time is in the network state that a networking time period is interior and mobile terminal is current
For suspension state, then, after control mobile terminal switches to the networking state estimated, treat that current point in time reaches this networking time
During the section next adjacent suspension time period, control mobile terminal switches to the suspension state estimated.Time with above-mentioned setting
As a example by Duan, current point in time is 7:01, and this current point in time is in networking time period 7:00-7:05, if mobile terminal is current
Networking state is suspension state, then control the networking state that mobile terminal switches to estimate, office as wireless in wifi (Wireless Fidelity)
Territory network or mobile data network etc..Afterwards, treat that current point in time reaches this networking time period (7:00-7:05) next adjacent
Suspension time period (i.e. 7:06) when, control mobile terminal switches to the suspension state estimated, and at suspension time period 7:06-7:
It is always maintained at suspension state in 59.
If it is networking state that current point in time is in the network state that a suspension time period is interior and mobile terminal is current, then
After control mobile terminal switches to the suspension operation estimated, treat that current point in time reaches this suspension time period next adjacent
During the networking time period, control mobile terminal switches to the networking state estimated.Still as a example by the time period of above-mentioned setting, when current
Between point be 6:50, this current point in time is in suspension time period 6:06-6:59, if the current networking state of mobile terminal is networking
State, then control the suspension state that mobile terminal switches to estimate.Afterwards, treat current point in time reach this suspension time period (6:
06-6:59) during next adjacent networking time period (i.e. 7:00), control mobile terminal switches to the networking state estimated, and
It is always maintained at networking state in networking time period 7:00-7:05.
Further, if current point in time is in the network state that a networking time period is interior and mobile terminal is current for networking
State, then, when waiting current point in time to reach this networking time period next one adjacent suspension time period, control mobile terminal is cut
Shift to the suspension state estimated.Still as a example by the time period of above-mentioned setting, current point in time is 7:01, and this current point in time is at connection
In net time period 7:00-7:05, if the current networking state of mobile terminal is networking state, then waiting current point in time to reach should
During next adjacent suspension time period (i.e. the 7:06) of networking time period (7:00-7:05), control mobile terminal switches to estimate
Suspension state, and be always maintained at suspension state in suspension time period 7:06-7:59.
If additionally, it is suspension shape that current point in time is in the network state that a suspension time period is interior and mobile terminal is current
State, then when waiting current point in time to reach this suspension time period next one adjacent networking time period, control mobile terminal switching
To anticipated networking state.Still as a example by the time period of above-mentioned setting, current point in time is 6:50, and this current point in time is in suspension
In time period 6:06-6:59, if the current networking state of mobile terminal is suspension state, then waits current point in time to reach this and break
During next adjacent networking time period (i.e. the 7:00) of net time period (6:06-6:59), control mobile terminal switches to estimate
Networking state, and it is always maintained at networking state in networking time period 7:00-7:05.
If in addition, current point in time is not in arbitrary networking time period or the suspension time period is interior and mobile terminal is current
Network state is networking state, then, when waiting current point in time to reach the suspension time period, control mobile terminal switches to estimate
Suspension state.Still as a example by the time period of above-mentioned setting, current point in time is 12:00, and this current point in time is not in arbitrary
In net time period or suspension time period, if the current networking state of mobile terminal is networking state, then current point in time is waited to arrive
When reaching suspension time period (i.e. 0:06), control mobile terminal switches to the suspension state estimated, and at suspension time period 0:06-0:
It is always maintained at suspension state in 59.
If in current point in time is not in arbitrary networking time period or suspension time period and current network-like of mobile terminal
State is suspension state, then, when waiting current point in time to reach the networking time period, control mobile terminal switches to the networking shape estimated
State.Still as a example by the time period of above-mentioned setting, current point in time is 12:00, and this current point in time is not in arbitrary networking time
In section or suspension time period, if the current networking state of mobile terminal is suspension state, then current point in time is waited to reach networking
During time period (i.e. 0:00), control mobile terminal switches to the networking state estimated, and in networking time period 0:00-0:05 one
Straight holding networking state.
In an embodiment of the present invention, the networking state that control mobile terminal switches to estimate may be embodied as passing through
AlarmManager (prompting) initiates the broadcast of networking operation, and notice mobile terminal switches to the networking state estimated.
In an alternative embodiment of the invention, the suspension state that control mobile terminal switches to estimate may be embodied as passing through
AlarmManager (prompting) initiates the broadcast of suspension operation, and notice mobile terminal switches to the suspension state estimated.
In another embodiment of the invention, in order to save the consumption of mobile terminal electricity further, some can be consumed
The application program of electricity is optimized.
Application program is carried for system, different type of machines to carry application program different, and the application program that these carry
It is probably important, user may be affected after being closed and use.Perform the application program of the inventive method by the type of mobile terminal
Number, system type etc. be uploaded to high in the clouds, the provider of the power consumption application program preserving the present invention in cloud database runs out
Every kind of model terminal on system carry Optimizing Suggestions value or the optimisation strategy of application program, specifically, cloud database
Middle preserving the installation kit title that closable system carries application program, such as apk title is, and corresponding Optimizing Suggestions value.Or,
Receive the optimisation strategy to this terminal models that high in the clouds pushes, for example, building of the exclusive optimisation strategy of Samsung Galaxy 3 of propelling movement
View value is simultaneously buffered in this locality, after application program inquiry local cache, is optimized power consumption application program.
For the application program of power consumption, the situation that the first and second application programs are mutually called can be detected, in application journey
Sequence authorization privilege list can arrange the blacklist of the second intercepted application program for Service assembly, i.e. if
This second application program is by Service mode self-starting, if the bag mark of the first application program and the second application program
Bag mark is present in application program authorization privilege list, all intercepted.For example, only no thoroughfare for some second application program
Service mode self-starting, if this second application program is by other mode self-startings such as Broadcast modes, then can't help
Only.
Equally, some application program only no thoroughfare Service mode self-starting, if this application program is passed through
Broadcast mode self-starting, then be not prohibited by.Above-mentioned different set-up mode can be with application program in different application program fields
Scape.
Additionally, in the application program authorization privilege list storehouse pre-setting, some application program is to should have an application journey
Sequence authorization privilege list, application program authorization privilege list is mark with application program identification (that is, aforesaid bag mark).Often
In one application program authorization privilege list, the user that is stored with is in advance for the behavior authority of this application program mandate.If this list
In not corresponding to the behavior authority of this application program, then do not have concrete power limit to advise, but user still can be to all permissions mandate
Or forbid.
Fig. 2 shows the flow chart of the method for the application program scoring to power consumption according to an embodiment of the invention.See
Fig. 2, the method at least includes step S202 to step S204.
Step S202, the status information of every power consumption service in detection mobile terminal.
In the embodiment of the present invention, the status information of every power consumption service includes in the status information that following power consumption services
Item or multinomial: power consumption application information, screen intensity information, screen locking temporal information, hardware status information and system service
Information.
Wherein power consumption application information is the unlatching quantity of power consumption application program.Specifically, power consumption application program is permissible
It is the background application that power consumption is higher than predetermined threshold value;Or, CPU usage, memory usage etc. exceed the backstage of threshold value
Application program;Or, power consumption is installed to the application program in terminal device and ranks, application program forward for ranking is made
For power consumption application program.Screen intensity information is the size (also referred to as screen brightness value) of screen intensity.Screen locking temporal information is lock
The length of screen time.Hardware status information is the working method of hardware.System service information is the unlatching quantity of system service.
Step S204, according to the score value logic pre-setting, determines respectively respectively according to the status information that every power consumption services
First scoring of item power consumption service.
It in the present embodiment, is that each above-mentioned power consumption service pre-sets score value logic, for example, takes according to each power consumption
The power consumption ratio setting of business.For example, arranging total score is 100 points;Wherein, through statistics, power consumption application program and screen intensity
Maximum to terminal device electric quantity consumption, can be respectively provided with score range is that 0-25 divides;Next to that system service and screen locking time, point
The score value not taken is that 0-15 divides, and hardware effort state takies 10 points, respectively to every power consumption service in above-mentioned score range
Scoring, it is thus achieved that the first scoring of every power consumption service.
Specifically, to power consumption application program, the unlatching quantity according to power consumption application program determines the of power consumption application program
One scoring.When increasing with the quantity of power consumption application program, the first scoring presents reduction trend, for example, when power consumption application program is 5
When below individual, the first scoring of power consumption application program is 25 points, and when power consumption application program is more than 5, often increases by 2 power consumptions
Application program, the first scoring reduces by 1 point, minimum is divided into 10 points.The first scoring to system service is also opening with system service
Opening quantity increases and reduces, and repeats no more.This example is provided with identical weight for each power consumption application program, only according to consumption
The quantity of electricity application program determines the first scoring of power consumption application program.Those skilled in the art can also be according to every power consumption
Application program or the power consumption of system service, enter number of passes etc., is that each power consumption application program or system service arrange different power
Weight, determines, with this, the first scoring that power consumption services.
For the screen locking time, determine first scoring of screen locking time according to the length of screen locking time.Concrete score value logic can
To be set to: the screen locking time, first scoring of screen locking time was 15 points when below 15s;When the screen locking time increases, during screen locking
Between first scoring reduce.For example in 15s-30s, the first scoring is 10 points, is 5 points more than 30s.
For screen intensity, determine the first scoring of screen intensity according to the size of screen intensity.Concrete score value logic can
To be set to: screen brightness value is less than 25% or screen intensity when being automatic, and the first scoring of screen intensity is 15 points;Work as screen
When brightness value raises, the first scoring of screen intensity reduces.
For hardware state, determine the first scoring of hardware state according to the working method of hardware.Concrete score value logic can
To be set to: when CPU is operated under frequency modulation state, the first scoring of hardware state is 10 points;CPU is operated under non-frequency modulation state
When, the first scoring of hardware state is 5 points.
It should be noted that in actual application, above-mentioned all optional embodiments can use any group of the mode of combination
Closing, forming the alternative embodiment of the present invention, this is no longer going to repeat them.
Based on same inventive concept, the embodiment of the present invention additionally provides the control device that a kind of mobile terminal network connects.
Fig. 3 shows the structural representation of the control device that mobile terminal network connects according to an embodiment of the invention.Such as Fig. 3 institute
Showing, this device at least may include that acquisition module the 310th, determining module the 320th, networking control module 330 and suspension control module
340。
Now introduce each composition of control device that the mobile terminal network of the embodiment of the present invention connects or the function of device with
And the annexation between each several part:
Acquisition module 310, be adapted for listening for mobile terminal network connect control event when, obtain current point in time and
The current network state of mobile terminal;
Determining module 320, is coupled with acquisition module 310, is suitable to set rule according to Preset Time, determines when current
Between some when the expected network state that should occur of mobile terminal, wherein, Preset Time sets rule and arranges: according to the net of mobile terminal
The corresponding time period is set at least one networking time period and at least one suspension time period by network state, and respectively networks the time period
Adjacent with each suspension time period;
Networking control module 330, is coupled with determining module 320, if being suitable to current point in time to be in a networking time period
Interior and that mobile terminal is current network state is suspension state, then control the networking state that mobile terminal switches to estimate;
Suspension control module 340, is coupled with determining module 320, if being suitable to current point in time to be in a suspension time period
Interior and that mobile terminal is current network state is networking state, then control the suspension state that mobile terminal switches to estimate.
In an embodiment of the present invention, the control event that network connects includes at least one following:
Backstage starts network and connects control service, opening network connection control switch, modification system time.
In an embodiment of the present invention, above-mentioned suspension control module 340 is further adapted for:
After networking control module control mobile terminal switches to the networking state estimated, treat that current point in time reaches and be somebody's turn to do
During the networking time period next adjacent suspension time period, control mobile terminal switches to the suspension state estimated.
In an embodiment of the present invention, above-mentioned suspension control module 340 is further adapted for:
If it is networking state that current point in time is in the network state that a networking time period is interior and mobile terminal is current, then
When waiting current point in time to reach this networking time period next one adjacent suspension time period, control mobile terminal switches to estimate
Suspension state.
In an embodiment of the present invention, above-mentioned networking control module 330 is further adapted for:
After suspension control module control mobile terminal switches to the suspension state estimated, treat that current point in time reaches and be somebody's turn to do
During the suspension time period next adjacent networking time period, control mobile terminal switches to the networking state estimated.
In an embodiment of the present invention, above-mentioned networking control module 330 is further adapted for:
If it is suspension state that current point in time is in the network state that a suspension time period is interior and mobile terminal is current, then
When waiting current point in time to reach this suspension time period next one adjacent networking time period, control mobile terminal switches to estimate
Networking state.
In an embodiment of the present invention, above-mentioned suspension control module 340 is further adapted for:
If in current point in time is not in arbitrary networking time period or suspension time period and current network-like of mobile terminal
State is networking state, then, when current point in time reaches the suspension time period, control mobile terminal switches to the suspension state estimated.
In an embodiment of the present invention, above-mentioned networking control module 330 is further adapted for:
If in current point in time is not in arbitrary networking time period or suspension time period and current network-like of mobile terminal
State is suspension state, then, when current point in time reaches the networking time period, control mobile terminal switches to the networking state estimated.
In an embodiment of the present invention, above-mentioned networking control module 330 is further adapted for:
Initiated the broadcast of networking operation by AlarmManager, notice mobile terminal switches to the networking state estimated.
In an embodiment of the present invention, above-mentioned suspension control module 340 is further adapted for:
Initiated the broadcast of suspension operation by AlarmManager, notice mobile terminal switches to the suspension state estimated.
According to the combination of any one preferred embodiment above-mentioned or multiple preferred embodiment, the embodiment of the present invention can reach
Following beneficial effect:
In the embodiment of the present invention, the network connection to mobile terminal is controlled, i.e. connect when listening to mobile terminal network
During the control event connecing, obtain current point in time and the current network state of mobile terminal, and then set according to Preset Time
Rule, determines the expected network state that mobile terminal should occur when current point in time.If current point in time is in a networking
Between in section and the current network state of mobile terminal is suspension state, then control the networking state that mobile terminal switches to estimate;
If it is networking state that current point in time is in the network state that a suspension time period is interior and mobile terminal is current, then control is mobile
Terminal switches to the suspension state estimated.Thus, present invention achieves control mobile terminal and be in networking within the networking time period
State, is in suspension state within the suspension time period, solves current mobile terminal and is constantly in networking state and causes resource, stream
The problem of amount waste, and the consumption of electricity can be saved.Further, the present invention will previously according to the network state of mobile terminal
The corresponding time period is set at least one networking time period and at least one suspension time period, and each networking time period and each suspension
Time period is adjacent so that mobile terminal can reach the networking time period after the suspension time period, moves when networking the time period
Terminal can obtain the information that the network equipment pushes in time, it is ensured that information ageing.
In specification mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that the enforcement of the present invention
Example can be put into practice in the case of not having these details.In some instances, it is not shown specifically known method, structure
And technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, exist
Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes
In example, figure or descriptions thereof.But, the method for the disclosure should be construed to reflect an intention that i.e. required guarantor
The application claims protecting more feature than the feature being expressly recited in each claim.More precisely, it is such as following
Claims reflected as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
The claims following detailed description of the invention are thus expressly incorporated in this detailed description of the invention, wherein each claim itself
All independent embodiments as the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment adaptively
Change and they are arranged in one or more equipment different from this embodiment.Can be the module in embodiment or list
Unit or assembly are combined into a module or unit or assembly, and can put them in addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit excludes each other, can use any
Combination is to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoints
Where all processes or the unit of method or equipment is combined.Unless expressly stated otherwise, this specification (includes adjoint power
Profit requires, summary and accompanying drawing) disclosed in each feature the alternative features providing identical, equivalent or similar purpose can be carried out generation
Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments
In some included feature rather than further feature, but the combination of the feature of different embodiment means to be in the present invention's
Within the scope of and form different embodiments.For example, in detail in the claims, embodiment required for protection one of arbitrarily
Can mode use in any combination.
The all parts embodiment of the present invention can realize with hardware, or to run on one or more processor
Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that and can use in practice
Microprocessor or digital signal processor (DSP) realize the control that mobile terminal network according to embodiments of the present invention connects
The some or all functions of the some or all parts in device.The present invention is also implemented as performing to be retouched here
Part or all equipment of the method stated or device program (for example, computer program and computer program).
The program of such present invention of realization can store on a computer-readable medium, or can have one or more signal
Form.Such signal can be downloaded from internet website and obtain, or on carrier signal provide, or with any its
He provides form.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol that should not will be located between bracket is configured to limitations on claims.Word "comprising" does not excludes the presence of not
Arrange element in the claims or step.Word "a" or "an" before being positioned at element does not excludes the presence of multiple such
Element.The present invention can come in fact by means of the hardware including some different elements and by means of properly programmed computer
Existing.If in the unit claim listing equipment for drying, several in these devices can be by same hardware branch
Specifically embody.Word first, second and third use do not indicate that any order.These word explanations can be run after fame
Claim.
So far, although those skilled in the art will appreciate that detailed the multiple of the present invention of illustrate and describing show herein
Example embodiment, but, without departing from the spirit and scope of the present invention, still can be direct according to present disclosure
Determine or derive other variations or modifications of many meeting the principle of the invention.Therefore, the scope of the present invention is it is understood that and recognize
It is set to and cover other variations or modifications all these.
The embodiment of the invention also discloses:
The control method that A1, a kind of mobile terminal network connect, comprising:
When listening to the control event that mobile terminal network connects, obtain current point in time and described mobile terminal is current
Network state;
Set rule according to Preset Time, determine the anticipated net that described mobile terminal should occur when described current point in time
Network state, wherein, described Preset Time sets rule and arranges: the corresponding time period is set by the network state according to described mobile terminal
It is set at least one networking time period and at least one suspension time period, and each networking time period is adjacent with each suspension time period;
If the network state that described current point in time was in a networking time period and described mobile terminal is current is suspension
State, then control the networking state that described mobile terminal switches to estimate;
If the network state that described current point in time was in a suspension time period and described mobile terminal is current is networking
State, then control the suspension state that described mobile terminal switches to estimate.
A2, the method according to A1, wherein, the control event that described network connects includes at least one following:
Backstage starts network and connects control service, opening network connection control switch, modification system time.
A3, the method according to A1 or A2, wherein, if described current point in time is in a networking time period and institute
Stating the current network state of mobile terminal is suspension state, then control described mobile terminal switch to the networking state estimated it
After, also include:
When described current point in time reaches this networking time period next one adjacent suspension time period, control described movement
Terminal switches to the suspension state estimated.
A4, the method according to A1 or A2, wherein, also include:
If the network state that described current point in time was in a networking time period and described mobile terminal is current is networking
State, then, when waiting described current point in time to reach this networking time period next one adjacent suspension time period, control described shifting
Dynamic terminal switches to the suspension state estimated.
A5, the method according to A1 or A2, wherein, if described current point in time is in a suspension time period and institute
Stating the current network state of mobile terminal is networking state, then control the suspension that described mobile terminal switches to estimate and operate it
After, also include:
When described current point in time reaches this suspension time period next one adjacent networking time period, control described movement
Terminal switches to the networking state estimated.
A6, the method according to A1 or A2, wherein, also include:
If the network state that described current point in time was in a suspension time period and described mobile terminal is current is suspension
State, then, when waiting described current point in time to reach this suspension time period next one adjacent networking time period, control described shifting
Dynamic terminal switches to the networking state estimated.
A7, the method according to A1 or A2, wherein, also include:
If in described current point in time is not in arbitrary networking time period or suspension time period and described mobile terminal is current
Network state be networking state, then when described current point in time reach the suspension time period when, control described mobile terminal switching
To anticipated suspension state.
A8, the method according to A1 or A2, wherein, also include:
If in described current point in time is not in arbitrary networking time period or suspension time period and described mobile terminal is current
Network state be suspension state, then when described current point in time reach networking the time period when, control described mobile terminal switching
To anticipated networking state.
A9, the method according to any one of A1-A8, wherein, control the networking shape that described mobile terminal switches to estimate
State, comprising:
Initiated the broadcast of networking operation by AlarmManager, notify that described mobile terminal switches to the networking shape estimated
State.
A10, the method according to any one of A1-A8, wherein, control the suspension shape that described mobile terminal switches to estimate
State, comprising:
Initiated the broadcast of suspension operation by AlarmManager, notify that described mobile terminal switches to the suspension shape estimated
State.
The control device that B11, a kind of mobile terminal network connect, comprising:
Acquisition module, when being adapted for listening for the control event that mobile terminal network connects, obtains current point in time and institute
State the current network state of mobile terminal;
Determining module, is suitable to set rule according to Preset Time, determines the described mobile terminal when described current point in time
The expected network state that should occur, wherein, described Preset Time sets rule and arranges: according to the network state of described mobile terminal
The corresponding time period is set at least one networking time period and at least one suspension time period, and each networking time period is disconnected with each
The net time period is adjacent;
Networking control module, is in a networking time period and described mobile terminal is worked as if being suitable to described current point in time
Front network state is suspension state, then control the networking state that described mobile terminal switches to estimate;
Suspension control module, is in a suspension time period and described mobile terminal is worked as if being suitable to described current point in time
Front network state is networking state, then control the suspension state that described mobile terminal switches to estimate.
B12, the device according to B11, wherein, the control event that described network connects includes at least one following:
Backstage starts network and connects control service, opening network connection control switch, modification system time.
B13, the device according to B11 or B12, wherein, described suspension control module is further adapted for:
After the described networking control module described mobile terminal of control switches to the networking state estimated, treat described currently
When time point reaches this networking time period next adjacent suspension time period, control that described mobile terminal switches to estimate is disconnected
Net state.
B14, the device according to B11 or B12, wherein, described suspension control module is further adapted for:
If the network state that described current point in time was in a networking time period and described mobile terminal is current is networking
State, then, when waiting described current point in time to reach this networking time period next one adjacent suspension time period, control described shifting
Dynamic terminal switches to the suspension state estimated.
B15, the device according to B11 or B12, wherein, described networking control module is further adapted for:
After the described suspension control module described mobile terminal of control switches to the suspension state estimated, treat described currently
When time point reaches this suspension time period next one adjacent networking time period, control the connection that described mobile terminal switches to estimate
Net state.
B16, the device according to B11 or B12, wherein, described networking control module is further adapted for:
If the network state that described current point in time was in a suspension time period and described mobile terminal is current is suspension
State, then, when waiting described current point in time to reach this suspension time period next one adjacent networking time period, control described shifting
Dynamic terminal switches to the networking state estimated.
B17, the device according to B11 or B12, wherein, described suspension control module is further adapted for:
If in described current point in time is not in arbitrary networking time period or suspension time period and described mobile terminal is current
Network state be networking state, then when described current point in time reach the suspension time period when, control described mobile terminal switching
To anticipated suspension state.
B18, the device according to B11 or B12, wherein, described networking control module is further adapted for:
If in described current point in time is not in arbitrary networking time period or suspension time period and described mobile terminal is current
Network state be suspension state, then when described current point in time reach networking the time period when, control described mobile terminal switching
To anticipated networking state.
B19, the device according to any one of B11-B18, wherein, described networking control module is further adapted for:
Initiated the broadcast of networking operation by AlarmManager, notify that described mobile terminal switches to the networking shape estimated
State.
B20, the device according to any one of B11-B18, wherein, described suspension control module is further adapted for:
Initiated the broadcast of suspension operation by AlarmManager, notify that described mobile terminal switches to the suspension shape estimated
State.