CN112987904B - Heartbeat control method and device - Google Patents

Heartbeat control method and device Download PDF

Info

Publication number
CN112987904B
CN112987904B CN201911309223.5A CN201911309223A CN112987904B CN 112987904 B CN112987904 B CN 112987904B CN 201911309223 A CN201911309223 A CN 201911309223A CN 112987904 B CN112987904 B CN 112987904B
Authority
CN
China
Prior art keywords
task
main
new
heartbeat
overtime
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
CN201911309223.5A
Other languages
Chinese (zh)
Other versions
CN112987904A (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.)
Chengdu TD Tech Ltd
Original Assignee
Chengdu TD Tech 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 Chengdu TD Tech Ltd filed Critical Chengdu TD Tech Ltd
Priority to CN201911309223.5A priority Critical patent/CN112987904B/en
Publication of CN112987904A publication Critical patent/CN112987904A/en
Application granted granted Critical
Publication of CN112987904B publication Critical patent/CN112987904B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3228Monitoring task completion, e.g. by use of idle timers, stop commands or wait commands
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • 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

Abstract

The application discloses a heartbeat control method and a heartbeat control device, wherein the method comprises the following steps: when an application needing heartbeat control is newly added in a terminal, a heartbeat Task of the application is used new Adding to the current heartbeat task set G task The preparation method comprises the following steps of (1) performing; if said G is task Only one task in the master control cycle T main Set as the Task new Heart cycle T of new With said T main Starting a master control timer for timing duration according to the T new And said T main Setting said Task new The number of counts of (c); if said G is task If at least two tasks exist and the current master control timer is overtime, executing a control parameter updating process after executing an overtime processing process; if said G is task If there are at least two tasks and the master control timer is not overtime, the control parameter updating process is directly executed. By adopting the invention, the execution of all heartbeat tasks in the terminal is uniformly controlled by one master control timer, so that the heartbeat power consumption of the terminal can be effectively reduced.

Description

Heartbeat control method and device
Technical Field
The present invention relates to communications technologies, and in particular, to a heartbeat control method and apparatus.
Background
In order to maintain long connection with a server, an application program in an existing private network terminal sends a heartbeat packet to the server at regular intervals like a heartbeat packet to detect whether the connection is normal or not, and informs the server that an application client is still alive. The specific method comprises the following steps:
the client side sends a short data packet (namely a heartbeat packet) to the server at regular time in a Timer event, then starts a low-level thread, continuously detects the response of the server in the thread, and if the response of the server is not received in a certain time, the client side is considered to be disconnected.
The inventor discovers that in the process of implementing the invention: the existing heartbeat control scheme has the problem of large terminal power consumption, and the specific reason analysis is as follows:
the existing heartbeat control scheme takes a single application as a heartbeat control main body, each application sets a heartbeat period according to the heartbeat control requirement of the application, and a terminal where the application is located is triggered to send a heartbeat packet regularly based on the heartbeat period by using a Timer event. Therefore, when a plurality of applications which need to be in long connection with the server are installed in the terminal, a plurality of Timer events with corresponding quantity are set in the terminal, a processor (CPU) of the terminal needs to be awakened when a heartbeat cycle corresponding to each Timer event arrives, and the awakening of the CPU by each Timer event is independently carried out, so that the CPU of the terminal can be frequently awakened, and further, the heartbeat power consumption of the terminal is very high.
Disclosure of Invention
In view of this, the present invention mainly aims to provide a heartbeat control method and apparatus, which can effectively reduce the heartbeat power consumption of a terminal.
In order to achieve the above purpose, the embodiment of the present invention provides a technical solution:
a heartbeat control method, comprising:
when an application needing heartbeat control is newly added in a terminal, a heartbeat Task of the application is used new Adding to the current heartbeat task set G task The preparation method comprises the following steps of (1) performing; if said G is task Only one task in the master control cycle T main Set as the Task new Heart cycle T of new With said T main Starting a master control timer for timing time length according to the T new And said T main Is provided withPut the Task new The number of counts of (c); if said G is task If there are at least two tasks and the current master timer is overtime, then after executing the overtime processing process, executing the control parameter updating process; if said G is task If there are at least two tasks and the master control timer is not overtime, the control parameter updating process is directly executed;
when the master control timer is overtime, executing the overtime processing process;
the timeout processing procedure comprises the following steps: with the current said T main Restarting the master control timer for a timing duration; according to the G task Finding out the task which needs to execute the heartbeat event at present and executing the corresponding heartbeat event according to the counting times of each task; for the G task Updating the counting times of each task overtime;
the control parameter updating process includes: according to the T new And said T main Judging whether the T needs to be updated or not main According to the judgment result, for the T main And said G task And correspondingly updating the counting times of the middle tasks.
Preferably, the setting the Task new The number of counts of (c) includes:
the Task is processed new Is set as the T new And said T main The rounding value of the ratio.
Preferably, said is according to said G task The step of finding out the task which needs to execute the heartbeat event at present comprises the following steps:
subjecting the G to task And determining the task with the middle counting number of 1 as the task which needs to execute the heartbeat event at present.
Preferably, said pair of said G task The updating of the count number of each task overtime includes:
for the G task If the counted number of the task is 1, updating the counted number of the task to the heart cycle of the task and the T main And (4) rounding the ratio, otherwise, subtracting 1 from the counting number of the task.
Preferably, the determining whether the T needs to be updated or not main According to the judgment result, for the T main And said G task The corresponding updating of the counting times of the middle task comprises the following steps:
if said T is new Less than said T main Then the T is added main Is updated to the T new And for said G task The counting times of the task are set as the heartbeat period and the T of the task main Rounding the ratio; otherwise, the Task is processed new Is set as the T new And said T main The rounding value of the ratio.
A heartbeat control device, which is provided in a terminal, includes: a processor to:
when an application needing heartbeat control is newly added in a terminal, a heartbeat Task of the application is used new Adding to the current heartbeat task set G task Performing the following steps; if said G is task Only one Task in the Task list, the Task is executed new Heart cycle T of new Set as master control period T main With said T main Starting a master control timer for timing time length according to the T new And said T main Setting the Task new The number of counts of (c); if said G is task If at least two tasks exist and the current master control timer is overtime, executing a control parameter updating process after executing an overtime processing process; if said G is task If at least two tasks exist and the current master control timer is not overtime, the control parameter updating process is directly executed;
when the master control timer is overtime, executing the overtime processing process;
the timeout processing procedure comprises the following steps: with the current said T main Restarting the master control timer for the timing duration; according to the G task The number of counts of each task, the task currently needing to execute the heartbeat event is found out,and executing the corresponding heartbeat event; for the G task Updating the counting times of each task overtime;
the control parameter updating process includes: according to the T new And said T main Judging whether the T needs to be updated or not main According to the judgment result, for the T main And said G task And correspondingly updating the counting times of the middle tasks.
Preferably, the processor is specifically configured to: setting the Task new The number of counts of (a) includes:
the Task is processed new Is set as the T new And said T main The rounding value of the ratio.
Preferably, the processor is specifically configured to: according to the G task The step of finding out the task which needs to execute the heartbeat event at present comprises the following steps:
subjecting the G to task And determining the task with the middle counting number of 1 as the task which needs to execute the heartbeat event currently.
Preferably, the processor is specifically configured to: for the G task The time-out updating of the counted number of times of each task in the system comprises:
for the G task If the counted number of the task is 1, updating the counted number of the task to the heart cycle of the task and the T main And (4) rounding the ratio, otherwise, subtracting 1 from the counting number of the task.
Preferably, the processor is specifically configured to: judging whether the T needs to be updated or not main According to the judgment result, for the T main And said G task The corresponding updating is carried out on the counting times of the middle task, and the updating comprises the following steps:
if said T is new Less than said T main Then the T is added main Is updated to the T new And for said G task The counting times of the task are set as the heartbeat period and the T of the task main Rounding the ratio; otherwise, it willThe Task new Is set as the T new And said T main The rounding of the ratio.
The present application also discloses a non-transitory computer readable storage medium storing instructions that, when executed by a processor, cause the processor to perform the steps of the heartbeat control method as described above.
The application also discloses an electronic device comprising the non-volatile computer-readable storage medium as described above, and the processor having access to the non-volatile computer-readable storage medium.
In summary, the heartbeat control method and apparatus provided in the embodiments of the present invention uniformly control the execution of all heartbeat events in the terminal by only using one master timer, so that the number of times that the CPU is awakened is effectively reduced while ensuring that the heartbeat event of each task can be timely triggered, and thus the heartbeat power consumption of the terminal can be reduced, and the problem of relatively high heartbeat power consumption caused by the independent control of the execution of the heartbeat events by each application is effectively avoided.
Drawings
FIG. 1 is a schematic flow chart of a method according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a schematic method flow diagram of an embodiment of the present invention, and as shown in fig. 1, a heartbeat control method implemented in the embodiment mainly includes:
step 101, when an application needing heartbeat control is newly added in a terminal, a heartbeat Task of the application is executed new Adding to the current heartbeat task set G task In (1).
In this step, when an application requiring heartbeat control is newly added to the terminal, a heartbeat Task of the application needs to be executed new Adding to the current heartbeat task set G in the terminal task So as to be based thereon thereafterHeartbeat task set G task And uniformly controlling the heartbeat events required to be executed in the terminal.
Step 102, judging the G task If there is only one task, if yes, execute step 103; otherwise, step 104 is performed.
In this step, the heartbeat Task is new Adding to the Heartbeat task set G task Then, if G is task Whether or not there is only Task new This Task then needs to execute step 103, using Task new Otherwise, the step 104 is executed to perform the operation on the existing control parameters (including the heartbeat period T) new The count number of heartbeat tasks) to ensure that the control parameters can cover the heartbeat control requirements of all heartbeat tasks.
Step 103, master control period T main Set as the Task new Heart cycle T of new With said T main Starting a master control timer for timing time length according to the T new And said T main Setting the Task new The number of counts of (c); step 107 is performed.
In this step, the Task is set new The specific method of counting the number of times of (2) is as follows:
the Task is processed new Is set as the T new And said T main The rounding of the ratio.
Specifically, since T is at this time new And T main Are identical, therefore, here Task new Is actually set to 1.
It should be noted that, in the embodiment of the present invention, for each application with a heartbeat control requirement, a count number needs to be configured for its corresponding task, and then, the count number is updated correspondingly every time the master timer times out, so as to control triggering of a corresponding heartbeat event based on the count number.
104, judging that the current master control timer is overtime, and if yes, executing a step 105; otherwise, step 106 is performed.
In this step, considering that the master timer is started at this time, in order to ensure the on-time execution of the heartbeat event of the existing task, if the master timer is overtime, the step 105 of executing the overtime processing process first needs to be performed, and then the step 106 of executing the step 106 of updating the control parameters according to the heartbeat cycle of the newly added task is performed, otherwise, the step 106 of directly executing the step of updating the control parameters according to the heartbeat cycle of the newly added task is performed.
Step 105, executing a timeout processing procedure, including: with the current said T main Restarting the master control timer for the timing duration; according to the G task Finding out the task which needs to execute the heartbeat event at present and executing the corresponding heartbeat event according to the counting times of each task; for the G task The counted number of each task in the group is updated overtime.
In this step, in the process of executing timeout processing, the G needs to be processed task Is updated over time to ensure that G is said to follow task Each task in (a) is able to execute a respective heartbeat event in time when the respective heartbeat cycle arrives.
Preferably, in this step, the following method can be adopted according to the G task The number of counts of each task in the database is used for finding out the task which needs to execute the heartbeat event at present:
subjecting the G to task And determining the task with the middle counting number of 1 as the task which needs to execute the heartbeat event currently.
Here, if the counted number of times of the task is 1, it is described that the heartbeat event execution time of the corresponding task is currently reached, and therefore, the heartbeat event of the task needs to be executed.
Preferably, in this step, the following method can be adopted for G task The count number of each task is updated overtime:
for the G task If the counting number of the task is 1, updating the counting number of the task to the heartbeat cycle of the task and the current T main And (4) rounding the ratio, otherwise, subtracting 1 from the counting number of the task.
Step 106, executing a control parameter updating process, including: according to the T new And said T main Judging whether the T needs to be updated or not main According to the judgment result, for the T main And said G task And correspondingly updating the counting times of the middle tasks.
Preferably, the execution control parameter updating process may be implemented by the following method:
if said T is new Less than said T main Then the T is added main Is updated to the T new And for said G task The counting times of the task are set as the heartbeat period and the T of the task main The rounding value of the ratio.
If said T is new Greater than or equal to T main Then the Task is executed new Is set as the T new And said T main The rounding of the ratio.
In the above updating process, if T is the same as T new Less than said T main Then the T is added main Is updated to the T new Thus, can make T main Is always the G task The minimum value of the heartbeat periods of all the tasks in the terminal, and the timing duration of the master timer in the terminal is T main And thus, can ensure timely execution of the heartbeat event that can satisfy all tasks.
In addition, in the updating process, for one task, the heartbeat cycle of the task and the T are used main And taking the rounded result of the ratio as the counting number of the task. Therefore, by the method, a plurality of tasks with different heartbeat cycles (for example, several tasks with close heartbeat cycles) can have the same counting times, and the tasks can trigger the execution of the heartbeat event at the same time, so that compared with the existing method that each application needs to trigger the heartbeat event respectively, the method can effectively reduce the awakening times of the CPU.
And 107, when the master control timer is overtime, executing the overtime processing process.
In the method, when the master control timer in the terminal is overtime, the task which needs to execute the heartbeat event at present is triggered in a unified manner, so that the execution of a plurality of heartbeat events can be triggered when the CPU is awakened once, the number of times of awakening the CPU is effectively reduced while the heartbeat event of each task can be timely triggered, the heartbeat power consumption of the terminal can be further reduced, and the problem of larger heartbeat power consumption caused by the independent control of the execution of the heartbeat event by each application is effectively avoided.
Corresponding to the above method embodiment, the present application provides a heartbeat control device, which is disposed in a terminal, and includes: a processor to:
when an application needing heartbeat control is newly added in a terminal, a heartbeat Task of the application is used new Adding to the current heartbeat task set G task Performing the following steps; if said G is task Only one Task in the Task list, the Task is executed new Heart cycle T of new Set as master control period T main With said T main Starting a master control timer for timing time length according to the T new And said T main Setting said Task new The number of counts of (c); if said G is task If there are at least two tasks and the current master timer is overtime, then after executing the overtime processing process, executing the control parameter updating process; if said G is task If there are at least two tasks and the current master control timer is not overtime, the control parameter updating process is directly executed;
when the master control timer is overtime, the overtime processing process is executed;
the timeout processing procedure comprises the following steps: with the current said T main Restarting the master control timer for a timing duration; according to the G task Finding out the task which needs to execute the heartbeat event at present and executing the corresponding heartbeat event according to the counting times of each task; for the G task Updating the counting times of each task overtime;
the control parameter updating process includes: according to said T new And said T main Judging whether the T needs to be updated or not main According to the judgment result, for the T main And said G task And correspondingly updating the counting times of the middle tasks.
Preferably, the processor is specifically configured to: setting the Task new The number of counts of (a) includes:
subjecting the Task to new Is set as the T new And said T main The rounding value of the ratio.
Preferably, the processor is specifically configured to: according to the G task The step of finding out the task which needs to execute the heartbeat event at present comprises the following steps:
subjecting the G to task And determining the task with the middle counting number of 1 as the task which needs to execute the heartbeat event currently.
Preferably, the processor is specifically configured to: for the G task The updating of the overtime of the counting number of each task comprises the following steps:
for the G task If the counted number of the task is 1, updating the counted number of the task to the heart cycle of the task and the T main And (4) rounding the ratio, otherwise, subtracting 1 from the counting number of the task.
Preferably, the processor is specifically configured to: judging whether the T needs to be updated or not main According to the judgment result, for the T main And said G task The counting times of the middle task are correspondingly updated, and the method comprises the following steps:
if said T is new Less than said T main Then the T is added main Is updated to the T new And for said G task Setting the counting times of the task as the heartbeat period and the T of the task main Rounding the ratio; otherwise, the Task is processed new Setting the number of countsIs said T new And said T main The rounding value of the ratio.
The present application also discloses a non-transitory computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform the steps of the heartbeat control method embodiments as described above.
The present application also discloses an electronic device comprising the non-volatile computer-readable storage medium as described above, and the processor having access to the non-volatile computer-readable storage medium.
In summary, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A heartbeat control method, comprising:
when an application needing heartbeat control is newly added in a terminal, a heartbeat Task of the application is used new Adding to the current heartbeat task set G task Performing the following steps; if said G is task Only one task in the master control cycle T main Set as the Task new Heart cycle T of new With said T main Starting a master control timer for timing time length according to the T new And said T main Setting said Task new The number of counts of (c); if said G is task If there are at least two tasks and the current master timer is overtime, then after executing the overtime processing process, executing the control parameter updating process; if said G is task If at least two tasks exist and the master control timer is not overtime, the control parameter updating process is directly executed;
when the master control timer is overtime, the overtime processing process is executed;
the timeout processing procedure comprises the following steps: with the current said T main For timing duration, restartingThe master control timer; according to the G task Finding out the task which needs to execute the heartbeat event at present and executing the corresponding heartbeat event according to the counting times of each task; for the G task Updating the counting times of each task overtime;
the control parameter updating process includes: according to the T new And said T main Judging whether the T needs to be updated or not main According to the judgment result, for the T main And said G task Correspondingly updating the counting times of the middle tasks;
wherein the determining whether the T needs to be updated main According to the judgment result, for the T main And said G task The corresponding updating of the counting times of the middle task comprises the following steps:
if said T is new Less than said T main Then the T is added main Is updated to the T new And for said G task The counting times of the task are set as the heartbeat period and the T of the task main Rounding the ratio; otherwise, the Task is executed new Is set as the T new And said T main Rounding the ratio;
according to the G task The step of finding out the task which needs to execute the heartbeat event at present comprises the following steps:
subjecting the G to task And determining the task with the middle counting number of 1 as the task which needs to execute the heartbeat event currently.
2. The method of claim 1, wherein the setting the Task new The number of counts of (a) includes:
subjecting the Task to new Is set as the T new And said T main The rounding value of the ratio.
3. The method of claim 1, wherein said pair of said gs task Of each taskThe updating of the count over time includes:
for the G task If the counted number of the task is 1, updating the counted number of the task to the heartbeat cycle of the task and the T main And (4) rounding the ratio, otherwise, subtracting 1 from the counting number of the task.
4. A heartbeat control device, disposed in a terminal, includes: a processor to:
when an application needing heartbeat control is newly added in a terminal, a heartbeat Task of the application is used new Adding to the current heartbeat task set G task Performing the following steps; if said G is task Only one Task in the Task list, the Task is executed new Heart cycle T of new Set as master control period T main With said T main Starting a master control timer for timing time length according to the T new And said T main Setting said Task new The number of counts of (c); if said G is task If there are at least two tasks and the current master timer is overtime, then after executing the overtime processing process, executing the control parameter updating process; if said G is task If there are at least two tasks and the current master control timer is not overtime, the control parameter updating process is directly executed;
when the master control timer is overtime, executing the overtime processing process;
the timeout processing procedure comprises the following steps: with the current said T main Restarting the master control timer for a timing duration; according to the G task Finding out the task which needs to execute the heartbeat event at present and executing the corresponding heartbeat event according to the counting times of each task; for the G task Updating the counting times of each task overtime;
the control parameter updating process includes: according to said T new And said T main Judging whether the T needs to be updated or not main According to the judgment result, for the T main And said G task Correspondingly updating the counting times of the middle tasks;
wherein it is determined whether the T needs to be updated main According to the judgment result, for the T main And said G task The corresponding updating is carried out on the counting times of the middle task, and the updating comprises the following steps:
if said T is new Less than said T main Then the T is added main Is updated to the T new And for said G task Setting the counting times of the task as the heartbeat period and the T of the task main Rounding the ratio; otherwise, the Task is processed new Is set as the T new And said T main Rounding the ratio;
according to the G task The step of finding out the task which needs to execute the heartbeat event at present comprises the following steps:
subjecting the G to task And determining the task with the middle counting number of 1 as the task which needs to execute the heartbeat event currently.
5. The apparatus of claim 4, wherein the processor is specifically configured to: setting the Task new The number of counts of (c), comprising:
the Task is processed new Is set as the T new And said T main The rounding of the ratio.
6. The apparatus of claim 4, wherein the processor is specifically configured to: for the G task The updating of the overtime of the counting number of each task comprises the following steps:
for the G task If the counted number of the task is 1, updating the counted number of the task to the heart cycle of the task and the T main And (4) rounding the ratio, otherwise, subtracting 1 from the counting number of the task.
7. A non-transitory computer readable storage medium storing instructions which, when executed by a processor, cause the processor to perform the steps of the heartbeat control method of any of claims 1 to 3.
8. An electronic device comprising the non-volatile computer-readable storage medium of claim 7, and the processor having access to the non-volatile computer-readable storage medium.
CN201911309223.5A 2019-12-18 2019-12-18 Heartbeat control method and device Active CN112987904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911309223.5A CN112987904B (en) 2019-12-18 2019-12-18 Heartbeat control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911309223.5A CN112987904B (en) 2019-12-18 2019-12-18 Heartbeat control method and device

Publications (2)

Publication Number Publication Date
CN112987904A CN112987904A (en) 2021-06-18
CN112987904B true CN112987904B (en) 2022-11-11

Family

ID=76343888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911309223.5A Active CN112987904B (en) 2019-12-18 2019-12-18 Heartbeat control method and device

Country Status (1)

Country Link
CN (1) CN112987904B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113726595B (en) * 2021-08-06 2024-03-19 视联动力信息技术股份有限公司 Detection method and device of timeout client, electronic equipment and storage medium
CN117294750B (en) * 2023-11-27 2024-03-01 杭州涂鸦信息技术有限公司 Method and device for adjusting MQTT heartbeat frequency

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118188A (en) * 2013-01-25 2013-05-22 华为终端有限公司 Application heartbeat cycle adjusting method and device, and terminal
CN103782634A (en) * 2012-08-31 2014-05-07 华为终端有限公司 Control method and device for awaking intelligent terminal
WO2015006773A1 (en) * 2013-07-12 2015-01-15 Seven Networks, Inc. Transport protocol layer optimization for managing signaling and power consumption
CN104348522A (en) * 2013-07-23 2015-02-11 普天信息技术研究院有限公司 Method suitable for heartbeat keeping of low-power consumption Bluetooth device
CN106548618A (en) * 2015-09-18 2017-03-29 徐工集团工程机械股份有限公司 For the methods, devices and systems of remote control pairing
CN107360362A (en) * 2017-06-16 2017-11-17 深圳市共进电子股份有限公司 Portable network video camera and wireless router operation method
CN108900349A (en) * 2018-07-11 2018-11-27 烽火通信科技股份有限公司 A kind of high-frequency model management method and system suitable for EOC all-in-one machine

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7028218B2 (en) * 2002-12-02 2006-04-11 Emc Corporation Redundant multi-processor and logical processor configuration for a file server
US20060176167A1 (en) * 2005-01-25 2006-08-10 Laser Shield Systems, Inc. Apparatus, system, and method for alarm systems
US10169172B2 (en) * 2015-08-11 2019-01-01 International Business Machines Corporation Passive detection of live systems during controller failover in distributed environments

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103782634A (en) * 2012-08-31 2014-05-07 华为终端有限公司 Control method and device for awaking intelligent terminal
CN103118188A (en) * 2013-01-25 2013-05-22 华为终端有限公司 Application heartbeat cycle adjusting method and device, and terminal
WO2015006773A1 (en) * 2013-07-12 2015-01-15 Seven Networks, Inc. Transport protocol layer optimization for managing signaling and power consumption
CN104348522A (en) * 2013-07-23 2015-02-11 普天信息技术研究院有限公司 Method suitable for heartbeat keeping of low-power consumption Bluetooth device
CN106548618A (en) * 2015-09-18 2017-03-29 徐工集团工程机械股份有限公司 For the methods, devices and systems of remote control pairing
CN107360362A (en) * 2017-06-16 2017-11-17 深圳市共进电子股份有限公司 Portable network video camera and wireless router operation method
CN108900349A (en) * 2018-07-11 2018-11-27 烽火通信科技股份有限公司 A kind of high-frequency model management method and system suitable for EOC all-in-one machine

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"WLCleaner: Reducing Energy Waste Caused by WakeLock Bugs at Runtime";Xigui Wang等;《IEEE》;20141106;第429-434页 *
"基于心跳超时机制的Hadoop实时容错技术";关国栋等;《计算机应用》;20151010;第2784-2788页 *

Also Published As

Publication number Publication date
CN112987904A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
KR101799418B1 (en) Application heartbeat period adjusting method and apparatus, and terminal
US10091307B2 (en) Application management method and terminal
CN112987904B (en) Heartbeat control method and device
CN108319508B (en) Method for converting HTTP synchronous request into asynchronous processing and server
CN103268247B (en) Method and device for executing task and adjusting number of remaining threads in thread pool
CN105955809B (en) Thread scheduling method and system
EP3306866A1 (en) Message processing method, device and system
CN103150241A (en) System and method for monitoring and managing status of multi-server
WO2022095862A1 (en) Thread priority adjusting method, terminal, and computer readable storage medium
CN111625322B (en) Data processing method, system and equipment
CN108845872B (en) Method for implementing software timer for embedded system
CN105095045A (en) Method and system for monitoring background service of Android system
CN112650566B (en) Timed task processing method and device, computer equipment and storage medium
CN103034480A (en) Embedded system timer realizing method
US11275621B2 (en) Device and method for selecting tasks and/or processor cores to execute processing jobs that run a machine
CN113535344A (en) Network data processing method and device, server and storage medium
US20220229484A1 (en) Power management setting configuration
CN111796949A (en) Communication task processing method, device, equipment and storage medium
CN112084014A (en) Data processing method, device, equipment and medium
US9740259B2 (en) Method for managing software application computing resources
CN114003367B (en) Risk monitoring method, device, equipment and storage medium
CN114691343B (en) Polling task execution method and device, computer equipment and readable storage medium
CN112069025B (en) Lock expiration event processing method and device
CN102238022A (en) Network management system and data acquisition method
CN117891329A (en) Wireless communication module, control method and device thereof, electronic equipment and medium

Legal Events

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