IP Library Granted Patent US 11,405,271
Granted Patent B2
US 11,405,271 · App. 16/770,745 · Granted Aug 2, 2022

Method for reducing power consumption and device

Inventors: Dawei Lin (Wuhan, CN); Lei Chen (Beijing, CN)
Assignee: HONOR DEVICE CO., LTD.
H04L41/0816H04L69/16
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,405,271
App. No.
16/770,745
Granted
Aug 2, 2022
Kind
B2
Abstract

A method and a device related to the field of mobile terminals and for reducing power consumption of a terminal device when the terminal device enters a doze mode, where after detecting that screen-off duration of the terminal device is greater than first duration, the terminal device sends a transmission control protocol reset packet to an application server of a to-be-controlled application to enable the application server to disconnect a Transmission Control Protocol (TCP) connection to the terminal device.

Claims (40)

1. A method implemented by a terminal device that is not coupled to an external power supply, comprising:

detecting that a screen-off duration of the terminal device is greater than a first duration, wherein the first duration is less than a second duration that is from a first moment at which the terminal device is in a screen-off mode to a second moment at which the terminal device enters an idle state of a doze mode; and

sending, in response to detecting that the screen-off duration is greater than the first duration and less than the second duration, a Transmission Control Protocol (TCP) reset packet to an application server of a to-be-controlled application, wherein the TCP reset packet instructs the application server to disconnect a TCP connection to the terminal device.

2. The method of claim 1 , wherein after detecting that the screen-off duration is greater than the first duration, the method further comprises determining the to-be-controlled application based on a to-be-controlled application list, and wherein the to-be-controlled application list comprises the to-be-controlled application.

3. The method of claim 1 , further comprising determining an application type of the to-be-controlled application.

4. The method of claim 3 , wherein the TCP reset packet is sent to the application server based on the application type.

5. The method of claim 4 , wherein before sending the TCP reset packet to the application server, the method further comprises detecting that the screen-off duration is greater than or equal to a third duration and that the terminal device is not moving, wherein the third duration is greater than the first duration, and wherein the third duration is equal to the second duration.

6. The method of claim 1 , wherein after sending the TCP reset packet, the method further comprises:

receiving a TCP retransmission packet from the application server and instructing the terminal device to retransmit a TCP acknowledgment packet to the application server; and

resending the TCP reset packet to the application server.

7. The method of claim 1 , wherein before sending the TCP reset packet to the application server, the method further comprising:

receiving a TCP acknowledgment packet from the application server;

obtaining an Internet Protocol (IP) address and a port number of the application server from the TCP acknowledgment packet; and

generating the TCP reset packet based on the IP address and the port number of the application server.

8. A terminal device comprising:

a memory configured to store programming instructions; and

a processor coupled to the memory, wherein the programming instructions, when executed by the processor, cause the terminal device to:

detect that a screen-off duration of the terminal device is greater than a first duration, wherein the first duration is less than a second duration that is from a first moment at which the terminal device is in a screen-off mode to a second moment at which the terminal device enters an idle state of a doze mode, and wherein the terminal device is not coupled to an external power supply; and

send, in response to detecting that the screen-off duration is greater than the first duration and less than the second duration, a Transmission Control Protocol (TCP) reset packet to an application server of a to-be-controlled application, wherein the TCP reset packet instructs the application server to disconnect a TCP connection to the terminal device.

9. The terminal device of claim 8 , wherein the programming instructions, when executed by the processor, further cause the terminal device to determine the to-be-controlled application based on a to-be-controlled application list, and wherein the to-be-controlled application list comprises the to-be-controlled application.

10. The terminal device of claim 8 , wherein the programming instructions, when executed by the processor, further cause the terminal device to determine an application type of the to-be-controlled application.

11. The terminal device of claim 10 , wherein the programming instructions, when executed by the processor, further cause the terminal device to send, based on the application type, the TCP reset packet to the application server.

12. The terminal device of claim 11 , wherein the programming instructions, when executed by the processor, further cause the terminal device to detect that the screen-off duration of the terminal device is greater than or equal to a third duration and the terminal device does not move, wherein the third duration is greater than the first duration, and wherein the third duration is equal to the second duration.

13. The terminal device of claim 8 , wherein the programming instructions, when executed by the processor, further cause the terminal device to:

receive a TCP retransmission packet from the application server, wherein the TCP retransmission packet instructs the terminal device to retransmit a TCP acknowledgment packet to the application server; and

resend the TCP reset packet to the application server.

14. The terminal device of claim 8 , wherein before sending the TCP reset packet to the application server, the programming instructions, when executed by the processor, further cause the terminal device to:

receive a TCP acknowledgment packet from the application server;

obtain an Internet Protocol (IP) address and a port number of the application server from the TCP acknowledgment packet; and

generate the TCP reset packet based on the IP address and the port number of the application server.

15. A computer program product comprising computer-executable instructions stored on a non-transitory computer readable medium that, when executed by a processor of a terminal device, cause the terminal device to:

detect that a screen-off duration of the terminal device is greater than a first duration, wherein the first duration is less than a second duration that is from a first moment at which the terminal device is in a screen-off mode to a second moment at which the terminal device enters an idle state of a doze mode, and wherein the terminal device is not coupled to an external power supply; and

sending, in response to detecting that the screen-off duration is greater than the first duration and less than the second duration, a Transmission Control Protocol (TCP) reset packet to an application server of a to-be-controlled application, wherein the TCP reset packet instructs the application server to disconnect a TCP connection to the terminal device.

16. The computer program product of claim 15 , wherein the computer-executable instructions further cause the terminal device to determine the to-be-controlled application based on a to-be-controlled application list, and wherein the to-be-controlled application list comprises the to-be-controlled application.

17. The computer program product of claim 15 , wherein the computer-executable instructions further cause the terminal device to determine an application type of the to-be-controlled application.

18. The computer program product of claim 17 , wherein the computer-executable instructions further cause the terminal device to send, based on the application type, the TCP reset packet to the application server.

19. The computer program product of claim 18 , wherein the computer-executable instructions further cause the terminal device to detect that the screen-off duration is greater than or equal to a third duration and the terminal device does not move, wherein the third duration is greater than the first duration, and wherein the third duration is equal to the second duration.

20. The computer program product of claim 15 , wherein the computer-executable instructions further cause the terminal device to:

receive a TCP retransmission packet from the application server, wherein the TCP retransmission packet instructs the terminal device to retransmit a TCP acknowledgment packet to the application server; and

resend the TCP reset packet to the application server.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 13, 2021
From: HUAWEI TECHNOLOGIES CO., LTD.
To: HONOR DEVICE CO., LTD.
Reel/Frame 055919/0344 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 13, 2020
From: LIN, DAWEI; CHEN, LEI
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 054036/0354 →