WO2014114194A1 - 应用心跳周期调整方法及装置、终端 - Google Patents
应用心跳周期调整方法及装置、终端 Download PDFInfo
- Publication number
- WO2014114194A1 WO2014114194A1 PCT/CN2014/070396 CN2014070396W WO2014114194A1 WO 2014114194 A1 WO2014114194 A1 WO 2014114194A1 CN 2014070396 W CN2014070396 W CN 2014070396W WO 2014114194 A1 WO2014114194 A1 WO 2014114194A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- application
- heartbeat
- heartbeat cycle
- cycle
- adjustment
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 230000001960 triggered effect Effects 0.000 claims description 12
- 238000010586 diagram Methods 0.000 description 10
- 238000004891 communication Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000007958 sleep Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
- G06F9/4893—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues taking into account power or heat criteria
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/329—Power saving characterised by the action undertaken by task scheduling
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Definitions
- the present invention relates to the field of computers, and in particular, to a method, device, and terminal for applying a heartbeat period adjustment.
- a method, device, and terminal for applying a heartbeat period adjustment.
- There are more and more applications installed on a terminal and Huawei, cloud, and WeChat are used as examples. Since each application has different heartbeat periods, each application periodically wakes up the terminal according to its own heartbeat period.
- the application power is about 50mAh per hour.
- the present invention provides a method and apparatus for adjusting a heartbeat period to solve the problem of a large standby power consumption of a terminal.
- the present invention provides a method for adjusting a heartbeat period, including:
- the heartbeat adjustment blacklist includes an identifier of an application that needs to perform a heartbeat period adjustment, where a first heartbeat period of the application is an original heartbeat period of the application, and the second heartbeat period is according to the preset And triggering a heartbeat period of the application after the heartbeat period is adjusted, where the preset trigger heartbeat period is an adjustment period for adjusting the first heartbeat period.
- the method before determining, according to the identifier of the application, that the application is in a heartbeat adjustment blacklist, the method includes: If it is determined that the application is not in the application whitelist, obtaining a heartbeat type and a first heartbeat period of the application;
- the heartbeat type of the application belongs to a heartbeat type that needs to be adjusted, and determining that the number of times the application wakes up the system within a preset time is greater than a preset number of thresholds according to the first heartbeat period of the application, determining that the Adjusting the first heartbeat period of the application;
- the acquiring the heartbeat type and the first heartbeat period of the application includes:
- the heartbeat type and the first heartbeat period of the application are obtained according to a timer profile of the application.
- the first heartbeat period of the application is adjusted according to a preset triggering heartbeat period
- the second heartbeat cycle includes:
- the timer adjustment algorithm is:
- the second heartbeat period of the application ((the first heartbeat period of the application + the preset trigger heartbeat period -1) / the preset trigger heartbeat period) * the preset trigger heartbeat period .
- the method includes:
- the application whitelist is preset, and the application whitelist includes an identifier of an application that determines that the heartbeat period adjustment is not required according to the application attribute.
- the present invention provides an apparatus for applying a heartbeat period adjustment apparatus, including:
- a first determining module configured to determine, according to an identifier of the application, that the application is in a heartbeat adjustment blacklist
- an adjustment module configured to: after the determining module determines that the application is in a heartbeat adjustment blacklist, according to the preset Triggering a heartbeat period, adjusting a first heartbeat period of the application to a second heartbeat period;
- the heartbeat adjustment blacklist includes an identifier of an application that needs to perform a heartbeat period adjustment, where a first heartbeat period of the application is an original heartbeat period of the application, and the second heartbeat period is a trigger heartbeat according to the preset
- the periodically adjusted heartbeat period of the application, the preset triggering heartbeat period is an adjustment period for adjusting the first heartbeat period.
- the device further includes: an acquiring module, configured to acquire the application, where the first determining module determines that the application is not in an application whitelist Heartbeat type and first heartbeat cycle;
- a second determining module configured to: if the heartbeat type of the application belongs to a heartbeat type that needs to be adjusted, and determine, according to the first heartbeat period of the application, that the application wakes up the system for a preset time is greater than a preset number of times Limiting, determining that the first heartbeat period of the application needs to be adjusted;
- a setting module configured to add an identifier of the application to the heartbeat adjustment blacklist.
- the acquiring module is configured to acquire, according to a timer configuration file of the application, a heartbeat type and a first Heartbeat cycle.
- the adjusting module is specifically configured to use timing according to the preset triggering heartbeat period. Adjusting an algorithm, adjusting a first heartbeat period of the application to a second heartbeat period;
- the timer adjustment algorithm is:
- the second heartbeat period of the application ((the first heartbeat period of the application + the preset trigger heartbeat period -1) / the preset trigger heartbeat period) * the preset trigger heartbeat period .
- the setting module is further configured to preset the application whitelist, where the application whitelist includes determining according to an application attribute. The identity of the application that does not require a heartbeat cycle adjustment.
- the present invention provides a terminal, including: the foregoing application heartbeat cycle adjusting device.
- the embodiment of the present invention determines whether the application is in the heartbeat adjustment blacklist, and if so, adjusts the first heartbeat period of the application to the second heartbeat period according to the preset triggering heartbeat period, so that the second heartbeat of the application The period coincides with the triggering heartbeat period, so that the originally disordered heartbeat cycle timing caused by the different first heartbeat periods of the multiple applications in the terminal is adjusted to a regular triggering heartbeat cycle timing, and the number of times the terminal is woken up can be reduced. Reduce the standby power consumption of the terminal.
- FIG. 1 is a schematic flowchart of a method for adjusting a heartbeat period according to an embodiment of the present invention
- FIG. 2 is a timing diagram of a first heartbeat period of a plurality of applications in a terminal on a timer time axis; The timing diagram of the triggering heartbeat period set on the timer time axis
- FIG. 4 is a timing diagram of the second heartbeat period of the plurality of applications in the terminal on the timer time axis
- FIG. 5 is a schematic diagram of another embodiment of the present invention.
- FIG. 6 is a schematic structural diagram of a terminal according to another embodiment of the present invention.
- FIG. 1 is a schematic flowchart of a method for adjusting a heartbeat period according to an embodiment of the present invention. As shown in FIG. 1, the method for adjusting a heartbeat period of the embodiment may include:
- the 101 Determine, according to the identifier of the application, that the application is in a heartbeat adjustment blacklist, where the heartbeat adjustment blacklist includes an identifier of an application that needs to perform a heartbeat period adjustment.
- the method before step 101, the method includes:
- the application is determined not to be in the application whitelist, obtain the heartbeat type and the first heartbeat period of the application; if the heartbeat type of the application belongs to the heartbeat type that needs to be adjusted, and determine according to the first heartbeat period of the application If the number of times the application wakes up the system in the preset time is greater than the preset threshold, the first heartbeat period of the application needs to be adjusted; and the identifier of the application is added to the blacklist of the heartbeat adjustment. in.
- an application whitelist may be set, where the application whitelist includes an identifier of an application that is determined according to an application attribute and does not need to perform a heartbeat period adjustment.
- the heartbeat type and the first heartbeat period are generally obtained, and the heartbeat type and the first heartbeat period of the application are generally obtained according to the timer configuration file of the application.
- each application can set a heartbeat type and a heartbeat period of the application through an alarm, thereby implementing each application according to its own heartbeat period.
- the system wakes up periodically to ensure that the application is connected to the server or some state is refreshed in the application.
- the heartbeat period is the preset timeout period of the timer. After the elapsed time reaches the preset timeout period of the timer, the system can be woken up to trigger the application service.
- the original heartbeat period set by the application through the timer is referred to as a first heartbeat period.
- the heartbeat types of this embodiment include: RTC-WAKEUP, RTC, ELAPSE-WAKEUP, and ELAPSE; wherein, RTC-WAKEUP means that the terminal is awakened to trigger the application service at a specified time; RTC means that the application service is triggered at an explicit time, but ELAPSE—WAKEUP means that after the terminal is started, if the elapsed time reaches the timeout period, the application service is triggered, but the terminal is not woken up.
- the elapsed time includes any time when the terminal sleeps. It should be noted that the time lapses.
- the calculation point is calculated from the last start of the terminal; ELAPSE- REALTIME-WAKEUP means that after the timeout period has elapsed from the terminal, if it needs to wake up the terminal and trigger the application service.
- ELAPSE- REALTIME-WAKEUP means that after the timeout period has elapsed from the terminal, if it needs to wake up the terminal and trigger the application service.
- the heartbeat types RTC_WAKEUP and ELAPSE- The WAKEUP is set to the heartbeat type that needs to be adjusted.
- the heartbeat type of the acquired application is the above-mentioned RTC_WAKEUP or ELAPSE_WAKEUP
- the terminal In order to implement the unified management of the heartbeats of the multiple applications in the terminal, the terminal is uniformly awake in a certain period of time, so that the terminal may enter the standby state for a long time.
- This embodiment presets a heartbeat cycle and a timer adjustment algorithm.
- the triggering heartbeat period is an adjustment period for adjusting the first heartbeat period.
- multiple applications are installed in the terminal, and each application has a corresponding first heartbeat period.
- the trigger heartbeat period of this embodiment may be According to the first heartbeat period of multiple applications in the terminal, for example, there are 5 applications in the terminal, and the first heartbeat period corresponding to each application is 3 minutes (min), 4 minutes, 5 minutes, 7 minutes, and 8 minutes, respectively.
- the heartbeat of multiple applications in the terminal can be uniformly managed, and the terminal can be uniformly awake according to a certain time rule, and the trigger heartbeat period of the terminal can be set to 5 min; for example, the first application in the terminal corresponds to the first 'G
- the jump period is 6min, 7min, 8min, llmin and 12min respectively, and the trigger heartbeat period of the terminal can be set to 10min.
- the timer adjustment algorithm is:
- origwhen is the first heartbeat period of the application, and the triggered heartbeat period of the sAlignmentPerid is preset;
- the above timer adjustment algorithm can be described as:
- the second heartbeat period of the application ((the first heartbeat period of the application + the preset trigger heartbeat period - 1 ) / the preset trigger heartbeat period) * the preset trigger heartbeat period .
- the first heartbeat period of the application is less than the triggering heartbeat period, for example, the first heartbeat period is 3 seconds, and the preset trigger heartbeat period is 5 seconds, according to the above timer adjustment algorithm, (the application of the a heartbeat cycle + the preset trigger heartbeat cycle - 1) / the preset trigger heartbeat cycle is equal to 7/5, after rounding to 1, and multiplying 1 by the preset trigger heartbeat cycle
- the second heartbeat period of the application is 5 seconds.
- the first heartbeat period of the application is greater than the trigger heartbeat period, for example, the first heartbeat period is 7 seconds, and the preset trigger heartbeat period is 5 seconds, according to the above timer adjustment algorithm, (the application of the a heartbeat cycle + the preset trigger heartbeat cycle - 1) / the preset trigger heartbeat cycle is equal to 11/5, rounded to 2, multiplying 2 by the preset trigger heartbeat cycle for 5 seconds
- the second heartbeat period of the application obtained thereafter is 10 seconds.
- FIG. 2 is a timing diagram of the first heartbeat period of multiple applications in the terminal on the timer time axis, as shown in FIG. 2,
- the first heartbeat period of each application is different, and the timing on the timer time axis is disordered, so that the terminal is often woken up by the clocks of these applications during standby, and cannot enter deep sleep, thereby wasting terminal standby power. Consumption.
- the terminal In order to implement unified management of the heartbeats of multiple applications in the terminal, the terminal is uniformly awake according to a certain time rule, so that the terminal may enter the standby state for a long time.
- the trigger heartbeat period is set on the disordered timer time axis.
- FIG. 3 is a timing diagram of the trigger heartbeat period set on the terminal on the timer time axis according to the embodiment. As shown in FIG. 3, the dotted arrow represents the set trigger heartbeat period.
- FIG. 4 is the second heartbeat of multiple applications in the terminal.
- the embodiment of the present invention determines whether the application is in the heartbeat adjustment blacklist, and if so, adjusts the first heartbeat period of the application to the second heartbeat period according to the preset triggering heartbeat period, so that the second heartbeat of the application The period coincides with the triggering heartbeat period, so that the originally disordered heartbeat cycle timing caused by the different first heartbeat periods of the multiple applications in the terminal is adjusted to a regular triggering heartbeat cycle timing, and the number of times the terminal is woken up can be reduced. Reduce the standby power consumption of the terminal.
- FIG. 5 is a schematic structural diagram of an apparatus for adjusting a heartbeat period according to another embodiment of the present invention. As shown in FIG. 5, the method includes:
- the first determining module 51 is configured to determine, according to the identifier of the application, that the application is in a heartbeat adjustment blacklist;
- the adjusting module 52 is configured to adjust the first heartbeat period of the application to a second heartbeat period according to the preset triggering heartbeat period, after the determining module determines that the application is in the heartbeat adjustment blacklist;
- the heartbeat adjustment blacklist includes an identifier of an application that needs to perform a heartbeat period adjustment, where a first heartbeat period of the application is an original heartbeat period of the application, and the second heartbeat period is according to the preset And triggering a heartbeat period of the application after the heartbeat period is adjusted, where the preset trigger heartbeat period is an adjustment period for adjusting the first heartbeat period.
- the device further includes:
- the obtaining module 53 is configured to acquire the heartbeat type and the first heartbeat period of the application, on the basis that the first determining module 51 determines that the application is not in the application whitelist;
- the second determining module 54 is configured to: if the heartbeat type of the application belongs to a heartbeat type that needs to be adjusted, And determining, according to the first heartbeat period of the application, that the number of times the application wakes up the system within a preset time is greater than a preset number of times, determining that the first heartbeat period of the application needs to be adjusted;
- the setting module 55 is configured to add an identifier of the application to the heartbeat adjustment blacklist.
- the obtaining module 53 is specifically configured to acquire a heartbeat type and a first heartbeat period of the application according to the timer configuration file of the application.
- the adjusting module 52 is specifically configured to adjust a first heartbeat period of the application to a second heartbeat period by using a timer adjustment algorithm according to the preset triggering heartbeat period;
- the timer adjustment algorithm is:
- the second heartbeat period of the application ((the first heartbeat period of the application + the preset trigger heartbeat period -1) / the preset trigger heartbeat period) * the preset trigger heartbeat period .
- the setting module 55 is further configured to preset the application whitelist, and the application whitelist includes an identifier of an application that determines that the heartbeat period adjustment is not required according to the application attribute.
- the embodiment of the present invention determines whether the application is in the heartbeat adjustment blacklist, and if so, adjusts the first heartbeat period of the application to the second heartbeat period according to the preset triggering heartbeat period, so that the second heartbeat of the application The period coincides with the triggering heartbeat period, so that the originally disordered heartbeat cycle timing caused by the different first heartbeat periods of the multiple applications in the terminal is adjusted to a regular triggering heartbeat cycle timing, and the number of times the terminal is woken up can be reduced. Reduce the standby power consumption of the terminal.
- Another embodiment of the present invention further provides a terminal, including the application heartbeat period adjusting apparatus described in the embodiment shown in FIG. 5.
- a terminal including the application heartbeat period adjusting apparatus described in the embodiment shown in FIG. 5.
- the application of the heartbeat period adjusting apparatus reference may be made to the related description in the embodiment shown in FIG. , No longer.
- FIG. 6 is a schematic structural diagram of a terminal according to another embodiment of the present invention.
- the terminal includes a processor, a memory, and a communication bus, where the processor is connected to a memory through a communication bus, and the memory is saved in the memory.
- the heartbeat adjustment blacklist includes an identifier of an application that needs to perform a heartbeat period adjustment, where a first heartbeat period of the application is an original heartbeat period of the application, and the second heartbeat period is a trigger heartbeat according to the preset
- the periodically adjusted heartbeat period of the application, the preset triggering heartbeat period is an adjustment period for adjusting the first heartbeat period.
- the heartbeat type of the application belongs to a heartbeat type that needs to be adjusted, and determining that the number of times the application wakes up the system within a preset time is greater than a preset number of thresholds according to the first heartbeat period of the application, determining that the Adjusting the first heartbeat period of the application;
- the acquiring the heartbeat type and the first heartbeat period of the application includes:
- the heartbeat type and the first heartbeat period of the application are obtained according to a timer profile of the application.
- the adjusting the first heartbeat period of the application to the second heartbeat period according to the preset triggering heartbeat period includes: The preset triggering heartbeat period is adjusted by using a timer adjustment algorithm to adjust a first heartbeat period of the application to a second heartbeat period;
- the timer adjustment algorithm is:
- the second heartbeat period of the application ((the first heartbeat period of the application + the preset trigger heartbeat period -1) / the preset trigger heartbeat period) * the preset trigger heartbeat period .
- the method before the determining that the application is not in the application whitelist, the method includes:
- the application whitelist is preset, and the application whitelist includes an identifier of an application that determines that the heartbeat period adjustment is not required according to the application attribute.
- the embodiment of the present invention determines whether the application is in the heartbeat adjustment blacklist, and if so, adjusts the first heartbeat period of the application to the second heartbeat period according to the preset triggering heartbeat period, so that the second heartbeat of the application The period coincides with the triggering heartbeat period, so that the originally disordered heartbeat cycle timing caused by the different first heartbeat periods of the multiple applications in the terminal is adjusted to a regular triggering heartbeat cycle timing, and the number of times the terminal is woken up can be reduced. Reduce the standby power consumption of the terminal.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
- the components displayed for the unit may or may not be physical units, ie may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
- the above-described integrated unit implemented in the form of a software functional unit may be stored in the form of code in a computer readable storage medium.
- the above code is stored in a computer readable storage medium and includes instructions for causing a processor or hardware circuit to perform some or all of the steps of the methods described in various embodiments of the present invention.
- the foregoing storage medium includes: a universal serial bus interface, a micro high-capacity mobile storage disk without a physical drive, a mobile hard disk, and a read-only memory (English: Read-Only
- ROM Read Only Memory
- RAM Random Access Memory
- disk or optical disk disk, and other media that can store program code.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)
Abstract
一种应用心跳周期调整方法及装置、终端。方法包括:根据应用的标识,确定应用在心跳调整黑名单中;根据预设的触发心跳周期,将应用的第一心跳周期调整为第二心跳周期;其中,心跳调整黑名单中包括需要进行心跳周期调整的应用的标识,应用的第一心跳周期为应用的原始心跳周期,第二心跳周期为根据预设的触发心跳周期调整后的应用的心跳周期,预设的触发心跳周期为对第一心跳周期进行调整的调整周期;应用的第二心跳周期与触发心跳周期重合,实现了将终端中原本杂乱的心跳周期时序调整为有规律的触发心跳周期时序,从而降低终端被唤醒的次数和终端的待机功耗。
Description
应用心跳周期调整方法及装置、 终端
技术领域 本发明实施例涉及计算机领域, 尤其涉及一种应用心跳周期调整方法及装 置、 终端。 背景技术 目前, 终端上安装的应用越来越多, 以华为云、 移动 QQ、 微信三个应用 为例, 由于每个应用的心跳周期不同, 每个应用都是按照自己的心跳周期定 时唤醒终端, 以保证应用与服务器端的连接或者应用中一些状态的刷新, 通 常, 这些应用每小时功率为 50mAh左右, 对于 Honorl820mAh的电池电量, 排除打开屏幕、 接听拨打电话之外, 华为云、 移动 QQ和微信就耗费了终端 65.9%的电池电量。
上述由于终端中各应用的心跳周期不同, 终端在待机时会经常被这些应 用的时钟唤醒, 无法进入深度休眠, 从而造成终端待机功耗巨大的问题。 发明内容 本发明提供一种应用心跳周期调整方法及装置, 用以解决终端待机功耗巨 大的问题。
第一方面, 本发明提供一种应用心跳周期调整方法, 包括:
根据应用的标识, 确定所述应用在心跳调整黑名单中;
根据预设的触发心跳周期, 将所述应用的第一心跳周期调整为第二心跳周 期;
其中, 所述心跳调整黑名单中包括需要进行心跳周期调整的应用的标识, 所述应用的第一心跳周期为所述应用的原始心跳周期, 所述第二心跳周期为根 据所述预设的触发心跳周期调整后的所述应用的心跳周期, 所述预设的触发心 跳周期为对所述第一心跳周期进行调整的调整周期。
基于第一方面, 在第一种可能的实现方式中, 所述根据应用的标识, 确定 所述应用在心跳调整黑名单中之前, 包括:
若确定所述应用不在应用白名单中, 则获取所述应用的心跳类型和第一心 跳周期;
若所述应用的心跳类型属于需要调整的心跳类型, 且根据所述应用的第一 心跳周期确定所述应用在预设时间内唤醒系统的次数大于预设的次数门限值, 则确定需要对所述应用的第一心跳周期进行调整;
将所述应用的标识添加到所述心跳调整黑名单中。
基于第一方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所 述获取所述应用的心跳类型和第一心跳周期包括:
根据所述应用的定时器配置文件获取所述应用的心跳类型和第一心跳周 期。
基于第一方面以及第一方面的第一、 第二种可能的实现方式, 在第三种可 能的实现方式中, 所述根据预设的触发心跳周期, 将所述应用的第一心跳周期 调整为第二心跳周期包括:
根据所述预设的触发心跳周期, 利用定时器调整算法, 将所述应用的第一 心跳周期调整为第二心跳周期;
所述定时器调整算法为:
所述应用的第二心跳周期= ( (所述应用的第一心跳周期 +所述预设的触发心 跳周期一 1 ) /所述预设的触发心跳周期) *所述预设的触发心跳周期。
基于第一方面的第一种可能的实现方式, 在第四种可能的实现方式中, 所 述确定所述应用不在应用白名单中之前, 包括:
预设所述应用白名单, 所述应用白名单中包括根据应用属性确定不需要进 行心跳周期调整的应用的标识。
第二方面, 本发明提供一种应用心跳周期调整装置, 包括:
第一确定模块, 用于根据应用的标识, 确定所述应用在心跳调整黑名单中; 调整模块, 用于在所述确定模块确定所述应用在心跳调整黑名单中的基础 上, 根据预设的触发心跳周期, 将所述应用的第一心跳周期调整为第二心跳周 期;
所述心跳调整黑名单中包括需要进行心跳周期调整的应用的标识, 所述应 用的第一心跳周期为所述应用的原始心跳周期, 所述第二心跳周期为根据所述 预设的触发心跳周期调整后的所述应用的心跳周期, 所述预设的触发心跳周期 为对所述第一心跳周期进行调整的调整周期。
基于第二方面, 在第一种可能的实现方式中, 所述装置还包括: 获取模块, 用于在所述第一确定模块确定所述应用不在应用白名单中的基 础上, 获取所述应用的心跳类型和第一心跳周期;
第二确定模块, 用于若所述应用的心跳类型属于需要调整的心跳类型, 且 根据所述应用的第一心跳周期确定所述应用在预设时间内唤醒系统的次数大于 预设的次数门限值, 则确定需要对所述应用的第一心跳周期进行调整;
设置模块, 用于将所述应用的标识添加到所述心跳调整黑名单中。
基于第二方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所 述获取模块, 具体用于根据所述应用的定时器配置文件获取所述应用的心跳类 型和第一心跳周期。
基于第二方面以及第一方面的第一、 第二种可能的实现方式, 在第三种可 能的实现方式中, 所述调整模块, 具体用于根据所述预设的触发心跳周期, 利 用定时器调整算法, 将所述应用的第一心跳周期调整为第二心跳周期;
所述定时器调整算法为:
所述应用的第二心跳周期= ( (所述应用的第一心跳周期 +所述预设的触发心 跳周期一 1 ) /所述预设的触发心跳周期) *所述预设的触发心跳周期。
基于第二方面的第一种可能的实现方式, 在第四种可能的实现方式中, 所 述设置模块, 还用于预设所述应用白名单, 所述应用白名单中包括根据应用属 性确定不需要进行心跳周期调整的应用的标识。
第三方面, 本发明提供一种终端, 包括: 上述应用心跳周期调整装置。 本发明实施例通过确定应用是否在心跳调整黑名单中, 若是, 则根据预设 的触发心跳周期, 将所述应用的第一心跳周期调整为第二心跳周期, 使得所述 应用的第二心跳周期与所述触发心跳周期重合, 从而实现将终端中由于多个应 用不同的第一心跳周期导致的原本杂乱无章的心跳周期时序调整为有规律的触 发心跳周期时序, 能够降低终端被唤醒的次数, 降低终端的待机功耗。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施 例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下面描 述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出
创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明一实施例提供的应用心跳周期调整方法的流程示意图; 图 2为终端中多个应用的第一心跳周期在定时器时间轴上的时序图; 图 3为本实施例在终端上设置的触发心跳周期在定时器时间轴上的时序图; 图 4为终端中多个应用的第二心跳周期在定时器时间轴上的时序图; 图 5为本发明另一实施例提供的应用心跳周期调整装置的结构示意图; 图 6为本发明另一实施例提供的终端的结构示意图。 具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发明 实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中 的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其 他实施例, 都属于本发明保护的范围。
图 1为本发明一实施例提供的应用心跳周期调整方法的流程示意图, 如图 1 所示, 本实施例的应用心跳周期调整方法可以包括:
101、 根据应用的标识, 确定所述应用在心跳调整黑名单中, 所述心跳调整 黑名单中包括需要进行心跳周期调整的应用的标识。
在本发明的一个实施方式中, 步骤 101之前, 包括:
若确定所述应用不在应用白名单中, 则获取所述应用的心跳类型和第一心 跳周期; 若所述应用的心跳类型属于需要调整的心跳类型, 且根据所述应用的 第一心跳周期确定所述应用在预设时间内唤醒系统的次数大于预设的次数门限 值, 则确定需要对所述应用的第一心跳周期进行调整; 将所述应用的标识添加 到所述心跳调整黑名单中。
具体实现时, 举例来说, 终端中可能存在一些特殊应用的定时器, 例如闹 钟应用的定时器、 通用分组无线服务技术(英文: General Packet Radio Service , 简称 GPRS)的定时器和谷歌 (英文: Google)的定时器, 由于这些应用的特殊性, 为了防止触发心跳周期对一些特殊应用的应用服务产生影响, 对这些应用的定 时器设置的心跳周期不需要进行调整。 本实施例中可以设置应用白名单, 该应 用白名单中包括根据应用属性确定的不需要进行心跳周期调整的应用的标识。
进一步地举例来说, 当确定该应用不在应用白名单中之后, 需要获取该应
用的心跳类型和第一心跳周期, 通常可以根据该应用的定时器配置文件获取所 述应用的心跳类型和第一心跳周期。
需要说明的是, 在实际应用中, 终端中安装有多个应用, 每个应用都可以 通过定时器(Alarm )设置所述应用的心跳类型和心跳周期, 从而实现每个应用 按照自己的心跳周期定时唤醒系统, 以保证应用与服务器端的连接或者应用中 一些状态的刷新。 其中, 心跳周期为定时器预设的超时时间, 在流逝的时间达 到定时器预设的超时时间后, 即可唤醒系统来触发应用服务。 为了便于描述, 本实施例中, 将应用通过定时器设置的原始心跳周期称为第一心跳周期。 本实施例的心跳类型包括: RTC— WAKEUP、 RTC、 ELAPSE— WAKEUP 和 ELAPSE; 其中, RTC— WAKEUP表示在指定的时刻唤醒终端来触发应用 服务; RTC 表示在一个显式的时间触发应用服务, 但不唤醒终端; ELAPSE— WAKEUP 是指从终端启动后, 如果流逝的时间达到超时时间, 那 么触发应用服务, 但不唤醒终端, 流逝的时间包括终端睡眠的任何时间, 需 要说明的是, 时间流逝的计算点是从终端的最后一次启动算起; ELAPSE— REALTIME— WAKEUP是指从终端启动后,达到流逝的超时时间后 , 如果需要将唤醒终端并触发应用服务。 进一步地举例来说, 根据所述获取的应用的心跳类型和第一心跳周期, 确 定是否需要对所述应用的第一心跳周期进行调整; 本实施例中, 将心跳类型 RTC— WAKEUP和 ELAPSE— WAKEUP设置为需要调整的心跳类型,当所述获 取的应用的心跳类型为上述 RTC— WAKEUP或 ELAPSE— WAKEUP时, 需要 进一步根据该应用的第一心跳周期确定所述应用在预设时间内唤醒系统的次数 是否大于预设的次数门限值, 假设将每小时唤醒系统 4 次作为预设的次数门限 值, 当该应用的第一心跳周期为 6 分钟时, 当该应用在每小时之内需要唤醒系 统 10次 (大于次数门限值 4次), 则需要对该应用的第一心跳周期进行调整。 102、 根据预设的触发心跳周期, 将所述应用的第一心跳周期调整为第二心 跳周期。
为了能够实现对终端中的多个应用的心跳进行统一管理, 按一定时间规律 统一唤醒终端, 使终端可能长时间进入待机状态, 本实施例预设触发心跳周期 和定时器调整算法。
其中, 触发心跳周期为对第一心跳周期进行调整的调整周期, 在实际应用 中, 终端中安装有多个应用, 每个应用都有对应的第一心跳周期, 本实施例的 触发心跳周期可以根据终端中的多个应用的第一心跳周期进行具体设置, 例如, 终端中有 5个应用, 每个应用对应的第一心跳周期分别 3分钟(min )、 4min、 5min、 7min和 8min, 为了能够实现对终端中的多个应用的心跳进行统一管理, 按一定时间规律统一唤醒终端, 可以设置该终端的触发心跳周期为 5min; 又例 如, 该终端中的 5个应用对应的第一' G跳周期分别 6min、 7min、 8min、 llmin 和 12min, 可以设置该终端的触发心跳周期为 10min。
其中, 定时器调整算法为:
When = ((origwhen + sAlignmentPerid - 1 )/ s AlignmentPerid) * sAlignmentPerid;
其中, When 为应用的第二心跳周期, origwhen 为应用的第一心跳周期, sAlignmentPerid预设的触发心跳周期;
上述定时器调整算法可以描述为:
所述应用的第二心跳周期 = ( (所述应用的第一心跳周期 + 所述预设的触发 心跳周期 - 1 ) /所述预设的触发心跳周期) *所述预设的触发心跳周期。
举例来说, 假设应用的第一心跳周期小于触发心跳周期, 例如第一心跳周 期为 3秒钟, 预设的触发心跳周期为 5秒钟, 根据上述定时器调整算法, (所述 应用的第一心跳周期 + 所述预设的触发心跳周期 - 1 ) /所述预设的触发心跳周 期等于 7/5 , 取整后为 1 , 将 1乘以所述预设的触发心跳周期之后得到的所述应 用的第二心跳周期为 5秒钟。
举例来说, 假设应用的第一心跳周期大于触发心跳周期, 例如第一心跳周 期为 7秒钟, 预设的触发心跳周期为 5秒钟, 根据上述定时器调整算法, (所述 应用的第一心跳周期 + 所述预设的触发心跳周期 - 1 ) /所述预设的触发心跳周 期等于 11/5 , 取整后为 2, 将 2乘以所述预设的触发心跳周期 5秒钟之后得到的 所述应用的第二心跳周期为 10秒钟。
以下从定时器时间轴维度对本发明实施例进行说明:
假设终端中有多个应用, 每个应用的第一心跳周期是不同的, 图 2为终端 中多个应用的第一心跳周期在定时器时间轴上的时序图, 如图 2 所示, 由于每 个应用的第一心跳周期不同, 定时器时间轴上的时序杂乱无章, 使得终端在待 机时会经常被这些应用的时钟唤醒, 无法进入深度休眠, 从而浪费终端待机功
耗。
为了能够实现对终端中的多个应用的心跳进行统一管理, 按一定时间规律 统一唤醒终端, 使终端可能长时间进入待机状态, 本实施例, 在杂乱无章的定 时器时间轴上设置触发心跳周期, 图 3 为本实施例在终端上设置的触发心跳周 期在定时器时间轴上的时序图, 如图 3 所示, 虚线箭头代表设置的触发心跳周 期。
之后, 将落在每个触发心跳周期之间的第一心跳周期进行延迟处理, 得到 第二心跳周期, 使得第二心跳周期与触发心跳周期重合, 图 4 为终端中多个应 用的第二心跳周期在定时器时间轴上的时序图, 如图 4 所示, 终端原本会被唤 醒 14次, 利用本实施例的触发心跳周期将多个应用的第一心跳周期调整为第二 心跳周期之后, 终端被唤醒 5次, 因此, 能够降低终端的待机功耗。
本发明实施例通过确定应用是否在心跳调整黑名单中, 若是, 则根据预设 的触发心跳周期, 将所述应用的第一心跳周期调整为第二心跳周期, 使得所述 应用的第二心跳周期与所述触发心跳周期重合, 从而实现将终端中由于多个应 用不同的第一心跳周期导致的原本杂乱无章的心跳周期时序调整为有规律的触 发心跳周期时序, 能够降低终端被唤醒的次数, 降低终端的待机功耗。
图 5为本发明另一实施例提供的应用心跳周期调整装置的结构示意图; 如图 5所示, 包括:
第一确定模块 51 , 用于根据应用的标识, 确定所述应用在心跳调整黑名单 中;
调整模块 52 , 用于在所述确定模块确定所述应用在心跳调整黑名单中的基 础上, 根据预设的触发心跳周期, 将所述应用的第一心跳周期调整为第二心跳 周期;
其中, 所述心跳调整黑名单中包括需要进行心跳周期调整的应用的标识, 所述应用的第一心跳周期为所述应用的原始心跳周期, 所述第二心跳周期为根 据所述预设的触发心跳周期调整后的所述应用的心跳周期, 所述预设的触发心 跳周期为对所述第一心跳周期进行调整的调整周期。
举例来说, 所述装置还包括:
获取模块 53 ,用于在所述第一确定模块 51确定所述应用不在应用白名单中 的基础上, 获取所述应用的心跳类型和第一心跳周期;
第二确定模块 54 , 用于若所述应用的心跳类型属于需要调整的心跳类型,
且根据所述应用的第一心跳周期确定所述应用在预设时间内唤醒系统的次数大 于预设的次数门限值, 则确定需要对所述应用的第一心跳周期进行调整;
设置模块 55 , 用于将所述应用的标识添加到所述心跳调整黑名单中。
举例来说, 获取模块 53 , 具体用于根据所述应用的定时器配置文件获取所 述应用的心跳类型和第一心跳周期。
举例来说, 调整模块 52 , 具体用于根据所述预设的触发心跳周期, 利用定 时器调整算法, 将所述应用的第一心跳周期调整为第二心跳周期;
所述定时器调整算法为:
所述应用的第二心跳周期= ( (所述应用的第一心跳周期 +所述预设的触发心 跳周期一 1 ) /所述预设的触发心跳周期) *所述预设的触发心跳周期。
举例来说, 设置模块 55 , 还用于预设所述应用白名单, 所述应用白名单中 包括根据应用属性确定不需要进行心跳周期调整的应用的标识。
本发明实施例通过确定应用是否在心跳调整黑名单中, 若是, 则根据预设 的触发心跳周期, 将所述应用的第一心跳周期调整为第二心跳周期, 使得所述 应用的第二心跳周期与所述触发心跳周期重合, 从而实现将终端中由于多个应 用不同的第一心跳周期导致的原本杂乱无章的心跳周期时序调整为有规律的触 发心跳周期时序, 能够降低终端被唤醒的次数, 降低终端的待机功耗。
本发明另一实施例还提供一种的终端, 包括图 5 所示实施例所述的应用心 跳周期调整装置, 关于应用心跳周期调整装置的具体内容可以参考图 5 所示实 施例中的相关描述, 不再赘述。
图 6为本发明另一实施例提供的终端的结构示意图, 如图 6所示, 所述终 端包括处理器、 存储器和通信总线, 所述处理器通过通信总线与存储器连接, 所述存储器中保存有实现应用心跳周期调整方法的指令; 当所述处理器调取存 储器中的指令时, 可以执行如下步骤:
根据应用的标识, 确定所述应用在心跳调整黑名单中;
根据预设的触发心跳周期, 将所述应用的第一心跳周期调整为第二心跳周 期;
所述心跳调整黑名单中包括需要进行心跳周期调整的应用的标识, 所述应 用的第一心跳周期为所述应用的原始心跳周期, 所述第二心跳周期为根据所述 预设的触发心跳周期调整后的所述应用的心跳周期, 所述预设的触发心跳周期 为对所述第一心跳周期进行调整的调整周期。
在第一种可能的实现方式中, 所述根据应用的标识, 确定所述应用在心跳 调整黑名单中之前, 包括:
若确定所述应用不在应用白名单中, 则获取所述应用的心跳类型和第一心 跳周期;
若所述应用的心跳类型属于需要调整的心跳类型, 且根据所述应用的第一 心跳周期确定所述应用在预设时间内唤醒系统的次数大于预设的次数门限值, 则确定需要对所述应用的第一心跳周期进行调整;
将所述应用的标识添加到所述心跳调整黑名单中。
基于第一种可能的实现方式, 在第二种可能的实现方式中, 所述获取所述 应用的心跳类型和第一心跳周期包括:
根据所述应用的定时器配置文件获取所述应用的心跳类型和第一心跳周 期。
基于第一、 第二种可能的实现方式, 在第三种可能的实现方式中, 所述根 据预设的触发心跳周期, 将所述应用的第一心跳周期调整为第二心跳周期包括: 根据所述预设的触发心跳周期, 利用定时器调整算法, 将所述应用的第一 心跳周期调整为第二心跳周期;
所述定时器调整算法为:
所述应用的第二心跳周期= ( (所述应用的第一心跳周期 +所述预设的触发心 跳周期一 1 ) /所述预设的触发心跳周期) *所述预设的触发心跳周期。
基于第一种可能的实现方式, 在第四种可能的实现方式中, 所述确定所述 应用不在应用白名单中之前, 包括:
预设所述应用白名单, 所述应用白名单中包括根据应用属性确定不需要进 行心跳周期调整的应用的标识。
本发明实施例通过确定应用是否在心跳调整黑名单中, 若是, 则根据预设 的触发心跳周期, 将所述应用的第一心跳周期调整为第二心跳周期, 使得所述 应用的第二心跳周期与所述触发心跳周期重合, 从而实现将终端中由于多个应 用不同的第一心跳周期导致的原本杂乱无章的心跳周期时序调整为有规律的触 发心跳周期时序, 能够降低终端被唤醒的次数, 降低终端的待机功耗。
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描 述的系统, 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应 过程, 在此不再赘述。
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统, 装置和 方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示 意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可 以有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个 系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间 的耦合或直接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦合 或通信连接, 可以是电性, 机械或其它的形式。 为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或 者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单 元中。 上述集成的单元既可以釆用硬件的形式实现, 也可以釆用硬件加软件 功能单元的形式实现。
上述以软件功能单元的形式实现的集成的单元, 可以以代码的形式存储 在一个计算机可读取存储介质中。 上述代码存储在一个计算机可读存储介质 中, 包括若干指令用以使处理器或硬件电路执行本发明各个实施例所述方法 的部分或全部步骤。 而前述的存储介质包括: 通用串行总线接口的无需物理 驱动器的微型高容量移动存储盘、 移动硬盘、 只读存储器(英文: Read-Only
Memory, 简称 ROM ) 、 随机存取存储器 (英文: Random Access Memory, 简称 RAM ) 、 磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或 者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技 术方案的本质脱离本发明各实施例技术方案的保护范围。
Claims
1、 一种应用心跳周期调整方法, 其特征在于, 包括:
根据应用的标识, 确定所述应用在心跳调整黑名单中;
根据预设的触发心跳周期, 将所述应用的第一心跳周期调整为第二心跳 周期;
其中,所述心跳调整黑名单中包括需要进行心跳周期调整的应用的标识, 所述应用的第一心跳周期为所述应用的原始心跳周期, 所述第二心跳周期为 根据所述预设的触发心跳周期调整后的所述应用的心跳周期; 所述预设的触 发心跳周期为对所述第一心跳周期进行调整的调整周期。
2、 根据权利要求 1所述的方法, 其特征在于, 所述根据应用的标识, 确 定所述应用在心跳调整黑名单中之前, 包括:
若确定所述应用不在应用白名单中, 则获取所述应用的心跳类型和第一 心跳周期;
若所述应用的心跳类型属于需要调整的心跳类型, 且根据所述应用的第 一心跳周期确定所述应用在预设时间内唤醒系统的次数大于预设的次数门限 值, 则确定需要对所述应用的第一心跳周期进行调整;
将所述应用的标识添加到所述心跳调整黑名单中。
3、根据权利要求 2所述的方法, 所述获取所述应用的心跳类型和第一心 跳周期包括:
根据所述应用的定时器配置文件获取所述应用的心跳类型和第一心跳周 期。
4、 根据权利要求 1-3任一项所述的方法, 其特征在于, 所述根据预设的 触发心跳周期, 将所述应用的第一心跳周期调整为第二心跳周期包括:
根据所述预设的触发心跳周期, 利用定时器调整算法, 将所述应用的第 一心跳周期调整为第二心跳周期;
所述定时器调整算法为:
所述应用的第二心跳周期= ( (所述应用的第一心跳周期 +所述预设的触发 心跳周期一 1 ) /所述预设的触发心跳周期) *所述预设的触发心跳周期。
5、根据权利要求 2所述的方法, 所述确定所述应用不在应用白名单中之 前, 包括:
预设所述应用白名单, 所述应用白名单中包括根据应用属性确定不需要 进行心跳周期调整的应用的标识。
6、 一种应用心跳周期调整装置, 其特征在于, 包括:
第一确定模块, 用于根据应用的标识, 确定所述应用在心跳调整黑名单 中;
调整模块, 用于在所述确定模块确定所述应用在心跳调整黑名单中的基 础上, 根据预设的触发心跳周期, 将所述应用的第一心跳周期调整为第二心 跳周期;
其中,所述心跳调整黑名单中包括需要进行心跳周期调整的应用的标识, 所述应用的第一心跳周期为所述应用的原始心跳周期, 所述第二心跳周期为 根据所述预设的触发心跳周期调整后的所述应用的心跳周期, 所述预设的触 发心跳周期为对所述第一心跳周期进行调整的调整周期。
7、 根据权利要求 6所述的装置, 其特征在于, 还包括:
获取模块, 用于在所述第一确定模块确定所述应用不在应用白名单中的 基础上, 获取所述应用的心跳类型和第一心跳周期;
第二确定模块, 用于若所述应用的心跳类型属于需要调整的心跳类型, 且根据所述应用的第一心跳周期确定所述应用在预设时间内唤醒系统的次数 大于预设的次数门限值, 则确定需要对所述应用的第一心跳周期进行调整; 设置模块, 用于将所述应用的标识添加到所述心跳调整黑名单中。
8、 根据权利要求 7所述的装置, 其特征在于, 所述获取模块, 具体用于 根据所述应用的定时器配置文件获取所述应用的心跳类型和第一心跳周期。
9、 根据权利要求 6-8任一项所述的装置, 其特征在于, 所述调整模块, 具体用于根据所述预设的触发心跳周期, 利用定时器调整算法, 将所述应用 的第一心跳周期调整为第二心跳周期;
所述定时器调整算法为:
所述应用的第二心跳周期= ( (所述应用的第一心跳周期 +所述预设的触发 心跳周期一 1 ) /所述预设的触发心跳周期) *所述预设的触发心跳周期。
10、 根据权利要求 7所述的装置, 其特征在于, 所述设置模块, 还用于 预设所述应用白名单, 所述应用白名单中包括根据应用属性确定不需要进行 心跳周期调整的应用的标识。
11、 一种终端, 其特征在于, 包括: 如权利要求 6-19任一项所述的应用
心跳周期调整装置,
Priority Applications (5)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020167036345A KR101799418B1 (ko) | 2013-01-25 | 2014-01-09 | 애플리케이션 하트비트 주기 조정 방법, 장치, 및 단말 |
KR1020157014942A KR101693565B1 (ko) | 2013-01-25 | 2014-01-09 | 애플리케이션 하트비트 주기 조정 방법, 장치, 및 단말 |
EP14743692.7A EP2851798A4 (en) | 2013-01-25 | 2014-01-09 | METHOD, DEVICE AND TERMINAL FOR APPLICATION HEART RATE CYCLE ADJUSTMENT |
US14/582,910 US9535747B2 (en) | 2013-01-25 | 2014-12-24 | Application heartbeat period adjusting method and apparatus, and terminal |
US15/366,897 US10552216B2 (en) | 2013-01-25 | 2016-12-01 | Application heartbeat period adjusting method and apparatus, and terminal |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310028340.0 | 2013-01-25 | ||
CN201310028340.0A CN103118188B (zh) | 2013-01-25 | 2013-01-25 | 应用心跳周期调整方法及装置、终端 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US14/582,910 Continuation US9535747B2 (en) | 2013-01-25 | 2014-12-24 | Application heartbeat period adjusting method and apparatus, and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2014114194A1 true WO2014114194A1 (zh) | 2014-07-31 |
Family
ID=48416458
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2014/070396 WO2014114194A1 (zh) | 2013-01-25 | 2014-01-09 | 应用心跳周期调整方法及装置、终端 |
Country Status (5)
Country | Link |
---|---|
US (2) | US9535747B2 (zh) |
EP (1) | EP2851798A4 (zh) |
KR (2) | KR101693565B1 (zh) |
CN (1) | CN103118188B (zh) |
WO (1) | WO2014114194A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595626A (zh) * | 2018-04-23 | 2018-09-28 | 温州市鹿城区中津先进科技研究院 | 一种基于大数据分析的学生成长档案系统 |
US10536900B2 (en) | 2014-06-18 | 2020-01-14 | Huawei Technologies Co., Ltd. | Heartbeat adjustment method, apparatus, and terminal |
Families Citing this family (32)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103118188B (zh) | 2013-01-25 | 2014-08-20 | 华为终端有限公司 | 应用心跳周期调整方法及装置、终端 |
CN104298515A (zh) * | 2013-07-19 | 2015-01-21 | 贝壳网际(北京)安全技术有限公司 | 移动终端中应用程序的唤醒控制方法、装置和移动终端 |
CN103415031A (zh) * | 2013-07-22 | 2013-11-27 | 中国联合网络通信集团有限公司 | 心跳提醒方法和装置 |
CN103402027B (zh) * | 2013-07-29 | 2015-03-04 | 广东欧珀移动通信有限公司 | 一种移动终端和使移动终端进入睡眠状态的方法 |
CN103843418B (zh) * | 2013-10-29 | 2018-06-05 | 华为终端(东莞)有限公司 | 一种业务代理的方法、调制解调器及终端 |
CN104703238A (zh) | 2013-12-10 | 2015-06-10 | 华为技术有限公司 | 一种网络切换方法和终端设备 |
CN103731910B (zh) * | 2014-01-16 | 2017-04-26 | 中国联合网络通信集团有限公司 | 定时提醒方法、终端和服务器 |
CN103970255B (zh) * | 2014-04-01 | 2018-02-27 | 联想(北京)有限公司 | 一种信息处理方法及电子设备 |
CN104093199B (zh) * | 2014-07-29 | 2017-08-25 | 中国联合网络通信集团有限公司 | 定时器设置方法和终端 |
CN105334943B (zh) * | 2014-08-12 | 2020-04-03 | 中兴通讯股份有限公司 | 一种应用智能分级对齐的方法和终端 |
CN104135571B (zh) * | 2014-08-12 | 2016-05-25 | 中国联合网络通信集团有限公司 | 心跳定时器设置方法、终端和服务器 |
CN110058889B (zh) * | 2014-08-21 | 2023-10-20 | 斑马智行网络(香港)有限公司 | 一种应用唤醒方法及装置 |
CN104219747B (zh) * | 2014-09-03 | 2020-05-29 | 湖北职升科技文化有限公司 | 一种根据电量信息调整唤醒时间的方法、装置及终端 |
CN104219746B (zh) * | 2014-09-03 | 2020-06-09 | 南京白下高新技术产业园区投资发展有限责任公司 | 一种自主调整唤醒时间的方法、装置及终端 |
CN104239132B (zh) * | 2014-09-16 | 2016-10-05 | 努比亚技术有限公司 | 一种唤醒对齐的方法、装置及终端 |
CN104317611B (zh) * | 2014-10-11 | 2017-05-24 | 厦门美图移动科技有限公司 | 一种应用唤醒设置设备、方法以及移动终端 |
CN107078925B (zh) * | 2014-10-29 | 2020-07-07 | 华为技术有限公司 | 一种心跳周期的设置方法及终端 |
KR102341626B1 (ko) | 2015-04-16 | 2021-12-21 | 삼성전자 주식회사 | 전자장치에서 트래픽 전송 시점 제어 장치 및 방법 |
CA2982393C (en) * | 2015-06-30 | 2022-07-19 | Huawei Technologies Co., Ltd. | Method for interaction between terminal and network device, and terminal |
CN106550438B (zh) * | 2015-09-22 | 2020-06-16 | 联芯科技有限公司 | 限制定期唤醒的方法及系统、移动设备 |
KR102579694B1 (ko) * | 2015-11-20 | 2023-09-19 | 삼성전자주식회사 | 기능 운용 방법 및 이를 지원하는 전자 장치 |
CN105487855B (zh) * | 2015-11-20 | 2019-03-01 | 魅族科技(中国)有限公司 | 一种应用唤醒终端的方法及终端 |
CN106102141B (zh) * | 2016-05-31 | 2017-10-17 | 广东欧珀移动通信有限公司 | 一种基于数据包的处理方法及装置 |
CN106201729B (zh) * | 2016-06-29 | 2019-09-17 | 北京小米移动软件有限公司 | 定时器对齐方法及装置 |
CN106168902A (zh) * | 2016-06-29 | 2016-11-30 | 北京金山安全软件有限公司 | 一种唤醒控制方法、装置及设备 |
CN107197509A (zh) * | 2017-05-22 | 2017-09-22 | 深圳市沃特沃德股份有限公司 | 心跳连接方法和装置 |
CN107506019A (zh) * | 2017-08-07 | 2017-12-22 | 北京小米移动软件有限公司 | 应用程序的管理方法及装置、终端、存储介质 |
CN109445942B (zh) * | 2018-10-22 | 2021-09-17 | 郑州云海信息技术有限公司 | 一种心跳消息的处理方法及装置 |
US11003369B1 (en) | 2019-01-14 | 2021-05-11 | Pure Storage, Inc. | Performing a tune-up procedure on a storage device during a boot process |
CN109901697A (zh) * | 2019-03-04 | 2019-06-18 | 上海卓易科技股份有限公司 | 一种降低系统功耗的方法、装置、设备及介质 |
CN112987904B (zh) * | 2019-12-18 | 2022-11-11 | 成都鼎桥通信技术有限公司 | 一种心跳控制方法和装置 |
CN111465087B (zh) * | 2020-03-31 | 2023-07-18 | 上海庆科信息技术有限公司 | 任务调度处理方法、装置、存储介质、处理器及系统 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101359238A (zh) * | 2008-09-02 | 2009-02-04 | 中兴通讯股份有限公司 | 一种多核系统的时间同步方法及系统 |
CN102117114A (zh) * | 2009-12-30 | 2011-07-06 | 重庆重邮信科通信技术有限公司 | 一种嵌入式设备省电方法 |
CN102843250A (zh) * | 2011-06-21 | 2012-12-26 | 中兴通讯股份有限公司 | 一种心跳周期的自适应方法和装置 |
CN103118188A (zh) * | 2013-01-25 | 2013-05-22 | 华为终端有限公司 | 应用心跳周期调整方法及装置、终端 |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6918115B2 (en) * | 2001-02-16 | 2005-07-12 | Microsoft Corporation | Method and apparatus for synchronization of periodic processes |
US7089561B2 (en) * | 2001-06-01 | 2006-08-08 | Microsoft Corporation | Methods and systems for creating and communicating with computer processes |
US7627721B2 (en) * | 2002-10-08 | 2009-12-01 | Rmi Corporation | Advanced processor with cache coherency |
GB2439104A (en) * | 2006-06-15 | 2007-12-19 | Symbian Software Ltd | Managing power on a computing device by minimising the number of separately activated timer events such that the device is powering up less often. |
KR20090018256A (ko) * | 2007-08-17 | 2009-02-20 | 삼성전자주식회사 | 휴대용 단말기에서 하트비트 동기화를 이용한 소모 전류개선 장치 및 방법 |
US8010816B2 (en) * | 2008-12-31 | 2011-08-30 | Intel Corporation | Method and system for reducing power consumption of active web page content |
US20110153728A1 (en) * | 2009-12-17 | 2011-06-23 | Telefonaktiebolaget Lm Ericsson (Publ) | Synchronization of sporadic web poll traffic |
WO2012071283A1 (en) * | 2010-11-22 | 2012-05-31 | Michael Luna | Aligning data transfer to optimize connections established for transmission over a wireless network |
KR20120076859A (ko) * | 2010-12-30 | 2012-07-10 | 삼성전자주식회사 | 휴대단말에서 킵 얼라이브 패킷 동기화 방법 및 장치 |
KR20130086700A (ko) * | 2012-01-26 | 2013-08-05 | 삼성전자주식회사 | 휴대 단말기의 패킷 전송 방법 및 장치 |
JP5685313B2 (ja) | 2012-06-08 | 2015-03-18 | ▲華▼▲為▼終端有限公司Huawei Device Co., Ltd. | ハートビート動作を同期させる方法及び装置 |
-
2013
- 2013-01-25 CN CN201310028340.0A patent/CN103118188B/zh active Active
-
2014
- 2014-01-09 KR KR1020157014942A patent/KR101693565B1/ko active IP Right Grant
- 2014-01-09 WO PCT/CN2014/070396 patent/WO2014114194A1/zh active Application Filing
- 2014-01-09 KR KR1020167036345A patent/KR101799418B1/ko active IP Right Grant
- 2014-01-09 EP EP14743692.7A patent/EP2851798A4/en not_active Ceased
- 2014-12-24 US US14/582,910 patent/US9535747B2/en active Active
-
2016
- 2016-12-01 US US15/366,897 patent/US10552216B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101359238A (zh) * | 2008-09-02 | 2009-02-04 | 中兴通讯股份有限公司 | 一种多核系统的时间同步方法及系统 |
CN102117114A (zh) * | 2009-12-30 | 2011-07-06 | 重庆重邮信科通信技术有限公司 | 一种嵌入式设备省电方法 |
CN102843250A (zh) * | 2011-06-21 | 2012-12-26 | 中兴通讯股份有限公司 | 一种心跳周期的自适应方法和装置 |
CN103118188A (zh) * | 2013-01-25 | 2013-05-22 | 华为终端有限公司 | 应用心跳周期调整方法及装置、终端 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10536900B2 (en) | 2014-06-18 | 2020-01-14 | Huawei Technologies Co., Ltd. | Heartbeat adjustment method, apparatus, and terminal |
CN108595626A (zh) * | 2018-04-23 | 2018-09-28 | 温州市鹿城区中津先进科技研究院 | 一种基于大数据分析的学生成长档案系统 |
Also Published As
Publication number | Publication date |
---|---|
US9535747B2 (en) | 2017-01-03 |
KR20150082521A (ko) | 2015-07-15 |
CN103118188A (zh) | 2013-05-22 |
US20170083366A1 (en) | 2017-03-23 |
US20150121383A1 (en) | 2015-04-30 |
KR20170001741A (ko) | 2017-01-04 |
KR101693565B1 (ko) | 2017-01-06 |
US10552216B2 (en) | 2020-02-04 |
KR101799418B1 (ko) | 2017-12-20 |
EP2851798A4 (en) | 2015-05-27 |
EP2851798A1 (en) | 2015-03-25 |
CN103118188B (zh) | 2014-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2014114194A1 (zh) | 应用心跳周期调整方法及装置、终端 | |
US10057856B2 (en) | Wake-up control method and apparatus, and terminal device | |
WO2015007246A1 (zh) | 移动终端中应用程序的唤醒控制方法、装置和移动终端 | |
CN105573460B (zh) | 应用程序唤醒时间的调节方法及装置 | |
US10536900B2 (en) | Heartbeat adjustment method, apparatus, and terminal | |
CN107204999B (zh) | 一种实现心跳的方法和装置 | |
TW201714044A (zh) | 管理網路喚醒指令之方法以及伺服器 | |
US20160164990A1 (en) | Method for Sending Heartbeat Message and Mobile Terminal | |
CN110691430B (zh) | 物联网终端的唤醒方法及装置、存储介质、基站 | |
EP3190771B1 (en) | Method and device for managing instant communication application program, and mobile terminal thereof | |
US10003617B2 (en) | Terminal and application synchronization method thereof | |
CN106951314B (zh) | 面向Android系统后台服务自动唤醒的切断方法 | |
CN110691399B (zh) | 物联网终端及其唤醒方法及装置、存储介质 | |
CN104052861B (zh) | 一种终端及其唤醒方法 | |
WO2019110005A1 (zh) | 一种终端智能省电的方法、终端及具有存储功能的装置 | |
TWI475911B (zh) | 網路搜尋方法及使用此方法的行動電子裝置 | |
TW201347578A (zh) | 一種資訊傳輸方法、系統及睡眠功能設備 | |
US9639137B2 (en) | Control method and electronic device | |
CN108430098B (zh) | 无线通信终端及其省电方法 | |
WO2018133300A1 (zh) | 一种建立数据通信的方法及装置 | |
CN108574974B (zh) | 一种无线接入方法、相关设备及系统 | |
WO2023206821A1 (zh) | mesh网络中节点的休眠唤醒方法、装置和设备 | |
CN114257962A (zh) | 网络节点及其状态的调整方法、计算机可读存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 14743692 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2014743692 Country of ref document: EP |
|
ENP | Entry into the national phase |
Ref document number: 20157014942 Country of ref document: KR Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |