Summary of the invention
The present invention provides a kind of method for improving cruise duration, by judging whether there is data friendship in the first preset time
Mutually, determine whether the communication module closed in the terminal device, to achieve the purpose that improve cruise duration, the present invention is avoided
When not having data interaction, communication module is also attached wasted electricity with base station, improve the continuation of the journey of terminal device
Time, meanwhile, the purpose that communication module is automatically closed can be realized without user's manual operation by realizing, and avoid manual behaviour
To the problem that user's bring is inconvenient to use when making, and due to being asked when screen is smaller to user's bring is inconvenient for operation
Topic.
The present invention provides a kind of methods for improving cruise duration, are in communication connection status in terminal device and base station
When, which comprises
The terminal device judges whether there is data interaction in the first preset time;
If not provided, the terminal device closes the communication module in the terminal device, so that the terminal device mentions
High cruise duration.
After the terminal device closes the communication module in the terminal device, the method also includes:
The terminal device monitors whether the base station has hair according to default listening period, according to the default listening period period
The data sent;
After the data that the terminal device listens to that the base station is sent, the terminal device starts the communication mould
Block, so that the terminal device and the base station are established and communicated to connect.
After the terminal device closes the communication module in the terminal device, the method also includes:
The terminal device is it is judged whether or not data are sent to the base station;
When terminal device judgement has data to be sent to the base station, the terminal device starts the communication mould
Block, so that the terminal device and the base station are established and communicated to connect.
After the terminal device starts the communication module, the method also includes:
The terminal device judges whether successful establish with the base station communicates to connect in the second preset time;
If not provided, the terminal device closes the communication module.
A kind of terminal device, when the terminal device is in communication connection status with base station, the terminal device includes:
First judgment module, for judging whether there is data interaction in the first preset time;
Closedown module, if not provided, for closing the communication module in the terminal device, so that the terminal device mentions
High cruise duration.
The terminal device further include:
Module is monitored, after the closedown module closes the communication module in the terminal device, for according to default prison
The period is listened, monitors the data whether base station has transmission according to the default listening period period;
First starting module, it is described logical for starting after the monitoring module listens to the data that the base station is sent
Module is believed, so that the terminal device and the base station are established and communicated to connect.
The terminal device further include:
Second judgment module is worked as after the closedown module closes the communication module in the terminal device for judging
It is preceding whether to there are data to be sent to the base station;
Second starting module, when second judgment module judgement has data to be sent to the base station, for starting
Communication module is stated, so that the terminal device and the base station are established and communicated to connect.
The terminal device further include:
Third judgment module, it is default second for judging after second starting module starts the communication module
Whether successful establish with the base station communicates to connect in time;
If not provided, the closedown module closes the communication module.
The present invention is by judging whether there is data interaction in the first preset time, to determine whether to close the terminal device
In communication module, with achieve the purpose that improve cruise duration, the invention avoids when not having data interaction, communication module is also
It is attached wasted electricity with base station, improves the cruise duration of terminal device, meanwhile, it realizes and is grasped manually without user
Work can realize the purpose that communication module is automatically closed, and ask when avoiding manual operation to user's bring is inconvenient to use
Topic, and due to when screen is smaller to the problem that user's bring is inconvenient for operation.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
In order to solve the problems in the prior art, the invention proposes a kind of methods for improving cruise duration, specific such as Fig. 1
It is shown, it the described method comprises the following steps when terminal device is in communication connection status with base station:
Step 101, the terminal device judges whether there is data interaction in the first preset time.If it is not, executing
Step 102, if so, then terminating process.
Specifically, when the terminal device and the base station are in communication connection status by the terminal device
What communication module and the base station were attached.
The data interaction can be the application interaction in short breath interaction, phone interaction and the terminal device.
The terminal device is mobile terminal device, such as: smart phone, tablet computer, and passes through base station interaction
Wearable terminal device etc..
Step 102, the terminal device closes the communication module in the terminal device, so that the terminal device improves
Cruise duration.
Specifically, if indicating that user does not use the end currently without data interaction in first preset time
End equipment, in order to which communication module and base station keep the electricity of communication connection waste, the terminal device when reducing no data interaction
Close the communication module.
After the terminal device closes the communication module, in order to guarantee that the user is known that whether there are other use
Family contacts oneself, such as: whether there are short message, application message and missed call etc., the method also includes:
The terminal device monitors whether base station has transmission according to default listening period, according to the default listening period period
Data;
After the data that the terminal device listens to that the base station is sent, the terminal device starts the communication mould
Block, so that the terminal device and the base station are established and communicated to connect.
After the data that the terminal device does not listen to that the base station is sent, the terminal device remains turned-off described
The state of communication module.
Specifically, the default listening period indicates how long the terminal device monitors the number whether a base station has transmission
According to the default listening period indicates that the terminal device is once monitored and lasts long.Specifically default listening period and
Listening period is determines according to actual conditions.
After the terminal device closes the communication module, in order to guarantee that user can be timely by the terminal device
Carry out communicate, the method also includes:
The terminal device is it is judged whether or not data are sent to the base station;
When terminal device judgement has data to be sent to the base station, the terminal device starts the communication mould
Block, so that the terminal device and the base station are established and communicated to connect.
When the terminal device judges that no data are sent to the base station, the terminal device remains turned-off described
The state of communication module.
After the terminal device starts the communication module, in order to guarantee user in active communication, due to can not be with
Electricity caused by base station is established communication connection but is always at when establishing connection status wastes, the method also includes:
The terminal device judges whether successful establish with the base station communicates to connect in the second preset time;
If not provided, the terminal device closes the communication module.
It communicates to connect, keeps if the terminal device judges that success is established with the base station in the second preset time
The starting state of the communication module guarantees the normal communication of user.
The present invention is by judging whether there is data interaction in the first preset time, to determine whether to close the terminal device
In communication module, with achieve the purpose that improve cruise duration, the invention avoids when not having data interaction, communication module is also
It is attached wasted electricity with base station, improves the cruise duration of terminal device, meanwhile, it realizes and is grasped manually without user
Work can realize the purpose that communication module is automatically closed, and ask when avoiding manual operation to user's bring is inconvenient to use
Topic, and due to when screen is smaller to the problem that user's bring is inconvenient for operation.
Based on inventive concept same as the above method, the invention proposes a kind of terminal devices, described as shown in Fig. 2
Terminal device and base station are in communication connection status, and the terminal device includes:
First judgment module 21, for judging whether there is data interaction in the first preset time;
Closedown module 22, if not provided, for closing the communication module in the terminal device, so that the terminal device
Improve cruise duration.
The terminal device further include:
Module is monitored, after the closedown module closes the communication module in the terminal device, for according to default prison
The period is listened, monitors the data whether base station has transmission according to the default listening period period;
First starting module, it is described logical for starting after the monitoring module listens to the data that the base station is sent
Module is believed, so that the terminal device and the base station are established and communicated to connect.
The terminal device further include:
Second judgment module is worked as after the closedown module closes the communication module in the terminal device for judging
It is preceding whether to there are data to be sent to the base station;
Second starting module, when second judgment module judgement has data to be sent to the base station, for starting
Communication module is stated, so that the terminal device and the base station are established and communicated to connect.
The terminal device further include:
Third judgment module, it is default second for judging after second starting module starts the communication module
Whether successful establish with the base station communicates to connect in time;
If not provided, the closedown module closes the communication module.
The present invention is by judging whether there is data interaction in the first preset time, to determine whether to close the terminal device
In communication module, with achieve the purpose that improve cruise duration, the invention avoids when not having data interaction, communication module is also
It is attached wasted electricity with base station, improves the cruise duration of terminal device, meanwhile, it realizes and is grasped manually without user
Work can realize the purpose that communication module is automatically closed, and ask when avoiding manual operation to user's bring is inconvenient to use
Topic, and due to when screen is smaller to the problem that user's bring is inconvenient for operation.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or
The various media that can store program code such as person's CD.
The apparatus embodiments described above are merely exemplary, wherein unit can be as illustrated by the separation member
Or may not be and be physically separated, component shown as a unit may or may not be physical unit, i.e.,
It can be located in one place, or may be distributed at least two network units.It can be selected according to the actual needs
In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness
Labour in the case where, it can understand and implement.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.