Heartbeat period setting method, and terminal
First Claim
1. A heartbeat period setting method comprising:
- setting, by a terminal device, a heartbeat period of a tested application to a time period T2, wherein multiple applications and the tested application are installed in the terminal device;
performing, by the terminal device, a first heartbeat test by using the time period T2 as the heartbeat period;
determining, by the terminal device, whether the first heartbeat test has passed;
setting, by the terminal device, heartbeat periods of multiple applications to a time period T1 if the first heartbeat test has not passed, and then performing, by the terminal device, heartbeat services by using the time period T1 as the heartbeat period, wherein the time period T1 is less than the time period T2, and the time period T1 is a minimum heartbeat period of preset heartbeat periods of the tested application and the multiple applications;
setting, by the terminal device, the heartbeat period of the tested application to a time period T3 if the first heartbeat test has passed, and then performing, by the terminal device, a second heartbeat test by using the time period T3 as the heartbeat period, wherein T2 is less than T3;
determining, by the terminal device, whether the second heartbeat test is passed;
setting, by the terminal device, the heartbeat periods of the multiple applications to the time period T2 if the second heartbeat test has not passed, and then performing, by the terminal device, heartbeat services by using the time period T2 as the heartbeat period; and
setting, by the terminal device, the heartbeat period of the tested application to a time period T4 if the second heartbeat test is passed, and then performing, by the terminal device, a third heartbeat test by using the time period T4 as the heartbeat period, wherein T3 is less than T4.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the present invention disclose a heartbeat period setting method, including: setting a heartbeat period of a tested application to T2 and performing a first heartbeat test; setting heartbeat periods of multiple applications to T1 if the first heartbeat test is not passed, and performing heartbeat services; or setting the heartbeat period of the tested application to T3 if the first heartbeat test is passed, and performing a second heartbeat test; and setting the heartbeat periods of the multiple applications to T2 if the second heartbeat test is not passed, and performing heartbeat services; or setting the heartbeat period of the tested application to T4 if the second heartbeat test is passed, and performing a third heartbeat test, where T1<T2<T3<T4. The embodiments of the present invention further disclose a corresponding mobile terminal. According to the heartbeat period setting method and the terminal in the embodiments of the present invention, applications perform heartbeat services at a same moment by using a same heartbeat period, so that energy consumption of the terminal and signaling overheads are effectively reduced, and a load on an application server can further be reduced.
-
Citations
15 Claims
-
1. A heartbeat period setting method comprising:
-
setting, by a terminal device, a heartbeat period of a tested application to a time period T2, wherein multiple applications and the tested application are installed in the terminal device; performing, by the terminal device, a first heartbeat test by using the time period T2 as the heartbeat period; determining, by the terminal device, whether the first heartbeat test has passed; setting, by the terminal device, heartbeat periods of multiple applications to a time period T1 if the first heartbeat test has not passed, and then performing, by the terminal device, heartbeat services by using the time period T1 as the heartbeat period, wherein the time period T1 is less than the time period T2, and the time period T1 is a minimum heartbeat period of preset heartbeat periods of the tested application and the multiple applications; setting, by the terminal device, the heartbeat period of the tested application to a time period T3 if the first heartbeat test has passed, and then performing, by the terminal device, a second heartbeat test by using the time period T3 as the heartbeat period, wherein T2 is less than T3; determining, by the terminal device, whether the second heartbeat test is passed; setting, by the terminal device, the heartbeat periods of the multiple applications to the time period T2 if the second heartbeat test has not passed, and then performing, by the terminal device, heartbeat services by using the time period T2 as the heartbeat period; and setting, by the terminal device, the heartbeat period of the tested application to a time period T4 if the second heartbeat test is passed, and then performing, by the terminal device, a third heartbeat test by using the time period T4 as the heartbeat period, wherein T3 is less than T4. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A heartbeat period setting method comprising:
-
setting, by a terminal device, a heartbeat period of a tested application to a time period T2, wherein multiple applications and the tested application are installed in the terminal device; performing, by the terminal device, a first heartbeat test by using the time period T2 as the heartbeat period; determining, by the terminal device, whether the first heartbeat test is passed; setting, by terminal device, the heartbeat periods of multiple applications to a time period T1 if the first heartbeat test has not passed, and performing by the terminal device, heartbeat services by using the time period T1 as the heartbeat period, wherein the time period T1 is less than the time period T2, and the time period T1 is a minimum heartbeat period of preset heartbeat periods of the tested application and the multiple applications; setting, by terminal device, the heartbeat periods of the multiple applications to the time period T2 if the first heartbeat test has passed, and then performing, by the terminal device, a first overall heartbeat test by using the time period T2 as the heartbeat period; determining, by the terminal device, whether the first overall heartbeat test has passed; setting, by the terminal device, the heartbeat periods of the multiple applications to the time period T1 if the first overall heartbeat test has not passed, and then performing, by the terminal device, heartbeat services by using T1 as the heartbeat period; setting, by the terminal device, the heartbeat period of the tested application to a time period T3 if the first overall heartbeat test has passed, and then performing, by the terminal, a second heartbeat test by using the time period T3 as the heartbeat period; determining, by the terminal device, whether the second heartbeat test has passed; setting, by the terminal device, the heartbeat periods of the multiple applications to the time period T2 if the second heartbeat test has not passed, and then performing, by the terminal, heartbeat services by using the time period T2 as the heartbeat period; setting, by the terminal device, the heartbeat periods of the multiple applications to the time period T2 if the second heartbeat test has passed, and then performing, by the terminal device, a second overall heartbeat test by using the time period T2 as the heartbeat period; determining, by the terminal device, whether the second overall heartbeat test is passed; setting, by the terminal device, the heartbeat periods of the multiple applications to the time period T2 if the second overall heartbeat test has not passed, and then performing, by the terminal device, heartbeat services by using the time period T2 as the heartbeat period; and setting, by the terminal device, the heartbeat period of the tested application to the time period T3 if the second overall heartbeat test is passed, and then performing, by the terminal device, a third heartbeat test by using a time period T4 as the heartbeat period. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A terminal device comprising:
-
one or more processors; and a memory storing one or more programs and a first software application, wherein the one or more programs are configured to be executed by the one or more processors, the one or more programs including instructions for; setting, by the terminal device, a heartbeat period of a tested application to a time period T2, wherein multiple applications and the tested application are installed in the terminal device; performing, by the terminal device, a first heartbeat test by using a time period T2 as the heartbeat period; determining, by the terminal device, whether the first heartbeat test has passed; setting, by the terminal device, heartbeat periods of multiple applications to a time period T1 if the first heartbeat test is not passed, and then performing, by the terminal device, heartbeat services by using the time period T1 as the heartbeat period, wherein the time period T1 is less than the time period T2, and the time period T1 is a minimum heartbeat period of preset heartbeat periods of the tested application and the multiple applications; setting, by the terminal device, the heartbeat period of the tested application to a time period T3 if the first heartbeat test has passed, and then performing, by the terminal device, a second heartbeat test by using the time period T3 as the heartbeat period, wherein the time period T2 is less than the time period T3; determining, by the terminal device, whether the second heartbeat test is passed; setting, by the terminal device, the heartbeat periods of the multiple applications to the time period T2 if the second heartbeat test is not passed, and then performing, by the terminal device, heartbeat services by using the time period T2 as the heartbeat period; and setting, by the terminal device, the heartbeat period of the tested application to a time period T4 if the second heartbeat test is passed, and then performing, by the terminal device, a third heartbeat test by using the time period T4 as the heartbeat period, wherein the time period T3 is less than the time period T4. - View Dependent Claims (12, 13, 14, 15)
-
Specification