WO2015077961A1 - 一种发送心跳消息的方法及移动终端 - Google Patents

一种发送心跳消息的方法及移动终端 Download PDF

Info

Publication number
WO2015077961A1
WO2015077961A1 PCT/CN2013/088067 CN2013088067W WO2015077961A1 WO 2015077961 A1 WO2015077961 A1 WO 2015077961A1 CN 2013088067 W CN2013088067 W CN 2013088067W WO 2015077961 A1 WO2015077961 A1 WO 2015077961A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
push message
modem
application
time point
Prior art date
Application number
PCT/CN2013/088067
Other languages
English (en)
French (fr)
Inventor
张岳
江鹏
张凯歌
Original Assignee
华为终端有限公司
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 华为终端有限公司 filed Critical 华为终端有限公司
Priority to PCT/CN2013/088067 priority Critical patent/WO2015077961A1/zh
Priority to US14/907,715 priority patent/US10154106B2/en
Priority to CN201380021064.3A priority patent/CN104904309B/zh
Priority to JP2016533778A priority patent/JP6226348B2/ja
Priority to KR1020167002944A priority patent/KR101840245B1/ko
Priority to EP13898387.9A priority patent/EP3013114B1/en
Publication of WO2015077961A1 publication Critical patent/WO2015077961A1/zh

Links

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/3209Monitoring remote activity, e.g. over telephone lines or network connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • 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/3293Power saving characterised by the action undertaken by switching to a less power-consuming processor, e.g. sub-CPU
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0229Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a wanted signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • H04W52/028Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof switching on or off only a part of the equipment circuit blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/58Message adaptation for wireless communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • 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
    • 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
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a method for transmitting a heartbeat message and a mobile terminal.
  • the push service is one of many terminal services.
  • the push service mainly refers to the connection between the terminal and the push service, and the connection is always maintained.
  • the connection can be used to send the message to the terminal in real time.
  • the mobile phone when the push function of the software is enabled, even if the software is turned off, the mobile phone can receive the session message sent by other terminals in real time and display it on the screen.
  • a Push Agent program is set on the Application Processor (AP) side.
  • the Push Agent is used to communicate with the provider server (Provider Server) of the application that has the push function enabled, and to check if a push message arrives.
  • the push server that provides the push service sends a push message arrival notification to the Push Agent through a long-held thread (Socket).
  • the Push Agent When no push message arrives within a certain period of time, the Push Agent needs to periodically wake up the AP to send a heartbeat message to the Push Server to maintain the Socket link.
  • a modem In the process of sending a heartbeat message, a modem (Modem) is also needed to translate the digital signal of the terminal into a pulse signal that can propagate along the air interface network.
  • the method of sending a heartbeat message needs to be performed by using both the AP and the Modem hardware architecture, and the power consumption is high, and the heartbeat is high.
  • the message needs to be sent periodically, which further leads to a larger average standby power consumption of the terminal and shortens the standby time of the terminal.
  • Summary of the invention provides a method for transmitting a heartbeat message and a mobile terminal, which implements a Push Agent on the Modem side, and does not wake up the AP when sending a heartbeat message, thereby solving the problem that the power consumption of the terminal is too large when transmitting the heartbeat message.
  • the specific plan is as follows:
  • the application provides a method for transmitting a heartbeat message, which is applied to a mobile terminal, where the mobile terminal includes at least an application processor and a modem, and the method includes:
  • the modem is woken up to send a heartbeat message to the server that pushes the service.
  • the method further includes:
  • the push message is sent to the application set on the application processor.
  • the method before the determining the application corresponding to the push message, the method further includes:
  • the determining the application corresponding to the push message specifically includes:
  • the method further includes:
  • the modem When the second time point arrives and no push message is received before the second time point arrives, the modem is woken up to send a heartbeat message to the server pushing the service.
  • the push message is After being sent to the application set on the application processor, the method further includes:
  • the application processor is set to enter a sleep state.
  • the method before the sending the sending message to the application set on the application processor, the method further includes:
  • the application processor is woken up when the application processor is in a sleep state.
  • the application provides a mobile terminal, where the mobile terminal includes at least an application processor and a modem, where the mobile terminal includes:
  • a determining unit configured to determine, according to a heartbeat message sending period, a first time point that needs to send a heartbeat message
  • a determining unit configured to determine whether a push message is received before the arrival of the first time point, to obtain a first determination result
  • a wake-up unit configured to: when the first determination result is no and the first time point comes, wake up the modem to send a heartbeat message to a server that pushes the service.
  • the terminal further includes: a push message parsing unit and a sending unit;
  • the push message parsing unit is configured to: after determining whether the push message is received, and after obtaining the first judgment result, when the first judgment result is yes, parsing the received push by the modem according to a preset protocol a message, obtaining content information corresponding to the push message;
  • the determining unit is further configured to determine, according to the content information, an application corresponding to the push message;
  • the sending unit is configured to send the push message to the application program set on the application processor.
  • the terminal further includes:
  • An obtaining unit configured to acquire program identification information in the content information before determining an application corresponding to the push message
  • the determining unit specifically includes:
  • the terminal further includes: a setting unit, configured to set the modem to enter after the wake-up modem sends a heartbeat message to a server that pushes a service Low power mode
  • the setting unit is further configured to set a second time point according to the heartbeat message sending period; when the second time point arrives and no push message is received before the second time point arrives, the modem is woken up Send a heartbeat message to the server that pushes the service.
  • the terminal further includes: a sleep mode setting unit, configured to send the push message to the set on the application processor After the application, the application processor is set to go to sleep.
  • a sleep mode setting unit configured to send the push message to the set on the application processor After the application, the application processor is set to go to sleep.
  • the wake-up unit is further configured to:
  • the application processor in the sleep state is woken up before the sending the push message to the application set on the application processor. It can be seen from the above technical solution that the method for transmitting a heartbeat message and the mobile terminal in the embodiment of the present application send a heartbeat message to the server that pushes the service by waking up the modem. It is not necessary to wake up the application processor, and the main power consumption for sending heartbeat messages is the power consumption of the modem. Compared with the prior art, since the application processor does not need to be woken up, the power consumption of the heartbeat message sent by the terminal can be reduced, thereby reducing the average standby power consumption of the terminal and prolonging the standby time of the terminal. DRAWINGS
  • Embodiment 1 is a flowchart of Embodiment 1 of a method for transmitting a heartbeat message according to the present application
  • Embodiment 2 is a flowchart of Embodiment 2 of a method for transmitting a heartbeat message according to the present application
  • Embodiment 1 of a mobile terminal of the present application is a structural diagram of Embodiment 1 of a mobile terminal of the present application.
  • FIG. 4 is a schematic diagram of a system architecture of the present application
  • FIG. 5 is a structural diagram of a computing node of the present application.
  • the method for sending a heartbeat message of the present application is applied to a mobile terminal.
  • the mobile terminal can include a mobile phone, a tablet, and the like.
  • the mobile terminal has a networking function, and can receive or upload data through a wireless fidelity (WiFi) method or a third-generation mobile communication technology (3rd-generation, 3G).
  • the mobile terminal includes at least an application processor (AP) and a modem (Modem).
  • the modem is configured to translate the digital signal of the mobile terminal into a pulse signal that can propagate along the air interface network, and can also translate the pulse signal of the air interface wireless network into a digital signal that the mobile terminal can recognize.
  • the application processor is a very large scale integrated circuit that extends audio and video functions and a dedicated interface on the cornerstone of a low power CPU. The application processor is primarily responsible for the operation of the application.
  • FIG. 1 is a flowchart of Embodiment 1 of a method for transmitting a heartbeat message according to the present application. As shown in Figure 1, the method can include:
  • Step 101 Determine a first time point of the heartbeat message to be sent according to the heartbeat message sending period.
  • the heartbeat message sending period may be set according to actual requirements, and may be several seconds or several tens of seconds. Assume that the last time the heartbeat message was sent is 10:10, and the heartbeat message transmission period is 30 seconds, then 10:10:10 and 30 seconds can be determined as the first time point when the heartbeat message needs to be sent.
  • the first time point is used to indicate the time point at which the heartbeat message needs to be sent after the shortest duration has elapsed since the start of step 101.
  • the above 4 ⁇ is taken as an example. 4: The time when the last heartbeat message is sent is 10:10, and the heartbeat message sending period is 30 seconds, then it can be determined that 10:10:30 and 30 seconds are required to send a heartbeat message. At the time point, 10:11 is also the time point at which the heartbeat message needs to be sent.
  • step 101 is started after the last heartbeat message is sent or the last push message is received.
  • Step 101 Before the arrival of the first time point, determine whether a push message is received, and obtain a first determination result;
  • a timer can be used to monitor whether the first time point is coming. During the timing, it is possible to determine in real time whether or not a push message sent by the server of the push service is received. If the push message is received, the first judgment result is YES; if the push message is not received, the first judgment result is no.
  • the push message After receiving the push message, the push message can be sent to the corresponding application set on the AP, processed by the corresponding application, and pushed and displayed.
  • a heartbeat message needs to be sent to the server pushing the service to maintain the connection with the server pushing the service.
  • Step 103 When the first determination result is no and the first time point comes, the modem is woken up to send a heartbeat message to the server that pushes the service.
  • the modem is awake, not the application processor.
  • the modem is in a low power mode prior to waking up.
  • the modem can send a heartbeat message to the server pushing the service to maintain a connection with the server pushing the service.
  • the method for sending a heartbeat message in this embodiment is: determining a first time point at which a heartbeat message needs to be sent; determining whether a push message is received before the first time point arrives; when no push is received
  • the wake-up modem sends a heartbeat message to the server that pushes the service.
  • the method for sending a heartbeat message in the prior art needs to wake up the application processor, send a heartbeat message to the modem through the application processor, and send the heartbeat message to the server through the modem, and the main power consumption for transmitting the heartbeat message is the application processor and the modem.
  • the sum of power consumption is the method in this embodiment does not need to wake up the application processor, and the main power consumption of sending the heartbeat message is the power consumption of the modem.
  • the method in this embodiment can reduce the power consumption of the heartbeat message sent by the terminal, thereby reducing the average standby power consumption of the terminal and extending the standby time of the terminal.
  • FIG. 2 is a flowchart of Embodiment 2 of a method for sending a heartbeat message according to the present application.
  • the process may include: Step 201: Determine, according to a heartbeat message sending period, a first time point that needs to send a heartbeat message; Step 202: Before the first time point arrives, determine whether a push message is received, and obtain a first judgment result. When the first determination result is no, step 203 is performed; when the first determination result is YES, step 204 is performed.
  • Step 203 When the first determination result is no and the first time point comes, the modem is woken up to send a heartbeat message to the server that pushes the service.
  • step 209 can be performed.
  • Step 204 When the first determination result is yes, parsing the received push message by using the modem according to a preset protocol, to obtain content information corresponding to the push message;
  • the preset protocol may be a 3rd Generation Partnership Project (3GPP) protocol or a Long Term Evolution (LTE) protocol. This depends on the type of protocol that is pre-set between the terminal and the server that sends the push message.
  • 3GPP 3rd Generation Partnership Project
  • LTE Long Term Evolution
  • the content information may include at least program identification information of the application, and may be an id number. Different applications correspond to different id numbers.
  • Step 205 Determine, according to the content information, an application corresponding to the push message. Specifically, the program identifier information in the content information may be acquired;
  • Step 206 Wake up the application processor in a sleep state.
  • the application processor Since the push message needs to be sent to the application set on the application processor, the application processor needs to be woken up, and the push message is processed after the application processor runs the application.
  • Step 207 Send the push message to the application set on the application processor.
  • the application can process the push message in a manner set by the program itself.
  • the processing can include: displaying the push message at a specified location; generating a link to the application such that when the user clicks on the push message displayed on the screen, the application can be launched.
  • Step 208 Set the application processor to enter a sleep state.
  • the application processor can be set to enter a sleep state. Dormancy The power consumption of the application processor can be reduced.
  • Step 209 Set the modem to enter a low power mode
  • the modem can also be set to enter a low power mode.
  • the low power mode the power consumption of the modem is low, and can be periodically woken up according to the heartbeat message sending period, and the heartbeat message can be sent after waking up.
  • Step 210 Set a second time point according to the heartbeat message sending period, so as to wake up the modem to push the service when the second time point arrives and the push message is not received before the second time point arrives.
  • the server sends a heartbeat message.
  • the heartbeat message transmission cycle can be restarted according to the heartbeat message sending period, and the time point after the timeout is reached is set to the second time point.
  • the application processor may be set to a sleep mode to reduce power consumption of the application processor; after the modem sends the heartbeat message, the modem may be set. In the low power mode, the power consumption of the mobile terminal is further reduced, and the standby time is extended.
  • the application also discloses a mobile terminal.
  • the mobile terminal can be a mobile phone or a tablet.
  • FIG. 3 is a structural diagram of Embodiment 1 of a mobile terminal of the present application. As shown in FIG. 3, the mobile terminal can include:
  • a determining unit 301 configured to determine, according to a heartbeat message sending period, a first time point at which a heartbeat message needs to be sent;
  • the determining unit 302 is configured to determine, before the arrival of the first time point, whether a push message is received, to obtain a first determination result
  • the waking unit 303 is configured to wake up the modem to send a heartbeat message to the server that pushes the service when the first determination result is no and the first time point comes.
  • the mobile terminal in this embodiment can reduce the power consumption of the heartbeat message sent by the terminal, thereby reducing the average standby power consumption of the terminal and prolonging the standby time of the terminal.
  • the terminal may further include: a push message parsing unit and a sending unit, where the push message parsing unit is configured to determine whether a push message is received, and obtain a first judgment. After the result, when the first determination result is YES, the received push message is parsed by the modem according to a preset protocol, and the content information corresponding to the push message is obtained;
  • the determining unit 301 is further configured to determine, according to the content information, an application corresponding to the push message;
  • the sending unit is configured to send the push message to the application program set on the application processor.
  • the terminal may further include:
  • An obtaining unit configured to acquire program identification information in the content information before determining an application corresponding to the push message
  • the determining unit 301 specifically includes:
  • Determining a subunit configured to determine an application corresponding to the program identification information.
  • the terminal may further include:
  • a setting unit configured to set the modem to enter a low power mode after the wake-up modem sends a heartbeat message to a server that pushes a service
  • the setting unit is further configured to set a second time point according to the heartbeat message sending period; when the second time point arrives and no push message is received before the second time point arrives, the modem is woken up Send a heartbeat message to the server that pushes the service.
  • the terminal may further include:
  • a sleep mode setting unit configured to set the application processor to enter a sleep state after transmitting the push message to the application set on the application processor.
  • the wakeup unit 303 is also used to:
  • the application processor in the sleep state is woken up before the sending the push message to the application set on the application processor.
  • the mobile terminal can include: an application processor 401, a modem 402, a push server 403, and an application provider server 404.
  • a push proxy 4021 is provided in the modem 402.
  • the application processor 401 is configured to execute an application set on the application processor 401.
  • Modem 402 can execute a Push Agent 4021 disposed on modem 402.
  • the push proxy 4021 may specifically include:
  • a determining unit 301 configured to determine, according to a heartbeat message sending period, a first time point at which a heartbeat message needs to be sent;
  • the determining unit 302 is configured to determine, before the arrival of the first time point, whether a push message is received, to obtain a first determination result
  • the waking unit 303 is configured to wake up the modem to send a heartbeat message to the server that pushes the service when the first determination result is no and the first time point comes.
  • each unit in the push agent 4021 refers to the corresponding unit in the embodiment shown in Figure 3, and the details are not described herein.
  • a communication interface can be established between the application processor 401 and the modem 402.
  • the application can register its own push service on the push agent 4021 through the communication interface.
  • the modem 402 side can implement a streamlined TCP/IP protocol stack, and the push agent 4021 on the modem 402 side can maintain the connection with the remote push server 403 through the TCP/IP protocol stack on the modem 402 side, and process push data (ie, push messages). And transmitting the data to the corresponding application through the interface of the application processor 401 and the modem 402.
  • the push proxy 4021 on the modem 402 side can periodically wake up the modem 402 without waking up the application processor 401, reducing the wakeup of the application processor 401, saving application processing after waking up the application processor 401.
  • the current consumed by the device 401 is not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not waking up the application processor 401, the push proxy 4021 on the modem 402 side.
  • the push proxy 4021 on the modem 402 side can periodically wake up the modem 402 without waking up the application processor 401, reducing the wakeup of the application processor 401, saving application processing after waking up the application processor 401.
  • the current consumed by the device 401 is not limited to, the push proxy 4021 on the modem 402 without waking up the application processor 401, reducing the wakeup of the application processor 401, saving application processing after waking up the application processor 401.
  • the message is first parsed from the 3GPP protocol stack on the modem 402 side, and the push proxy 4021 can parse the content information of the push message using the TCP/IP protocol stack on the modem 402 side, and then determine according to the content information. Which application the push message is sent to.
  • FIG. 5 is a structural diagram of a computing node of the present application.
  • the compute node 700 includes a processor 710, a Communications Interface 720, a memory 730, and a bus 740.
  • the processor 710, the communication interface 720, and the memory 730 complete communication with each other via the bus 740.
  • the processor 710 is configured to execute the program 732.
  • program 732 can include program code, the program code including computer operating instructions.
  • Processor 710 may be a central processing unit CPU or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.
  • ASIC Application Specific Integrated Circuit
  • the memory 730 is configured to store the program 732.
  • Memory 730 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk storage.
  • the program 732 may specifically include:
  • a determining unit 301 configured to determine, according to a heartbeat message sending period, a first time point at which a heartbeat message needs to be sent;
  • the determining unit 302 is configured to determine, before the arrival of the first time point, whether a push message is received, to obtain a first determination result
  • the waking unit 303 is configured to wake up the modem to send a heartbeat message to the server that pushes the service when the first determination result is no and the first time point comes.
  • each unit in the program 732 refers to the corresponding unit in the embodiment shown in FIG. 3, and details are not described herein.
  • the various embodiments in the present specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same similar parts between the various embodiments may be referred to each other.
  • the mobile terminal disclosed in the embodiment since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method part.
  • the steps of a method or algorithm described in connection with the embodiments disclosed herein may be implemented directly in hardware, a software module executed by a processor, or a combination of both.
  • the software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form known In the storage medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)
  • Communication Control (AREA)

Abstract

本发明公开了一种发送心跳消息的方法及移动终端。所述方法包括:根据心跳消息发送周期,确定需要发送心跳消息的第一时间点;在所述第一时间点到来之前,判断是否接收到推送消息,得到第一判断结果;当所述第一判断结果为否且所述第一时间点到来时,唤醒所述调制解调器向推送业务的服务器发送心跳消息。采用本发明的方法或移动终端,可以降低终端发送心跳消息的功耗,进而可以降低终端的平均待机功耗,延长终端的待机时间。

Description

一种发送心跳消息的方法及移动终端 技术领域
本发明涉及网络通信技术领域,尤其涉及一种发送心跳消息的方法及移动 终端。
背景技术
推送(Push )业务是时下众多终端业务中的一种。 推送业务主要是指终端 与推送业务的建立连接后,会一直保持这个连接, 当服务器有消息向终端发送 时, 可以采用这个连接将消息实时发送到终端上。
以安装有即时通信软件的手机为例, 当启用该软件的推送功能后, 即使该 软件处于关闭状态, 该手机也可以实时接收到其他终端发送来的会话消息, 并 显示在屏幕上。
推送业务的关键点之一是终端需要与服务器之间建立长连接。之所以称为 长连接,是因为终端需要一直保持该长连接与服务器之间的状态是连通的。现 有技术中, 保持长连接的方法主要是发送心跳消息。 具体的, 在应用处理器 ( Application Processor, AP )侧设置推送代理 ( Push Agent )程序。 Push Agent 用于与开启推送功能的应用程序的提供方的服务器(Provider Server )通信, 查询是否有推送消息到达。 当有推送消息到达时,提供推送业务的推送服务器 ( Push Server )会通过长时间保持的线程(Socket ) 向 Push Agent发送推送消 息到达通知。 当一定时间内没有推送消息到达时, Push Agent 需要定期唤醒 AP向 Push Server发送心跳消息来维持 Socket链接。在发送心跳消息的过程中, 还需要调用调制解调器 ( Modem )将终端的数字信号翻译成可沿空口网络传播 的脉冲信号。
由于在硬件层面, AP与 Modem是具有不同功能的两个芯片或结构, 因 此, 现有技术中, 发送心跳消息的方法需要同时采用 AP与 Modem两个硬件 架构执行, 功耗较高, 而心跳消息需要周期性发送, 这进一步导致终端的平均 待机功耗较大, 缩短了终端的待机时间。 发明内容 有鉴于此, 本发明提供一种发送心跳消息的方法及移动终端, 通过在 Modem侧实现 Push Agent, 在发送心跳消息时不再唤醒 AP , 从而解决了终端 发送心跳消息时功耗过大的问题。 其具体方案如下:
根据本申请的第一方面的第一种可能的实现方式,本申请提供一种发送心 跳消息的方法,应用于移动终端中, 所述移动终端至少包括应用处理器和调制 解调器, 所述方法包括:
根据心跳消息发送周期, 确定需要发送心跳消息的第一时间点; 在所述第一时间点到来之前, 判断是否接收到推送消息,得到第一判断结 果;
当所述第一判断结果为否且所述第一时间点到来时,唤醒所述调制解调器 向推送业务的服务器发送心跳消息。
结合第一方面的第二种可能的实现方式,在判断是否接收到推送消息,得 到第一判断结果之后, 所述方法还包括:
当所述第一判断结果为是时,通过所述调制解调器按照预设协议解析接收 到的所述推送消息, 得到所述推送消息对应的内容信息;
根据所述内容信息, 确定所述推送消息对应的应用程序;
将所述推送消息发送至设置在所述应用处理器上的所述应用程序。
结合第一方面的第二种可能的实现方式的第一种具体实施方式,所述确定 所述推送消息对应的应用程序之前, 还包括:
获取所述内容信息中的程序标识信息;
所述确定所述推送消息对应的应用程序, 具体包括:
确定所述程序标识信息对应的应用程序。
结合第一方面的三种可能的实现方式中的任意一种,所述唤醒所述调制解 调器向推送业务的服务器发送心跳消息之后, 还包括:
设置所述调制解调器进入低功耗模式;
按照所述心跳消息发送周期设置第二时间点;
当所述第二时间点到来且在所述第二时间点到来之前没有接收到推送消 息时, 唤醒所述调制解调器向推送业务的服务器发送心跳消息。
结合第一方面的第二种可能的实现方式的任意一种,所述将所述推送消息 发送至设置在所述应用处理器上的所述应用程序之后, 还包括:
设置所述应用处理器进入休眠状态。
结合第一方面的第二种可能的实现方式的任意一种,所述将所述推送消息 发送至设置在所述应用处理器上的所述应用程序之前, 还包括:
当所述应用处理器处于休眠状态时, 唤醒所述应用处理器。 根据本申请的第二方面的第一种可能的实现方式, 本申请提供移动终端, 所述移动终端至少包括应用处理器和调制解调器, 所述移动终端包括:
确定单元, 用于根据心跳消息发送周期,确定需要发送心跳消息的第一时 间点;
判断单元, 用于在所述第一时间点到来之前, 判断是否接收到推送消息, 得到第一判断结果;
唤醒单元, 用于当所述第一判断结果为否且所述第一时间点到来时, 唤醒 所述调制解调器向推送业务的服务器发送心跳消息。
结合第二方面的第二种可能的实现方式, 所述终端还包括: 推送消息解析 单元和发送单元;
所述推送消息解析单元, 用于在判断是否接收到推送消息,得到第一判断 结果之后, 当所述第一判断结果为是时,通过所述调制解调器按照预设协议解 析接收到的所述推送消息, 得到所述推送消息对应的内容信息;
所述确定单元,还用于根据所述内容信息,确定所述推送消息对应的应用 程序;
所述发送单元,用于将所述推送消息发送至设置在所述应用处理器上的所 述应用程序。
结合第二方面的第二种可能的实现方式的第一种具体实施方式,所述终端 还包括:
获取单元, 用于在确定所述推送消息对应的应用程序之前, 获取所述内容 信息中的程序标识信息;
所述确定单元, 具体包括:
确定子单元, 用于确定所述程序标识信息对应的应用程序。 结合第二方面的三种可能的实现方式中的任意一种, 所述终端还包括: 设置单元,用于在所述唤醒所述调制解调器向推送业务的服务器发送心跳 消息之后, 设置所述调制解调器进入低功耗模式;
所述设置单元, 还用于按照所述心跳消息发送周期设置第二时间点; 当所述第二时间点到来且在所述第二时间点到来之前没有接收到推送消 息时, 唤醒所述调制解调器向推送业务的服务器发送心跳消息。
结合第二方面的第二种可能的实现方式中的任意一种, 所述终端还包括: 休眠模式设置单元,用于在将所述推送消息发送至设置在所述应用处理器 上的所述应用程序之后, 设置所述应用处理器进入休眠状态。
结合第二方面的第二种可能的实现方式中的任意一种,所述唤醒单元还用 于:
在所述将所述推送消息发送至设置在所述应用处理器上的所述应用程序 之前, 唤醒处于休眠状态的所述应用处理器。 从上述的技术方案可以看出,本申请实施例的发送心跳消息的方法及移动 终端,通过唤醒调制解调器向推送业务的服务器发送心跳消息。可以不需要唤 醒应用处理器,发送心跳消息的主要功耗为调制解调器的功耗。 与现有技术相 比, 由于不需要唤醒应用处理器, 所以可以降低终端发送心跳消息的功耗, 进 而可以降低终端的平均待机功耗, 延长终端的待机时间。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲,在不付 出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1为本申请的发送心跳消息的方法实施例 1的流程图;
图 2为本申请的发送心跳消息的方法实施例 2的流程图;
图 3为本申请的移动终端实施例 1的结构图;
图 4为本申请的系统架构示意图; 图 5为本申请的计算节点的结构图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有做出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。 本申请的发送心跳消息的方法,应用于移动终端中。 所述移动终端可以包 括手机,平板电脑等。所述移动终端具有联网功能,可以通过无线保真(wireless fidelity, WiFi )方式或者第三代移动通信技术( 3rd-generation, 3G )方式接收 或上传数据。 所述移动终端至少包括应用处理器( Application Processor, AP ) 和调制解调器(Modem )。 所述调制解调器, 用于把移动终端的数字信号翻译 成可沿空口网络传播的脉冲信号,同时也可以把空口无线网络的脉冲信号翻译 成移动终端可以识别的数字信号。 所述应用处理器是在低功耗 CPU的基石出上 扩展音视频功能和专用接口的超大规模集成电路。所述应用处理器主要负责应 用程序的运行。 图 1为本申请的发送心跳消息的方法实施例 1的流程图。如图 1所示, 该 方法可以包括:
步骤 101 :根据心跳消息发送周期,确定需要发送心跳消息的第一时间点; 所述心跳消息发送周期可以根据实际需求进行设定, 可以是几秒,也可以 是几十秒。假设上一次发送心跳消息的时间为 10点 10分整, 心跳消息发送周 期为 30秒,则可以确定 10点 10分零 30秒为需要发送心跳消息的第一时间点。
所述第一时间点用于表示从开始执行步骤 101的时刻起,经过最短的时长 所到达的需要发送心跳消息的时间点。 同样以上面的 4叚设为例, 4叚设上一次发 送心跳消息的时间为 10点 10分整, 心跳消息发送周期为 30秒, 则可以确定 10点 10分零 30秒为需要发送心跳消息的时间点, 10点 11分整也是需要发送 心跳消息的时间点。在本实施例中, 步骤 101是在上一次心跳消息发送完毕或 者上一次推送消息接收完毕以后开始执行的。假设在 10点 10分整之后立即执 行步骤 101 , 则可以确定经过最短的时长所到达的需要发送心跳消息的时间点 为 10点 10分零 30秒。 即 10点 10分零 30秒为第一时间点。 步骤 102: 在所述第一时间点到来之前, 判断是否接收到推送消息, 得到 第一判断结果;
确定第一时间点之后, 可以采用计时器进行计时, 以便监测第一时间点是 否到来。在计时过程中, 可以实时判断是否接收到推送业务的服务器发送来的 推送消息。 如果接收到推送消息, 则第一判断结果为是; 如果没有接收到推送 消息, 则第一判断结果为否。
当接收到推送消息后, 可以将推送消息发送至设置在 AP上的对应的应用 程序, 由对应的应用程序进行处理并进行推送显示。
当没有接收到推送消息时, 则需要向推送业务的服务器发送心跳消息, 以 便保持与推送业务的服务器的连接。
步骤 103: 当所述第一判断结果为否且所述第一时间点到来时, 唤醒所述 调制解调器向推送业务的服务器发送心跳消息。
本步骤中, 唤醒的是调制解调器, 而不是应用处理器。 所述调制解调器在 唤醒之前处于低功耗模式。 唤醒所述调制解调器之后, 所述调制解调器可以向 推送业务的服务器发送心跳消息, 以便保持与推送业务的服务器的连接。
综上所述, 本实施例的发送心跳消息的方法是, 通过确定需要发送心跳消 息的第一时间点; 在所述第一时间点到来之前, 判断是否接收到推送消息; 当 没有接收到推送消息时, 唤醒调制解调器向推送业务的服务器发送心跳消息。 现有技术中发送心跳消息的方法需要唤醒应用处理器,通过应用处理器发送心 跳消息至调制解调器,再通过调制解调器将心跳消息发送至服务器,发送心跳 消息的主要功耗为应用处理器与调制解调器两者的功耗之和。而本实施例中的 方法不需要唤醒应用处理器, 发送心跳消息的主要功耗为调制解调器的功耗。
与现有技术相比, 由于不需要唤醒应用处理器, 所以本实施例的方法可以 降低终端发送心跳消息的功耗, 进而可以降低终端的平均待机功耗,延长终端 的待机时间。
需要说明的是,本申请中各个实施例中的应用处理器与调制解调器均可以 是单独的两个芯片,也可以是同一芯片中的不同硬件结构。本申请中各个实施 例的方法对应的程序均在调制解调器一侧实现。 具体的, 所述程序可以采用 C 语言编写, 并保存在调制解调器的存储空间中。 图 2为本申请的发送心跳消息的方法实施例 2的流程图。该流程可以包括: 步骤 201 :根据心跳消息发送周期,确定需要发送心跳消息的第一时间点; 步骤 202: 在所述第一时间点到来之前, 判断是否接收到推送消息, 得到 第一判断结果; 当所述第一判断结果为否时, 执行步骤 203 ; 当所述第一判断 结果为是时, 执行步骤 204。
步骤 203: 当所述第一判断结果为否且所述第一时间点到来时, 唤醒所述 调制解调器向推送业务的服务器发送心跳消息。
心跳消息发送完毕后可以执行步骤 209。
步骤 204: 当所述第一判断结果为是时, 通过所述调制解调器按照预设协 议解析接收到的所述推送消息, 得到所述推送消息对应的内容信息;
所述预设协议, 可以是第三代合作伙伴项目 (3GPP )协议, 也可以是长 期演进(Long Term Evolution, LTE )协议。 这取决于终端与发送推送消息的 服务器之间采用的预先设定的协议的类型。
所述内容信息至少可以包括应用程序的程序标识信息, 具体可以是 id号。 不同的应用程序对应不同的 id号。
步骤 205: 根据所述内容信息, 确定所述推送消息对应的应用程序; 具体的, 可以获取所述内容信息中的程序标识信息;
确定所述程序标识信息对应的应用程序。
步骤 206: 唤醒处于休眠状态的所述应用处理器。
因为需要将推送消息发送至设置在所述应用处理器上的所述应用程序,所 以需要唤醒所述应用处理器, 由应用处理器运行所述应用程序后,对所述推送 消息进行处理。
步骤 207: 将所述推送消息发送至设置在所述应用处理器上的所述应用程 序。
所述应用程序可以按照程序本身设定的方式对推送消息进行处理。所述处 理可以包括:在指定的位置显示所述推送消息;生成对于所述应用程序的链接, 以便用户点击屏幕上显示的所述推送消息时, 可以启动所述应用程序。
步骤 208: 设置所述应用处理器进入休眠状态。
推送消息发送完毕后, 可以设置所述应用处理器进入休眠状态。休眠状态 下, 可以降低所述应用处理器的功耗。
步骤 209: 设置所述调制解调器进入低功耗模式;
推送消息发送完毕或者心跳消息发送完毕后,还可以设置所述调制解调器 进入低功耗模式。 在低功耗模式下, 所述调制解调器的功耗较低, 并且可以按 照心跳消息发送周期被定期唤醒, 唤醒后可以发送心跳消息。
步骤 210: 按照所述心跳消息发送周期设置第二时间点, 以便在所述第二 时间点到来且在所述第二时间点到来之前没有接收到推送消息时,唤醒所述调 制解调器向推送业务的服务器发送心跳消息。
当推送消息发送完毕或者心跳消息发送完毕后,均可以按照所述心跳消息 发送周期重新开始计时, 将计时结束后到达的时间点设置为第二时间点。
本实施例中,在应用处理器对所述推送消息处理完毕之后, 可以将所述应 用处理器设置为休眠模式, 降低应用处理器的功耗; 在调制解调器发送完毕心 跳消息后,可以将调制解调器设置为低功耗模式,进一步降低移动终端的功耗, 延长待机时间。 本申请还公开了一种移动终端。 所述移动终端可以是手机或者平板电脑。 图 3为本申请的移动终端实施例 1的结构图。如图 3所示, 该移动终端可以包 括:
确定单元 301 , 用于根据心跳消息发送周期, 确定需要发送心跳消息的第 一时间点;
判断单元 302, 用于在所述第一时间点到来之前, 判断是否接收到推送消 息, 得到第一判断结果;
唤醒单元 303 , 用于当所述第一判断结果为否且所述第一时间点到来时, 唤醒所述调制解调器向推送业务的服务器发送心跳消息。
与现有技术相比, 由于不需要唤醒应用处理器, 所以本实施例的移动终端 可以降低终端发送心跳消息的功耗, 进而可以降低终端的平均待机功耗,延长 终端的待机时间。
实际应用中, 所述终端还可以包括: 推送消息解析单元和发送单元; 所述推送消息解析单元, 用于在判断是否接收到推送消息,得到第一判断 结果之后, 当所述第一判断结果为是时,通过所述调制解调器按照预设协议解 析接收到的所述推送消息, 得到所述推送消息对应的内容信息;
所述确定单元 301 , 还用于根据所述内容信息, 确定所述推送消息对应的 应用程序;
所述发送单元,用于将所述推送消息发送至设置在所述应用处理器上的所 述应用程序。
所述终端还可以包括:
获取单元, 用于在确定所述推送消息对应的应用程序之前, 获取所述内容 信息中的程序标识信息;
所述确定单元 301 , 具体包括:
确定子单元, 用于确定所述程序标识信息对应的应用程序。
所述终端还可以包括:
设置单元,用于在所述唤醒所述调制解调器向推送业务的服务器发送心跳 消息之后, 设置所述调制解调器进入低功耗模式;
所述设置单元, 还用于按照所述心跳消息发送周期设置第二时间点; 当所述第二时间点到来且在所述第二时间点到来之前没有接收到推送消 息时, 唤醒所述调制解调器向推送业务的服务器发送心跳消息。
实际应用中, 所述终端还可以包括:
休眠模式设置单元,用于在将所述推送消息发送至设置在所述应用处理器 上的所述应用程序之后, 设置所述应用处理器进入休眠状态。 实际应用中, 所 述唤醒单元 303还用于:
在所述将所述推送消息发送至设置在所述应用处理器上的所述应用程序 之前, 唤醒处于休眠状态的所述应用处理器。
图 4为本申请的系统架构示意图。 如图 4所示, 该移动终端可以包括: 应用处理器 401 , 调制解调器 402, 推送服务器 403和应用程序提供方服 务器 404。 所述调制解调器 402中设置有推送代理程序 4021。
其中, 应用处理器 401 , 用于执行设置在应用处理器 401上的应用程序。 调制解调器 402可以执行设置在调制解调器 402上的推送代理程序 ( Push Agent ) 4021。 具体地, 所述推送代理程序 4021具体可以包括:
确定单元 301 , 用于根据心跳消息发送周期, 确定需要发送心跳消息的第 一时间点;
判断单元 302, 用于在所述第一时间点到来之前, 判断是否接收到推送消 息, 得到第一判断结果;
唤醒单元 303 , 用于当所述第一判断结果为否且所述第一时间点到来时, 唤醒所述调制解调器向推送业务的服务器发送心跳消息。
推送代理程序 4021中各单元的具体实现参见图 3所示实施例中的相应单 元, 在此不赘述„
实际应用中,可以在应用处理器 401与调制解调器 402之间建立一个通信 接口。 应用程序可以通过该通信接口将自身的推送业务在推送代理程序 4021 上进行注册。 调制解调器 402侧可以实现一个精简的 TCP/IP协议栈, 调制解 调器 402侧的推送代理程序 4021可以通过调制解调器 402侧的 TCP/IP协议栈 维持与远端推送服务器 403的连接, 处理推送数据 (即推送消息 )并将数据通 过应用处理器 401与调制解调器 402的接口发送给对应的应用程序。
当没有推送消息到来时, 调制解调器 402侧的推送代理程序 4021可以定 期唤醒调制解调器 402, 而不必唤醒应用处理器 401 , 减少了应用处理器 401 唤醒这一环节, 节省了唤醒应用处理器 401后应用处理器 401消耗的电流。
当有推送消息到来时, 消息首先从调制解调器 402侧的 3GPP协议栈解析 出,推送代理程序 4021可以使用调制解调器 402侧的 TCP/IP协议栈解析出推 送消息的内容信息, 再根据内容信息确定应该把推送消息发送给哪个应用程 序。
图 5为本申请的计算节点的结构图。 如图 5所示, 计算节点 700包括: 处理器(processor ) 710, 通信接口 ( Communications Interface ) 720, 存 储器(memory ) 730, 总线 740。
处理器 710,通信接口 720,存储器 730通过总线 740完成相互间的通信。 处理器 710, 用于执行程序 732。
具体地,程序 732可以包括程序代码,所述程序代码包括计算机操作指令。 处理器 710 可能是一个中央处理器 CPU , 或者是特定集成电路 ASIC ( Application Specific Integrated Circuit ),或者是被配置成实施本申请实施例的 一个或多个集成电路。
存储器 730, 用于存放程序 732。 存储器 730可能包含高速 RAM存储器, 也可能还包括非易失性存储器( non-volatile memory ), 例如至少一个磁盘存储 器。 程序 732具体可以包括:
确定单元 301 , 用于根据心跳消息发送周期, 确定需要发送心跳消息的第 一时间点;
判断单元 302, 用于在所述第一时间点到来之前, 判断是否接收到推送消 息, 得到第一判断结果;
唤醒单元 303 , 用于当所述第一判断结果为否且所述第一时间点到来时, 唤醒所述调制解调器向推送业务的服务器发送心跳消息。
程序 732中各单元的具体实现参见图 3所示实施例中的相应单元,在此不 贅述。 本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是 与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于 实施例公开的移动终端而言, 由于其与实施例公开的方法相对应, 所以描述的 比较简单, 相关之处参见方法部分说明即可。
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例 的单元及算法步骤,能够以电子硬件或者电子硬件与计算机软件相结合的方式 来实现。 为了清楚地说明部分硬件和软件的可互换性,在上述说明中已经按照 功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软硬件结 合的方式来执行,取决于技术方案的特定应用和设计约束条件。 专业技术人员 应认为超出本发明的范围。
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处 理器执行的软件模块, 或者二者的结合来实施。软件模块可以置于随机存储器 ( RAM )、内存、只读存储器 ( ROM )、电可编程 ROM、电可擦除可编程 ROM, 寄存器、 硬盘、 可移动磁盘、 CD-ROM, 或技术领域内所公知的任意其它形式 的存储介质中。
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本 发明。 对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见 的, 本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下, 在 其它实施例中实现。 因此, 本发明将不会被限制于本文所示的这些实施例, 而 是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。
+

Claims

权 利 要 求
1、 一种发送心跳消息的方法, 应用于移动终端中, 所述移动终端至少包 括应用处理器和调制解调器, 其特征在于, 所述方法包括:
根据心跳消息发送周期, 确定需要发送心跳消息的第一时间点; 在所述第一时间点到来之前, 判断是否接收到推送消息,得到第一判断结 果;
当所述第一判断结果为否且所述第一时间点到来时,唤醒所述调制解调器 向推送业务的服务器发送心跳消息。
2、 根据权利要求 1所述的方法, 其特征在于, 在判断是否接收到推送消 息, 得到第一判断结果之后, 所述方法还包括:
当所述第一判断结果为是时,通过所述调制解调器按照预设协议解析接收 到的所述推送消息, 得到所述推送消息对应的内容信息;
根据所述内容信息, 确定所述推送消息对应的应用程序;
将所述推送消息发送至设置在所述应用处理器上的所述应用程序。
3、 根据权利要求 2所述的方法, 其特征在于, 所述确定所述推送消息对 应的应用程序之前, 还包括:
获取所述内容信息中的程序标识信息;
所述确定所述推送消息对应的应用程序, 具体包括:
确定所述程序标识信息对应的应用程序。
4、 根据权利要求 1-3任一项所述的方法, 其特征在于, 所述唤醒 所述调 制解调器向推送业务的服务器发送心跳消息之后, 还包括:
设置所述调制解调器进入低功耗模式;
按照所述心跳消息发送周期设置第二时间点;
当所述第二时间点到来且在所述第二时间点到来之前没有接收到推送消 息时, 唤醒所述调制解调器向推送业务的服务器发送心跳消息。
5、 根据权利要求 2-3任一项所述的方法, 其特征在于, 所述将所述推送 消息发送至设置在所述应用处理器上的所述应用程序之后, 还包括:
设置所述应用处理器进入休眠状态。
6、 根据权利要求 2-3任一项所述的方法, 其特征在于, 所述将所述推送 消息发送至设置在所述应用处理器上的所述应用程序之前, 还包括: 当所述应用处理器处于休眠状态时, 唤醒所述应用处理器。
7、 一种移动终端, 所述移动终端至少包括应用处理器和调制解调器, 其 特征在于, 所述移动终端包括:
确定单元, 用于根据心跳消息发送周期,确定需要发送心跳消息的第一时 间点;
判断单元, 用于在所述第一时间点到来之前, 判断是否接收到推送消息, 得到第一判断结果;
唤醒单元, 用于当所述第一判断结果为否且所述第一时间点到来时, 唤醒 所述调制解调器向推送业务的服务器发送心跳消息。
8、 根据权利要求 7所述的终端, 其特征在于, 所述终端还包括: 推送消 息解析单元和发送单元;
所述推送消息解析单元, 用于在判断是否接收到推送消息,得到第一判断 结果之后, 当所述第一判断结果为是时,通过所述调制解调器按照预设协议解 析接收到的所述推送消息, 得到所述推送消息对应的内容信息;
所述确定单元,还用于根据所述内容信息,确定所述推送消息对应的应用 程序;
所述发送单元,用于将所述推送消息发送至设置在所述应用处理器上的所 述应用程序。
9、 根据权利要求 8所述的终端, 其特征在于, 所述终端还包括: 获取单元, 用于在确定所述推送消息对应的应用程序之前, 获取所述内容 信息中的程序标识信息;
所述确定单元, 具体包括:
确定子单元, 用于确定所述程序标识信息对应的应用程序。
10、根据权利要求 7-9任一项所述的终端,其特征在于,所述终端还包括: 设置单元,用于在所述唤醒所述调制解调器向推送业务的服务器发送心跳 消息之后, 设置所述调制解调器进入低功耗模式;
所述设置单元, 还用于按照所述心跳消息发送周期设置第二时间点; 当所述第二时间点到来且在所述第二时间点到来之前没有接收到推送消 息时, 唤醒所述调制解调器向推送业务的服务器发送心跳消息。
11、 根据权利要求 8-9所述的终端, 其特征在于, 所述终端还包括: 休眠模式设置单元,用于在将所述推送消息发送至设置在所述应用处理器 上的所述应用程序之后, 设置所述应用处理器进入休眠状态。
12、 根据权利要求 8-9任一项所述的终端, 其特征在于, 所述唤醒单元还 用于:
在所述将所述推送消息发送至设置在所述应用处理器上的所述应用程序 之前, 唤醒处于休眠状态的所述应用处理器。
+
PCT/CN2013/088067 2013-11-28 2013-11-28 一种发送心跳消息的方法及移动终端 WO2015077961A1 (zh)

Priority Applications (6)

Application Number Priority Date Filing Date Title
PCT/CN2013/088067 WO2015077961A1 (zh) 2013-11-28 2013-11-28 一种发送心跳消息的方法及移动终端
US14/907,715 US10154106B2 (en) 2013-11-28 2013-11-28 Method for sending heartbeat message and mobile terminal
CN201380021064.3A CN104904309B (zh) 2013-11-28 2013-11-28 一种发送心跳消息的方法及移动终端
JP2016533778A JP6226348B2 (ja) 2013-11-28 2013-11-28 ハートビートメッセージを送信するための方法、及び携帯端末
KR1020167002944A KR101840245B1 (ko) 2013-11-28 2013-11-28 하트비트 메시지를 송신하는 방법 및 이동 단말기
EP13898387.9A EP3013114B1 (en) 2013-11-28 2013-11-28 Method for sending heartbeat message and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/088067 WO2015077961A1 (zh) 2013-11-28 2013-11-28 一种发送心跳消息的方法及移动终端

Publications (1)

Publication Number Publication Date
WO2015077961A1 true WO2015077961A1 (zh) 2015-06-04

Family

ID=53198208

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/088067 WO2015077961A1 (zh) 2013-11-28 2013-11-28 一种发送心跳消息的方法及移动终端

Country Status (6)

Country Link
US (1) US10154106B2 (zh)
EP (1) EP3013114B1 (zh)
JP (1) JP6226348B2 (zh)
KR (1) KR101840245B1 (zh)
CN (1) CN104904309B (zh)
WO (1) WO2015077961A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106941713A (zh) * 2017-05-16 2017-07-11 努比亚技术有限公司 一种降低移动终端功耗的方法及其装置
WO2021062867A1 (en) * 2019-10-02 2021-04-08 Qualcomm Incorporated Application heartbeat signal optimization
CN115134404A (zh) * 2021-03-22 2022-09-30 花瓣云科技有限公司 管理推送连接的方法和电子设备

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
USRE49652E1 (en) 2013-12-16 2023-09-12 Qualcomm Incorporated Power saving techniques in computing devices
US10028216B2 (en) * 2014-07-24 2018-07-17 Huawei Technologies Co., Ltd. Data transceiving method, modem, and terminal device
CN105392187A (zh) * 2014-09-04 2016-03-09 中兴通讯股份有限公司 一种即时通讯应用程序管理方法、装置及其移动终端
CN107872495B (zh) * 2016-09-28 2020-06-26 腾讯科技(深圳)有限公司 一种信息处理方法及终端设备
CN107182110A (zh) * 2017-04-07 2017-09-19 北京安云世纪科技有限公司 一种降低功耗的方法、装置及移动终端
US11122127B2 (en) * 2017-08-28 2021-09-14 Qualcomm Incorporated Techniques and apparatuses for modem-assisted heartbeat transmission
US10979343B2 (en) * 2017-11-21 2021-04-13 Charter Communications Operating, Llc Methods and apparatus for supporting network access using cable and radio communications links
US11115317B1 (en) 2018-01-05 2021-09-07 Open Invention Network Llc EMS assisted split-brain resolution in virtual network function components
CN109039971B (zh) * 2018-08-20 2021-03-05 深圳市银河风云网络系统股份有限公司 一种数据发送方法及装置
CN114554519A (zh) * 2020-11-26 2022-05-27 中国电信股份有限公司 报文处理方法和系统、终端及计算机可读存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420775A (zh) * 2008-11-13 2009-04-29 华为技术有限公司 一种通信装置及信号传递方法
CN102523178A (zh) * 2011-12-20 2012-06-27 华为技术有限公司 一种基于推送的心跳消息发送方法和终端
CN103369001A (zh) * 2012-03-29 2013-10-23 北京百度网讯科技有限公司 用于移动终端的接收推送的消息的方法、装置及移动终端

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005064673A (ja) * 2003-08-08 2005-03-10 Renesas Technology Corp プロトコル処理装置
US8005065B2 (en) * 2007-09-11 2011-08-23 Qualcomm Incorporated Keep-alive for wireless networks
KR101008473B1 (ko) * 2008-10-30 2011-01-14 삼성전기주식회사 수면모드와 활성모드를 포함하는 지그비 디바이스 및 수면모드를 포함하는 웨이크업 방법
TWI388169B (zh) * 2009-07-10 2013-03-01 Acer Inc Wireless communication device and its power saving method
US8504889B2 (en) * 2010-11-12 2013-08-06 Qualcomm Incorporated Sleep clock error recovery scheme
JP5630339B2 (ja) * 2011-03-14 2014-11-26 村田機械株式会社 通信装置及び画像処理装置
US9049660B2 (en) * 2011-09-09 2015-06-02 Microsoft Technology Licensing, Llc Wake pattern management
KR20130035533A (ko) 2011-09-30 2013-04-09 엘지전자 주식회사 이동 단말기, 서버 및 서버의 제어 방법
US9787463B2 (en) * 2011-10-14 2017-10-10 Maxlinear, Inc. Method and system for server-side message handling in a low-power wide area network
US8307234B2 (en) * 2012-01-14 2012-11-06 Intel Corporation Maintaining connectivity during low power operation
US9749435B2 (en) * 2012-01-20 2017-08-29 Apple Inc. Proxy-based push service
US20130238915A1 (en) 2012-03-12 2013-09-12 Broadcom Corporation Application processor wake-up suppression

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420775A (zh) * 2008-11-13 2009-04-29 华为技术有限公司 一种通信装置及信号传递方法
CN102523178A (zh) * 2011-12-20 2012-06-27 华为技术有限公司 一种基于推送的心跳消息发送方法和终端
CN103369001A (zh) * 2012-03-29 2013-10-23 北京百度网讯科技有限公司 用于移动终端的接收推送的消息的方法、装置及移动终端

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106941713A (zh) * 2017-05-16 2017-07-11 努比亚技术有限公司 一种降低移动终端功耗的方法及其装置
WO2021062867A1 (en) * 2019-10-02 2021-04-08 Qualcomm Incorporated Application heartbeat signal optimization
CN115134404A (zh) * 2021-03-22 2022-09-30 花瓣云科技有限公司 管理推送连接的方法和电子设备
CN115134404B (zh) * 2021-03-22 2024-01-30 花瓣云科技有限公司 管理推送连接的方法和电子设备

Also Published As

Publication number Publication date
JP6226348B2 (ja) 2017-11-08
EP3013114B1 (en) 2018-04-18
JP2016536892A (ja) 2016-11-24
EP3013114A1 (en) 2016-04-27
CN104904309B (zh) 2019-04-05
US20160164990A1 (en) 2016-06-09
KR101840245B1 (ko) 2018-03-20
US10154106B2 (en) 2018-12-11
KR20160027981A (ko) 2016-03-10
EP3013114A4 (en) 2016-09-14
CN104904309A (zh) 2015-09-09

Similar Documents

Publication Publication Date Title
WO2015077961A1 (zh) 一种发送心跳消息的方法及移动终端
US10552216B2 (en) Application heartbeat period adjusting method and apparatus, and terminal
US9198217B2 (en) Method for maintaining connection between terminal and network server, terminal and network server
KR100958230B1 (ko) 이동 단말로의 콘텐츠 전송 스케줄 전송
US9904345B2 (en) Data processing method, modem, and terminal
TWI388169B (zh) Wireless communication device and its power saving method
JP5499735B2 (ja) 携帯端末
WO2015061957A1 (zh) 一种业务代理的方法、调制解调器及终端
WO2014101893A1 (zh) 设备发现方法、装置及系统
CN111436098A (zh) 通信方法及装置
TW201826826A (zh) 一種參數配置方法及設備
TWI475911B (zh) 網路搜尋方法及使用此方法的行動電子裝置
JP2008270918A (ja) パケット受信装置
CN113347691A (zh) 数据传输的方法及装置
TWI590603B (zh) 機器類型通訊裝置、服務網路、及週期性更新計時器之設定方法
CN111935803A (zh) 一种基于ZigBee通信协议的设备唤醒方法及装置
WO2022022637A1 (zh) 寻呼消息的监听方法及装置、终端和可读存储介质
CN113141626B (zh) 事件发送方法、系统、终端设备以及相关装置
WO2021258962A1 (zh) 数据下发方法、设备和存储介质
WO2023173445A1 (zh) 一种通信方法、通信装置及通信设备
WO2024093774A1 (zh) 数据接收、信息传输方法、装置、终端及网络侧设备
CN108574974B (zh) 一种无线接入方法、相关设备及系统
US20150156166A1 (en) Communication method and mobile electronic device using the same
WO2014134978A1 (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: 13898387

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2013898387

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 14907715

Country of ref document: US

ENP Entry into the national phase

Ref document number: 20167002944

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2016533778

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE