EP-4243511-B1 - STANDBY CONTROL METHOD AND TERMINAL DEVICE AND RELAY DEVICE
Inventors
- YU, Kexiong
Dates
- Publication Date
- 20260506
- Application Date
- 20190305
Claims (14)
- A standby control method performed by a relay device, the relay device comprising a first communications module and a second communications module, the method comprising: receiving, via the first communications module, first notification information sent by a terminal through a first communication link; under an instruction of the first notification information, the relay device serves as a proxy for the terminal to send a first keep-alive packet to a cloud server, so that the cloud server confirms that the terminal is online; characterised in that the method further comprises: sending, via the second communications module, a second keep-alive packet to the terminal through a second communication link; and receiving, via the second communications module, through the second communication link, acknowledgement information that the second keep-alive packet was received by the terminal, and confirming, based on the acknowledgement information, that the terminal is online, wherein a communication rate of the second communication link is lower than a communication rate of the first communication link, wherein before sending the second keep-alive packet to the terminal through a second communication link, the method further comprises: receiving, via the first communications module, second notification information sent by the terminal through the first communication link, wherein the second notification information notifies the relay device that an RF module of the terminal used for high-speed data transmission is to be disabled; and setting, based on the second notification information, the terminal to be in a connected state on the first communication link.
- The method according to claim 1, wherein the method further comprises: sending a wakeup packet to the terminal through the second communication link, so that the terminal enables a main control CPU of the terminal and the first communication link based on the wakeup packet.
- The method according to claim 2, wherein the enabling the first communication link comprises enabling the RF module used for high-speed data transmission.
- The method according to claim 2 or 3, wherein the wakeup packet comprises a channel parameter of the first communication link; and after the terminal enables the first communication link based on the channel parameter, service communication is performed with the terminal through the first communication link.
- The method according to any one of claims 1 to 4, wherein when the acknowledgement information that the second keep-alive packet was received by the terminal has not been received within a preset time limit, stopping sending the first keep-alive packet to the cloud server, so that the terminal is disconnected from the cloud server.
- The method according to any one of claims 1 to 5. wherein number of bytes occupied by the acknowledgement information of the second keep-alive packet is smaller than a number of bytes occupied by the second keep-alive packet.
- The method according to any one of claims 1 to 6, wherein before the sending a second keep-alive packet to the terminal through a second communication link, the method further comprises: negotiating with the terminal about a heartbeat period by using the first communication link; and the sending a second keep-alive packet to the terminal through a second communication link specifically comprises: sending the second keep-alive packet to the terminal through the second communication link based on the heartbeat period.
- A standby control terminal, comprising a main control module (701), a first communications module (702), and a second communications module (703), wherein the main control module is configured to: after a standby instruction is received by the terminal, control the first communications module to send first notification information to a relay device through a first communication link, wherein the first notification information is used to instruct the relay device to serve as a proxy for the terminal to send a first keep-alive packet to a cloud server, and the first communication link is a communication link between the first communications module and the relay device; the main control module is further configured to disable the first communication link and a main control central processing unit CPU of the terminal; and characterised in that : the second communications module is configured to: receive a second keep-alive packet sent by the relay device through a second communication link, and return acknowledgement information of the second keep-alive packet, so that the relay device confirms that the terminal is online, wherein the second communication link is a communication link between the second communications module and the relay device, and a communication rate of the second communication link is lower than a communication rate of the first communication link, wherein the main control module is further configured to: send second notification information to the relay device through the first communication link, to notify the relay device that an RF module of the terminal used for high-speed data transmission is to be disabled.
- The terminal according to claim 8, wherein the second communications module is further configured to: receive a wakeup packet sent by the relay device through the second communication link; instruct, based on the wakeup packet, the main control module to enable the CPU of the terminal; and instruct, based on the wakeup packet, the main control module to enable the first communication link.
- The terminal according to claim 8 or 9, wherein the disabling the first communication link comprises: disabling, by the first communications module, the RF module used for high-speed data transmission.
- The terminal according to claim 9 or 11, wherein the wakeup packet comprises a channel parameter of the first communication link; and the first communications module is further configured to: enable the first communication link based on the channel parameter, to perform service communication with the relay device through the first communication link.
- The terminal according to any one of claims 10 to 11, wherein the main control module is further configured to: negotiate with the relay device about a heartbeat period by using the first communication link; and the second communications module is specifically configured to receive the second keep-alive packet sent by the relay device through the second communication link based on the heartbeat period.
- A relay device, comprising a first communications module (801) and a second communications module (802), wherein the first communications module is configured to receive first notification information sent by a terminal through a first communication link, wherein the first notification information instructs the relay device to serve as a proxy for the terminal to send a first keep-alive packet to a cloud server to inform the cloud server that the terminal is online; the first communications module is further configured to serve as a proxy for the terminal to send a first keep-alive packet to the cloud server, so that the cloud server confirms that the terminal is online; characterised in that : the second communications module is configured to send a second keep-alive packet to the terminal through a second communication link; and the second communications module is further configured to: receive, through the second communication link, acknowledgement information that the second keep-alive packet was received by the terminal, and confirm, based on the acknowledgement information, that the terminal is online, wherein a communication rate of the second communication link is lower than a communication rate of the first communication link, wherein the first communication module is further configured to: receive, second notification information sent by the terminal through the first communication link; and set, based on the second notification information, the terminal to be in a connected state on the first communication link.
- A computer readable storage medium comprising instructions, which when executed by a processor, cause the processor to perform a method according to any one of claims 1 to 7.
Description
TECHNICAL FIELD This application relates to the communications field, and in particular, to a standby control method, a terminal, and a relay device. BACKGROUND In recent years, an Internet of things technology has developed rapidly, and has a promising prospect in such industries as intelligent manufacturing, smart home, the Internet of vehicles, logistics, transportation, and meter reading. Many Internet of things terminals are devices with built-in batteries. A relatively long working time needs to be maintained. In addition, to meet a service requirement, the terminal needs to quickly communicate with a cloud network in real time. This provides a relatively high technical requirement for the Internet of thing terminal to meet low power consumption and quick networking. The Internet of things terminal usually includes a main control module and a communications module. In the prior art, when the Internet of things terminal works normally, the main control module performs data processing, and the communications module obtains data from a router through a high-speed communication link and sends the data to the main control module, or sends data obtained through processing by the main control module to a router through a high-speed communication link. When the Internet of things terminal is in a standby mode, the main control module is powered off. However, to keep the Internet of things terminal capable of being quickly networked and being remotely woken up, the communications module periodically transmits a keep-alive packet to the router through the high-speed communication link, to keep a heartbeat connection. However, power consumption of transmitting the keep-alive packet through the high-speed communication link by the communications module is relatively high. Therefore, power consumption of the Internet of things terminal in the standby mode is relatively high. WO2012094131A1 a client terminal that relies on assistance from a proxy device. WO2012174006A1 described a method and apparatus are for maintaining communications connectivity for client applications that send keep-alive messages and network applications that send client-alive messages. WO2012018556A2 describes a distributed proxy and cache system, including, a local proxy on a mobile device for intercepting a data request made via a mobile device, and a proxy server coupled to the mobile device and a content server to which the data request is directed. US2009221261A1 describes a power conservation scheme for conserving power in client terminals by using a proxy server. SUMMARY This application provides a standby control method, to reduce power consumption of a terminal in a standby mode. Anaspect of the embodiments of this application provides a standby control method performed by a relay device in accordance with appended claim 1. According to the standby control method provided in the embodiments of this application, a relay device may keep a connection to the terminal by using the first communication link, and transmit business service data. When the terminal enters a standby mode, the terminal disables the first communication link, and a second communications module of the relay device performs a heartbeat keep-alive operation with a second communications module of the terminal by using the second communication link. The communication rate of the second communication link is lower than the communication rate of the first communication link. In comparison with a heartbeat keep-alive operation performed by using the first communication link when the terminal is in the standby mode, in the embodiments of this application, power consumption of the terminal in the standby mode is reduced. Based on the third aspect of the embodiments of this application, in a first implementation of the third aspect of the embodiments of this application, the method further includes: sending a wakeup packet to the terminal through the second communication link, so that the terminal enables the main control CPU and the first communication link based on the wakeup packet. According to the standby control method provided in the embodiments of this application, when the terminal is in the standby mode, the relay device may send the wakeup packet to the terminal through the second communication link, to wake up the terminal. Therefore, a specific manner of waking up the terminal is provided, so that the solution is more feasible. Based on the first implementation of the third aspect of the embodiments of this application, in a second implementation of the third aspect of the embodiments of this application, the enabling the first communication link includes enabling an RF module used for high-speed data transmission. According to the standby control method provided in the embodiments of this application, disabling the first communication link by the terminal may be disabling the RF module used for high-speed data transmission, and enabling the first communication l