CN105263179B - Electric quantity controlling method and user terminal when a kind of file transmits - Google Patents
Electric quantity controlling method and user terminal when a kind of file transmits Download PDFInfo
- Publication number
- CN105263179B CN105263179B CN201510551469.9A CN201510551469A CN105263179B CN 105263179 B CN105263179 B CN 105263179B CN 201510551469 A CN201510551469 A CN 201510551469A CN 105263179 B CN105263179 B CN 105263179B
- Authority
- CN
- China
- Prior art keywords
- user terminal
- whipping
- duration
- event
- application
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 36
- 230000005540 biological transmission Effects 0.000 claims abstract description 117
- 230000005611 electricity Effects 0.000 claims abstract description 52
- 238000001514 detection method Methods 0.000 claims description 29
- 206010048669 Terminal state Diseases 0.000 claims 1
- 238000004891 communication Methods 0.000 abstract description 2
- 238000005516 engineering process Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 15
- 230000015654 memory Effects 0.000 description 14
- 230000006870 function Effects 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 229910052799 carbon Inorganic materials 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
Classifications
-
- 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/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0264—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- 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)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present embodiments relate to fields of communication technology, disclose the electric quantity controlling method and user terminal when a kind of transmission of file, the described method includes: calculating the transmission duration that end of transmission file needs according to current file transmission rate when carrying out file transmission using any application of user terminal;The continuation of the journey duration using rear terminal residual electricity of all startings in user terminal in addition to any of the above-described application is closed in pre-estimation;Judge whether continuation of the journey duration is more than above-mentioned transmission duration, if it does, closing the application of all startings in user terminal in addition to any of the above-described application.Implement the embodiment of the present invention, electricity control can be carried out when file transmits, guarantees file complete transmission.
Description
Technical field
Electric quantity controlling method and user when transmitting the present invention relates to field of communication technology more particularly to a kind of file is whole
End.
Background technique
Currently, the application such as wechat, QQ has been widely used for the user terminals such as cell phone, tablet computer.Actually answering
In, user can carry out file transmission by the application installed on user terminal.However in practice, it has been found that when user is whole
When end there remains seldom electricity, if also continuing transmission file, the complete transmission of file may result in.
Summary of the invention
The embodiment of the invention discloses the electric quantity controlling methods and user terminal when a kind of transmission of file, can pass in file
Electricity control is carried out when defeated, guarantees file complete transmission.
First aspect of the embodiment of the present invention discloses electric quantity controlling method when a kind of transmission of file, which comprises
When carrying out file transmission using any application of user terminal, transferred according to the calculating of current file transmission rate
Finish the transmission duration that file needs;
Pre-estimation close all startings in the user terminal in addition to any application using rear terminal residual
The continuation of the journey duration of electricity;
Judge whether the continuation of the journey duration is more than the transmission duration, if it does, closing in the user terminal except institute
State the application of all startings except any application.
It is described when carrying out file transmission using any application of user terminal in first aspect of the embodiment of the present invention,
After calculating the transmission duration that end of transmission file needs according to current file transmission rate, the method also includes:
It detects with the presence or absence of the application of the starting in addition to any application in the user terminal, if it does, holding
The row pre-estimation close all startings in the user terminal in addition to any application using rear terminal residual
The step of continuation of the journey duration of electricity.
In first aspect of the embodiment of the present invention, the pre-estimation is closed in the user terminal except described any using it
The continuation of the journey duration using rear terminal residual electricity of outer all startings, comprising:
It determines and closes after the application of all startings in the user terminal in addition to any application, the user
The Overall Power Consumption of terminal;
Calculate the battery rated capacity of the user terminal and the product of voltage rating;
The ratio value that the product accounts for the overall power is calculated, as the end after the application for closing all startings
Hold the continuation of the journey duration of remaining capacity.
It is described after judging that the continuation of the journey duration is more than the transmission duration in first aspect of the embodiment of the present invention
Method further include:
It detects the user terminal and whether is sent out in preset duration with the wearable device of user terminal binding
Raw same action event, if so, executing all startings in the closing user terminal in addition to any application
Application the step of.
In first aspect of the embodiment of the present invention, the detection user terminal and with user terminal binding
Whether wearable device occurs same action event in preset duration, comprising:
It detects the user terminal and whether occurs first and get rid of action event, if the user terminal occurs the first whipping and makees
Event, whether the wearable device for detecting the user terminal binding, which occurs second, is got rid of action event, if the wearable device is sent out
Raw second gets rid of action event, judges that described first gets rid of action event and second whipping as the direction of action of getting rid of that event includes and be
No identical, if got rid of, direction of action is identical, judges that described first gets rid of action event and second whipping is got rid of as what event included
Whether movement initial time is respectively positioned in preset duration and described first gets rid of action event and second whipping makees event package
The whipping included makees whether duration is respectively positioned in the preset duration, if described first gets rid of action event and described second and get rid of
The whipping that action event includes is respectively positioned in preset duration as initial time and described first gets rid of action event and described second
Whipping is respectively positioned in the preset duration as the whipping that event includes as duration, judges that described first gets rid of action event and institute
It states the second whipping and whether makees the difference of initial time less than the first preset time threshold as the whipping that event includes, if described
One, which gets rid of action event and second whipping, makees the difference of initial time less than the first preset time threshold as the whipping that event includes
Value, whether judging described first, to get rid of the difference that action event and second whipping make duration as the whipping that event includes small
In the second preset time threshold, if described first gets rid of action event and second whipping continues as the whipping that event includes
The difference of duration determines the user terminal and the wearable device when described default less than the second preset time threshold
Same action event occurs in long.
Second aspect of the embodiment of the present invention discloses a kind of user terminal, comprising:
Computing unit, for using the user terminal any application carry out file transmission when, according to current file
Transmission rate calculates the transmission duration that end of transmission file needs;
Estimation unit closes answering for all startings in the user terminal in addition to any application for pre-estimation
With the continuation of the journey duration of rear terminal residual electricity;
Judging unit, for judging whether the continuation of the journey duration is more than the transmission duration;
Control unit is to close in the user terminal except described when being for the judging result in the judging unit
The application of all startings except any application.
In second aspect of the embodiment of the present invention, the user terminal further include:
First detection unit, for the computing unit calculate end of transmission file needs transmission duration after,
It detects with the presence or absence of the application of the starting in addition to any application in the user terminal, if it does, estimating described in triggering
After the application of all startings in the user terminal in addition to any application is closed in the meter unit execution pre-estimation
The operation of the continuation of the journey duration of terminal residual electricity.
In second aspect of the embodiment of the present invention, the estimation unit includes:
It determines subelement, closes answering for all startings in the user terminal in addition to any application for determining
With later, the Overall Power Consumption of the user terminal;
Computation subunit, for calculating the battery rated capacity of the user terminal and the product of voltage rating;And meter
The ratio value that the product accounts for the overall power is calculated, as the terminal residual electricity after the application for closing all startings
Continuation of the journey duration.
In second aspect of the embodiment of the present invention, the user terminal further include::
Second detection unit, for the judging result in the judging unit be when, detect the user terminal and
Whether same action event occurs in preset duration with the wearable device of user terminal binding;
Described control unit, when being specifically for the judging result in the judging unit, and in second inspection
The testing result for surveying unit is also to close answering for all startings in the user terminal in addition to any application when being
With.
In second aspect of the embodiment of the present invention, the second detection unit detect the user terminal and with the use
Whether the wearable device of family terminal binding occurs the mode of same action event in preset duration specifically:
Whether the second detection unit detection user terminal, which occurs first, is got rid of action event, if the user is whole
End occurs first and gets rid of action event, and whether the wearable device for detecting the user terminal binding, which occurs second, is got rid of action event, such as
Wearable device described in fruit occurs second to get rid of action event, judges that described first gets rid of action event and second whipping makees event package
Include whether get rid of direction of action identical, if it is identical to get rid of direction of action, judge that described first gets rid of action event and described second and get rid of
The whipping that action event includes makees whether initial time is respectively positioned in preset duration and described first gets rid of action event and described
Second whipping makees whether duration is respectively positioned in the preset duration as the whipping that event includes, if first whipping is made
Event and second whipping are respectively positioned in preset duration as the whipping that event includes as initial time and first whipping
Make event and second whipping to be respectively positioned in the preset duration as the whipping that event includes as duration, judges described
One get rid of action event and second whipping it is whether default less than first as the difference that the whipping that event includes makees initial time when
Between threshold value, if described first to get rid of the difference that action event and second whipping make initial time as the whipping that event includes small
In the first preset time threshold, judge that described first gets rid of action event and second whipping continues as the whipping that event includes
Whether the difference of duration is less than the second preset time threshold, if described first gets rid of action event and described second and get rid of action event
Including whipping make the difference of duration less than the second preset time threshold, determine that the user terminal and the wearing are set
It is standby that same action event occurs in the preset duration.
Compared with prior art, the embodiment of the present invention has the advantages that
In the embodiment of the present invention, when carrying out file transmission using any application of user terminal, can calculate ought be above
The transmission duration that end of transmission file needs under part transmission rate, and pre-estimation closes and removes any of the above-described application in user terminal
Except all startings the continuation of the journey duration using rear terminal residual electricity, when continuation of the journey duration be more than transmission duration, can close
The application of all startings in user terminal in addition to any of the above-described application, so that terminal residual electricity can be used for exclusively for file
Transmission power supply, so as to guarantee file complete transmission.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability
For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
The flow diagram of electric quantity controlling method when Fig. 1 is a kind of file disclosed by the embodiments of the present invention transmission;
The flow diagram of electric quantity controlling method when Fig. 2 is another file transmission disclosed by the embodiments of the present invention;
The flow diagram of electric quantity controlling method when Fig. 3 is another file transmission disclosed by the embodiments of the present invention;
The configuration diagram of electricity control system when Fig. 4 is a kind of file disclosed by the embodiments of the present invention transmission;
Fig. 5 is a kind of structural schematic diagram of user terminal disclosed by the embodiments of the present invention;
Fig. 6 is the structural schematic diagram of another user terminal disclosed by the embodiments of the present invention;
Fig. 7 is a kind of structural schematic diagram of estimation unit disclosed by the embodiments of the present invention;
Fig. 8 is the structural schematic diagram of another user terminal disclosed by the embodiments of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that the described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on this
Embodiment in invention, every other reality obtained by those of ordinary skill in the art without making creative efforts
Example is applied, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses the electric quantity controlling methods and user terminal when a kind of transmission of file, can pass in file
Electricity control is carried out when defeated, guarantees file complete transmission.It is described in detail separately below.
Referring to Fig. 1, the process of electric quantity controlling method when Fig. 1 is a kind of file disclosed by the embodiments of the present invention transmission is shown
It is intended to.As shown in Figure 1, this method may comprise steps of.
101, user terminal transmits speed according to current file when carrying out file transmission using any application of user terminal
Rate calculates the transmission duration that end of transmission file needs.
In the embodiment of the present invention, user terminal may include mobile phone, tablet computer, personal digital assistant (Personal
Digital Assistant, PDA), each Terminal Type such as mobile internet device (Mobile Internet Device, MID),
The embodiment of the present invention is not construed as limiting.
In the embodiment of the present invention, according to current file transmission rate and file size, calculates end of transmission file and need
Transmission duration.
102, after the application of all startings in user terminal in addition to any of the above-described application is closed in user terminal pre-estimation
The continuation of the journey duration of terminal residual electricity.
In the embodiment of the present invention, in above-mentioned steps 102, user terminal pre-estimation is closed in user terminal and is answered except any of the above-described
The continuation of the journey duration using rear terminal residual electricity of all startings except, may comprise steps of:
1), user terminal, which determines, closes after the application of all startings in user terminal in addition to any of the above-described application,
The Overall Power Consumption of user terminal;
2), user terminal calculates the battery rated capacity of user terminal and the product of voltage rating;
3, user terminal calculates the ratio value that the product accounts for above-mentioned overall power, after the application as all startings of closing
Terminal residual electricity continuation of the journey duration.
For example, when carrying out file transmission using the QQ of user terminal, user terminal, which can determine, closes user's end
After the application of all startings in end in addition to QQ, the Overall Power Consumption of user terminal, for example, the Overall Power Consumption of user terminal=
20W;Further, it is assumed that the battery rated capacity of user terminal is 3600mAh, and the voltage rating of battery is 4.2V, that
It closes after the application of all startings other than QQ, the continuation of the journey duration of terminal residual electricity are as follows: 3.6Ah*4.2V/20W
=0.756hour.
103, user terminal judges whether above-mentioned continuation of the journey duration is more than above-mentioned transmission duration, if it does, executing step
104;, whereas if above-mentioned continuation of the journey duration is less than or equal to above-mentioned transmission duration, then prompt terminal remaining capacity is too low, it is proposed that stops
Only file transmits.
104, user terminal closes the application of all startings in user terminal in addition to any of the above-described application.
In the method depicted in fig. 1, when carrying out file transmission using any application of user terminal, it can calculate and work as
The transmission duration that end of transmission file needs under preceding document transmission rate, and pre-estimation is closed in user terminal except any of the above-described
The continuation of the journey duration using rear terminal residual electricity of all startings except can be with when continuation of the journey duration is more than transmission duration
Close the application of all startings in addition to any of the above-described application in user terminal so that terminal residual electricity can be used for exclusively for
File transmission power supply, so as to guarantee file complete transmission.
Referring to Fig. 2, the process of electric quantity controlling method when Fig. 2 is another file transmission disclosed by the embodiments of the present invention
Schematic diagram.As shown in Fig. 2, this method may comprise steps of.
201, user terminal transmits speed according to current file when carrying out file transmission using any application of user terminal
Rate calculates the transmission duration that end of transmission file needs.
202, with the presence or absence of the application of the starting in addition to any of the above-described application in user terminal detection user terminal, if
In the presence of execution step 203;If it does not, executing step 204.
203, after the application of all startings in user terminal in addition to any of the above-described application is closed in user terminal pre-estimation
The continuation of the journey duration of terminal residual electricity, and execute step 205.
In the embodiment of the present invention, in above-mentioned steps 203, user terminal pre-estimation is closed in user terminal and is answered except any of the above-described
The continuation of the journey duration using rear terminal residual electricity of all startings except, may comprise steps of:
1), user terminal, which determines, closes after the application of all startings in user terminal in addition to any of the above-described application,
The Overall Power Consumption of user terminal;
2), user terminal calculates the battery rated capacity of user terminal and the product of voltage rating;
3), user terminal calculates the ratio value that the product accounts for above-mentioned overall power, as all startings of closing using it
The continuation of the journey duration of terminal residual electricity afterwards.
For example, when carrying out file transmission using the wechat of user terminal, user terminal, which can determine, closes user
After the application of all startings in terminal in addition to wechat, the Overall Power Consumption of user terminal, for example, the complete machine function of user terminal
Consumption=10W;Further, it is assumed that the battery rated capacity of user terminal is 3600mAh, and the voltage rating of battery is
4.2V, then closing after the application of all startings other than QQ, the continuation of the journey duration of terminal residual electricity are as follows: 3.6Ah*
4.2V/10W=1.512hour.
204, the continuation of the journey duration of user terminal pre-estimation terminal residual electricity, and execute step 205.
In the embodiment of the present invention, in above-mentioned steps 204, the continuation of the journey duration of user terminal pre-estimation end remaining capacity can be with
The following steps are included:
1), user terminal determines the Overall Power Consumption of user terminal;
2), user terminal calculates the battery rated capacity of user terminal and the product of voltage rating;
3), user terminal calculates the ratio value that the product accounts for above-mentioned overall power, when continuation of the journey as terminal residual electricity
It is long.
For example, when carrying out file transmission using the wechat of user terminal, user terminal can determine user terminal
Overall Power Consumption, for example, Overall Power Consumption=10W of user terminal;Further, it is assumed that the battery rated capacity of user terminal is
3600mAh, and the voltage rating of battery is 4.2V, then the continuation of the journey duration of terminal residual electricity are as follows: 3.6Ah*4.2V/10W
=1.512hour.
205, user terminal judges whether above-mentioned continuation of the journey duration is more than above-mentioned transmission duration, if it does, executing step
206;, whereas if above-mentioned continuation of the journey duration is less than or equal to above-mentioned transmission duration, then prompt terminal remaining capacity is too low, can not be complete
Whole transmission file.
206, user terminal closes the application of all startings in user terminal in addition to any of the above-described application.
In the method depicted in fig. 2, all startings in user terminal in addition to any of the above-described application can be closed
Using so that terminal residual electricity can be used for transmitting power supply exclusively for file, so as to guarantee file complete transmission.
Referring to Fig. 3, the process of electric quantity controlling method when Fig. 3 is another file transmission disclosed by the embodiments of the present invention
Schematic diagram.As shown in figure 3, this method may comprise steps of.
301, user terminal transmits speed according to current file when carrying out file transmission using any application of user terminal
Rate calculates the transmission duration that end of transmission file needs.
302, with the presence or absence of the application of the starting in addition to any of the above-described application in user terminal detection user terminal, if
In the presence of execution step 303;If it does not, executing step 304.
303, after the application of all startings in user terminal in addition to any of the above-described application is closed in user terminal pre-estimation
The continuation of the journey duration of terminal residual electricity, and execute step 305.
In the embodiment of the present invention, in above-mentioned steps 303, user terminal pre-estimation is closed in user terminal and is answered except any of the above-described
The continuation of the journey duration using rear terminal residual electricity of all startings except, may comprise steps of:
1), user terminal, which determines, closes after the application of all startings in user terminal in addition to any of the above-described application,
The Overall Power Consumption of user terminal;
2), user terminal calculates the battery rated capacity of user terminal and the product of voltage rating;
3), user terminal calculates the ratio value that the product accounts for above-mentioned overall power, as all startings of closing using it
The continuation of the journey duration of terminal residual electricity afterwards.
For example, when carrying out file transmission using the wechat of user terminal, user terminal, which can determine, closes user
After the application of all startings in terminal in addition to wechat, the Overall Power Consumption of user terminal, for example, the complete machine function of user terminal
Consumption=10W;Further, it is assumed that the battery rated capacity of user terminal is 3600mAh, and the voltage rating of battery is
4.2V, then closing after the application of all startings other than QQ, the continuation of the journey duration of terminal residual electricity are as follows: 3.6Ah*
4.2V/10W=1.512hour.
304, the continuation of the journey duration of user terminal pre-estimation terminal residual electricity, and execute step 305.
In the embodiment of the present invention, in above-mentioned steps 304, the continuation of the journey duration of user terminal pre-estimation end remaining capacity can be with
The following steps are included:
1), user terminal determines the Overall Power Consumption of user terminal;
2), user terminal calculates the battery rated capacity of user terminal and the product of voltage rating;
3), user terminal calculates the ratio value that the product accounts for above-mentioned overall power, when continuation of the journey as terminal residual electricity
It is long.
For example, when carrying out file transmission using the wechat of user terminal, user terminal can determine user terminal
Overall Power Consumption, for example, Overall Power Consumption=10W of user terminal;Further, it is assumed that the battery rated capacity of user terminal is
3600mAh, and the voltage rating of battery is 4.2V, then the continuation of the journey duration of terminal residual electricity are as follows: 3.6Ah*4.2V/10W
=1.512hour.
305, user terminal judges whether above-mentioned continuation of the journey duration is more than above-mentioned transmission duration, if it does, executing step
306;, whereas if above-mentioned continuation of the journey duration is less than or equal to above-mentioned transmission duration, then prompt terminal remaining capacity is too low, can not be complete
Whole transmission file.
In the embodiment of the present invention, user terminal judges that above-mentioned continuation of the journey duration more than after above-mentioned transmission duration, can export
Prompt information starts detection operation event for prompting, and executes step 306.
306, whether user terminal detection user terminal and the wearable device bound with user terminal are in preset duration
It is interior that same action event occurs, if so, executing step 307;Conversely, prompt user terminal and the wearing with user terminal binding
Same action event, file transmission failure do not occur in preset duration for equipment.
Referring to Figure 4 together, the frame of electricity control system when Fig. 4 is a kind of file disclosed by the embodiments of the present invention transmission
Structure schematic diagram.As shown in figure 4, user terminal can be taken by user, and user takes on the same hand of user terminal
Wearable device (such as Intelligent bracelet, smartwatch) can also be carried, wherein wearable device is that the specified wearing of user terminal is set
It is standby, and user terminal can be connect by bluetooth with wearable device.In framework shown in Fig. 4, user terminal judges above-mentioned
For duration of continuing a journey more than after above-mentioned transmission duration, user terminal can export prompt information, start to detect same movement for prompting
Event, at this point, user can whipping user terminal and wearable device correspondingly work as wearable device simultaneously towards some direction
When detecting that whipping, which occurs, to be made, wearable device can be sent to be made including the whipping that whipping makees initial time and gets rid of duration
Event is to user terminal, and correspondingly, user terminal within step 306, can detecte whether user terminal occurs the first whipping work
Event, if user terminal, which occurs first, gets rid of action event, whether the specified wearable device of detection user terminal, which occurs second, is got rid of
Action event judges that first gets rid of action event and the second whipping makees event package if wearable device occurs second to get rid of action event
Include whether get rid of direction of action identical, if it is identical to get rid of direction of action, judge that first gets rid of action event and second and get rid of action event
Including whipping make whether initial time is respectively positioned in preset duration (such as 10 seconds) and first gets rid of action event and the second whipping
The whipping for including as event makees whether duration is respectively positioned in preset duration, if first gets rid of action event and the second whipping work
The whipping that event includes is respectively positioned in preset duration as initial time and first gets rid of action event and the second whipping makees event package
The whipping included is respectively positioned in preset duration as duration, judges that first gets rid of action event and get rid of with the second whipping as what event included
The difference of initial time is acted whether less than the first preset threshold (such as 0.03 second), if first gets rid of action event and the second whipping
The whipping for including as event makees the difference of initial time less than the first preset threshold, judges that first gets rid of action event and the second whipping
The whipping for including as event makees the difference of duration whether less than the second preset threshold (such as 0.03 second), if the first whipping is made
Event and the second whipping make the difference of duration less than the second preset threshold as the whipping that event includes, determine user terminal with
And same action event occurs in preset duration for wearable device.
In the embodiment of the present invention, through the above steps 306, it can preferably improve the safety of file transmission.
307, user terminal closes the application of all startings in user terminal in addition to any of the above-described application.
In the method depicted in fig. 3, all startings in user terminal in addition to any of the above-described application can be closed
Using powering so that terminal residual electricity can be used for transmitting exclusively for file, so as to guarantee that file is complete, safe transmission.
Referring to Fig. 5, Fig. 5 is a kind of structural schematic diagram of user terminal disclosed by the embodiments of the present invention.As shown in figure 5,
The user terminal may include:
Computing unit 501, for being passed according to current file when carrying out file transmission using any application of user terminal
The transmission duration that defeated rate calculations end of transmission file needs;
Estimation unit 502 closes answering for all startings in user terminal in addition to any of the above-described application for pre-estimation
With the continuation of the journey duration of rear terminal residual electricity;
Judging unit 503, for judging whether continuation of the journey duration is more than above-mentioned transmission duration;
Control unit 504 is when being, to close and remove above-mentioned in user terminal for the judging result in judging unit 503
The application of all startings except one application.
As an alternative embodiment, user terminal shown in fig. 5 can be with:
First detection unit 505, for computing unit 501 calculate end of transmission file needs transmission duration it
Afterwards, it detects with the presence or absence of the application of the starting in addition to any of the above-described application in user terminal, if it does, triggering estimation unit
502 execute above-mentioned pre-estimation close all startings in user terminal in addition to any of the above-described application using rear terminal residual
The operation of the continuation of the journey duration of electricity.
Referring to Figure 6 together, Fig. 6 is the structural schematic diagram of another user terminal disclosed by the embodiments of the present invention.Wherein,
User terminal shown in fig. 6 is that user terminal as shown in Figure 5 optimizes.Compared with user terminal shown in fig. 5,
User terminal shown in fig. 6 can also include:
Second detection unit 506, for the judging result in judging unit 503 be when, detect user terminal and with
Whether the wearable device of user terminal binding occurs same action event in preset duration;
Control unit 504, specifically for when judging single 503 yuan of judging result to be, and in second detection unit
506 testing result is also to close the application of all startings in user terminal in addition to any of the above-described application when being.
In the embodiment of the present invention, second detection unit 506 detects user terminal and sets with the wearing of user terminal binding
The standby mode that same action event whether occurs in preset duration is specifically as follows:
Second detection unit 506 detects whether user terminal occurs first and gets rid of action event, if user terminal occurs the
One gets rid of action event, and whether the wearable device of detection user terminal binding, which occurs second, is got rid of action event, if wearable device is sent out
Raw second gets rid of action event, judge first get rid of action event and the second whipping as event include whether get rid of direction of action identical,
If got rid of, direction of action is identical, judges that first gets rid of action event and the second whipping and whether make initial time as the whipping that event includes
It is respectively positioned in preset duration and first gets rid of action event and the second whipping whether as the whipping that event includes make duration equal
In preset duration, if first get rid of the whipping that action event and the second whipping include as event be respectively positioned on as initial time it is pre-
If in duration and first gets rid of action event and the second whipping and is respectively positioned on preset duration as duration as the whipping that event includes
Interior, whether judging first, to get rid of the difference that action event and the second whipping make initial time as the whipping that event includes pre- less than first
If time threshold, if first gets rid of action event and the second whipping and makees the difference of initial time less than the as the whipping that event includes
One preset time threshold judges that first gets rid of action event with the second whipping and be as the difference that the whipping that event includes makees duration
It is no less than the second preset time threshold, if first gets rid of action event and the second whipping and makees duration as the whipping that event includes
Difference less than the second preset time threshold, it is same to determine that user terminal and wearable device occur in the preset duration
Action event.
In the embodiment of the present invention, by above-mentioned second detection unit 506, the safety of file transmission can be preferably improved
Property.
Referring to Figure 7 together, Fig. 7 is a kind of structural schematic diagram of estimation unit disclosed by the embodiments of the present invention.Wherein, scheme
Estimation unit shown in 7 is that the estimation unit 502 for including is optimized to Fig. 5, user terminal shown in fig. 6.Such as Fig. 7
Shown, estimation unit 502 may include:
It determines subelement 5021, closes answering for all startings in user terminal in addition to any of the above-described application for determining
With later, the Overall Power Consumption of terminal;
Computation subunit 5022, for calculating the battery rated capacity of user terminal and the product of voltage rating;And meter
The ratio value that the product accounts for overall power is calculated, the continuation of the journey as the terminal residual electricity after the application for closing above-mentioned all startings
Duration.
In the user terminal described in Fig. 5~Fig. 6, the institute in user terminal in addition to any of the above-described application can be closed
There is the application of starting, power so that terminal residual electricity can be used for transmitting exclusively for file, so as to guarantee that file is complete, pacifies
Full transmission.
Referring to Fig. 8, Fig. 8 is the structural schematic diagram of another user terminal disclosed by the embodiments of the present invention.Such as Fig. 8 institute
Show, which may include processor 801 and memory 802, wherein memory 802 for storing data and program, and
The program that processor 801 is used to that memory 802 to be called to store, and the program is run to perform the following operations:
When carrying out file transmission using any application of user terminal, transferred according to the calculating of current file transmission rate
Finish the transmission duration that file needs;
Pre-estimation close all startings in addition to any of the above-described application in user terminal using rear terminal residual electricity
Continuation of the journey duration;
Judge whether continuation of the journey duration is more than the transmission duration, is answered if it does, closing in user terminal except any of the above-described
The application of all startings except.
As an alternative embodiment, processor 801 is carrying out file transmission using any application of user terminal
When, after the transmission duration that end of transmission file needs is calculated according to current file transmission rate, also execute following operation:
It detects with the presence or absence of the application of the starting in addition to any of the above-described application in user terminal, if it does, on executing
The continuing using rear terminal residual electricity of all startings in user terminal in addition to any of the above-described application is closed in the pre-estimation stated
The long operation of endurance.
As an alternative embodiment, 801 pre-estimation of processor, which is closed in user terminal, applies it except any of the above-described
The continuation of the journey duration using rear terminal residual electricity of outer all startings, comprising:
Determine and close in user terminal after the application of all startings in addition to any of the above-described application, user terminal it is whole
Machine power consumption;
Calculate the battery rated capacity of user terminal and the product of voltage rating;
The ratio value that the product accounts for overall power is calculated, it is surplus as the terminal after the application for closing above-mentioned all startings
The continuation of the journey duration of remaining electricity.
As an alternative embodiment, processor 801 also executes after judgement continuation of the journey duration is more than transmission duration
It operates below:
It is same dynamic whether detection user terminal and the wearable device bound with user terminal occur in preset duration
Make event, if so, executing the operation of the above-mentioned application for closing all startings in user terminal in addition to any of the above-described application.
As an alternative embodiment, processor 801 detects user terminal and the wearing with user terminal binding
Whether equipment occurs same action event in preset duration, comprising:
Whether detection user terminal, which occurs first, is got rid of action event, if user terminal, which occurs first, gets rid of action event, is examined
Whether the wearable device for surveying user terminal binding, which occurs second, is got rid of action event, if wearable device occurs the second whipping and makees thing
Part, judge first get rid of action event and the second whipping as event include whether get rid of direction of action identical, if getting rid of direction of action
It is identical, judge that first gets rid of action event and the second whipping and make whether initial time is respectively positioned on preset duration as the whipping that event includes
It is interior and first gets rid of action event and the second whipping and make whether duration is respectively positioned on preset duration as the whipping that event includes
It is interior, if first gets rid of action event and the second whipping is respectively positioned in preset duration as the whipping that event includes as initial time, with
And first get rid of action event and the second whipping is respectively positioned in preset duration as the whipping that event includes as duration, judges first
It gets rid of action event and the second whipping and whether makees the difference of initial time less than the first preset time threshold as the whipping that event includes,
If first, which gets rid of action event and the second whipping, makees the difference of initial time less than the first preset time as the whipping that event includes
Threshold value judges that first gets rid of action event and the second whipping and whether make the difference of duration less than second as the whipping that event includes
Preset time threshold, if first gets rid of action event and be less than with the second whipping as the difference that the whipping that event includes makees duration
Second preset time threshold determines that same action event occurs in preset duration for user terminal and wearable device.
In the user terminal described in Fig. 8, can close in user terminal in addition to any of the above-described application all is opened
Dynamic application is powered so that terminal residual electricity can be used for transmitting exclusively for file, so as to guarantee that file is complete, safety passes
It is defeated.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium include read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory,
RAM), programmable read only memory (Programmable Read-only Memory, PROM), erasable programmable is read-only deposits
Reservoir (Erasable Programmable Read Only Memory, EPROM), disposable programmable read-only memory (One-
Time Programmable Read-Only Memory, OTPROM), the electronics formula of erasing can make carbon copies read-only memory
(Electrically-Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact
Disc Read-Only Memory, CD-ROM) or other disc memories, magnetic disk storage, magnetic tape storage or can
For carrying or any other computer-readable medium of storing data.
Electric quantity controlling method and user terminal when transmitting above to a kind of file disclosed by the embodiments of the present invention carry out
It is discussed in detail, used herein a specific example illustrates the principle and implementation of the invention, above embodiments
Illustrate to be merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to
According to thought of the invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification
It should not be construed as limiting the invention.
Claims (9)
- Electric quantity controlling method when 1. a kind of file transmits, which is characterized in that the described method includes:When carrying out file transmission using any application of user terminal, end of transmission text is calculated according to current file transmission rate The transmission duration that part needs;Pre-estimation close all startings in the user terminal in addition to any application using rear terminal residual electricity Continuation of the journey duration;Judge whether the continuation of the journey duration is more than the transmission duration, if it does, output prompt information, prompts to start to detect dynamic Make event;It detects the user terminal and whether occurs in preset duration with the wearable device of user terminal binding Same action event, if so, the application of all startings in the user terminal in addition to any application is closed, if it is not, Same action event does not occur in preset duration for prompt user terminal and the wearable device bound with user terminal, and file passes Defeated failure.
- 2. the method according to claim 1, wherein described carrying out file using any application of user terminal When transmission, after the transmission duration that end of transmission file needs is calculated according to current file transmission rate, the method also includes:It detects with the presence or absence of the application of the starting in addition to any application in the user terminal, if it does, executing institute The pre-estimation stated close all startings in the user terminal in addition to any application using rear terminal residual electricity Continuation of the journey duration the step of.
- 3. method according to claim 1 or 2, which is characterized in that the pre-estimation, which is closed, removes institute in the user terminal State the continuation of the journey duration using rear terminal residual electricity of all startings except any application, comprising:It determines and closes after the application of all startings in the user terminal in addition to any application, the user terminal Overall Power Consumption;Calculate the battery rated capacity of the user terminal and the product of voltage rating;The ratio value that the product accounts for the Overall Power Consumption is calculated, it is surplus as the terminal after the application for closing all startings The continuation of the journey duration of remaining electricity.
- 4. the method as described in claim 1, which is characterized in that the detection user terminal and with the user terminal Whether the wearable device of binding occurs same action event in preset duration, comprising:It detects the user terminal and whether occurs first and get rid of action event, if the user terminal occurs the first whipping and makees thing Part, whether the wearable device for detecting the user terminal binding, which occurs second, is got rid of action event, if the wearable device occurs Second gets rid of action event, judges that described first gets rid of action event and second whipping and whether get rid of direction of action as what event included Identical, if got rid of, direction of action is identical, judges that described first gets rid of action event and whipping that second whipping includes as event Make whether initial time is respectively positioned in preset duration and described first gets rid of action event and second whipping as event and include Whipping make whether duration is respectively positioned in the preset duration, if described first gets rid of action event and second whipping The whipping for including as event is respectively positioned in preset duration as initial time and described first gets rid of action event and described second and get rid of The whipping that action event includes is respectively positioned in the preset duration as duration, judge described first get rid of action event with it is described Whether second whipping makees the difference of initial time less than the first preset time threshold as the whipping that event includes, if described first It gets rid of action event and second whipping and makees the difference of initial time less than the first preset time threshold as the whipping that event includes, Judge that described first gets rid of action event and whether be less than with second whipping as the difference that the whipping that event includes makees duration Second preset time threshold, if described first gets rid of action event and when second whipping continues as the whipping that event includes Long difference determines the user terminal and the wearable device in the preset duration less than the second preset time threshold It is interior that same action event occurs.
- 5. a kind of user terminal characterized by comprisingComputing unit, for being transmitted according to current file when carrying out file transmission using any application of the user terminal The transmission duration that rate calculations end of transmission file needs;Estimation unit, after the application of all startings in the user terminal in addition to any application is closed for pre-estimation The continuation of the journey duration of terminal residual electricity;Judging unit, for judging whether the continuation of the journey duration is more than the transmission duration;Second detection unit is when being, to export prompt information for the judging result in the judging unit, prompts to start to detect Action event;And the user terminal and the wearable device bound with the user terminal are detected whether in preset duration Same action event occurs;Control unit, when being for the judging result in the judging unit, and in the detection of the second detection unit It as a result is also when being, to close the application of all startings in the user terminal in addition to any application;And described When the testing result of second detection unit is no, prompts user terminal and do not preset with the wearable device of user terminal binding Same action event, file transmission failure occur in duration.
- 6. user terminal according to claim 5, which is characterized in that further include:First detection unit, for detecting after the transmission duration that the computing unit calculates end of transmission file needs With the presence or absence of the application of the starting in addition to any application in the user terminal, if it does, the triggering estimation is single Member execute the pre-estimation close all startings in the user terminal in addition to any application using rear terminal The operation of the continuation of the journey duration of remaining capacity.
- 7. user terminal according to claim 5 or 6, which is characterized in that the estimation unit includes:Subelement is determined, for all startings in the determining closing user terminal in addition to any application using it Afterwards, the Overall Power Consumption of the user terminal;Computation subunit, for calculating the battery rated capacity of the user terminal and the product of voltage rating;And calculate institute The ratio value that product accounts for the Overall Power Consumption is stated, as the continuous of the terminal residual electricity after the application for closing all startings Endurance is long.
- 8. user terminal according to claim 5, which is characterized in that the second detection unit detects the user terminal And with the user terminal binding wearable device whether occur in preset duration same action event mode it is specific Are as follows:Whether the second detection unit detection user terminal, which occurs first, is got rid of action event, if the user terminal is sent out Raw first gets rid of action event, and whether the wearable device for detecting the user terminal binding, which occurs second, is got rid of action event, if institute It states wearable device to occur second to get rid of action event, judges that described first gets rid of action event and second whipping as event and include It whether identical gets rid of direction of action, if it is identical to get rid of direction of action, judges that described first gets rid of action event and second whipping is made The whipping that event includes makees whether initial time is respectively positioned in preset duration and described first gets rid of action event and described second Whipping makees whether duration is respectively positioned in the preset duration as the whipping that event includes, if described first gets rid of action event It is respectively positioned in preset duration as the whipping that event includes as initial time with second whipping and first whipping makees thing Part and second whipping are respectively positioned in the preset duration as the whipping that event includes as duration, judge that described first gets rid of Whether action event makees the difference of initial time less than the first preset time threshold as the whipping that event includes with second whipping Value, if described first gets rid of action event and second whipping and make the difference of initial time less than the as the whipping that event includes One preset time threshold judges that described first gets rid of action event and second whipping and make duration as the whipping that event includes Difference whether less than the second preset time threshold, if described first gets rid of action event with second whipping and includes as event Whipping make duration difference less than the second preset time threshold, determine that the user terminal and the wearable device are equal Same action event occurs in the preset duration.
- 9. a kind of computer readable storage medium, which is characterized in that be stored with program in the computer readable storage medium and refer to It enables, described program is instructed for executing method according to any of claims 1-4 after calling for computer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510551469.9A CN105263179B (en) | 2015-08-31 | 2015-08-31 | Electric quantity controlling method and user terminal when a kind of file transmits |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510551469.9A CN105263179B (en) | 2015-08-31 | 2015-08-31 | Electric quantity controlling method and user terminal when a kind of file transmits |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105263179A CN105263179A (en) | 2016-01-20 |
CN105263179B true CN105263179B (en) | 2019-05-14 |
Family
ID=55102639
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510551469.9A Expired - Fee Related CN105263179B (en) | 2015-08-31 | 2015-08-31 | Electric quantity controlling method and user terminal when a kind of file transmits |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105263179B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108804290B (en) * | 2018-06-13 | 2022-03-18 | 姜锋 | Method and system for information transmission safety of mobile storage equipment |
CN114845089B (en) * | 2022-07-04 | 2022-12-06 | 浙江大华技术股份有限公司 | Video picture transmission method and device |
CN115499374B (en) * | 2022-11-08 | 2023-03-24 | 腾讯科技(深圳)有限公司 | Parameter adjusting method and related device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2366134B (en) * | 2000-07-18 | 2004-02-18 | Nokia Mobile Phones Ltd | Mobile data transmission |
CN102369647A (en) * | 2011-09-14 | 2012-03-07 | 华为技术有限公司 | Power supply managment method and device of mobile terminal |
CN103593039A (en) * | 2012-08-16 | 2014-02-19 | 腾讯科技(深圳)有限公司 | Electricity saving control method and electricity saving control device |
CN103686633A (en) * | 2013-11-28 | 2014-03-26 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for transferring files |
CN103825933A (en) * | 2013-12-04 | 2014-05-28 | 北京三民太奇教育科技有限公司 | File transfer control method in learning system |
CN104346297A (en) * | 2013-07-24 | 2015-02-11 | 宏达国际电子股份有限公司 | Method for operating mobile device, mobile device using the same, wearable device using the same, and computer readable medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060264197A1 (en) * | 2005-05-23 | 2006-11-23 | Sony Ericsson Mobile Communications Ab | Mobile device battery warning for data downloads |
-
2015
- 2015-08-31 CN CN201510551469.9A patent/CN105263179B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2366134B (en) * | 2000-07-18 | 2004-02-18 | Nokia Mobile Phones Ltd | Mobile data transmission |
CN102369647A (en) * | 2011-09-14 | 2012-03-07 | 华为技术有限公司 | Power supply managment method and device of mobile terminal |
CN103593039A (en) * | 2012-08-16 | 2014-02-19 | 腾讯科技(深圳)有限公司 | Electricity saving control method and electricity saving control device |
CN104346297A (en) * | 2013-07-24 | 2015-02-11 | 宏达国际电子股份有限公司 | Method for operating mobile device, mobile device using the same, wearable device using the same, and computer readable medium |
CN103686633A (en) * | 2013-11-28 | 2014-03-26 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for transferring files |
CN103825933A (en) * | 2013-12-04 | 2014-05-28 | 北京三民太奇教育科技有限公司 | File transfer control method in learning system |
Also Published As
Publication number | Publication date |
---|---|
CN105263179A (en) | 2016-01-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105263179B (en) | Electric quantity controlling method and user terminal when a kind of file transmits | |
CN109690900B (en) | Charging method and terminal | |
CN104950318B (en) | The electricity saving method and mobile device of a kind of d GPS locating module | |
CN105738831B (en) | Battery electric quantity monitoring method and device of mobile terminal | |
CN104716750B (en) | A kind of low power consuming wireless power method and relevant apparatus, system | |
CN103364619B (en) | The voltage detection method of terminal device and terminal device | |
CN104281513B (en) | Application power consumption detection method and system | |
CN106786980A (en) | A kind of electronic equipment and the charge control method based on electronic equipment | |
CN105022945B (en) | A kind of solution screen locking method and mobile device based on face biological information | |
CN110554945A (en) | electric quantity control method, electronic equipment and computer readable storage medium | |
CN110222409B (en) | Method, device, equipment and storage medium for detecting residual water using time of electric water heater | |
CN106714288A (en) | Electric quantity processing method and apparatus, and terminal | |
CN105045519B (en) | The screen control method and user terminal of a kind of user terminal | |
EP3185348A1 (en) | Information processing method, smart battery, terminal and computer storage medium | |
CN106546921A (en) | The battery capacity update method of accumulator and device | |
CN106648854A (en) | Task execution method and device for terminal | |
EP3094983A1 (en) | Method and device for determining the remaining run time of a battery | |
CN109596989A (en) | Display methods, device and the electronic equipment of electric quantity for electronic equipment | |
CN105910620B (en) | The processing method and processing device of step counting data | |
CN104836290B (en) | The detection method and detecting system that a kind of Mobile terminal charger insertion is extracted | |
JP2005064571A (en) | Information transmission system and information transmission apparatus | |
CN111146837A (en) | Charging method and device, electronic device and storage medium | |
CN103942133A (en) | Information processing method and electronic equipment | |
CN105709400B (en) | Determine method and device, the electronic equipment for recording user movement duration | |
CN106020908B (en) | A kind of function method for closing and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190514 |
|
CF01 | Termination of patent right due to non-payment of annual fee |