CN108804208A - Terminal operating method, device and terminal - Google Patents

Terminal operating method, device and terminal Download PDF

Info

Publication number
CN108804208A
CN108804208A CN201710298803.3A CN201710298803A CN108804208A CN 108804208 A CN108804208 A CN 108804208A CN 201710298803 A CN201710298803 A CN 201710298803A CN 108804208 A CN108804208 A CN 108804208A
Authority
CN
China
Prior art keywords
task
pending task
pending
power threshold
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710298803.3A
Other languages
Chinese (zh)
Inventor
雷振飞
范杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710298803.3A priority Critical patent/CN108804208A/en
Publication of CN108804208A publication Critical patent/CN108804208A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • G06F9/4893Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues taking into account power or heat criteria
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

Present disclose provides a kind of terminal operating method, device and terminals, belong to field of terminal technology.The method includes:The remaining capacity of real-time detection terminal;If the remaining capacity reaches the corresponding power threshold of pending task, the object run pattern of the pending task is determined;The terminal is switched into the object run pattern from present mode of operation.The embodiment of the present disclosure is monitored the remaining capacity of terminal by institute's electricity demand etc. based on pending task, it enables the terminal to switch in time under the pattern compared with power saving and run, to retain electricity for pending task, play the role of a kind of electricity alarm clock, terminal capabilities is greatly expanded, the use habit being more close to the users.

Description

Terminal operating method, device and terminal
Technical field
This disclosure relates to a kind of field of terminal technology more particularly to terminal operating method, device and terminal.
Background technology
With the development of terminal technology, the function that terminal can be realized is more and more.And it can be realized just because of terminal Function it is more and more, people can using terminal anywhere or anytime so that how the electricity of management terminal become one it is important Research direction.However, in use, tasting and will appear such situation, when user wants using some function, very may be used Can be larger due to the required electricity of the function, and since the either terminal of the use before user has been run for a long time, cause The remaining capacity of terminal is insufficient, finally cannot achieve the required function of user instead so that the efficiency of actual of terminal It substantially reduces, for this purpose, there is an urgent need for a kind of terminal operating methods in view of managing electric quantity.
Invention content
To overcome the problems in correlation technique, a kind of terminal operating method of disclosure offer, device and terminal.
According to the first aspect of the embodiments of the present disclosure, a kind of terminal operating method is provided, including:
The remaining capacity of real-time detection terminal;
If the remaining capacity reaches the corresponding power threshold of pending task, the target of the pending task is determined Operational mode;
The terminal is switched into the object run pattern from present mode of operation.
In a kind of possible realization method, if the remaining capacity reaches the corresponding electricity threshold of pending task Value, determines that the object run pattern of the pending task includes:
The power threshold is extracted from the task definition item of the pending task;
The remaining capacity is compared with the power threshold, when the remaining capacity reaches the power threshold When, the object run pattern is extracted from the task definition item of the pending task.
The method that the embodiment of the present disclosure provides, by institute's electricity demand based on pending task etc. to the remaining capacity of terminal It is monitored so that terminal can in time be switched under the pattern compared with power saving and be run, and to retain electricity for pending task, be risen A kind of effect of electricity alarm clock has been arrived, has greatly expanded terminal capabilities, the use habit being more close to the users.
In a kind of possible realization method, the method includes:
Interface is arranged in task based access control, obtains the power threshold and object run pattern of the pending task;
Power threshold based on the pending task and object run pattern, in the generating the pending task of the task Rong Xiang.
In a kind of possible realization method, the power threshold for obtaining the pending task includes:
The each task for obtaining the pending task executes parameter;
Parameter is executed according to each task, calculates the power threshold of the pending task.
It is described that parameter is executed according to each task in a kind of possible realization method, calculate the pending task Power threshold include:
Parameter is executed according to each task, calculates institute's electricity demand of the pending task;
By institute's electricity demand of the pending task and predetermined threshold value and value, the electricity threshold as the pending task Value.
In a kind of possible realization method, each task for obtaining the pending task executes parameter and includes:
If the pending task is navigation task, the starting point, destination, departure time of the navigation task are obtained And trip mode;Or,
If the pending task is communication task, the communication mode of the communication task is obtained and it is expected that when communicating It is long;Or,
If the pending task be multimedia task, obtain the multimedia task broadcasting type and The playout length of multimedia file.
In a kind of possible realization method, each task for obtaining the pending task executes parameter and further includes:
If the pending task is navigation task, according to the starting point, destination, departure time of the navigation task And trip mode, obtain the road traffic condition between the starting point and the destination.
In a kind of possible realization method, the method further includes:
If the remaining capacity reaches the corresponding power threshold of pending task, display reminding information, the prompt letter For breath for allowing user to choose whether to exit the specified managing electric quantity pattern being presently in, the specified managing electric quantity pattern is used for base Terminal operating is carried out in the corresponding power threshold of the pending task;
If the specified managing electric quantity pattern is not exited in user's selection, the determining object run pattern is executed And mode handover procedure.
In a kind of possible realization method, the object run pattern is that shutdown, offline mode, standby mode, flight wait for Machine pattern or battery saving mode.
According to the second aspect of the embodiment of the present disclosure, a kind of terminal operating device is provided, including:
Detection module is used for the remaining capacity of real-time detection terminal;
Mode decision module determines institute if reaching the corresponding power threshold of pending task for the remaining capacity State the object run pattern of pending task;
Handover module, for the terminal to be switched to the object run pattern from present mode of operation.
In a kind of possible realization method, the mode decision module includes:
Threshold value extracting sub-module, for extracting the power threshold from the task definition item of the pending task;
Schema extraction submodule, for the remaining capacity to be compared with the power threshold, when the remaining electricity When amount reaches the power threshold, the object run pattern is extracted from the task definition item of the pending task.
In a kind of possible realization method, described device includes pending task acquisition module, and the pending task obtains Modulus block includes:
Interface is arranged for task based access control in acquisition submodule, obtains the power threshold and target fortune of the pending task Row pattern;
Task definition item generates submodule, is used for power threshold and object run pattern based on the pending task, Generate the task definition item of the pending task.
In a kind of possible realization method, the acquisition submodule includes:
Parameter acquiring unit, each task for obtaining the pending task execute parameter;
Power threshold computing unit calculates the electricity of the pending task for executing parameter according to each task Measure threshold value.
The power threshold computing unit described in a kind of possible realization method is used to execute parameter according to each task, Calculate institute's electricity demand of the pending task;By institute's electricity demand of the pending task and predetermined threshold value and value, as The power threshold of the pending task.
In a kind of possible realization method, the parameter acquiring unit is used for:
If the pending task is navigation task, the starting point, destination, departure time of the navigation task are obtained And trip mode;Or,
If the pending task is communication task, the communication mode of the communication task is obtained and it is expected that when communicating It is long;Or,
If the pending task be multimedia task, obtain the multimedia task broadcasting type and The playout length of multimedia file.
In a kind of possible realization method, the parameter acquiring unit is additionally operable to:
If the pending task is navigation task, according to the starting point, destination, departure time of the navigation task And trip mode, obtain the road traffic condition between the starting point and the destination.
In a kind of possible realization method, described device further includes:
Display module, if reaching the corresponding power threshold of pending task, display reminding letter for the remaining capacity Breath, the prompt message is for allowing user to choose whether to exit the specified managing electric quantity pattern being presently in, the specified electricity Management mode is used to be based on the corresponding power threshold of the pending task and carries out terminal operating;
If the specified managing electric quantity pattern is not exited in user's selection, the mode decision module and institute are triggered It states handover module and executes the determining object run pattern and mode handover procedure.
In a kind of possible realization method, the object run pattern is that shutdown, offline mode, standby mode, flight wait for Machine pattern or battery saving mode.
According to the third aspect of the embodiment of the present disclosure, a kind of terminal is provided, the terminal includes:
Processor;
Memory for storing the executable instruction of processor;
Wherein, the processor is configured as:
The remaining capacity of real-time detection terminal;
If the remaining capacity reaches the corresponding power threshold of pending task, the target of the pending task is determined Operational mode;
The terminal is switched into the object run pattern from present mode of operation.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of terminal operating method shown according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of terminal operating method shown according to an exemplary embodiment.
Fig. 3 is a kind of illustrative graphic display interface.
Fig. 4 is a kind of schematic diagram of illustrative operational mode selection interface.
Fig. 5 is a kind of terminal operating device block diagram shown according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of terminal shown according to an exemplary embodiment.
Specific implementation mode
To keep the purpose, technical scheme and advantage of the disclosure clearer, below in conjunction with attached drawing to disclosure embodiment party Formula is described in further detail.
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of terminal operating method shown according to an exemplary embodiment, as shown in Figure 1, terminal Operation method is used in terminal, is included the following steps.
In step S101, the remaining capacity of real-time detection terminal.
In step s 102, it if the remaining capacity reaches the corresponding power threshold of pending task, is waited for described in determination The object run pattern of execution task.
In step s 103, the terminal is switched into the object run pattern from present mode of operation.
In a kind of possible realization method, if the remaining capacity reaches the corresponding electricity threshold of pending task Value, determines that the object run pattern of the pending task includes:
The power threshold is extracted from the task definition item of the pending task;
The remaining capacity is compared with the power threshold, when the remaining capacity reaches the power threshold When, the object run pattern is extracted from the task definition item of the pending task.
The method that the embodiment of the present disclosure provides, by institute's electricity demand based on pending task etc. to the remaining capacity of terminal It is monitored so that terminal can in time be switched under the pattern compared with power saving and be run, and to retain electricity for pending task, be risen A kind of effect of electricity alarm clock has been arrived, has greatly expanded terminal capabilities, the use habit being more close to the users.
In a kind of possible realization method, the method includes:
Interface is arranged in task based access control, obtains the power threshold and object run pattern of the pending task;
Power threshold based on the pending task and object run pattern, in the generating the pending task of the task Rong Xiang.
In a kind of possible realization method, the power threshold for obtaining the pending task includes:
The each task for obtaining the pending task executes parameter;
Parameter is executed according to each task, calculates the power threshold of the pending task.
It is described that parameter is executed according to each task in a kind of possible realization method, calculate the pending task Power threshold include:
Parameter is executed according to each task, calculates institute's electricity demand of the pending task;
By institute's electricity demand of the pending task and predetermined threshold value and value, the electricity threshold as the pending task Value.
In a kind of possible realization method, each task for obtaining the pending task executes parameter and includes:
If the pending task is navigation task, the starting point, destination, departure time of the navigation task are obtained And trip mode;Or,
If the pending task is communication task, the communication mode of the communication task is obtained and it is expected that when communicating It is long;Or,
If the pending task be multimedia task, obtain the multimedia task broadcasting type and The playout length of multimedia file.
In a kind of possible realization method, each task for obtaining the pending task executes parameter and further includes:
If the pending task is navigation task, according to the starting point, destination, departure time of the navigation task And trip mode, obtain the road traffic condition between the starting point and the destination.
In a kind of possible realization method, the method further includes:
If the remaining capacity reaches the corresponding power threshold of pending task, display reminding information, the prompt letter For breath for allowing user to choose whether to exit the specified managing electric quantity pattern being presently in, the specified managing electric quantity pattern is used for base Terminal operating is carried out in the corresponding power threshold of the pending task;
If the specified managing electric quantity pattern is not exited in user's selection, the determining object run pattern is executed And mode handover procedure.
In a kind of possible realization method, the object run pattern is that shutdown, offline mode, standby mode, flight wait for Machine pattern or battery saving mode.
The alternative embodiment that any combination forms the disclosure may be used, herein no longer in above-mentioned all optional technical solutions It repeats one by one.
Fig. 2 is a kind of flow chart of terminal operating method shown according to an exemplary embodiment, as shown in Fig. 2, terminal Operation method is used in terminal, is included the following steps.
In step 201, interface is arranged in task based access control, obtains the power threshold of the pending task.
The pending task refers to that user wants to carry out and want to preserve enough electricity to be performed task follow-up.This is waited for Execution task includes navigation task, communication task and multimedia task.Navigation task can refer to being based on being installed on end Navigation type application carried out route planning and route guidance on end etc..Communication task can refer to making a phone call, carrying out sound The tasks such as video communication, multimedia task can refer to watching movie, listening the tasks such as audio.
For the ease of user's operation, terminal can be provided multiple tasks in the same setting interface, and according to user Selection operation on the setting interface obtains the title of current pending task.It is a kind of example referring to Fig. 3, the Fig. 3 The graphic display interface of property.For example, (a) figure in Fig. 3 is function setting interface, wherein may include multinomial custom feature, For example, managing electric quantity function, which may include the specified managing electric quantity mould provided such as the embodiment of the present disclosure Formula (is provided as " electricity alarm clock " option) in figure, can also check work(including the electricity service condition as shown in (b) figure in Fig. 3 Can, it use statistical function etc. and the relevant function of electricity.If detecting that user is noisy to electricity in the function setting interface The selection operation of clock option then shows the setting interface of the pending task as shown in (c) figure in Fig. 3, in the setting interface The setting function that multinomial alternative task can be provided is selected for user, can also provide setting and the remarks letter of time started The functions such as the setting of breath.
For different pending tasks, different power thresholds can be set, so as in the residue electricity for detecting terminal After amount reaches the power threshold of the pending task, operational mode is allowed hand over, electricity is retained to be reached for the pending task Purpose.After determining pending task, the items that terminal can get the pending task according to the input of user are appointed Business executes parameter, and executes parameter according to each task, calculates the power threshold of the pending task.
For different pending tasks, corresponding to task execution parameter can also be different, base separately below It is introduced in different types of pending task:
(1) for navigation task, for consumed electricity actually with correlations such as task run durations, therefore, it is necessary to obtain The task executions parameter such as starting point, destination, departure time and trip mode of the navigation task, to estimate that the navigation is appointed The predicted operation duration of business, and the consumption of the unit interval based on the predicted operation duration and navigation application electricity, to obtain electricity Measure threshold value.
In another embodiment, if the pending task is navigation task, in order to improve the accurate of power threshold calculating Degree, can also be further according to the starting point of the navigation task, destination, departure time and trip mode etc., to obtain this Road traffic condition between starting point and the destination calculates the power threshold of the pending task.
It should be noted that road traffic condition may influence whether the predicted operation duration of navigation task, for example, trip Mode is self-driving, which can also be according to the history road traffic of the guidance path between starting point and destination Situation determines that the traveling that can obtain the guidance path from history road traffic condition according to the departure time takes, and should Traveling takes and is retrieved as predicted operation duration.The history road traffic condition can be collected by server from each terminal, The embodiment of the present disclosure is not specifically limited this.
(2) for communication task, consumed electricity is actually related with task run duration, that is to say communication task It is expected that communication time, moreover, because the hardware involved by different communication mode is different, the electricity consumed may not also Together, therefore, consumed electricity is also related to which kind of communication mode to carry out communication using on earth, for example, if it is network is dialed Phone is then related to the work of Wifi modules, if it is plain old telephone is dialed, is then related to the work of radio-frequency module, it is assumed that The unit interval that the unit interval consumption electricity of wifi module is less than radio-frequency module consumes electricity, then its list to dial network telephone Position time loss electricity will be less than the unit interval consumption electricity for dialing plain old telephone, therefore, if the pending task For communication task, the communication mode of the communication task is obtained and it is expected that communication time, and in follow-up calculating process, according to logical Trust the communication mode being engaged in and determine that its unit interval consumes electricity, and based on unit interval consumption electricity and it is expected that when communicating It is long, to obtain power threshold.
(3) for multimedia task, consumption electricity is related with task run duration and broadcasting type, for example, The unit interval consumption electricity for playing video is more than the unit interval consumption electricity for playing audio.Therefore, it can obtain described more The broadcasting type of media playing task and the playout length of multimedia file, and in follow-up calculating process, according to broadcasting type Determine that its unit interval consumes electricity, and based on unit interval consumption electricity and playout length, to obtain power threshold.For Multimedia task, terminal can first obtain multimedia file to be played according to the user's choice, detect multimedia text The broadcasting type and playout length of part, then power threshold is calculated based on these task parameters information.Certainly, the broadcasting type And playout length can also be that user directly inputs or selects in terminal, the embodiment of the present disclosure does not do this specific limit It is fixed.
It should be noted that in any of the above-described kind of pending task, the unit interval consumes electricity can be by technology people Member's configuration, to embody specific manifestation of the different task on electric quantity consumption, the embodiment of the present disclosure is not specifically limited this.When So, get pending task each task execute parameter after, can by each task execute parameter also store to appoint It is engaged in content item, for being used when follow-up operation task.
In addition, when calculating the power threshold of pending task, it is also contemplated that some other factors, for example, it is desired to be Some scattered electric quantity consumptions other than the pending task make allowances, therefore, can be according to institute in practical calculating process It states each task and executes parameter, after the institute's electricity demand for calculating the pending task, by institute's electricity demand of the pending task With predetermined threshold value and value, the power threshold as the pending task.The predetermined threshold value that is to say as can in actual motion Can the leeway that there is a situation where reserve, shut down to avoid because of situations such as not enough power supply.Certainly, which can be based on The practical operation situation of the terminal determines.For example, detecting remaining when automatic shutdown occurs every time whithin a period of time for the terminal Remaining electricity obtains the predetermined threshold value according to each remaining capacity.When obtaining predetermined threshold value, each residue can be obtained Maximum value in electricity is predetermined threshold value, and the average value that can also obtain each remaining capacity is predetermined threshold value, can also obtained On the basis of the maximum value or average value got, add certain electricity, to obtain predetermined threshold value, the embodiment of the present disclosure to how Predetermined threshold value is obtained not limit.
In step 202, interface is arranged in task based access control, obtains the object run pattern of the pending task.
Wherein, which is shutdown, offline mode, standby mode, flight standby mode or battery saving mode, is somebody's turn to do Battery saving mode may include reducing screen intensity, reducing wave volume etc..Usually, the power consumption of the object run pattern is less than The normal operation mode of terminal can be used for saving power consumption for terminal, be used to pending task with retaining.It is obtained in terminal It has arrived after task execution parameter of pending task etc., an operational mode selection interface can have been provided to the user so that user Select the operational mode subsequently to be switched according to the use habit of oneself, the operational mode selection interface can with as shown in figure 4, After terminal detects that any operational mode in the operational mode selection interface is selected, which can be retrieved as The corresponding object run pattern of the pending task.
It carries out it should be noted that the process of above-mentioned steps 201 and 202 can be arranged in same task on interface, also may be used To be carried out on associated task setting interface, the disclosure is not especially limited this.
In step 203, the power threshold based on the pending task and object run pattern generate described pending The task definition item of task.
For terminal, it can be provided at least one pending task, therefore, each pending can be directed to Business, generates the task definition item of the pending task, to carry out electricity inspection based on the task definition item in the follow-up process Survey the switching with operational mode.In the case where being provided with a pending task, terminal can be based on the pending task Task definition item is detected and switches, and in the case of being provided with multinomial pending task, it is multinomial that terminal can be based on this The task definition item of the pending task of each in pending task considers, so that can be used in completing should for remaining capacity Multinomial pending task.
In step 204, the remaining capacity of real-time detection terminal.
Terminal is once provided with pending task and opens for being based on the corresponding power threshold of the pending task The specified managing electric quantity pattern for carrying out terminal operating, then need the remaining capacity of real-time detection terminal, to avoid excessive electricity consumption.It needs It is noted that the detection of the remaining capacity can be carried out by the information about power of the real-time reading terminals battery of terminal, the disclosure Embodiment is not specifically limited this.
It should be noted that the real-time detection can refer to periodically being detected to remaining capacity, which is used Period can also be adjusted according to the use habit of user, the embodiment of the present disclosure is to this by terminal default setting It is not specifically limited.
In step 205, if the remaining capacity reaches the corresponding power threshold of pending task, this pending is determined It is engaged in corresponding object run pattern.
Once remaining capacity reaches the corresponding power threshold of pending task, illustrate that the terminal needs to initially enter power saving mould Formula, so as to electricity is retained for subsequent task, at this time, it may be necessary to determination will switch to any operational mode, the object run Pattern can be the operational mode given tacit consent to by terminal, can also be by user when pending task is arranged selected operation mould Formula, the embodiment of the present disclosure are not specifically limited this.
In the embodiments of the present disclosure, if user was set object run pattern before, which can wrap It includes:The power threshold is extracted from the task definition item of the pending task;The remaining capacity and the power threshold are compared Compared with when the remaining capacity reaches the power threshold, the object run mould is extracted from the task definition item of the pending task Formula.Certainly, if find that the remaining capacity is not up to the power threshold by comparing, electric power detection can be continued.
In another embodiment, in order to adapt to actually use, it is corresponding pending task can also to be reached in remaining capacity It when power threshold, inquires whether the user needs to exit current specified managing electric quantity pattern, other is answered to avoid user is influenced Normal use that is to say that this method further includes:If the remaining capacity reaches the corresponding power threshold of pending task, Display reminding information, for allowing user to choose whether to exit the specified managing electric quantity pattern being presently in, this refers to the prompt message Determine managing electric quantity pattern for be based on the corresponding power threshold progress terminal operating of the pending task;If the user selects not The specified managing electric quantity pattern is exited, then is executed such as the mould in determination object run pattern and step 206 in step 205 Formula handoff procedure.And if the specified managing electric quantity pattern is exited in user's selection, step 205 and 206 can not be executed, and move back Go out the specified managing electric quantity pattern, no longer carries out the electric power detection based on power threshold.
In another embodiment, in order to adapt to actually use, terminal can also reach pending task pair in remaining capacity When the power threshold answered, inquire whether the user needs to switch to current set object run pattern, to avoid user is influenced It to the normal use of other application, that is to say, this method further includes:If the remaining capacity reaches the corresponding electricity of pending task Threshold value is measured, display reminding information, the prompt message is for allowing user to choose whether to switch to the object run pattern of current setting; If user selection does not switch to the object run pattern, other operational modes can be provided and selected for user, and will be used The currently selected operational mode in family is updated to object run pattern, to execute the pattern switching in subsequent step.And if Selection switches to object run pattern, then can be switched over based on the object run pattern of current setting.
In step 206, which is switched into the object run pattern from present mode of operation.
After object run pattern is determined, the switching of operational mode can be carried out, to realize the effect of power saving.
For above-mentioned steps 201 to 206, illustrate that border uses process in fact with a simply example, it is assumed that user thinks It to navigate after having descended aircraft, then can pre-set a navigation task, be set in navigation institute terminal to be used The task execution parameter and object run mode of the navigation task are set, for example, starting point, destination, the departure time and going out Line mode etc. so that terminal is based on above-mentioned setting, generates a pending navigation task, and the power threshold of navigation task is 30%, object run mode is shutdown, and the power threshold 30% based on the navigation task carries out the monitoring of remaining capacity, once It detects that remaining capacity is 30%, then can shut down to terminal, to save electricity.And since end may be used in user Some important matters are done at end, then can be when it is 30% to detect remaining capacity, display reminding information, to ask the user whether to hold Row power-off operation is directly shut down if receiving the shutdown confirmation operation of user, and if receiving exiting for user The operation of specified managing electric quantity pattern, then without shutdown, and be to continue with based on present mode of operation normal operation.
After switching over, when can also be reached at the beginning of pending task, it is directly based upon pending task Task execution parameter of setting etc. starts respective application, to execute the pending task, to improve terminal processes efficiency, simplifies The operation of user.
For example, when pending task is navigation task, if current time reaches the departure time of the navigation task, It can be based on navigation task and start navigation application, and the guidance path based on the navigation task starts to navigate.When pending task For multimedia task when, if at the beginning of current time reaches the playing task, the multimedia can be based on The multimedia file to be played of task starts and plays application, and played out to the multimedia file to be played.When pending When business is communication task, if at the beginning of current time reaches the communication task, it can be based on the communication of the communication task Mode starts communication interface or communications applications interface, if the contact method provided with communication object, can transfer its contact Mode is input to communication interface or communications applications interface, if the contact method of communication object is not arranged, can also prompt to use Family is inputted, other tasks can carry out similarly according to its task character difference with kin task in the example above Processing, this will not be repeated here.
Certainly, in order to avoid bothering user, it can also ask the user whether to start and be somebody's turn to do before starting respective application Respective application, when receiving the confirmation operation of user, the start-up course just applied, to be adapted to the actual use of user The middle plan variation that may occur.
It should be noted that involved power threshold, remaining capacity etc. may be used hundred in the embodiments of the present disclosure Divide the form of ratio to indicate, other forms can also be taken to indicate, the disclosure is not specifically limited this.
The method that the embodiment of the present disclosure provides, by institute's electricity demand based on pending task etc. to the remaining capacity of terminal It is monitored so that terminal can in time be switched under the pattern compared with power saving and be run, and to retain electricity for pending task, be risen A kind of effect of electricity alarm clock has been arrived, has greatly expanded terminal capabilities, the use habit being more close to the users.
Fig. 5 is a kind of terminal operating device block diagram shown according to an exemplary embodiment.With reference to Fig. 5, which includes Detection module 501, mode decision module 502 and handover module 503.
Detection module 501 is used for the remaining capacity of real-time detection terminal;
Mode decision module 502 determines if reaching the corresponding power threshold of pending task for the remaining capacity The object run pattern of the pending task;
Handover module 503, for the terminal to be switched to the object run pattern from present mode of operation.
In a kind of possible realization method, the mode decision module 502 includes:
Threshold value extracting sub-module, for extracting the power threshold from the task definition item of the pending task;
Schema extraction submodule, for the remaining capacity to be compared with the power threshold, when the remaining electricity When amount reaches the power threshold, the object run pattern is extracted from the task definition item of the pending task.
In a kind of possible realization method, described device includes pending task acquisition module, and the pending task obtains Modulus block includes:
Interface is arranged for task based access control in acquisition submodule, obtains the power threshold and target fortune of the pending task Row pattern;
Task definition item generates submodule, is used for power threshold and object run pattern based on the pending task, Generate the task definition item of the pending task.
In a kind of possible realization method, the acquisition submodule includes:
Parameter acquiring unit, each task for obtaining the pending task execute parameter;
Power threshold computing unit calculates the electricity of the pending task for executing parameter according to each task Measure threshold value.
In a kind of possible realization method, the power threshold computing unit is used to execute ginseng according to each task Number calculates institute's electricity demand of the pending task;By institute's electricity demand of the pending task and predetermined threshold value and value, make For the power threshold of the pending task.
In a kind of possible realization method, the parameter acquiring unit is used for:
If the pending task is navigation task, the starting point, destination, departure time of the navigation task are obtained And trip mode;Or,
If the pending task is communication task, the communication mode of the communication task is obtained and it is expected that when communicating It is long;Or,
If the pending task be multimedia task, obtain the multimedia task broadcasting type and The playout length of multimedia file.
In a kind of possible realization method, the parameter acquiring unit is additionally operable to:
If the pending task is navigation task, according to the starting point, destination, departure time of the navigation task And trip mode, obtain the road traffic condition between the starting point and the destination.
In a kind of possible realization method, described device further includes:
Display module, if reaching the corresponding power threshold of pending task, display reminding letter for the remaining capacity Breath, the prompt message is for allowing user to choose whether to exit the specified managing electric quantity pattern being presently in, the specified electricity Management mode is used to be based on the corresponding power threshold of the pending task and carries out terminal operating;
If the specified managing electric quantity pattern is not exited in user's selection, the mode decision module and institute are triggered It states handover module and executes the determining object run pattern and mode handover procedure.
In a kind of possible realization method, the object run pattern is that shutdown, offline mode, standby mode, flight wait for Machine pattern or battery saving mode.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 6 is a kind of block diagram of terminal 600 shown according to an exemplary embodiment.For example, terminal 600 can be mobile Phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, Personal digital assistant etc..
With reference to Fig. 6, terminal 600 may include following one or more components:Processing component 602, memory 604, power supply Component 606, multimedia component 608, audio component 610, the interface 612 of input/output (I/O), sensor module 614, and Communication component 616.
The integrated operation of 602 usual control terminal 600 of processing component, such as with display, call, data communication, phase Machine operates and record operates associated operation.Processing component 602 may include that one or more processors 620 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 602 may include one or more modules, just Interaction between processing component 602 and other assemblies.For example, processing component 602 may include multi-media module, it is more to facilitate Interaction between media component 608 and processing component 602.
Memory 604 is configured as storing various types of data to support the operation in terminal 600.These data are shown Example includes instruction for any application program or method that are operated in terminal 600, contact data, and telephone book data disappears Breath, picture, video etc..Memory 604 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 606 provides electric power for the various assemblies of terminal 600.Power supply module 606 may include power management system System, one or more power supplys and other generated with for terminal 600, management and the associated component of distribution electric power.
Multimedia component 608 is included in the screen of one output interface of offer between the terminal 600 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 608 includes a front camera and/or rear camera.When terminal 600 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 610 is configured as output and/or input audio signal.For example, audio component 610 includes a Mike Wind (MIC), when terminal 600 is in operation mode, when such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The received audio signal can be further stored in memory 604 or via communication set Part 616 is sent.In some embodiments, audio component 610 further includes a loud speaker, is used for exports audio signal.
I/O interfaces 612 provide interface between processing component 602 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor module 614 includes one or more sensors, and the state for providing various aspects for terminal 600 is commented Estimate.For example, sensor module 614 can detect the state that opens/closes of equipment 600, and the relative positioning of component, for example, it is described Component is the display and keypad of terminal 600, and sensor module 614 can be with 600 1 components of detection terminal 600 or terminal Position change, the existence or non-existence that user contacts with terminal 600,600 orientation of terminal or acceleration/deceleration and terminal 600 Temperature change.Sensor module 614 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 614 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between terminal 600 and other equipment.Terminal 600 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.In an exemplary implementation In example, communication component 616 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 616 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal 600 can be believed by one or more application application-specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing above-mentioned terminal operating method.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of Such as include the memory 604 of instruction, above-metioned instruction can be executed by the processor 620 of terminal 600 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium is additionally provided, when the storage is situated between When instruction in matter is executed by the processor of mobile terminal so that mobile terminal is able to carry out a kind of terminal operating method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (19)

1. a kind of terminal operating method, which is characterized in that the method includes:
The remaining capacity of real-time detection terminal;
If the remaining capacity reaches the corresponding power threshold of pending task, the object run of the pending task is determined Pattern;
The terminal is switched into the object run pattern from present mode of operation.
2. if according to the method described in claim 1, it is characterized in that, the remaining capacity reaches pending task pair The power threshold answered determines that the object run pattern of the pending task includes:
The power threshold is extracted from the task definition item of the pending task;
The remaining capacity is compared with the power threshold, when the remaining capacity reaches the power threshold, from The object run pattern is extracted in the task definition item of the pending task.
3. according to the method described in claim 1, it is characterized in that, the method includes:
Interface is arranged in task based access control, obtains the power threshold and object run pattern of the pending task;
Power threshold based on the pending task and object run pattern generate the task definition of the pending task ?.
4. according to the method described in claim 3, it is characterized in that, the power threshold packet for obtaining the pending task It includes:
The each task for obtaining the pending task executes parameter;
Parameter is executed according to each task, calculates the power threshold of the pending task.
5. according to the method described in claim 4, it is characterized in that, described execute parameter, calculating institute according to each task The power threshold for stating pending task includes:
Parameter is executed according to each task, calculates institute's electricity demand of the pending task;
By institute's electricity demand of the pending task and predetermined threshold value and value, the power threshold as the pending task.
6. according to the method described in claim 4, it is characterized in that, each task for obtaining the pending task executes Parameter includes:
If the pending task is navigation task, obtain the starting point of the navigation task, destination, the departure time and Trip mode;Or,
If the pending task is communication task, the communication mode of the communication task is obtained and it is expected that communication time;Or,
If the pending task is multimedia task, the broadcasting type of the multimedia task and more matchmakers are obtained The playout length of body file.
7. according to the method described in claim 4, it is characterized in that, each task for obtaining the pending task executes Parameter further includes:
If the pending task be navigation task, according to the starting point of the navigation task, destination, the departure time and Trip mode obtains the road traffic condition between the starting point and the destination.
8. according to the method described in claim 1, it is characterized in that, the method further includes:
If the remaining capacity reaches the corresponding power threshold of pending task, display reminding information, the prompt message is used In allowing user to choose whether to exit the specified managing electric quantity pattern being presently in, the specified managing electric quantity pattern is used to be based on institute It states the corresponding power threshold of pending task and carries out terminal operating;
If the specified managing electric quantity pattern is not exited in user selection, execute the determining object run pattern and Mode handover procedure.
9. according to claim 1 to 8 any one of them method, which is characterized in that the object run pattern is shutdown, flight Pattern, standby mode, flight standby mode or battery saving mode.
10. a kind of terminal operating device, which is characterized in that described device includes:
Detection module is used for the remaining capacity of real-time detection terminal;
Mode decision module waits for if reaching pending task corresponding power threshold for the remaining capacity described in determination The object run pattern of execution task;
Handover module, for the terminal to be switched to the object run pattern from present mode of operation.
11. device according to claim 10, which is characterized in that the mode decision module includes:
Threshold value extracting sub-module, for extracting the power threshold from the task definition item of the pending task;
Schema extraction submodule, for the remaining capacity to be compared with the power threshold, when the remaining capacity reaches When to the power threshold, the object run pattern is extracted from the task definition item of the pending task.
12. device according to claim 10, which is characterized in that described device includes pending task acquisition module, institute Stating pending task acquisition module includes:
Acquisition submodule is arranged interface for task based access control, obtains the power threshold and object run mould of the pending task Formula;
Task definition item generates submodule, is used for power threshold and object run pattern based on the pending task, generates The task definition item of the pending task.
13. device according to claim 12, which is characterized in that the acquisition submodule includes:
Parameter acquiring unit, each task for obtaining the pending task execute parameter;
Power threshold computing unit calculates the electricity threshold of the pending task for executing parameter according to each task Value.
14. device according to claim 13, which is characterized in that the power threshold computing unit is used for according to described each Item task execution parameter, calculates institute's electricity demand of the pending task;By institute's electricity demand of the pending task and preset Threshold value and value, the power threshold as the pending task.
15. device according to claim 13, which is characterized in that the parameter acquiring unit is used for:
If the pending task is navigation task, obtain the starting point of the navigation task, destination, the departure time and Trip mode;Or,
If the pending task is communication task, the communication mode of the communication task is obtained and it is expected that communication time;Or,
If the pending task is multimedia task, the broadcasting type of the multimedia task and more matchmakers are obtained The playout length of body file.
16. device according to claim 14, which is characterized in that the parameter acquiring unit is additionally operable to:
If the pending task be navigation task, according to the starting point of the navigation task, destination, the departure time and Trip mode obtains the road traffic condition between the starting point and the destination.
17. device according to claim 10, which is characterized in that described device further includes:
Display module, if reaching the corresponding power threshold of pending task, display reminding information, institute for the remaining capacity Prompt message is stated for allowing user to choose whether to exit the specified managing electric quantity pattern being presently in, the specified managing electric quantity mould Formula is used to be based on the corresponding power threshold of the pending task and carries out terminal operating;
If the specified managing electric quantity pattern is not exited in user selection, triggers the mode decision module and described cut It changes the mold block and executes the determining object run pattern and mode handover procedure.
18. according to claim 10 to 17 any one of them device, which is characterized in that the object run pattern be shutdown, Offline mode, standby mode, flight standby mode or battery saving mode.
19. a kind of terminal, which is characterized in that the terminal includes:
Processor;
Memory for storing the executable instruction of processor;
Wherein, the processor is configured as:
The remaining capacity of real-time detection terminal;
If the remaining capacity reaches the corresponding power threshold of pending task, the object run of the pending task is determined Pattern;
The terminal is switched into the object run pattern from present mode of operation.
CN201710298803.3A 2017-04-27 2017-04-27 Terminal operating method, device and terminal Pending CN108804208A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710298803.3A CN108804208A (en) 2017-04-27 2017-04-27 Terminal operating method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710298803.3A CN108804208A (en) 2017-04-27 2017-04-27 Terminal operating method, device and terminal

Publications (1)

Publication Number Publication Date
CN108804208A true CN108804208A (en) 2018-11-13

Family

ID=64053885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710298803.3A Pending CN108804208A (en) 2017-04-27 2017-04-27 Terminal operating method, device and terminal

Country Status (1)

Country Link
CN (1) CN108804208A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108803853A (en) * 2017-04-28 2018-11-13 北京小米移动软件有限公司 Terminal operating method, device and terminal, computer readable storage medium
WO2022057704A1 (en) * 2020-09-15 2022-03-24 北京字跳网络技术有限公司 Application operation mode switching method and apparatus, electronic device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009301500A (en) * 2008-06-17 2009-12-24 Nec Electronics Corp Task processing system and task processing method
CN102369647A (en) * 2011-09-14 2012-03-07 华为技术有限公司 Power supply managment method and device of mobile terminal
CN105573472A (en) * 2015-12-15 2016-05-11 小米科技有限责任公司 Method and device for closing application program
CN106375604A (en) * 2016-11-11 2017-02-01 北京小米移动软件有限公司 Terminal electric quantity controlling method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009301500A (en) * 2008-06-17 2009-12-24 Nec Electronics Corp Task processing system and task processing method
CN102369647A (en) * 2011-09-14 2012-03-07 华为技术有限公司 Power supply managment method and device of mobile terminal
CN105573472A (en) * 2015-12-15 2016-05-11 小米科技有限责任公司 Method and device for closing application program
CN106375604A (en) * 2016-11-11 2017-02-01 北京小米移动软件有限公司 Terminal electric quantity controlling method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108803853A (en) * 2017-04-28 2018-11-13 北京小米移动软件有限公司 Terminal operating method, device and terminal, computer readable storage medium
WO2022057704A1 (en) * 2020-09-15 2022-03-24 北京字跳网络技术有限公司 Application operation mode switching method and apparatus, electronic device, and storage medium

Similar Documents

Publication Publication Date Title
CN106375604B (en) The method and apparatus of controlling terminal electricity
CN104219388B (en) Sound control method and device
EP3324678A1 (en) Cell reselection based on difference between current cell reselection time and cell reselection time in history ping-pong reselection record
EP3133466B1 (en) Method and device for reminding in shutdown state
CN107608561A (en) Touch-screen control method and device
CN104750597A (en) User guide method and device during low power
CN105955441B (en) Application management method and device
CN104361486A (en) Alarm clock reminding method and device
CN107438811A (en) One kind breath screen shows method and device
CN104320542A (en) Method and device for sending reminding message
CN105979088A (en) Message pushing method and device
CN107943347A (en) Touch-screen control method and device
CN105093980A (en) Method and apparatus for controlling start-stop of smart apparatus
CN105282446A (en) Camera management method and device
CN103024182A (en) Method and device which enter into photo album interface from shoot interface of mobile terminal
CN106407079A (en) Mobile terminal charging prompting method, device and equipment
CN105554255A (en) Operation control method and device for terminal equipment
CN104750357A (en) Memo information processing method and device
CN108629178A (en) The resource access rights configuration method and device of application program
CN108132813A (en) Function locking method, device and the electronic equipment of application program
CN105101078B (en) Information prompting method, terminal and server
CN107027157A (en) Location updating method and equipment
CN105069605A (en) Charging prompt method and device
CN109246184A (en) A kind of temporal information acquisition methods, device and readable storage medium storing program for executing
CN106502664B (en) User is reminded to open the method and device of application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination