CN106325985B - Timer adjusting method and system and mobile terminal - Google Patents

Timer adjusting method and system and mobile terminal Download PDF

Info

Publication number
CN106325985B
CN106325985B CN201510378123.3A CN201510378123A CN106325985B CN 106325985 B CN106325985 B CN 106325985B CN 201510378123 A CN201510378123 A CN 201510378123A CN 106325985 B CN106325985 B CN 106325985B
Authority
CN
China
Prior art keywords
timer
mobile terminal
information
periodic
started
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.)
Active
Application number
CN201510378123.3A
Other languages
Chinese (zh)
Other versions
CN106325985A (en
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 Spreadtrum Hi Tech Communications Technology Co Ltd
Original Assignee
Beijing Spreadtrum Hi Tech Communications Technology 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 Spreadtrum Hi Tech Communications Technology Co Ltd filed Critical Beijing Spreadtrum Hi Tech Communications Technology Co Ltd
Priority to CN201510378123.3A priority Critical patent/CN106325985B/en
Publication of CN106325985A publication Critical patent/CN106325985A/en
Application granted granted Critical
Publication of CN106325985B publication Critical patent/CN106325985B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

  • Telephone Function (AREA)
  • Electric Clocks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a timer adjusting method and system and a mobile terminal, belonging to the technical field of mobile terminals; the method comprises the following steps: step S1, the mobile terminal monitors the system operation, and triggers the corresponding adjustment request when the system operation matches the preset adjustment triggering condition, and goes to step S2; step S2, the mobile terminal judges all timers waiting to be started according to the adjustment request and a judgment model formed by training so as to screen all periodic timers waiting to be started; in step S3, the mobile terminal performs a uniform alignment adjustment on the start times of all the filtered periodic timers, and then returns to step S1. The system comprises: the device comprises an acquisition unit, a judgment unit and a control unit; the beneficial effects of the above technical scheme are: the unified alignment adjustment of the starting time of the timer which is associated with each application program and can wake up the system is realized, the times of waking up the mobile terminal are reduced, and the overall power consumption of the mobile terminal is reduced.

Description

Timer adjusting method and system and mobile terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a timer adjusting method and system and a mobile terminal.
Background
In the prior art, a large number of applications installed in a mobile terminal may need to set a corresponding timer in order to implement some specific unnecessary functions (i.e. functions that do not need to be in an active state all the time). These timers can be distinguished as generic timers, as well as periodic timers. By periodic timer, it is meant that the corresponding timer generally has the following characteristics: 1) the starting time of the timer is periodic, that is, the timer is started periodically, for example, the timer is started every 2 s; 2) the timer is started to wake up the system and execute the corresponding function of the application program, namely, the mobile terminal is woken up from the dormant state to the working state. Such periodic timers, also commonly referred to as "heartbeat alarms", are commonly found in applications such as instant messaging tools that require a timed check of the network connection status and a timed interaction with a server.
In the prior art, the starting moments of different periodic timers are usually different, and the starting periods are also different, so that the more periodic timers are set in a system, the more frequent the system is awakened, and the power consumption of the system is improved.
Disclosure of Invention
According to the problems in the prior art, a timer adjustment method, a timer adjustment system and a mobile terminal are provided, aiming at realizing the unified alignment adjustment of the starting time of the timers related to each application program in the system, thereby reducing the awakening times of the system and reducing the power consumption of the system.
The technical scheme specifically comprises the following steps:
a timer adjusting method is suitable for a mobile terminal; in the mobile terminal, judging whether a corresponding timer is a periodic timer which can be used for waking up a system according to timer information which needs to be set by different application programs, and forming a judgment model for confirming the types of different periodic timers through training according to a judgment result;
the timer adjustment method comprises the following steps:
step S1, the mobile terminal monitors system operation, and triggers a corresponding adjustment request when the system operation matches a predetermined adjustment triggering condition, and goes to step S2;
step S2, the mobile terminal judges all timers waiting to be started according to the adjustment request and the judgment model formed by training so as to screen all the periodic timers waiting to be started;
in step S3, the mobile terminal performs a uniform alignment adjustment on the start times of all the filtered periodic timers, and then returns to step S1.
Preferably, the timer adjustment method, wherein the timer information corresponding to each of the timers includes:
start information for indicating a start time of the timer each time; and
wake-up function information for indicating a wake-up action when the timer is started;
the step of training to form the judgment model comprises:
a1, selecting a timer which is not judged yet and needs to be set by the mobile terminal;
step a2, the mobile terminal judges whether the corresponding timer wakes up the mobile terminal when being started according to the wake-up function information of the selected timer;
if the mobile terminal is not awakened when the timer is started, judging the timer to be an aperiodic timer, and returning to the step a 1;
a3, the mobile terminal determining whether the timer is a periodically started timer according to the start information of the selected timer;
if the timer is not a periodically started timer, judging the timer to be an aperiodic timer, and returning to the step a 1;
step a4, the mobile terminal judges the timer as a periodic timer, records the timer information of the periodic timer, and then returns to the step a 1.
Preferably, the timer adjustment method includes presetting a detection time period in the mobile terminal;
in step a2, the mobile terminal determines, according to the start information, the number of starts of the corresponding timer in the detection time period, and determines, according to the number of starts, whether the corresponding timer is a periodically started timer.
Preferably, in the timer adjustment method, the timer information of the timer to be set is continuously acquired, so as to continuously update the judgment model.
Preferably, in the timer adjustment method, the step S2 specifically includes:
step S21, the mobile terminal reads the judgment model formed by training;
step S22, the mobile terminal selects a timer waiting for starting and not judged yet, and reads corresponding timer information;
step S23, the mobile terminal matches the timer information with the judgment model:
if the timer information matches the judgment model, recording the corresponding timer as the periodic timer, and then returning to the step S21;
if the timer information is not matched with the judgment model, judging that the corresponding timer is not the periodic timer, and then returning to the step S21;
in the steps S21-S23, the mobile terminal runs through all the timers waiting to be started, and finally outputs all the recorded periodic timers.
Preferably, in the timer adjustment method, the timer information corresponding to each type of the periodic timer is recorded in the judgment model;
the timer information includes:
start information for indicating a start time of each time of the periodic timer; and
wake-up function information for indicating a wake-up action when the periodic timer is started; and
application information for representing an application associated with the periodic timer;
in step S23, the mobile terminal matches the timer information of the timer waiting to be started with the timer information of each type of the periodic timer recorded in the determination model:
when the timer information of the timer that is waiting to start matches the start information of a type of the periodic timer; and/or
When the timer information of the timer waiting to be started matches the wake-up function information of one type of the periodic timer; and/or
When the timer information of the timer that is waiting to be started matches the application information of a class of the periodic timer,
and the mobile terminal judges that the corresponding timer waiting to be started is a periodic timer.
Preferably, the timer adjustment method includes presetting a start interval period;
setting a plurality of standard starting moments in a period of working time of the mobile terminal by taking the starting interval period as a cycle;
the step S3 specifically includes:
step S31, the mobile terminal obtains the timer information of the periodic timer that has not been adjusted;
step S32, the mobile terminal obtains the next starting time related to the periodic timer according to the timer information;
step S33, the mobile terminal adjusts the next starting time of the periodic timer to be equal to the standard starting time closest to the next starting time after the next starting time;
step S34, the mobile terminal determines whether there is still the periodic timer waiting to be started that has not been adjusted:
if yes, returning to the step S31;
if not, the process returns to step S1.
Preferably, in the timer adjustment method, in step S1, the mobile terminal monitors the system operation, and when the system operation matches a predetermined trigger condition for prohibiting adjustment, prohibits the unified alignment adjustment from being performed on the timer waiting to be started, and exits.
A timer adjustment system is suitable for a mobile terminal; wherein, include:
the mobile terminal comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring timer information of a timer which needs to be set by an application program in the mobile terminal;
the judging unit is connected with the acquiring unit and used for judging whether the corresponding timer is a periodic timer according to the timer information of different timers, and forming and storing a judging model comprising different types of the periodic timers through training according to a judging result;
the control unit is connected between the acquisition unit and the judgment unit;
the judging unit monitors the system operation of the mobile terminal and sends a corresponding adjustment request to the control unit when the system operation is matched with a preset adjustment triggering condition;
the control unit judges all timers waiting to be started according to the judgment model stored in the judgment unit according to the adjustment request so as to screen all the periodic timers waiting to be started;
and the control unit performs corresponding one-time unified alignment adjustment on the starting time of all the screened periodic timers according to the one-time adjustment request.
Preferably, in the timer adjustment system, the timer information corresponding to each of the timers includes:
start information for indicating a start time of the timer each time; and
wake-up function information for indicating a wake-up action when the timer is started;
the judging unit comprises:
the first analysis module is used for analyzing the timer information to obtain the starting information and the awakening function information corresponding to the timer;
the first judging module is connected with the first analyzing module and used for judging whether the corresponding timer is periodically started or not according to the starting information and outputting a corresponding first judging result;
the second judgment module is connected with the first analysis module and used for judging whether the mobile terminal is awakened or not when the corresponding timer is started according to the awakening function information and outputting a corresponding second judgment result;
a third determining module, respectively connected to the first determining module and the second determining module, configured to determine, according to the first determining result and the second determining result, that the timer is periodically started, and when the timer is started, the mobile terminal is woken up, and the corresponding timer is the periodic timer;
the judging unit judges all the timers to be set so as to form a judging model for confirming the types of the different periodic timers through training.
Preferably, in the timer adjustment system, a detection time period is preset in the first judgment module;
the first judging module is further configured to judge, according to the starting information, the number of times of starting the corresponding timer in the detection period, judge, according to the number of times of starting, whether the corresponding timer is periodically started, and then output a corresponding first judging result.
Preferably, the timer adjustment system, wherein the control unit includes:
a first obtaining module, configured to obtain the adjustment request sent by the determining unit;
the calling module is connected with the first obtaining module and used for calling the judgment model formed by training in the judgment unit according to the adjustment request;
a second obtaining module, connected to the first obtaining module, configured to obtain, according to the adjustment request, the timer information of all timers waiting to be started in the mobile terminal;
the matching module is respectively connected with the second acquisition module and the calling module and is used for matching the timer information with the judgment model and recording the timer corresponding to the matched timer information as the periodic timer;
the matching module matches and outputs the timer information of all the recorded periodic timers.
Preferably, the timer adjustment system, wherein a start interval period is preset in the control unit;
the control unit further comprises:
the setting module is used for setting a plurality of standard starting moments in the whole working period of the mobile terminal by taking the starting interval period as a cycle;
the second analysis module is connected with the matching module and used for analyzing the timer information to obtain the next starting time corresponding to all recorded periodic timers;
the adjusting module is respectively connected with the setting module and the second analyzing module and is used for adjusting the next starting time of the periodic timer to be equal to the standard starting time which is closest to the next starting time after the next starting time;
the control unit adjusts the next starting time of all the recorded periodic timers to be equal to the standard starting time which is closest to the next starting time after the next starting time in one unified alignment adjustment corresponding to one adjustment request.
Preferably, the timer adjustment system, wherein the determining unit further includes:
the monitoring module is used for monitoring the system operation of the mobile terminal and outputting a corresponding monitoring result;
the request module is connected with the monitoring module and is used for:
when the system operation is matched with the preset adjustment triggering condition, sending the adjustment request to the control unit; and
and when the system operation is matched with a preset regulation prohibition triggering condition, sending a corresponding regulation prohibition request to the control unit so as to prohibit the control unit from executing the unified alignment regulation on the timer waiting to be started.
A mobile terminal adopts the timer adjusting method.
A mobile terminal comprises the timer adjustment system.
The beneficial effects of the above technical scheme are:
1) the timer adjusting method can realize the uniform alignment adjustment of the starting time of the timer which is related to each application program and can wake up the system in the mobile terminal, reduce the times of waking up the mobile terminal and reduce the overall power consumption of the mobile terminal;
2) a timer adjustment system is provided, which can support the realization of the timer adjustment method.
Drawings
FIG. 1 is a schematic flow chart illustrating the training of a judgment model according to a preferred embodiment of the present invention;
FIG. 2 is a flowchart illustrating a timer adjustment method according to a preferred embodiment of the present invention;
FIGS. 3-4 are flow diagrams illustrating sub-steps in a timer adjustment method according to a preferred embodiment of the present invention;
FIG. 5 is a schematic diagram of a unified alignment adjustment made in accordance with a preferred embodiment of the present invention;
FIG. 6 is a schematic diagram of a timer adjustment system according to a preferred embodiment of the present invention;
fig. 7-8 are schematic diagrams illustrating different units in the timer adjustment system according to the preferred embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The invention is further described with reference to the following drawings and specific examples, which are not intended to be limiting.
In a preferred embodiment of the present invention, based on the above problems in the prior art, a timer adjustment method is provided, which is suitable for a mobile terminal.
In a preferred embodiment of the present invention, in the timer adjustment method, in the mobile terminal, whether the corresponding timer is a periodic timer is determined according to timer information that needs to be set by different applications, and a determination model for determining types of different periodic timers is formed by training according to a determination result.
Specifically, in the preferred embodiment of the present invention, the timer information is continuously determined to obtain a determination result whether the corresponding timer is a periodic timer, and the determination model is strengthened according to the determination result to finally form a determination model for confirming different periodic timers. In other words, in the preferred embodiment of the present invention, the determination model includes timer information corresponding to different types of periodic timers, such as start time information, wake-up function information, application information, and the like associated with different periodic timers.
In a preferred embodiment of the present invention, as shown in fig. 1, the process of training the judgment model specifically includes:
step a1, the mobile terminal selects a timer which is not judged yet and needs to be set;
step a2, the mobile terminal judges whether the corresponding timer is awakened when being started according to the awakening function information of the selected timer;
if the mobile terminal is not awakened when the timer is started, judging the timer to be an aperiodic timer, and returning to the step a 1;
in the preferred embodiment of the present invention, the determination is made according to the feature of whether the system can be woken up. If the timer is not active after being started, the system will not wake up after the corresponding timer is started. Such a timer would not be treated as a periodic timer. Only when the timer is started periodically and the system is woken up after the timer is started, the next judgment process is started.
Step a3, the mobile terminal judges whether the timer is a periodically started timer according to the starting information of the selected timer;
if the timer is not the timer started periodically, judging the timer to be a non-periodic timer, and returning to the step a 1;
in the preferred embodiment of the present invention, some timers are not simply defined periodically or aperiodically, i.e., the periodic decision of some timers is often ambiguous. In this case, a detection period may be set in the mobile terminal, and the number of times the corresponding timer is started may be detected in the detection period, and it may be determined whether the corresponding timer is a periodically started timer according to the number of times. Specifically, a threshold of the standard number of times may be set at the same time. And if the starting times of the corresponding timer in the preset detection time interval exceed the standard time threshold, classifying the corresponding timer into a periodic timer.
Then, in a preferred embodiment of the present invention, it is determined whether a timer is a periodic timer, where the conditions are: 1) whether the timer can wake up the system when being started; 2) whether the timer is started periodically (including explicit periodic starts, as well as relatively fuzzy periodic starts).
In step a4, the mobile terminal determines the timer as a periodic timer, records timer information of the periodic timer, and then returns to step a 1.
In the preferred embodiment of the present invention, all the final output judgment results are read according to the above steps a1-a4 to train and form the corresponding judgment model.
In a preferred embodiment of the present invention, when a new timer to be set for the application program appears, the new timer is first put into the judgment model for judgment and self-learning, so as to update the judgment model.
In a preferred embodiment of the present invention, the determination model records timer information corresponding to each timer determined as a periodic timer.
Specifically, in the preferred embodiment of the present invention, the timer information includes:
start information indicating a start time of the timer at each time; and
wake-up function information for indicating a wake-up action when the timer is started;
the start information indicates a start cycle of the timer by actually recording the start time of the timer each time.
In a preferred embodiment of the present invention, the timer information further includes:
application information for representing an application associated with the periodic timer.
In a preferred embodiment of the present invention, the above-mentioned determination model also records the application information associated with the periodic timer.
Therefore, in a preferred embodiment of the present invention, as shown in fig. 2, the steps of the timer adjustment method specifically include:
step S1, the mobile terminal monitors the system operation, and triggers the corresponding adjustment request when the system operation matches the preset adjustment triggering condition, and goes to step S2;
in a preferred embodiment of the present invention, the system operation may be some operations performed on the mobile terminal, such as a screen-off operation (e.g., a screen-locking operation) performed by the system, a charging operation performed by the system, a screen-on operation (e.g., an unlocking operation) performed by the system, and the like, which can switch its basic functions.
In a preferred embodiment of the present invention, the adjustment request is a request for making a uniform alignment adjustment for a timer waiting to be started in the mobile terminal, and the request is generally available when the system is in a sleep state and can be disabled when the system is in an awake state.
In other words, in a preferred embodiment of the present invention, the adjustment triggering condition may be a condition for triggering alignment adjustment, specifically, the preset adjustment triggering condition may be a system operation that causes the system to be in a sleep state, for example, if the mobile terminal monitors that the current system operation is a "screen-off" operation, it may be determined that the current system operation matches the adjustment triggering condition. Further, in a preferred embodiment of the present invention, the mobile terminal monitors that the current system operation is a "screen off" operation, and the current system is in a non-charging state, which indicates that the system is currently in a dormant state, and the monitored "screen off" operation may match a preset adjustment triggering condition and trigger a corresponding adjustment request.
In a preferred embodiment of the present invention, the judgment model is not limited to be formed by pre-training. After the step S1 is started, the mobile terminal may continue to train and update the judgment model according to a new timer that needs to be set by the monitored application program. In other words, in a preferred embodiment of the present invention, the determining module is updated in real time by real-time learning.
Therefore, in a preferred embodiment of the present invention, the mobile terminal may monitor an update status of the determination model, and may start a corresponding adjustment triggering condition after the determination model is updated, so as to trigger the adjustment request. Further, in this embodiment, when the mobile terminal monitors that the determination model is updated, and the mobile terminal is in the "off-screen" state and in the non-charging state at this time, the corresponding adjustment triggering condition is triggered to trigger the corresponding adjustment request.
Accordingly, in a preferred embodiment of the present invention, in the step S1, the mobile terminal may further monitor the system operation, and trigger a corresponding adjustment prohibition request when the system operation matches the corresponding adjustment prohibition trigger condition, so as to prohibit the unified alignment adjustment from being performed on the timer waiting to be started, and exit the whole process.
Specifically, in a preferred embodiment of the present invention, the mobile terminal may monitor the system operation, and when it is monitored that the system performs the "bright screen" operation, determine that the system is currently in the awake state, and match the corresponding adjustment triggering condition to trigger the adjustment prohibition request.
In another preferred embodiment of the present invention, the mobile terminal monitors that the system is currently switched from the non-charging mode to the charging mode, and then the mobile terminal may also match the corresponding adjustment prohibition trigger condition, so as to trigger the corresponding adjustment prohibition request, so as to prohibit the timer waiting to be started from performing the unified alignment adjustment, and exit the whole process.
Step S2, the mobile terminal judges all timers waiting to be started according to the adjustment request and a judgment model formed by training so as to screen all periodic timers waiting to be started;
in a preferred embodiment of the present invention, as shown in fig. 3, the step S2 specifically includes:
step S21, the mobile terminal reads the judgment model formed by training;
in a preferred embodiment of the present invention, the judgment model formed by training refers to a judgment model that has been formed when the mobile terminal triggers the adjustment request.
Step S22, the mobile terminal selects a timer waiting for starting and not judged yet, and reads corresponding timer information;
step S23, the mobile terminal matches the timer information with the determination model:
if the timer information matches the judgment model, recording the corresponding timer as a periodic timer, and then returning to the step S21;
if the timer information is not matched with the judgment model, judging that the corresponding timer is not a periodic timer, and then returning to the step S21;
in steps S21-S23, the mobile terminal runs through all timers waiting to be started, and finally outputs all recorded periodic timers.
Specifically, in the above step, the mobile terminal first reads the judgment model, and matches the timer information with the judgment model according to the timer information of the selected timer waiting to be started. The method specifically comprises the following steps: and analyzing the timer information of the selected timer to obtain corresponding starting information, awakening function information and application program information. In a preferred embodiment of the present invention, the mobile terminal respectively performs traversal comparison on the start information and the wake-up function information associated with the selected timer and the corresponding start information and wake-up function information in the determination model. If the start information and the wake-up function information associated with the selected timer both match the corresponding information in the determination model, it means that the timer is periodically started and the system can be woken up after being started, so that the timer is determined to be a periodic timer.
In another preferred embodiment of the present invention, in the above step, the mobile terminal analyzes the timing information and directly compares the application information therein with the related information in the judgment model. And as long as the application program information is matched, directly judging the corresponding timer as the periodic timer.
In the preferred embodiment of the present invention, the above-mentioned matches are all fuzzy matches, as long as they are approximate.
In step S3, the mobile terminal performs a uniform alignment adjustment on the start times of all the filtered periodic timers, and then returns to step S1.
In a preferred embodiment of the present invention, as shown in fig. 4, the step S3 specifically includes:
step S31, the mobile terminal obtains the timer information of a periodic timer which is not adjusted;
step S32, the mobile terminal obtains the next starting time related to the periodic timer according to the timer information;
in a preferred embodiment of the present invention, the next starting time refers to the time when the periodic timer is about to start, that is, the starting time associated with the periodic timer closest to the current time.
In the preferred embodiment of the present invention, the mobile terminal parses the periodic timer information and obtains the corresponding start information. Since the start information records the time information of each start of the corresponding periodic timer or the start cycle information of the corresponding periodic timer, the information related to the next start time of the periodic timer can be acquired from the information.
Step S33, the mobile terminal adjusts the next starting time of the periodic timer to be equal to the standard starting time which is closest to the next starting time after the next starting time;
in a preferred embodiment of the present invention, a start interval period is preset in the mobile terminal, and a plurality of standard start times are set in a working period of the mobile terminal with the start interval period as a cycle. For example, within one hour, a standard starting time is set every 7 minutes, i.e., the starting interval period is 7 minutes. In a preferred embodiment of the present invention, the setting is actually to set a standard start time every 7 minutes on the sleep time line of the mobile terminal.
In a preferred embodiment of the present invention, after the next starting time of the periodic timer is obtained, the next starting time is compared with the standard starting time, and the next starting time is adjusted to be equal to the standard starting time closest to the next starting time after the next starting time.
For example, as shown in fig. 5, a standard start time is set every 7 minutes with 10:00 as a start point. Adjusting the next starting time of the periodic timer with the next starting time of 10:00:01 to 10: 07; adjusting the next starting time of a periodic timer with the next starting time of 10:03 to 10: 07; for a periodic timer with the next starting time of 10:10, adjusting the next starting time to 10: 14; for a periodic timer with a next start time of 10:57, its next start time is adjusted to 11:00 (beyond one hour of operation, the start time is recalculated).
In step S34, the mobile terminal determines whether there is still a not-adjusted periodic timer waiting to be started:
if yes, return to step S31;
if not, the process returns to step S1.
In the preferred embodiment of the present invention, after the mobile terminal performs an alignment adjustment on all the periodic timers waiting to be started, the mobile terminal returns to step S1, i.e., continues to wait for a new adjustment request to trigger a new alignment adjustment operation.
In summary, in the technical solution of the present invention, it is continuously determined whether the timer is a periodic timer according to the timing information of the timer, and the determination result is recorded to train and form a corresponding determination model. And finally, carrying out unified alignment adjustment on the next starting time of the periodic timers waiting to be started by adopting a backward alignment mode so as to finish the whole adjustment process.
In a preferred embodiment of the present invention, based on the timer adjustment method described above, a timer adjustment system is provided, which is also applicable to a mobile terminal.
In a preferred embodiment of the present invention, as shown in fig. 6, the timer adjustment system specifically includes:
the mobile terminal comprises an acquisition unit 1, a processing unit and a control unit, wherein the acquisition unit is used for acquiring timer information of a timer which needs to be set by an application program in the mobile terminal;
the judging unit 2 is connected with the acquiring unit 1 and is used for judging whether the corresponding timer is a periodic timer according to the timer information of different timers, and forming and storing a judging model comprising different types of the periodic timers through training according to a judging result;
a control unit 3 connected between the acquisition unit 1 and the judgment unit 2;
the judging unit 2 monitors the system operation of the mobile terminal and sends a corresponding adjustment request to the control unit 3 when the system operation matches a preset adjustment triggering condition;
the control unit 3 judges all the timers waiting to be started according to the judgment model stored in the judgment unit 2 according to the adjustment request so as to obtain all the periodic timers waiting to be started by screening;
and the control unit 3 performs corresponding one-time unified alignment adjustment on the starting moments of all the screened periodic timers according to one-time adjustment request.
Specifically, in a preferred embodiment of the present invention, as shown in fig. 7, the determining unit 2 specifically includes:
the first analysis module 21 is configured to analyze the timer information to obtain start information and wake-up function information of a corresponding timer;
the first determining module 22 is connected to the first parsing module 21, and configured to determine whether the corresponding timer is periodically started according to the starting information, and output a corresponding first determining result. In a preferred embodiment of the present invention, the first determining module 22 is preset with a detection time period, and the first determining module 22 is further configured to determine the starting times of the corresponding timer in the detection time period according to the starting information, determine whether the corresponding timer is periodically started according to the starting times, and then output a corresponding first determination result. In other words, in the preferred embodiment of the present invention, the first determining module 22 can determine and output the corresponding first determining result by adopting two different manners. The two methods can be used alternatively or in combination.
The second judging module 23 is connected to the first analyzing module 21, and is configured to judge whether the mobile terminal is awakened when the corresponding timer is started according to the awakening function information, and output a corresponding second judging result;
a third determining module 24, respectively connected to the first determining module 22 and the second determining module 23, for periodically starting the timer according to the first determining result and the second determining result, and determining that the corresponding timer is a periodic timer when the timer is started and the mobile terminal is awakened;
in a preferred embodiment of the present invention, the above-mentioned determining unit 2 determines all timers that need to be set, so as to form a determining model for determining the types of different periodic timers through training. Specifically, in a preferred embodiment of the present invention, the above-mentioned determination model may record timer information determined as a periodic timer, such as start information, wake-up function information, application information and the like associated with the periodic timer.
Further, in a preferred embodiment of the present invention, as shown in fig. 7, the determining unit 2 further includes:
the monitoring module 25 is used for monitoring the operation of the mobile terminal system and outputting a corresponding monitoring result;
a request module 26, connected to the monitoring module 25, for:
when the system operation matches a preset adjustment trigger condition, sending an adjustment request to the control unit; and
and when the system operation is matched with a preset adjustment inhibition triggering condition, sending a corresponding adjustment inhibition request to the control unit so as to inhibit the control unit from executing unified alignment adjustment on the timer waiting to be started.
In a preferred embodiment of the present invention, the preset adjustment triggering condition and the preset adjustment prohibiting triggering condition are already described in detail above, and are not repeated herein.
In a preferred embodiment of the present invention, as shown in fig. 8, the control unit 3 specifically includes:
a first obtaining module 31, configured to obtain an adjustment request sent by the determining unit;
the calling module 32 is connected to the first obtaining module 31, and is configured to call a judgment model formed by training in the judgment unit 2 according to the adjustment request;
the second obtaining module 33 is connected to the first obtaining module 31, and is configured to obtain, according to the adjustment request, timer information of all timers waiting to be started in the mobile terminal;
the matching module 34 is respectively connected to the second obtaining module 33 and the invoking module 32, and is configured to match the timer information with the determination model, and record a timer corresponding to the matched timer information as a periodic timer;
then in a preferred embodiment of the present invention, matching module 34 eventually matches and outputs the timer information for all the recorded periodic timers.
Further, in a preferred embodiment of the present invention, as shown in fig. 8, the control unit 3 further includes:
a setting module 35, configured to set multiple standard starting times in the overall working time period of the mobile terminal by taking the starting interval time period as a cycle;
the second analyzing module 36 is connected to the matching module 34, and is configured to analyze the timer information to obtain a next starting time corresponding to all recorded periodic timers;
the adjusting module 37 is respectively connected to the setting module 35 and the second analyzing module 36, and is configured to adjust a next starting time of the periodic timer to be equal to a standard starting time closest to the next starting time after the next starting time;
in the preferred embodiment of the present invention, the control unit 3 adjusts the next starting time of all the recorded periodic timers to be equal to the standard starting time closest to the next starting time after the next starting time in one unified alignment adjustment corresponding to one adjustment request.
In a preferred embodiment of the present invention, there is also provided a mobile terminal, wherein the timer adjustment method described above is adopted.
In a preferred embodiment of the present invention, there is also provided a mobile terminal, which includes the timer adjustment system described above.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.

Claims (14)

1. A timer adjusting method is suitable for a mobile terminal; the method is characterized in that in the mobile terminal, whether a corresponding timer is a periodic timer which can be used for waking up a system is judged according to timer information which needs to be set by different application programs, and a judgment model for confirming the types of the different periodic timers is formed through training according to a judgment result;
the timer adjustment method comprises the following steps:
step S1, the mobile terminal monitors system operation, and triggers a corresponding adjustment request when the system operation matches a predetermined adjustment triggering condition, and goes to step S2;
step S2, the mobile terminal judges all timers waiting to be started according to the adjustment request and the judgment model formed by training so as to screen all the periodic timers waiting to be started;
step S3, the mobile terminal performs one-time unified alignment adjustment on the starting time of all the screened periodic timers, and then returns to the step S1;
the timer information corresponding to each of the timers includes:
start information for indicating a start time of the timer each time; and
wake-up function information for indicating a wake-up action when the timer is started;
the step of training to form the judgment model comprises:
a1, selecting a timer which is not judged yet and needs to be set by the mobile terminal;
step a2, the mobile terminal judges whether the corresponding timer wakes up the mobile terminal when being started according to the wake-up function information of the selected timer;
if the mobile terminal is not awakened when the timer is started, judging the timer to be an aperiodic timer, and returning to the step a 1;
a3, the mobile terminal determining whether the timer is a periodically started timer according to the start information of the selected timer;
if the timer is not a periodically started timer, judging the timer to be an aperiodic timer, and returning to the step a 1;
a step a4, the mobile terminal judging the timer as a periodic timer, recording the timer information of the periodic timer, and then returning to the step a 1;
presetting a detection time interval in the mobile terminal;
in step a2, the mobile terminal determines, according to the start information, the number of starts of the corresponding timer in the detection time period, and determines, according to the number of starts, whether the corresponding timer is a periodically started timer.
2. The timer adjustment method according to claim 1, wherein the timer information of the timer to be set is continuously obtained to continuously update the judgment model.
3. The method for adjusting a timer according to claim 1, wherein the step S2 specifically includes:
step S21, the mobile terminal reads the judgment model formed by training;
step S22, the mobile terminal selects a timer waiting for starting and not judged yet, and reads corresponding timer information;
step S23, the mobile terminal matches the timer information with the judgment model:
if the timer information matches the judgment model, recording the corresponding timer as the periodic timer, and then returning to the step S21;
if the timer information is not matched with the judgment model, judging that the corresponding timer is not the periodic timer, and then returning to the step S21;
in the steps S21-S23, the mobile terminal runs through all the timers waiting to be started, and finally outputs all the recorded periodic timers.
4. The timer adjustment method according to claim 3, wherein the timer information corresponding to each type of the periodic timer is recorded in the judgment model;
the timer information includes:
start information for indicating a start time of each time of the periodic timer; and
wake-up function information for indicating a wake-up action when the periodic timer is started; and
application information for representing an application associated with the periodic timer;
in step S23, the mobile terminal matches the timer information of the timer waiting to be started with the timer information of each type of the periodic timer recorded in the determination model:
when the timer information of the timer that is waiting to start matches the start information of a type of the periodic timer; and/or
When the timer information of the timer waiting to be started matches the wake-up function information of one type of the periodic timer; and/or
When the timer information of the timer that is waiting to be started matches the application information of a class of the periodic timer,
and the mobile terminal judges that the corresponding timer waiting to be started is a periodic timer.
5. The timer adjustment method of claim 1, wherein a start interval period is preset;
setting a plurality of standard starting moments in a period of working time of the mobile terminal by taking the starting interval period as a cycle;
the step S3 specifically includes:
step S31, the mobile terminal obtains the timer information of the periodic timer that has not been adjusted;
step S32, the mobile terminal obtains the next starting time related to the periodic timer according to the timer information;
step S33, the mobile terminal adjusts the next starting time of the periodic timer to be equal to the standard starting time closest to the next starting time after the next starting time;
step S34, the mobile terminal determines whether there is still the periodic timer waiting to be started that has not been adjusted:
if yes, returning to the step S31;
if not, the process returns to step S1.
6. The timer adjustment method according to claim 1, wherein in the step S1, the mobile terminal monitors the system operation, and when the system operation matches a predetermined adjustment prohibition trigger condition, prohibits the unified alignment adjustment from being performed on the timer waiting to be started, and exits.
7. A timer adjustment system is suitable for a mobile terminal; the timer adjustment method according to any one of claims 1 to 6 is applied, and comprises the following steps:
the mobile terminal comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring timer information of a timer which needs to be set by an application program in the mobile terminal;
the judging unit is connected with the acquiring unit and used for judging whether the corresponding timer is a periodic timer according to the timer information of different timers, and forming and storing a judging model comprising different types of the periodic timers through training according to a judging result;
the control unit is connected between the acquisition unit and the judgment unit;
the judging unit monitors the system operation of the mobile terminal and sends a corresponding adjustment request to the control unit when the system operation is matched with a preset adjustment triggering condition;
the control unit judges all timers waiting to be started according to the judgment model stored in the judgment unit according to the adjustment request so as to screen all the periodic timers waiting to be started;
and the control unit performs corresponding one-time unified alignment adjustment on the starting time of all the screened periodic timers according to the one-time adjustment request.
8. The timer adjustment system of claim 7, wherein the timer information for each of the timers comprises:
start information for indicating a start time of the timer each time; and
wake-up function information for indicating a wake-up action when the timer is started;
the judging unit comprises:
the first analysis module is used for analyzing the timer information to obtain the starting information and the awakening function information corresponding to the timer;
the first judging module is connected with the first analyzing module and used for judging whether the corresponding timer is periodically started or not according to the starting information and outputting a corresponding first judging result;
the second judgment module is connected with the first analysis module and used for judging whether the mobile terminal is awakened or not when the corresponding timer is started according to the awakening function information and outputting a corresponding second judgment result;
a third determining module, respectively connected to the first determining module and the second determining module, configured to determine, according to the first determining result and the second determining result, that the timer is periodically started, and when the timer is started, the mobile terminal is woken up, and the corresponding timer is the periodic timer;
the judging unit judges all the timers to be set so as to form a judging model for confirming the types of the different periodic timers through training.
9. The timer adjustment system of claim 8, wherein a detection period is preset in the first determining module;
the first judging module is further configured to judge, according to the starting information, the number of times of starting the corresponding timer in the detection period, judge, according to the number of times of starting, whether the corresponding timer is periodically started, and then output a corresponding first judging result.
10. The timer adjustment system of claim 7, wherein the control unit comprises:
a first obtaining module, configured to obtain the adjustment request sent by the determining unit;
the calling module is connected with the first obtaining module and used for calling the judgment model formed by training in the judgment unit according to the adjustment request;
a second obtaining module, connected to the first obtaining module, configured to obtain, according to the adjustment request, the timer information of all timers waiting to be started in the mobile terminal;
the matching module is respectively connected with the second acquisition module and the calling module and is used for matching the timer information with the judgment model and recording the timer corresponding to the matched timer information as the periodic timer;
the matching module matches and outputs the timer information of all the recorded periodic timers.
11. The timer adjustment system of claim 10, wherein a start interval period is preset in the control unit;
the control unit further comprises:
the setting module is used for setting a plurality of standard starting moments in the whole working period of the mobile terminal by taking the starting interval period as a cycle;
the second analysis module is connected with the matching module and used for analyzing the timer information to obtain the next starting time corresponding to all recorded periodic timers;
the adjusting module is respectively connected with the setting module and the second analyzing module and is used for adjusting the next starting time of the periodic timer to be equal to the standard starting time which is closest to the next starting time after the next starting time;
the control unit adjusts the next starting time of all the recorded periodic timers to be equal to the standard starting time which is closest to the next starting time after the next starting time in one unified alignment adjustment corresponding to one adjustment request.
12. The timer adjustment system of claim 7, wherein the determining unit further comprises:
the monitoring module is used for monitoring the system operation of the mobile terminal and outputting a corresponding monitoring result;
the request module is connected with the monitoring module and is used for:
when the system operation is matched with the preset adjustment triggering condition, sending the adjustment request to the control unit; and
and when the system operation is matched with a preset regulation prohibition triggering condition, sending a corresponding regulation prohibition request to the control unit so as to prohibit the control unit from executing the unified alignment regulation on the timer waiting to be started.
13. A mobile terminal, characterized in that the timer adjustment method according to any of claims 1-6 is employed.
14. A mobile terminal, characterized in that it comprises a timer adjustment system according to any one of claims 7-12.
CN201510378123.3A 2015-06-30 2015-06-30 Timer adjusting method and system and mobile terminal Active CN106325985B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510378123.3A CN106325985B (en) 2015-06-30 2015-06-30 Timer adjusting method and system and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510378123.3A CN106325985B (en) 2015-06-30 2015-06-30 Timer adjusting method and system and mobile terminal

Publications (2)

Publication Number Publication Date
CN106325985A CN106325985A (en) 2017-01-11
CN106325985B true CN106325985B (en) 2020-02-21

Family

ID=57727564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510378123.3A Active CN106325985B (en) 2015-06-30 2015-06-30 Timer adjusting method and system and mobile terminal

Country Status (1)

Country Link
CN (1) CN106325985B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108809537B (en) * 2017-05-04 2019-11-05 维沃移动通信有限公司 A kind of timer configuration method, user terminal, network side equipment and system
CN107908271A (en) * 2017-10-19 2018-04-13 上海闻泰信息技术有限公司 Prophylactic applications influence the method, apparatus and intelligent terminal of intelligent terminal power consumption
CN111240750B (en) * 2018-11-29 2023-05-05 阿里巴巴集团控股有限公司 Awakening method and device for target application program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0324632A (en) * 1989-06-21 1991-02-01 Matsushita Electric Ind Co Ltd Coordination operation method for operating system
CN102117114A (en) * 2009-12-30 2011-07-06 重庆重邮信科通信技术有限公司 Electricity-saving method for embedded equipment
CN103472904A (en) * 2013-08-30 2013-12-25 广东欧珀移动通信有限公司 Method and device for intelligently adjusting multiple timers
CN103533184A (en) * 2013-10-30 2014-01-22 郭佳磊 Method for reducing standby power consumption of mobile phone
CN104317611A (en) * 2014-10-11 2015-01-28 厦门美图移动科技有限公司 Application rousing setting device and method and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8260602B1 (en) * 2006-11-02 2012-09-04 The Math Works, Inc. Timer analysis and identification
CN102270156A (en) * 2011-05-30 2011-12-07 北京华源格林科技有限公司 Method for managing real-time embedded system timers
US9652362B2 (en) * 2013-12-06 2017-05-16 Qualcomm Incorporated Methods and systems of using application-specific and application-type-specific models for the efficient classification of mobile device behaviors

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0324632A (en) * 1989-06-21 1991-02-01 Matsushita Electric Ind Co Ltd Coordination operation method for operating system
CN102117114A (en) * 2009-12-30 2011-07-06 重庆重邮信科通信技术有限公司 Electricity-saving method for embedded equipment
CN103472904A (en) * 2013-08-30 2013-12-25 广东欧珀移动通信有限公司 Method and device for intelligently adjusting multiple timers
CN103533184A (en) * 2013-10-30 2014-01-22 郭佳磊 Method for reducing standby power consumption of mobile phone
CN104317611A (en) * 2014-10-11 2015-01-28 厦门美图移动科技有限公司 Application rousing setting device and method and mobile terminal

Also Published As

Publication number Publication date
CN106325985A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
CN106332159B (en) WIFI abnormity automatic reconnection device, system and method
US9970966B2 (en) Method, device and computer storage medium for detecting power consumption of an application
KR101799418B1 (en) Application heartbeat period adjusting method and apparatus, and terminal
CN107878366B (en) Method and device for controlling working state of new energy automobile controller
CN106325985B (en) Timer adjusting method and system and mobile terminal
TWI643041B (en) Smart system and method for controlling alarm
CN107484068B (en) A kind of domestic intelligent speaker and its control method
CN108241957B (en) Intelligent reminding method, first wearable device and intelligent reminding system
CN110574355B (en) Alarm clock reminding method and device, storage medium and electronic equipment
CN111357267B (en) Alarm clock ringing time setting method and device and electronic equipment
CN108509225B (en) Information processing method and electronic equipment
CN105897520A (en) Intelligent household control method, intelligent household device and wearable device
CN103294512B (en) A kind of timer-delay starts method and system
WO2018072411A1 (en) Screen control method, device and terminal
CN104052861B (en) A kind of terminal and its awakening method
CN105867577A (en) Terminal awakening method and terminal
CN112932225A (en) Intelligent awakening pillow and awakening method based on intelligent awakening pillow
WO2016045525A1 (en) Method and apparatus for processing state of terminal
CN110740550B (en) Control method and device for story accompanying lamp, story accompanying lamp and storage medium
CN114909059A (en) Vehicle window control method and device, vehicle body controller, vehicle and medium
CN110224848B (en) Alarm broadcasting method and device
CN106912091B (en) Control method and device and electronic equipment
CN106023490A (en) Doorbell control method, device and system and doorbell
CN116132740A (en) Energy saving method and device for video watching equipment, video watching equipment and readable storage medium
CN115076988A (en) Monitoring method, device and equipment of intelligent air conditioner and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant