WO2017000247A1 - 一种终端与网络设备交互的方法和终端 - Google Patents

一种终端与网络设备交互的方法和终端 Download PDF

Info

Publication number
WO2017000247A1
WO2017000247A1 PCT/CN2015/082884 CN2015082884W WO2017000247A1 WO 2017000247 A1 WO2017000247 A1 WO 2017000247A1 CN 2015082884 W CN2015082884 W CN 2015082884W WO 2017000247 A1 WO2017000247 A1 WO 2017000247A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
heartbeat
network device
network
response
Prior art date
Application number
PCT/CN2015/082884
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
Priority to CN201580081397.4A priority Critical patent/CN107736000B/zh
Priority to BR112017022004A priority patent/BR112017022004A2/pt
Priority to EP15896778.6A priority patent/EP3270566B1/en
Priority to BR122017025025A priority patent/BR122017025025A2/pt
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to AU2015400550A priority patent/AU2015400550B2/en
Priority to MYPI2017703856A priority patent/MY197308A/en
Priority to CA2982393A priority patent/CA2982393C/en
Priority to KR1020197015301A priority patent/KR102185004B1/ko
Priority to US15/568,697 priority patent/US10820273B2/en
Priority to KR1020177031169A priority patent/KR101985359B1/ko
Priority to PCT/CN2015/082884 priority patent/WO2017000247A1/zh
Priority to JP2017559094A priority patent/JP6517370B2/ja
Publication of WO2017000247A1 publication Critical patent/WO2017000247A1/zh
Priority to PH12017502186A priority patent/PH12017502186A1/en
Priority to AU2019204877A priority patent/AU2019204877B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
    • 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/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • 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
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • H04W48/06Access restriction performed under specific conditions based on traffic conditions
    • 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/0212Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
    • H04W52/0216Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave using a pre-established activity schedule, e.g. traffic indication frame
    • 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/0267Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/25Maintenance of established connections
    • 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 communications, and in particular, to a method and a terminal for interacting a terminal with a network device.
  • the terminal has been widely listed and popularized, and the users of the terminal have also proliferated greatly.
  • a large number of applications have sprung up, which brings great entertainment and practicality to users.
  • the terminal system platform such as the Android platform
  • the terminal system platform is a very power-consuming platform. Basically, the phenomenon of charging every day is everywhere, not enough for the consumption of the Android platform.
  • some malicious applications are also emerging, and some malicious applications will sneak away power in the background when the user is unaware of it. Even if there are no malicious applications in the terminal, when the user opens multiple applications on the terminal, these applications alternately interact with the network frequently, and the power consumption is also large.
  • Android is a free and open source operating system based on Linux. It is mainly used in mobile devices such as smartphones and tablets. It is currently developed by Google. For details, please refer to https://en.wikipedia.org/wiki/ Android_(operating_system).
  • the Android version includes: Android 1.5, Android 2.2, Android 4.3, Android 4.4, Android 5.0, and so on.
  • the embodiment of the invention discloses a method and a terminal for interacting a terminal with a network device, so as to optimize the present Some problems reduce the power consumption of the terminal.
  • an embodiment of the present invention provides a method for a terminal to interact with a network device, where the method includes:
  • the terminal sends a first heartbeat to the network device
  • the duration of the extinction state is not greater than T1, releasing network link resources of the terminal and the network device;
  • the terminal Before the terminal sends the second heartbeat to the network device, the terminal performs:
  • the terminal runs N applications, where N is an integer and N is greater than 1, the first heartbeat includes each of the N applications The heartbeat sent by the application to its corresponding application server.
  • the N applications send a heartbeat to the network device by using a network proxy in the terminal.
  • the network device includes a network server of the terminal device vendor corresponding to the terminal, and the first heartbeak is sent to the network server, where the network server is used to forward the application to the application server corresponding to the N applications. Said the first heartbeat.
  • an embodiment of the present invention provides a method for a terminal to interact with a network device, where the method includes:
  • the terminal sends a first heartbeat to the network device
  • the terminal Before the terminal sends the second heartbeat to the network device, the terminal recovers the network link resource
  • the terminal runs N applications, where N is an integer and N is greater than 1, the first heartbeat includes each of the N applications The heartbeat sent by the application to its corresponding application server.
  • the N applications send a heartbeat to the network device by using a network proxy in the terminal.
  • the network device includes a network server of the terminal device vendor corresponding to the terminal, and the first heartbeat is sent to The network server is configured to forward the first heartbeat to an application server corresponding to the N applications.
  • an embodiment of the present invention provides a method for a terminal to interact with a network device, where the method includes:
  • the terminal sends a first heartbeat to the network device
  • the terminal Before the terminal sends the second heartbeat to the network device, the terminal resumes allowing the background application of the terminal to access the network device;
  • the terminal runs N applications, where N is an integer and N is greater than 1, the first heartbeat includes each of the N applications The heartbeat sent by the application to its corresponding application server.
  • the N applications send a heartbeat to the network device by using a network proxy in the terminal.
  • the network device includes a network server of a terminal device vendor corresponding to the terminal, and the first heartbeat is sent to The network server is configured to forward the first heartbeat to an application server corresponding to the N applications.
  • an embodiment of the present invention provides a method for a terminal to interact with a network device, where the method includes:
  • the terminal sends a first heartbeat to the network device
  • the terminal Before the terminal sends a second heartbeat to the network device, the terminal opens the terminal Data service;
  • the terminal runs N applications, where N is an integer and N is greater than 1, the first heartbeat includes each of the N applications The heartbeat sent by the application to its corresponding application server.
  • the N applications send a heartbeat to the network device by using a network proxy in the terminal.
  • the network device includes a network server of a terminal device vendor corresponding to the terminal, and the first heartbeat is sent to The network server is configured to forward the first heartbeat to an application server corresponding to the N applications.
  • an embodiment of the present invention provides a terminal that interacts with a network device, where the terminal includes:
  • a sending module configured to send a first heartbeat to the network device
  • a receiving module configured to receive a first heartbeat response returned by the network device, where the first heartbeat response is a response corresponding to the first heartbeat;
  • a processing module after the receiving module receives the first heartbeat response, if the screen of the terminal is in an off state, and the extinguishing state duration is not greater than T1, releasing the network link between the terminal and the network device Resource
  • the processing module is further configured to: before the sending module sends the second heartbeat to the network device:
  • the sending module is further configured to send the second heartbeat to the network device
  • the receiving module is further configured to receive a second heartbeat response returned by the network device, where the second heartbeat response is a response corresponding to the second heartbeat.
  • the processing module runs N applications, where N is an integer and N is greater than 1, the first heartbeat includes each of the N applications The heartbeat sent by an application to its corresponding application server.
  • the N applications send a heartbeat to the network device by using a network proxy in the terminal.
  • the network device includes a network server of a terminal device vendor corresponding to the terminal, and the first heartbeat is sent to The network server is configured to forward the first heartbeat to an application server corresponding to the N applications.
  • the embodiment of the present invention provides a terminal that interacts with a network device, where the terminal includes:
  • a sending module configured to send a first heartbeat to the network device
  • a receiving module configured to receive a first heartbeat response returned by the network device, where the first heartbeat response is a response corresponding to the first heartbeat;
  • a processing module configured to: after the receiving module receives the first heartbeat response, if the screen of the terminal is in an extinguished state, releasing the network link resource of the terminal and the network device;
  • the processing module is further configured to restore the network link resource before the sending module sends the second heartbeat to the network device;
  • the sending module is further configured to send the second heartbeat to the network device
  • the receiving module is further configured to receive a second heartbeat response returned by the network device, where the second heartbeat response is a response corresponding to the second heartbeat.
  • the processing module runs N applications, where N is an integer and N is greater than 1, the first heartbeat includes each of the N applications The heartbeat sent by an application to its corresponding application server.
  • the N applications send a heartbeat to the network device by using a network proxy in the terminal.
  • the network device includes a network server of a terminal equipment provider corresponding to the terminal, and the first heartbeat is sent to The network server is configured to forward the first heartbeat to an application server corresponding to the N applications.
  • the embodiment of the present invention provides a terminal that interacts with a network device, where the terminal includes:
  • a sending module configured to send a first heartbeat to the network device
  • a receiving module configured to receive a first heartbeat response returned by the network device, where the first heartbeat response is a response corresponding to the first heartbeat;
  • a processing module after the receiving module receives the first heartbeat response, if the screen of the terminal is in an extinguished state, prohibiting the background application of the terminal from accessing the network device;
  • the processing module is further configured to resume the background application that allows the terminal to access the network device before the sending module sends the second heartbeat to the network device;
  • the sending module is further configured to send the second heartbeat to the network device
  • the receiving module is further configured to receive a second heartbeat response returned by the network device, where the second heartbeat response is a response corresponding to the second heartbeat.
  • the processing module runs N applications, where N is an integer and N is greater than 1, and the first heartbeat includes the N applications The heartbeat sent by each application to its corresponding application server.
  • the N applications send a heartbeat to the network device by using a network proxy in the terminal.
  • the network device includes a network server of a terminal device vendor corresponding to the terminal, and the first heartbeat is sent to The network server is configured to forward the first heartbeat to an application server corresponding to the N applications.
  • an embodiment of the present invention provides a terminal that interacts with a network device, where the terminal includes:
  • a sending module configured to send a first heartbeat to the network device
  • a receiving module configured to receive a first heartbeat response returned by the network device, where the first heartbeat response is a response corresponding to the first heartbeat;
  • a processing module configured to: after the first heartbeat response is received by the receiving module, if the screen of the terminal is in an off state, shut down the data service of the terminal;
  • the processing module is further configured to open a data service of the terminal before the sending module sends a second heartbeat to the network device;
  • the sending module is further configured to send the second heartbeat to the network device
  • the receiving module is further configured to receive a second heartbeat response returned by the network device, where the second heartbeat response is a response corresponding to the second heartbeat.
  • the processing module runs N applications, where N is an integer and N is greater than 1, and the first heartbeat includes each of the N applications The heartbeat sent by an application to its corresponding application server.
  • the N applications send a heartbeat to the network device by using a network proxy in the terminal.
  • the network device includes a network server of the terminal equipment vendor corresponding to the terminal, where the first The heartbeat is sent to the network server, and the network server is configured to forward the first heartbeat to an application server corresponding to the N applications.
  • a ninth aspect, the embodiment of the present invention provides a terminal, where the terminal includes:
  • a transceiver configured to send and receive data that the terminal interacts with the network device
  • One or more processors are One or more processors;
  • One or more programs wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for to:
  • the terminal sends a first heartbeat to the network device
  • the duration of the extinction state is not greater than T1, releasing network link resources of the terminal and the network device;
  • the terminal Before the terminal sends the second heartbeat to the network device, the terminal performs:
  • the processor runs N applications, where N is an integer, and N is greater than 1, the first heartbeat includes each of the N applications The heartbeat sent by an application to its corresponding application server.
  • the N applications send a heartbeat to the network device by using a network proxy in the terminal.
  • the network device includes a network server of a terminal device vendor corresponding to the terminal, and the first heartbeat is sent to The network server is configured to forward the first heartbeat to an application server corresponding to the N applications.
  • the tenth aspect of the present invention provides a terminal, where the terminal includes:
  • a transceiver configured to send and receive data that the terminal interacts with the network device
  • One or more processors are One or more processors;
  • One or more programs wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for to:
  • the terminal sends a first heartbeat to the network device
  • the terminal Before the terminal sends the second heartbeat to the network device, the terminal recovers the network link resource
  • the processor runs N applications, where N is an integer and N is greater than 1, the first heartbeat includes each of the N applications The heartbeat sent by an application to its corresponding application server.
  • the N applications send a heartbeat to the network device by using a network proxy in the terminal.
  • the network device includes a network server of a terminal device vendor corresponding to the terminal, and the first heartbeat is sent to The network server is configured to forward the first heartbeat to an application server corresponding to the N applications.
  • an embodiment of the present invention provides a terminal, where the terminal includes:
  • a transceiver configured to send and receive data that the terminal interacts with the network device
  • One or more processors are One or more processors;
  • One or more programs wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for to:
  • the terminal sends a first heartbeat to the network device
  • the terminal Before the terminal sends the second heartbeat to the network device, the terminal resumes allowing the background application of the terminal to access the network device;
  • the processor runs N applications, where N is an integer and N is greater than 1, the first heartbeat includes the N applications The heartbeat sent by each application to its corresponding application server.
  • the N applications send a heartbeat to the network device by using a network proxy in the terminal.
  • the network device includes a network server of a terminal equipment provider corresponding to the terminal, the first heartbeat Sending to the network server, the network server is configured to forward the first heartbeat to an application server corresponding to the N applications.
  • the embodiment of the present invention provides a terminal, where the terminal includes:
  • a transceiver configured to send and receive data that the terminal interacts with the network device
  • One or more processors are One or more processors;
  • One or more programs wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for to:
  • the terminal sends a first heartbeat to the network device
  • the terminal Before the terminal sends a second heartbeat to the network device, the terminal opens a data service of the terminal;
  • the processor runs N applications, N is an integer, and N is greater than 1, the first heartbeat includes the N applications The heartbeat sent by each application to its corresponding application server.
  • the N applications send a heartbeat to the network device by using a network proxy in the terminal.
  • the network device includes a network server of the terminal device vendor corresponding to the terminal, the first heartbeat Sending to the network server, the network server is configured to forward the first heartbeat to an application server corresponding to the N applications.
  • the embodiment of the present invention provides a method for a terminal to interact with a network device, where the method includes:
  • the terminal acquires a state of a screen of the terminal
  • the duration of the extinction state is not greater than T1, releasing network link resources of the terminal and the network device;
  • the embodiment of the present invention provides a terminal that interacts with a network device, where the terminal includes:
  • a processing module configured to acquire a state of a screen of the terminal
  • the processing module is further configured to: if the screen of the terminal is in an off state, and the duration of the extinction state is not greater than T1, release the network link resource of the terminal and the network device;
  • the embodiment of the present invention provides a terminal, where the terminal includes:
  • a transceiver configured to send and receive data that the terminal interacts with the network device
  • One or more processors are One or more processors;
  • One or more programs wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for to:
  • the terminal sends a first heartbeat to the network device
  • the terminal Before the terminal sends the second heartbeat to the network device, the terminal resumes allowing the background application of the terminal to access the network device;
  • the network of the terminal and the network device may be released. Linking resources, and/or prohibiting the background application of the terminal from accessing the network device, and/or turning off the data service of the terminal, and restoring the normal connection state before sending the heartbeat again. In this way, when the middle of the two heartbeats is off, the optional, extinguished state continues for a period of time.
  • the preset time by disconnecting the data interaction between the application and the network device, can make the terminal and the application server to which the application belongs online, and effectively reduce the power consumption of the terminal without the user being aware.
  • FIG. 1 is a structural block diagram of a mobile phone according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a heartbeat mechanism applied in the Android 4.3 and Android 4.4 systems disclosed in the embodiment of the present invention
  • FIG. 3 is a network architecture diagram of an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a method for interacting a terminal with a network device according to Embodiment 1 of the present invention
  • Embodiment 2 of the present invention is a schematic flow chart of a method disclosed in Embodiment 2 of the present invention.
  • FIG. 6 is a schematic structural diagram of an apparatus of a terminal according to Embodiment 3 of the present invention.
  • FIG. 7 is a schematic structural diagram of hardware of a terminal disclosed in Embodiment 4 of the present invention.
  • the terminal in the embodiment of the present invention may be a terminal device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a point of sales (POS), a vehicle, and the like. Specifically limited.
  • a terminal device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a point of sales (POS), a vehicle, and the like.
  • PDA personal digital assistant
  • POS point of sales
  • vehicle Specifically limited.
  • FIG. 1 is a block diagram showing a part of the structure of the mobile phone 100 related to the terminal disclosed in the embodiment of the present invention.
  • the mobile phone 100 includes a radio frequency (RF) circuit 110 , a memory 120 , an input unit 130 , a display unit 140 , a sensor 150 , an audio circuit 170 , and a wireless fidelity ( WiFi ) module 180 . , processor 160, and power supply 190 and other components.
  • RF radio frequency
  • FIG. 1 the structure of the mobile phone shown in FIG. 1 is only an example of implementation, and does not constitute a limitation on a mobile phone, and may include more or less components than those illustrated, or combine some components, or Different parts are arranged.
  • the components of the mobile phone 100 will be specifically described below with reference to FIG. 1 :
  • the RF circuit 110 can be used for transmitting and receiving information or during a call, and receiving and transmitting the signal. Specifically, after receiving the downlink information of the base station, the processor 160 processes the data. In addition, the uplink data is designed to be sent to the base station.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, Coupler, Low Noise Amplifier (LNA), duplexer, etc.
  • LNA Low Noise Amplifier
  • RF circuitry 110 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), and code division. Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • the memory 120 can be used to store software programs and modules, and the processor 160 executes various functional applications and data processing of the mobile phone 100 by running software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the mobile phone 100 (such as audio data, phone book, etc.) and the like.
  • memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the memory 120 of FIG. 1 may indicate all memories of the mobile phone 100; the memory 120 may also refer to the first memory of the mobile phone 100, the mobile phone 100 further includes a second memory 121, or the mobile phone 100 may further include other memories not shown.
  • the input unit 130 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 100.
  • the input unit 130 may include a touch panel 131 and other input devices 132.
  • the touch panel 131 also referred to as a touch screen, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 131 or near the touch panel 131. Operation), and drive the corresponding connecting device according to a preset program.
  • the touch panel 131 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the touch panel 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 130 may also include other input devices 132.
  • other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 140 can be used to display information input by the user or information provided to the user and various menus of the mobile phone 100.
  • the display unit 140 may include a display panel 141.
  • the display panel 141 may be configured in the form of a liquid crystal display (LCD:) or an organic light-emitting diode (OLED).
  • the touch panel 131 can cover the display panel 141. When the touch panel 131 detects a touch operation on or near the touch panel 131, the touch panel 131 transmits to the processor 160 to determine the type of the touch event, and then the processor 160 according to the touch event. The type provides a corresponding visual output on display panel 141.
  • touch panel 131 and the display panel 141 are used as two independent components to implement the input and input functions of the mobile phone 100 in FIG. 14, in some embodiments, the touch panel 131 may be integrated with the display panel 141. The input and output functions of the mobile phone 100 are implemented.
  • the handset 100 can also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the mobile phone 100 moves to the ear. / or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.
  • the mobile phone 100 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here Let me repeat.
  • the audio circuit 170 can include a speaker and a microphone that can provide an audio interface between the user and the handset 100.
  • the audio circuit 170 can transmit the converted electrical signal of the received audio data to The speaker is converted into a sound signal output by the speaker; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 170 and converted into audio data, and then processed by the audio data output processor 160 through the RF circuit. 110 to send to, for example, another handset, or to output audio data to memory 120 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the mobile phone 100 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 180, which provides wireless broadband Internet access for users.
  • FIG. 14 shows the WiFi module 180, it can be understood that it does not belong to the essential configuration of the mobile phone 100, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 160 is the control center of the handset 100, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120, The various functions and processing data of the mobile phone 100 are executed to perform overall monitoring of the mobile phone.
  • the processor 160 may include one or more processing units; preferably, the processor 160 may integrate an application processor (AP) and a communication processor (CP).
  • the application processor mainly processes the operating system, the user interface, and the application program; the communication processor, which may also be called a baseband processor (BP), mainly processes wireless communication, for example, is responsible for managing all radio frequency services requiring antennas. . It can be understood that the above communication processor may not be integrated into the processor 160.
  • AP application processor
  • CP communication processor
  • the application processor mainly processes the operating system, the user interface, and the application program
  • the communication processor which may also be called a baseband processor (BP), mainly processes wireless communication, for example, is responsible for
  • the communication processor may include a modem (modulator-demodulator, modem) module, a codec module, a scrambling module, an interleaving module, and the like.
  • the communication processor may also contain different functional modules, such as different terminals using different communication processor chips.
  • the handset 100 also includes a power source 190 (such as a battery) that supplies power to the various components.
  • a power source 190 such as a battery
  • the power source can be logically coupled to the processor 160 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone 100 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
  • Heartbeats can also be called heartbeat frames or heartbeat packets.
  • the application does not receive the heartbeat response returned by the application server within a specified time interval, it will consider that the network link is unreachable or the application server is faulty, and the connection will be re-connected; if the application server is within the specified time interval, If you do not receive a heartbeat from the application, the server resources are released and the online status of the application is logged out.
  • the application running in the terminal includes applications a1, a2, and a3, and the applications a1, a2, and a3 respectively send heartbeats to the application server at different time intervals.
  • Each application running on the terminal uses the above-mentioned method of sending a heartbeat to send a heartbeat to the application server at intervals to maintain the online state of the application.
  • Each time a running application sends a heartbeat the terminal needs to request a data transmission connection to the network device of the mobile network, and interact with the application server to exchange heartbeat and heartbeat responses through the data transmission connection.
  • the terminal each time the terminal establishes a data transmission connection with the network device of the mobile network, it needs to occupy the signaling resources of the mobile network control layer.
  • the terminal needs to communicate with the network device of the mobile network through signaling.
  • a packet data protocol (PDP) is activated, and the network device allocates an IP address to the terminal, and then the terminal uses the IP address to perform data transmission with the network device communication peer in the data network. Therefore, the transmission of frequent heartbeat messages will occupy a large amount of signaling resources at the mobile network control level.
  • PDP packet data protocol
  • the Android 4.4 system is optimized for the Android 4.3 system, and the heartbeat of the application running in the terminal is partially combined and batched, as shown in Figure 2.
  • the terminal includes running applications a1, a2, and a3, and the applications a1, a2, and a3 respectively serve the application at different time intervals.
  • the server sends a heartbeat.
  • the Android 4.4 system batches the adjacent heartbeats with short time intervals. For example, in the first part, the time at which the terminal sends the heartbeats of a1 and a2 is adjacent and the interval is short, and the two heartbeats can be combined and processed.
  • a b1 heartbeat is sent at a time point in the time of the heartbeat transmission of a1 and a2, wherein the b1 heartbeat includes the heartbeats of the applications a1 and a2.
  • the sending of the two heartbeats here may be performed by integrating the heartbeats of a1 and a2, or by sending the heartbeats of a1 and a2 at the time of transmission.
  • the b1 heartbeat can be two heartbeats, which is the collective name of the heartbeat of a1 and a2; the b1 heartbeat can also be a heartbeat, integrating the heartbeats of a1 and a2.
  • the device of the network device needs to forward the heartbeats of a1 and a2 to the corresponding application server respectively.
  • the heartbeat transmission time is adjacent and the interval is short, the two heartbeats can be combined and processed, and the b2 heartbeat is sent at a time point in the middle of the a2 and a1 heartbeat transmission time, wherein the b2 heartbeat includes Applying the heartbeat of a2 and a1;
  • the terminal sends the heartbeats of a2 and a3 adjacent and the interval is short, and the two heartbeats are combined and processed, and a time point can be taken in the time of heartbeat transmission of a2 and a3.
  • Unified heartbeat refers to unifying multiple applications running on the terminal, and sending heartbeats simultaneously or sequentially in the same determined cycle at the same time.
  • the terminal When the unified heartbeat period arrives, the terminal establishes a data transmission connection with the network device, and sends the heartbeat corresponding to the multiple application applications to the corresponding application server through the established data transmission connection.
  • the unified heartbeat period of the terminal is a heartbeat sending period in which the application currently running in the terminal and the corresponding application server are in an online state.
  • the terminal sends the heartbeat of multiple applications in each running state and receives the heartbeat response of the application server in a unified heartbeat cycle, the application and the corresponding application server remain online all the time, and the interaction between the two parties is not Need to reconnect.
  • the unified heartbeat cycle is related to the application currently running on the terminal when opening an application.
  • the unified heartbeat cycle may change when you order or close an application.
  • the Android platform allows processes to be active in the background, such as push messages, synchronizing network data, and so on.
  • the network resources are frequently occupied during the standby mode, and the standby power consumption is too large.
  • the main reason is that each application still accesses the network through the data service after the screen is off.
  • some manufacturers directly cut off the data service to reduce power consumption by continuously extinguishing the screen for more than 30 minutes or 1 hour. However, in less than 1 hour or less than 30 minutes, the standby power consumption is still very high.
  • each user on average an average of ten minutes to perform a bright screen operation, so more than 30 minutes or more than 1 hour of the network function has a limited range of effective, only do not use the phone for a long time It is effective, such as sleeping at night.
  • the terminal is off the screen, the data service is directly cut off to reduce power consumption, and the ongoing service of the terminal is affected. For example, the user chats with the friend through WeChat, and when the message is sent, the screen is extinguished. When the data service is cut off, the user will not receive the reply message from the friend in time, which obviously affects the user experience. Therefore, in response to the above situation, the terminal needs to be further optimized to reduce standby power consumption.
  • the embodiments of the present invention provide some solutions to solve the above problems.
  • the networking architecture of the embodiment of the present invention is as shown in FIG. 3.
  • the network architecture includes terminals and network devices.
  • Part A is the terminal, and Part B and Part C are the network devices. Among them, Part B is an optional part.
  • Part A A network proxy related to network access can be established inside the terminal. The interaction between all terminals and network devices is sent and received by the network proxy.
  • the network device may include the network server of the terminal equipment vendor.
  • the network agent inside the terminal establishes a communication link with the network server of the terminal equipment vendor.
  • the interaction between the terminal and the network server is processed according to a unified heartbeat cycle.
  • the network request of the application in the terminal is forwarded by the network server to the corresponding application server.
  • the network server of the terminal equipment vendor manages the interaction between the terminal and the network. As long as the link is smooth when the heartbeat is guaranteed, both the application of the terminal and the server corresponding to the application will be online.
  • the network device includes a third-party application server.
  • the third-party application server is an application server corresponding to an application running in the terminal.
  • the terminal device's web server can interact with the third-party application server as a proxy for all terminal devices. It should be understood that the application in the embodiment of the present invention does not include a local application, that is, does not include an application that does not interact with a third-party application server.
  • the network agent inside the terminal may send the heartbeat of the currently running application to the third-party application server when the unified heartbeat arrives. It can be understood that the terminal sends a heartbeat or other interactive message to the network server of the terminal equipment provider or the third-party application server, and some other devices in the network, such as a base station, a WiFi device, etc., are used by those skilled in the art. It can be understood that the embodiments of the present invention are not described in detail.
  • the network proxy inside the terminal may also be a timing management service unit, and the timing management service unit may set a timer according to the indication.
  • the terminal can set a unified heartbeat period through the timing management service unit. When the heartbeat period is notified, the terminal wakes up the terminal at the time indicated by the timer, and sends a heartbeat to the application server corresponding to the application whose current terminal is online.
  • Embodiment 1 of the present invention discloses a method for a terminal to interact with a network device, which can reduce standby power consumption when the user is not aware and keeps the running application from being suspended, not closed, and the heartbeat is not stopped.
  • the following takes the terminal as the mobile phone as an example to illustrate the specific implementation process of the solution, as shown in FIG. 4 .
  • the mobile phone is in a bright screen state.
  • the screen of the mobile phone is lit, the user is using WeChat to chat with friends, and the mobile phone communicates with the network device normally.
  • the apps that are running on the phone include Facebook and Sina Weibo.
  • a network proxy may be included in the mobile phone.
  • the network agent in the mobile phone manages the network side of the mobile phone side where all mobile phones interact with the network device.
  • the application running on the mobile phone sends the application to the network device.
  • the sent data is sent via the network proxy, and the data received by the mobile phone is sent to the corresponding application via the network device.
  • the network device may include a network server of the terminal device vendor.
  • the mobile phone interacts with the third-party server through the terminal device's web server.
  • the terminal equipment vendor corresponds to the manufacturer of the mobile phone.
  • the server of the terminal device vendor is the server of Huawei; if the mobile phone used by the user is the iPhone 6, the server of the terminal device vendor That is Apple's server and so on.
  • the third-party server refers to the server corresponding to the application, such as WeChat server, Facebook server, and Sina server.
  • the mobile phone sends a first heartbeat to the network device.
  • the first heartbeat includes a heartbeat sent by each of the three applications running on the mobile phone to its corresponding application server, such as: a heartbeat sent by WeChat to the WeChat server, a heartbeat sent by Facebook to the Facebook server, Sina Wei The heartbeat sent by Bo to the Sina server.
  • the network device does not include the network server of the terminal device vendor, the mobile phone sends a heartbeat to the application server corresponding to each application at time 0. If the network device includes the network server of the terminal device vendor, the mobile phone sends a heartbeat to the network server of the terminal device vendor.
  • the terminal device's network server forwards the received heartbeat to the corresponding third-party server, namely the WeChat server, the Facebook server, and the Sina server.
  • the mobile phone sends a heartbeat to the third-party server in a unified heartbeat cycle.
  • the mobile phone sends a heartbeat to the network server of the terminal equipment vendor.
  • the mobile phone may send the heartbeat of all running applications together, or the mobile phone may send the heartbeat of all running applications to the network server of the terminal equipment vendor.
  • the first heartbeat is a general term for the heartbeat that the currently running application sends to the corresponding application server, so that each application server knows that it is "online".
  • Applications running on the terminal can include applications running in the foreground and applications running in the background.
  • An application running in the foreground is an application that runs on a window and the runtime interface can interact directly with the user.
  • An application running in the background is an application that runs in the resource manager and has no interface or interface that cannot directly interact with the user but consumes system resources. Terminal screen Once off, the running application can be thought of as a background application, or a background application.
  • the network device After receiving the first heartbeat, the network device returns a first heartbeat response to the mobile phone.
  • the WeChat server, the Facebook server, and the Sina server return a first heartbeat response to the mobile phone.
  • the application server corresponding to each application in the mobile phone sends the first heartbeat response to the mobile phone.
  • the network device includes the network server of the terminal device vendor, the application server corresponding to each application, that is, the WeChat server, the Facebook server, and the Sina server respectively send the first heartbeat response to the network server of the terminal device vendor; then, the terminal device The merchant's web server forwards the received first heartbeat response to the handset.
  • the first heartbeat response received by the mobile phone includes the first heartbeat response of three applications running on the mobile phone, WeChat, Facebook, and Sina Weibo.
  • the network server of the terminal equipment provider can integrate the first heartbeat responses of the three applications and send them to the mobile phone, and then forward them to the corresponding application by the network proxy of the mobile phone.
  • the terminal device's network server may also send the received first heartbeat responses of the three applications to the mobile phone.
  • the mobile phone after receiving the first heartbeat response, the mobile phone immediately acquires the status of the mobile phone screen.
  • the mobile phone can also acquire the state of the mobile phone screen after a predetermined time interval after receiving the first heartbeat response.
  • the screen of the mobile phone is on, the mobile phone interacts with the network device normally, and no other processing is performed.
  • the mobile phone sends a second heartbeat to the network device.
  • the heartbeat is the unified heartbeat of all the applications running on the mobile phone, WeChat, Facebook, Sina Weibo. It can be understood that if the application running in the mobile phone is the same as the application running when S112 sends the second heartbeat when the first heartbeat is sent in S104, the unified heartbeat period of the mobile phone sending the heartbeat may not change, and after S104, the user again Opened another app
  • the program or some applications are closed, and the unified heartbeat period for the phone to send heartbeats may vary depending on the application running.
  • the manner in which the mobile phone sends the second heartbeat to the network device is the same as the method of sending the first heartbeat, and details are not described herein again.
  • the network device After receiving the second heartbeat, the network device returns a second heartbeat response to the mobile phone.
  • the WeChat server, the Facebook server, and the Sina server return a second heartbeat response to the mobile phone.
  • the method of sending the second heartbeat response to the mobile phone by the WeChat server, the Facebook server, and the Sina server is the same as the method of sending the first heartbeat response, and details are not described herein again.
  • S116 Obtain a state of the screen of the mobile phone, and perform a corresponding operation.
  • the mobile phone after receiving the second heartbeat response, releases the network link resource connected to the network device if the screen of the mobile phone is off and the duration of the off state is not greater than T1.
  • the mobile phone releases the network link resource, and the modem is in the idle state (Idle State), and no longer interacts with the air interface. Therefore, the mobile phone cannot perform data interaction with the network device.
  • the mobile phone may release the network link resource by calling an interface that releases a Radio Resource Control (RRC), such as an RRC_Release interface.
  • RRC Radio Resource Control
  • the background application of the mobile phone is prohibited from accessing the network device.
  • the mobile phone and the network device can remain connected. However, if the time between the mobile phone and the network device does not exceed the threshold, the mobile phone can also release the network link resource.
  • the mobile phone can also prohibit some applications from accessing the network device.
  • a mobile phone can restrict a certain percentage of applications from accessing the network, while other applications prohibit access to the network.
  • the mobile phone can also prohibit certain preset applications from accessing the network, or the mobile phone can also prohibit some applications that interact with the network frequently or have a large amount of data to access the network.
  • the mobile phone can determine whether the application interacts with the network frequently or whether the amount of data exchanged with the network is large by counting the number of interactions or counting whether the size of the interaction traffic exceeds a corresponding threshold.
  • the mobile phone receives the second heartbeat response, the screen of the mobile phone is off, and the duration of the extinguished state is not greater than T1, the network link resource connected to the network device is released; if the next unified heartbeat period arrives Before the duration of the off state of the mobile phone screen reaches T1, the background application of the mobile phone is prohibited from accessing the network device; if the duration of the off state of the mobile phone screen reaches T2 before the next unified heartbeat period arrives, the data service of the mobile phone is turned off.
  • the mobile phone restores the network link resource connected to the network device.
  • the mobile phone re-establishes a connection with the network device, and the modem changes from the idle state to the running state.
  • the network link resource may be the same network link resource as when the first heartbeat is sent, or may not be the same network link resource, for example, the time-frequency resource allocated by the network side may be different.
  • the network link resource and the network link resource that sends the first heartbeat are not substantially different in other aspects such as the network protocol.
  • the network link resource established in this step may be considered to be the same as the network link resource that sends the first heartbeat.
  • the mobile phone recovery allows the background application to access the network device.
  • the data service of the mobile phone is turned off, the data service of the mobile phone is turned on.
  • the mobile phone receives the first heartbeat response, the screen of the mobile phone is off, and the duration of the extinction is less than T1, and before the unified heartbeat period of the current mobile phone arrives, the duration of the extinction is greater than T1 is less than T2, then the mobile phone recovers and The network device connects to the network link resource and restores the background application of the mobile phone to access the network device.
  • the heartbeat is the unified heartbeat of all the applications running on the mobile phone, WeChat, Facebook, Sina Weibo.
  • the manner in which the mobile phone sends the third heartbeat to the network device is the same as the method of sending the first and second heartbeats, and details are not described herein again.
  • the network device After receiving the third heartbeat, the network device returns a third heartbeat response to the mobile phone.
  • the WeChat server, the Facebook server, and the Sina server return a third heartbeat response to the mobile phone.
  • the method of sending the third heartbeat response to the mobile phone by the WeChat server, the Facebook server, and the Sina server is the same as the method of sending the first and second heartbeat responses, and details are not described herein again.
  • the mobile phone periodically sends and receives a heartbeat in a unified heartbeat period t, and acquires a state of the mobile phone screen to perform a corresponding operation.
  • the mobile phone sends a heartbeat response to the network device according to the unified heartbeat period t, and receives the heartbeat response returned by the network device, and after each time the heartbeat response is received, determines the duration of the mobile phone screen off state to execute.
  • a heartbeat response to the network device according to the unified heartbeat period t, and receives the heartbeat response returned by the network device, and after each time the heartbeat response is received, determines the duration of the mobile phone screen off state to execute.
  • the user lights up the mobile phone screen, and the mobile phone communicates with the network device normally.
  • the mobile phone interacts with the network device normally. That is, when the mobile phone receives the heartbeat response and obtains the mobile phone screen as the lighting state, the mobile phone does not perform other processing, and maintains a normal connection state with the network device. It should be understood that, in this embodiment, the mobile phone does not perform other processing, and the mobile phone does not perform other processing other than normal interaction with the network device.
  • the network link resource of the terminal and the network device is released, and/or the prohibition is performed.
  • the background application of the terminal accesses the network device, and/or closes the related processing of the data service of the terminal.
  • the phone can start a timer/timer or multiple timers/timers to time.
  • the heartbeat period t, the duration T1, T2 of the screen off state of the mobile phone may be started by a timer, or may be started by two timers or three timers, or more timers may be started to count.
  • the invention is not limited.
  • the mobile phone releases the network link resource connected to the network device if the screen of the mobile phone is off and the duration of the off state is not greater than T1.
  • the phone can continue to determine whether the duration of the screen is off is greater than T1. If the duration of the off state of the mobile phone reaches T1, the background application of the mobile phone is prohibited from accessing the network device; if the duration of the off state of the mobile phone reaches T2, the data service of the mobile phone is turned off.
  • the mobile phone can set a timer, and when the duration of the screen of the mobile phone is off, the mobile phone can be triggered to prohibit the background application from accessing the network device.
  • the mobile phone can set a timer, and when the duration of the screen of the mobile phone is off, the mobile phone can be triggered to turn off the data service of the mobile phone. Before the next heartbeat period arrives, the mobile phone may not continue to judge the duration of the screen being extinguished. For example, after the mobile phone receives the heartbeat response, if the duration of the screen of the mobile phone is off, the duration is not greater than T1, then the network link connecting the mobile phone to the network device is released. The resource then no longer determines if the screen's off time is greater than T1 or T2 before the next heartbeat cycle.
  • the mobile phone after receiving the heartbeat response, releases the mobile phone and the network device if the screen of the mobile phone is off and the duration of the extinguished state is not greater than T1.
  • the connected network link resource if the duration of the off state is not greater than T2, the data service of the mobile phone is turned off; if the duration of the extinguished state is greater than T2, the background application of the mobile phone is prohibited from accessing the network device.
  • the mobile phone receives the heartbeat response, if the screen of the mobile phone is off, and the duration of the extinguished state is not greater than T1, the background application access of the mobile phone is prohibited. If the duration of the off state is greater than T1 and not greater than T2, the network link resource that the mobile phone connects with the network device is released; if the duration of the extinguished state is greater than T2, the data service of the mobile phone is turned off.
  • the mobile phone receives the heartbeat response, if the screen of the mobile phone is off, and the duration of the extinguished state is not greater than T1, the background application access of the mobile phone is prohibited.
  • the network device if the duration of the off state is greater than T1 and not greater than T2, the data service of the mobile phone is turned off; if the duration of the extinguished state is greater than T2, the network link resource that the mobile phone connects with the network device is released.
  • the mobile phone after receiving the heartbeat response, the mobile phone turns off the data service of the mobile phone if the screen of the mobile phone is off and the duration of the extinguished state is not greater than T1; If the duration of the off state is greater than T1 and not greater than T2, the background application of the mobile phone is prohibited from accessing the network device; if the duration of the extinguished state is greater than T2, the network link resource that the mobile phone connects with the network device is released.
  • the mobile phone after receiving the heartbeat response, the mobile phone turns off the data service of the mobile phone if the screen of the mobile phone is off and the duration of the extinguished state is not greater than T1; If the duration of the off state is greater than T1 and is not greater than T2, the network link resource that the mobile phone connects with the network device is released; if the duration of the off state is greater than T2, the background application of the mobile phone is prohibited from accessing the network device.
  • the mobile phone can only adopt a single policy, and does not need to determine the duration of the screen of the mobile phone being off, such as: if the screen of the mobile phone is off, the mobile phone The network link resource is released; or, if the screen of the mobile phone is off, the mobile phone prohibits the background application from accessing the network device; or, if the screen of the mobile phone is off, the data service is turned off.
  • the terminal may release the network link resource of the terminal and the network device if the screen is in the off state and the selected state is off for a preset period of time, and And/or prohibiting the background application of the terminal from accessing the network device, and/or turning off the data service of the terminal, and restoring the normal connection state before sending the heartbeat again.
  • the optional, extinguished state continues for a preset time, and by disconnecting the data interaction between the application and the network device, the terminal and the application server to which the application belongs can be made online, and The user can effectively reduce the power consumption of the terminal without being perceived by the user.
  • This embodiment is an experiment conducted on the basis of Embodiment 1, and the terminal of this embodiment is 3G.
  • a standard mobile phone is an example.
  • the terminal releases the network link resource in the period of t, and the modem enters a sleep state, where t is a unified heartbeat period of the terminal.
  • the mobile phone releases the network link resource by calling an interface that releases Radio Resource Control (RRC).
  • RRC Radio Resource Control
  • the daily application of the mobile phone of the 3G system of the embodiment is installed and run, such as: WeChat, QQ, NetEase news, Zarek, public comment, and other items, and only a few examples are exemplified in the embodiment of the present invention.
  • the mobile phone can calculate the unified heartbeat of the currently running application, and there are various implementations for calculating the unified heartbeat, which are not limited in the embodiment of the present invention.
  • the unified heartbeat of the phone can also be pre-set by other conditions or experience.
  • the steps in this embodiment may include:
  • the mobile phone sends a heartbeat.
  • the mobile phone and the network device communicate through the 3G network.
  • the running application on the mobile phone sends a heartbeat to the application server corresponding to each application. It can be understood that the mobile phone sends other network devices, such as a base station, that the heartbeat will pass through the 3G network to the application server, which is well known to those skilled in the art, and details are not described herein again.
  • the mobile phone receives a heartbeat response.
  • the mobile phone receives the heartbeat response returned by each application server. After receiving the heartbeat, each application server returns a heartbeat response to the mobile phone.
  • the mobile phone After receiving the heartbeat response, the mobile phone obtains the status of the mobile phone screen. If the screen of the mobile phone is off, the RRC Release interface is called to release the network link resource of the mobile phone and the network connection, so that the modem is in an idle state.
  • the mobile phone When the unified heartbeat cycle is approaching, the mobile phone restores the network link resources, so that the mobile phone and the network are in a normal connection state.
  • the modem changes from idle to running and reconnects with the network device.
  • the mobile phone When the unified heartbeat cycle arrives, the mobile phone provides an application service corresponding to the currently running application. Send a heartbeat.
  • the mobile phone receives a heartbeat response.
  • the mobile phone receives the heartbeat response returned by each application server. After receiving the heartbeat, each application server returns a heartbeat response to the mobile phone.
  • the mobile phone periodically sends a heartbeat and a heartbeat response to the application server corresponding to the application running on the mobile phone according to the unified heartbeat period t, and the mobile phone releases the network link resource and disconnects from the network every time the heartbeat response is received. Connect, restore the network link resources before the next heartbeat cycle, and re-establish a connection with the network until the user lights the phone screen.
  • the average current of the mobile phone for 3 hours was 15.351 mA, which was about 7 mA less than the average current of 22.268 mA for 3 hours when the above method was not used, and the yield was 31.1%.
  • the method of the embodiment can reduce power consumption and extend the standby time of the mobile phone without the user feeling and maintaining the heartbeat of the application.
  • the terminal after receiving the first heartbeat response, the terminal determines that if the screen is in the extinction state, the data link between the terminal application and the network device is disconnected by releasing the network link resource, and before the second heartbeat is sent, Restoring the network link resource can make the terminal and the application server to which the application belongs online, and effectively reduce the power consumption of the terminal without the user being aware.
  • the third embodiment of the present invention provides a terminal 300.
  • the structure of the terminal 300 is as shown in FIG. 7 , and is used to perform the methods of the first embodiment to the second embodiment. Applicable to this embodiment, and details are not described herein again.
  • the terminal 300 includes a sending module 310, a receiving module 320, and a processing module 330. It can be understood that the sending module 310 and the receiving module 320 can also be integrated into a transceiver module.
  • a sending module configured to send a first heartbeat to the network device
  • a receiving module configured to receive a first heartbeat response returned by the network device, where the first heartbeat response is a response corresponding to the first heartbeat;
  • a processing module after the receiving module receives the first heartbeat response, if the screen of the terminal is in an off state, and the extinguishing state duration is not greater than T1, releasing the network link between the terminal and the network device Resource
  • the processing module is further configured to: before the sending module sends the second heartbeat to the network device:
  • the sending module is further configured to send the second heartbeat to the network device
  • the receiving module is further configured to receive a second heartbeat response returned by the network device, where the second heartbeat response is a response corresponding to the second heartbeat.
  • the processing module runs N applications, where N is an integer and N is greater than 1.
  • the first heartbeat includes a heartbeat sent by each of the N applications to its corresponding application server.
  • the terminal may further include a network proxy module.
  • the network proxy module can also be integrated into the processing module 330.
  • the N applications send a heartbeat to the network device through a network proxy in the terminal.
  • the network device includes a network server of the terminal device vendor corresponding to the terminal.
  • the sending module sends the first heartbeat to the network device, where the sending module sends the first heartbeat to the network service.
  • the network server forwards the first heartbeat to the application server corresponding to the N applications.
  • the processing module 330 is configured to: after the receiving module 320 receives the first heartbeat response, if the screen of the terminal is in an extinguished state, releasing the network link resource of the terminal and the network device;
  • the processing module 330 is further configured to restore the network link resource before the sending module 310 sends the second heartbeat to the network device.
  • the processing module 330 is configured to: after the receiving module 320 receives the first heartbeat response, if the screen of the terminal is in an extinguished state, prohibiting the background application of the terminal from accessing the network device;
  • the processing module 330 is further configured to resume the background application that allows the terminal to access the network device before the sending module 310 sends the second heartbeat to the network device.
  • the processing module 330 is configured to: after the receiving module 310 receives the first heartbeat response, if the screen of the terminal is in an extinguished state, shutting down the data service of the terminal;
  • the processing module 330 is further configured to open the data service of the terminal before the sending module 320 sends the second heartbeat to the network device.
  • the terminal 300 of this embodiment may also be configured to implement other implementation manners of Embodiment 1 or Embodiment 2. For brevity, the details are not described herein again.
  • the terminal after the terminal receives the heartbeat response, if the screen is in the off state, the terminal releases the network link resource of the terminal and the network device, or prohibits the background application of the terminal from accessing the network device/shutdown station.
  • the data service of the terminal is described, and the normal connection state is restored before the heartbeat is sent again.
  • the middle screen of the two heartbeats is turned off, the data interaction between the application and the network device is disconnected, so that the terminal and the application server to which the application belongs are both online, and the power consumption of the terminal is effectively reduced without the user being aware.
  • a terminal 400 according to Embodiment 4 of the present invention is shown in FIG. 5 .
  • the terminal 400 is used to perform the methods of the first embodiment to the second embodiment. All the solutions and features that can be implemented in the first embodiment to the second embodiment are applicable to the embodiment, and are not described herein again.
  • Terminal 400 includes a processor 160, a memory 120, a transceiver 406, and a bus 408.
  • the processor 160, the memory 120, and the transceiver 406 communicate via the bus 408.
  • the terminal 400 of the present embodiment is not limited to the mobile phone, the processor, the memory, etc. of the terminal 400.
  • the structure can be related to the structure of the handset 100, but is not limited by the structure of the handset. It can be understood that the terminal may further include a screen for displaying information, such as the display unit 140 of FIG. 1, or may only include the display panel 141.
  • the processor 160 includes an application processor (AP) and a communication processor (CP).
  • the application processor mainly processes an operating system, a user interface, an application, and the like; the communication processor may also be referred to as a Baseband Processor (BP), and mainly processes wireless communication.
  • the transceiver 406 can include the RF circuit 110 and/or the WiFi module 180 of FIG. Terminal 400 can communicate with the network device via transceiver 406. The transceiver 406 can transmit data to the network device and receive data of the network device.
  • FIG. 1 For the structure of the terminal 400, reference may be made to FIG. 1 and the specific components of the components of the mobile phone 100, and details are not described herein again.
  • Processor 160 can include a network proxy. All the interactions between the terminal and the network device are sent and received by the network agent.
  • the network proxy can be a software module of the processor 160.
  • the network proxy can be a software module in the AP.
  • the processor 160 is configured to send the first heartbeat to the network device. It can be understood that the processor 160 sends the first heartbeat sent to the network device to the transceiver 406, and then the transceiver sends the first heartbeat to the network device.
  • the first heartbeat includes a heartbeat sent by each of the N applications to its corresponding application server, where N is a positive integer. If the network device does not include the network server of the terminal device vendor, the processor 160 respectively Send a heartbeat to the application server for each application. If the network device includes a network server of the terminal device vendor, the processor 160 transmits a heartbeat to the network server of the terminal device vendor. The network server of the terminal device vendor forwards the received heartbeat to the corresponding application server.
  • the processor 160 is further configured to receive a first heartbeat response returned by the network device. Likewise, the first heartbeat response received by the processor is received by the transceiver 406 from the network device.
  • the first heartbeat response is a heartbeat response returned by the application server corresponding to each of the N applications. If the network device does not include the network server of the terminal device vendor, the application server corresponding to each application sends the first heartbeat response to the terminal. If the network device includes the network server of the terminal device vendor, the application server corresponding to each application sends the first heartbeat response to the network server of the terminal device vendor respectively; then, the network server of the terminal device vendor receives the first The heartbeat response is forwarded to the terminal.
  • the processor 160 is further configured to: after receiving the first heartbeat response, acquire a state of the screen, if the screen of the terminal is in an off state, and the extinguishing state duration is not greater than T1, releasing the terminal and a network link resource of the network device;
  • the processor 160 is further configured to: before sending the second heartbeat to the network device, perform:
  • the data service of the terminal is closed, the data service of the terminal is opened.
  • the processor 160 is further configured to send the second heartbeat to the network device; the manner of sending the second heartbeat is the same as the first heartbeat, and details are not described herein again.
  • the processor 160 is further configured to receive a second heartbeat response.
  • the processor 160 obtains the state of the screen after receiving the first heartbeat response, and if the screen of the terminal is in the extinguished state, the processor 160 may release the network link resource of the terminal and the network device; or The processor 160 may prohibit the background application of the terminal from accessing the network device; or the processor 160 may close the data service of the terminal. In this implementation, the processor may not have to obtain the duration of the screen off state.
  • the processor 160 is further configured to: before sending the second heartbeat to the network device:
  • the data service of the terminal is closed, the data service of the terminal is opened.
  • the terminal 400 can also be configured as a terminal for implementing other implementation manners. For details, refer to the optional implementation manner in Embodiment 1, and details are not described herein again.
  • the terminal after the terminal receives the heartbeat response, if the screen is in the off state, the terminal releases the network link resource of the terminal and the network device, and prohibits the background application of the terminal from accessing the network device/ The data service of the terminal is closed, and the normal connection state is restored before the heartbeat is sent again.
  • the middle screen of the two heartbeats is turned off, the data interaction between the application and the network device is disconnected, so that the terminal and the application server to which the application belongs are both online, and the power consumption of the terminal is effectively reduced without the user being aware.
  • the terminal generally includes at least one processor (eg, a CPU), at least one transceiver, and at least one bus.
  • the control center of the electronic device connects various parts of the entire electronic device by using various interfaces and lines, by running or executing software programs and/or modules stored in the storage unit, and calling data stored in the storage unit, Perform various functions and/or process data of the electronic device.
  • the processor may be composed of an integrated circuit (IC), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs that have the same function or different functions.
  • the processor may include only a central processing unit (CPU), or may be a GPU, a digital signal processor (DSP), and a control chip in the communication unit (for example, a baseband chip). )The combination.
  • the CPU may be a single operation core, and may also include multiple operation cores.
  • terminal 400 shown in FIG. 7 only shows the processor 160, the memory 120, the transceiver 406, and the bus 408, in a specific implementation process, those skilled in the art should understand that the terminal 400 also includes a normal implementation. Other devices necessary for operation. At the same time, those skilled in the art will appreciate that the terminal 400 may also include hardware devices that implement other additional functions, depending on the particular needs. Moreover, those skilled in the art will appreciate that the terminal 400 may also only include the components necessary to implement the embodiments of the present invention, and does not necessarily include all of the devices shown in FIG.
  • FIG. 7 and the above description are applicable to various terminals provided by the embodiments of the present invention.
  • a person skilled in the art may know that all or part of the above steps may be completed by hardware related to program instructions, and the program may be stored in a computer readable storage medium such as a ROM, a RAM, an optical disc, or the like. .

Abstract

本发明实施例提出了一种终端与网络设备交互的方法,包括:终端向网络设备发送第一心跳;终端接收网络设备返回的第一心跳响应;如果终端的屏幕为熄灭状态,可选的,熄灭状态持续一段预设的时间,则释放终端与网络设备的网络链接资源,和/或禁止终端的后台应用访问网络设备,和/或关闭终端的数据业务;在终端向网络设备发送第二心跳之前,终端恢复正常连接状态;终端向网络设备发送第二心跳;终端接收网络设备返回的第二心跳响应。本发明实施例中终端在两次心跳中间屏幕熄灭时,断开应用程序与网络设备的数据交互,可以使得应用程序所属的终端和应用服务器都在线,且用户无感知的情况下,有效地降低终端功耗。

Description

一种终端与网络设备交互的方法和终端 技术领域
本发明涉及通信领域,尤其涉及一种终端与网络设备交互的方法及终端。
背景技术
随着科技的发展,终端大量的上市和普及,终端的用户也大幅度激增,大量应用程序如雨后春笋而出,这给用户带来很大的娱乐性和实用性。但是终端系统平台,如Android平台,是一个很耗电能的平台,基本上一天一充电的现象比比皆是,不够Android平台的消耗。另外,目前一些恶意应用也不断涌现,有些恶意应用程序会在用户不知情的时候,在后台偷偷的消耗电能。就算终端中没有恶意应用程序,当用户在终端上打开多个应用程序时,这些应用程序交替频繁地与网络进行交互,耗电量也很大。这不仅会给用户体验带来不便,还有可能使用户错过一些重要的事件,比如在外地因为功耗手机没电错过一笔合同,虽然现在有各种充电宝使用,但是充电宝在一些场合不能使用,并且携带不便,没有从根本问题上终端功耗问题。因此如何使终端更好地降低功耗,延长待机时间,是目前用户的一个迫切需求。
针对上述情况,目前还没有很有效的解决方案。
Android是一种基于Linux的自由及开放源代码的操作系统,主要使用于移动设备,如智能手机和平板电脑,目前由Google公司开发,具体可参见https://en.wikipedia.org/wiki/Android_(operating_system)。Android的版本包括:Android 1.5、Android 2.2、Android 4.3、Android 4.4、Android 5.0等。
发明内容
本发明实施例公开了一种终端与网络设备交互的方法和终端,以优化现 有的问题,降低终端的功耗。
第一方面,本发明实施例提供了一种终端与网络设备交互的方法,所述方法包括:
终端向网络设备发送第一心跳;
所述终端接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
如果所述终端的屏幕为熄灭状态,且所述熄灭状态持续时间不大于T1,则释放所述终端与所述网络设备的网络链接资源;
如果所述熄灭状态持续时间为大于T1且不大于T2,T2>T1>0,则禁止所述终端的后台应用访问所述网络设备;
如果所述熄灭状态持续时间为大于T2,则关闭所述终端的数据业务;
在所述终端向所述网络设备发送第二心跳之前,所述终端执行:
如果所述终端与所述网络设备的网络链接资源被释放,则恢复所述网络链接资源;
如果所述终端的后台应用被禁止访问所述网络设备,则恢复允许所述终端的后台应用访问所述网络设备;
如果所述终端的数据业务被关闭,则打开所述终端的数据业务;
所述终端向所述网络设备发送所述第二心跳;
所述终端接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
结合第一方面,在第一方面的第一种实现方式中,所述终端运行N个应用程序,N为整数,且N大于1,所述第一心跳包括所述N个应用程序中每个应用程序向其对应的应用服务器发送的心跳。
结合第一方面的第一种实现方式,在第一方面的第二种实现方式中,所述N个应用程序通过所述终端中的网络代理向所述网络设备发送心跳。
结合第一方面的第一或第二种实现方式,在第一方面的第三种实现方式 中,所述网络设备包括所述终端对应的终端设备商的网络服务器,所述第一心跳发送至所述网络服务器,所述网络服务器用于向所述N个应用程序对应的应用服务器转发所述第一心跳。
第二方面,本发明实施例提供了一种终端与网络设备交互的方法,所述方法包括:
终端向网络设备发送第一心跳;
所述终端接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
如果所述终端的屏幕为熄灭状态,则释放所述终端与所述网络设备的网络链接资源;
在所述终端向所述网络设备发送第二心跳之前,所述终端恢复所述网络链接资源;
所述终端向所述网络设备发送所述第二心跳;
所述终端接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
结合第二方面,在第二方面的第一种实现方式中,所述终端运行N个应用程序,N为整数,且N大于1,所述第一心跳包括所述N个应用程序中每个应用程序向其对应的应用服务器发送的心跳。
结合第二方面的第一种实现方式,在第二方面的第二种实现方式中,所述N个应用程序通过所述终端中的网络代理向所述网络设备发送心跳。
结合第二方面的第一或第二种实现方式,在第二方面的第三种实现方式中,所述网络设备包括所述终端对应的终端设备商的网络服务器,所述第一心跳发送至所述网络服务器,所述网络服务器用于向所述N个应用程序对应的应用服务器转发所述第一心跳。
第一方面,本发明实施例提供了一种终端与网络设备交互的方法,所述方法包括:
终端向网络设备发送第一心跳;
所述终端接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
如果所述终端的屏幕为熄灭状态,则禁止所述终端的后台应用访问所述网络设备;
在所述终端向所述网络设备发送第二心跳之前,所述终端恢复允许所述终端的后台应用访问所述网络设备;
所述终端向所述网络设备发送所述第二心跳;
所述终端接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
结合第三方面,在第三方面的第一种实现方式中,所述终端运行N个应用程序,N为整数,且N大于1,所述第一心跳包括所述N个应用程序中每个应用程序向其对应的应用服务器发送的心跳。
结合第三方面的第一种实现方式,在第三方面的第二种实现方式中,所述N个应用程序通过所述终端中的网络代理向所述网络设备发送心跳。
结合第三方面的第一或第二种实现方式,在第三方面的第三种实现方式中,所述网络设备包括所述终端对应的终端设备商的网络服务器,所述第一心跳发送至所述网络服务器,所述网络服务器用于向所述N个应用程序对应的应用服务器转发所述第一心跳。
第四方面,本发明实施例提供了一种终端与网络设备交互的方法,所述方法包括:
终端向网络设备发送第一心跳;
所述终端接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
如果所述终端的屏幕为熄灭状态,则关闭所述终端的数据业务;
在所述终端向所述网络设备发送第二心跳之前,所述终端打开所述终端 的数据业务;
所述终端向所述网络设备发送所述第二心跳;
所述终端接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
结合第四方面,在第四方面的第一种实现方式中,所述终端运行N个应用程序,N为整数,且N大于1,所述第一心跳包括所述N个应用程序中每个应用程序向其对应的应用服务器发送的心跳。
结合第四方面的第一种实现方式,在第四方面的第二种实现方式中,所述N个应用程序通过所述终端中的网络代理向所述网络设备发送心跳。
结合第四方面的第一或第二种实现方式,在第四方面的第三种实现方式中,所述网络设备包括所述终端对应的终端设备商的网络服务器,所述第一心跳发送至所述网络服务器,所述网络服务器用于向所述N个应用程序对应的应用服务器转发所述第一心跳。
第五方面,本发明实施例提供了一种与网络设备交互的终端,所述终端包括:
发送模块,用于向网络设备发送第一心跳;
接收模块,用于接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
处理模块,用于在接收模块接收到第一心跳响应后,如果所述终端的屏幕为熄灭状态,且所述熄灭状态持续时间不大于T1,则释放所述终端与所述网络设备的网络链接资源;
如果所述熄灭状态持续时间为大于T1且不大于T2,T2>T1>0,则禁止所述终端的后台应用访问所述网络设备;
如果所述熄灭状态持续时间为大于T2,则关闭所述终端的数据业务;
所述处理模块,在所述发送模块向所述网络设备发送第二心跳之前,还用于执行:
如果所述终端与所述网络设备的网络链接资源被释放,则恢复所述网络链接资源;
如果所述终端的后台应用被禁止访问所述网络设备,则恢复允许所述终端的后台应用访问所述网络设备;
如果所述终端的数据业务被关闭,则打开所述终端的数据业务;
所述发送模块,还用于向所述网络设备发送所述第二心跳;
所述接收模块,还用于接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
结合第五方面,在第五方面的第一种实现方式中,所述处理模块运行N个应用程序,N为整数,且N大于1,所述第一心跳包括所述N个应用程序中每个应用程序向其对应的应用服务器发送的心跳。
结合第五方面的第一种实现方式,在第五方面的第二种实现方式中,所述N个应用程序通过所述终端中的网络代理向所述网络设备发送心跳。
结合第五方面的第一或第二种实现方式,在第五方面的第三种实现方式中,所述网络设备包括所述终端对应的终端设备商的网络服务器,所述第一心跳发送至所述网络服务器,所述网络服务器用于向所述N个应用程序对应的应用服务器转发所述第一心跳。
第六方面,本发明实施例提供了一种与网络设备交互的终端,其特征在于,所述终端包括:
发送模块,用于向网络设备发送第一心跳;
接收模块,用于接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
处理模块,用于在接收模块接收到第一心跳响应后,如果所述终端的屏幕为熄灭状态,则释放所述终端与所述网络设备的网络链接资源;
所述处理模块,在所述发送模块向所述网络设备发送第二心跳之前,还用于恢复所述网络链接资源;
所述发送模块,还用于向所述网络设备发送所述第二心跳;
所述接收模块,还用于接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
结合第六方面,在第六方面的第一种实现方式中,所述处理模块运行N个应用程序,N为整数,且N大于1,所述第一心跳包括所述N个应用程序中每个应用程序向其对应的应用服务器发送的心跳。
结合第六方面的第一种实现方式,在第六方面的第二种实现方式中,所述N个应用程序通过所述终端中的网络代理向所述网络设备发送心跳。
结合第六方面的第一或第二种实现方式,在第六方面的第三种实现方式中,所述网络设备包括所述终端对应的终端设备商的网络服务器,所述第一心跳发送至所述网络服务器,所述网络服务器用于向所述N个应用程序对应的应用服务器转发所述第一心跳。
第七方面,本发明实施例提供了一种与网络设备交互的终端,所述终端包括:
发送模块,用于向网络设备发送第一心跳;
接收模块,用于接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
处理模块,用于在所述接收模块接收到第一心跳响应后,如果所述终端的屏幕为熄灭状态,则禁止所述终端的后台应用访问所述网络设备;
所述处理模块,在所述发送模块向所述网络设备发送第二心跳之前,还用于恢复允许所述终端的后台应用访问所述网络设备;
所述发送模块,还用于向所述网络设备发送所述第二心跳;
所述接收模块,还用于接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
结合第七方面,在第七方面的第一种实现方式中,所述处理模块运行N个应用程序,N为整数,且N大于1,所述第一心跳包括所述N个应用程序 中每个应用程序向其对应的应用服务器发送的心跳。
结合第七方面的第一种实现方式,在第七方面的第二种实现方式中,所述N个应用程序通过所述终端中的网络代理向所述网络设备发送心跳。
结合第七方面的第一或第二种实现方式,在第七方面的第三种实现方式中,所述网络设备包括所述终端对应的终端设备商的网络服务器,所述第一心跳发送至所述网络服务器,所述网络服务器用于向所述N个应用程序对应的应用服务器转发所述第一心跳。
第八方面,本发明实施例提供了一种与网络设备交互的终端,所述终端包括:
发送模块,用于向网络设备发送第一心跳;
接收模块,用于接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
处理模块,用于在所述接收模块接收到第一心跳响应后,如果所述终端的屏幕为熄灭状态,则关闭所述终端的数据业务;
所述处理模块,在所述发送模块向所述网络设备发送第二心跳之前,还用于打开所述终端的数据业务;
所述发送模块,还用于向所述网络设备发送所述第二心跳;
所述接收模块,还用于接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
结合第八方面,在第八方面的第一种实现方式中,所述处理模块运行N个应用程序,N为整数,且N大于1,所述第一心跳包括所述N个应用程序中每个应用程序向其对应的应用服务器发送的心跳。
结合第八方面的第一种实现方式,在第八方面的第二种实现方式中,所述N个应用程序通过所述终端中的网络代理向所述网络设备发送心跳。
结合第八方面的第一或第二种实现方式,在第八方面的第三种实现方式中,所述网络设备包括所述终端对应的终端设备商的网络服务器,所述第一 心跳发送至所述网络服务器,所述网络服务器用于向所述N个应用程序对应的应用服务器转发所述第一心跳。
第九方面,本发明实施例提供了一种终端,所述终端包括:
收发器,用于发送和接收所述终端与网络设备进行交互的数据;
一个或多个处理器;
存储器;
多个应用程序;以及
一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为被所述一个或多个处理器执行,所述一个或多个程序包括指令,所述指令用于:
所述终端向网络设备发送第一心跳;
所述终端接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
如果所述终端的屏幕为熄灭状态,且所述熄灭状态持续时间不大于T1,则释放所述终端与所述网络设备的网络链接资源;
如果所述熄灭状态持续时间为大于T1且不大于T2,T2>T1>0,则禁止所述终端的后台应用访问所述网络设备;
如果所述熄灭状态持续时间为大于T2,则关闭所述终端的数据业务;
在所述终端向所述网络设备发送第二心跳之前,所述终端执行:
如果所述终端与所述网络设备的网络链接资源被释放,则恢复所述网络链接资源;
如果所述终端的后台应用被禁止访问所述网络设备,则恢复允许所述终端的后台应用访问所述网络设备;
如果所述终端的数据业务被关闭,则打开所述终端的数据业务;
所述终端向所述网络设备发送所述第二心跳;
所述终端接收所述网络设备返回的第二心跳响应,所述第二心跳响应为 对应所述第二心跳的响应。
结合第九方面,在第九方面的第一种实现方式中,所述处理器运行N个应用程序,N为整数,且N大于1,所述第一心跳包括所述N个应用程序中每个应用程序向其对应的应用服务器发送的心跳。
结合第九方面的第一种实现方式,在第九方面的第二种实现方式中,所述N个应用程序通过所述终端中的网络代理向所述网络设备发送心跳。
结合第九方面的第一或第二种实现方式,在第九方面的第三种实现方式中,所述网络设备包括所述终端对应的终端设备商的网络服务器,所述第一心跳发送至所述网络服务器,所述网络服务器用于向所述N个应用程序对应的应用服务器转发所述第一心跳。
第十方面,本发明实施例提供了一种终端,所述终端包括:
收发器,用于发送和接收所述终端与网络设备进行交互的数据;
一个或多个处理器;
存储器;
多个应用程序;以及
一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为被所述一个或多个处理器执行,所述一个或多个程序包括指令,所述指令用于:
所述终端向网络设备发送第一心跳;
所述终端接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
如果所述终端的屏幕为熄灭状态,则释放所述终端与所述网络设备的网络链接资源;
在所述终端向所述网络设备发送第二心跳之前,所述终端恢复所述网络链接资源;
所述终端接收所述网络设备返回的第二心跳响应,所述第二心跳响应为 对应所述第二心跳的响应。
结合第十方面,在第十方面的第一种实现方式中,所述处理器运行N个应用程序,N为整数,且N大于1,所述第一心跳包括所述N个应用程序中每个应用程序向其对应的应用服务器发送的心跳。
结合第十方面的第一种实现方式,在第十方面的第二种实现方式中,所述N个应用程序通过所述终端中的网络代理向所述网络设备发送心跳。
结合第十方面的第一或第二种实现方式,在第十方面的第三种实现方式中,所述网络设备包括所述终端对应的终端设备商的网络服务器,所述第一心跳发送至所述网络服务器,所述网络服务器用于向所述N个应用程序对应的应用服务器转发所述第一心跳。
第十一方面,本发明实施例提供了一种终端,其特征在于,所述终端包括:
收发器,用于发送和接收所述终端与网络设备进行交互的数据;
一个或多个处理器;
存储器;
多个应用程序;以及
一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为被所述一个或多个处理器执行,所述一个或多个程序包括指令,所述指令用于:
所述终端向网络设备发送第一心跳;
所述终端接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
如果所述终端的屏幕为熄灭状态,则禁止所述终端的后台应用访问所述网络设备;
在所述终端向所述网络设备发送第二心跳之前,所述终端恢复允许所述终端的后台应用访问所述网络设备;
所述终端接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
结合第十一方面,在第十一方面的第一种实现方式中,所述处理器运行N个应用程序,N为整数,且N大于1,所述第一心跳包括所述N个应用程序中每个应用程序向其对应的应用服务器发送的心跳。
结合第十一方面的第一种实现方式,在第十一方面的第二种实现方式中,所述N个应用程序通过所述终端中的网络代理向所述网络设备发送心跳。
结合第十一方面的第一或第二种实现方式,在第十一方面的第三种实现方式中,所述网络设备包括所述终端对应的终端设备商的网络服务器,所述第一心跳发送至所述网络服务器,所述网络服务器用于向所述N个应用程序对应的应用服务器转发所述第一心跳。
第十二方面,本发明实施例提供了一种终端,所述终端包括:
收发器,用于发送和接收所述终端与网络设备进行交互的数据;
一个或多个处理器;
存储器;
多个应用程序;以及
一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为被所述一个或多个处理器执行,所述一个或多个程序包括指令,所述指令用于:
所述终端向网络设备发送第一心跳;
所述终端接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
如果所述终端的屏幕为熄灭状态,则关闭所述终端的数据业务;
在所述终端向所述网络设备发送第二心跳之前,所述终端打开所述终端的数据业务;
所述终端向所述网络设备发送所述第二心跳;
所述终端接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
结合第十二方面,在第十二方面的第一种实现方式中,所述处理器运行N个应用程序,N为整数,且N大于1,所述第一心跳包括所述N个应用程序中每个应用程序向其对应的应用服务器发送的心跳。
结合第十二方面的第一种实现方式,在第十二方面的第二种实现方式中,所述N个应用程序通过所述终端中的网络代理向所述网络设备发送心跳。
结合第十二方面的第一或第二种实现方式,在第十二方面的第三种实现方式中,所述网络设备包括所述终端对应的终端设备商的网络服务器,所述第一心跳发送至所述网络服务器,所述网络服务器用于向所述N个应用程序对应的应用服务器转发所述第一心跳。
第十三方面,本发明实施例提供了一种终端与网络设备交互的方法,所述方法包括:
终端获取所述终端的屏幕的状态;
如果所述终端的屏幕为熄灭状态,且所述熄灭状态持续时间不大于T1,则释放所述终端与所述网络设备的网络链接资源;
如果所述熄灭状态持续时间为大于T1且不大于T2,T2>T1>0,则禁止所述终端的后台应用访问所述网络设备;
如果所述熄灭状态持续时间为大于T2,则关闭所述终端的数据业务。
第十四方面,本发明实施例提供了一种与网络设备交互的终端,所述终端包括:
处理模块,用于获取所述终端的屏幕的状态;
处理模块,还用于如果所述终端的屏幕为熄灭状态,且所述熄灭状态持续时间不大于T1,则释放所述终端与所述网络设备的网络链接资源;
如果所述熄灭状态持续时间为大于T1且不大于T2,T2>T1>0,则禁止所述终端的后台应用访问所述网络设备;
如果所述熄灭状态持续时间为大于T2,则关闭所述终端的数据业务。
第十五方面,本发明实施例提供了一种终端,所述终端包括:
收发器,用于发送和接收所述终端与网络设备进行交互的数据;
一个或多个处理器;
存储器;
多个应用程序;以及
一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为被所述一个或多个处理器执行,所述一个或多个程序包括指令,所述指令用于:
所述终端向网络设备发送第一心跳;
所述终端接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
如果所述终端的屏幕为熄灭状态,则禁止所述终端的后台应用访问所述网络设备;
在所述终端向所述网络设备发送第二心跳之前,所述终端恢复允许所述终端的后台应用访问所述网络设备;
所述终端接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
本发明上述实施例提供的方案中,终端在接收到心跳响应后,如果屏幕处于熄灭状态,可选的,熄灭状态持续一段预设的时间,则可以释放所述终端与所述网络设备的网络链接资源,和/或禁止所述终端的后台应用访问所述网络设备,和/或关闭所述终端的数据业务,并在再次发送心跳前,恢复正常连接状态。这样,在两次心跳中间屏幕熄灭时,可选的,熄灭状态持续一段 预设的时间,通过断开应用程序与网络设备的数据交互,可以使得应用程序所属的终端和应用服务器都在线,且用户无感知的情况下,有效地降低终端功耗。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对现有技术或实施例中所需要使用的附图作简单地介绍,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。
图1是本发明实施例公开的手机的结构框图;
图2是本发明实施例公开的Android 4.3和Android 4.4系统中应用的心跳机制示意图;
图3是本发明实施例的组网架构图;
图4是本发明实施例1公开的一种终端与网络设备交互的方法的流程示意图;
图5是本发明实施例2公开的方法的流程示意图;
图6是本发明实施例3公开的终端的装置结构示意图;
图7是本发明实施例4公开的终端的硬件结构示意图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚,下面结合附图对本发明具体实施例作进一步的详细描述。为了理解本发明,在以下详细描述中提到了众多具体细节。但是本领域技术人员应该理解,本发明可以无需这些具体细节实现。在其他实例中,不详细描述公知的方法、过程、组件和电路等,以免造成实施例不必要地模糊。显然,以下所描述 的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。进一步应当理解,本文中采用的术语“包括”规定了所述的特征、整体、步骤、操作、元件和/或部件的存在,而不排除一个或多个其他特征、整体、步骤、操作、元件、部件和/或它们的组的存在或附加。
本发明实施例涉及的终端可以为手机、平板电脑、个人数字助理(Personal Digital Assistant,简称:PDA)、销售终端(Point of Sales,简称:POS)、车载电脑等终端设备,本发明实施例不作具体限定。以该终端为手机为例,图1示出的是与本发明实施例公开的终端相关的手机100的部分结构的框图。
参考图1,手机100包括射频(Radio Frequency,简称:RF)电路110、存储器120、输入单元130、显示单元140、传感器150、音频电路170、无线保真(wireless fidelity,简称:WiFi)模块180、处理器160、以及电源190等部件。本领域技术人员可以理解,图1中示出的手机结构只做实现方式的举例,并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面结合图1对手机100的各个构成部件进行具体的介绍:
RF电路110可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器160处理;另外,将设计上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、 耦合器、低噪声放大器(Low Noise Amplifier,简称:LNA)、双工器等。此外,RF电路110还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,简称:GSM)、通用分组无线服务(General Packet Radio Service,简称:GPRS)、码分多址(Code Division Multiple Access,简称:CDMA)、宽带码分多址(Wideband Code Division Multiple Access,简称:WCDMA)等。
存储器120可用于存储软件程序以及模块,处理器160通过运行存储在存储器120的软件程序以及模块,从而执行手机100的各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机100的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。图1中存储器120可以指示手机100的所有存储器;存储器120也可以是指手机100的第一存储器,手机100还包括第二存储器121,或者,手机100还包括其他未示出的存储器。
输入单元130可用于接收输入的数字或字符信息,以及产生与手机100的用户设置以及功能控制有关的键信号输入。具体地,输入单元130可包括触控面板131以及其他输入设备132。触控面板131,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板131上或在触控面板131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器160,并能接收处理器 160发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板131。除了触控面板131,输入单元130还可以包括其他输入设备132。具体地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元140可用于显示由用户输入的信息或提供给用户的信息以及手机100的各种菜单。显示单元140可包括显示面板141,可选的,可以采用液晶显示器(Liquid Crystal Display,简称LCD:)、有机发光二极管(Organic Light-Emitting Diode,简称:OLED)等形式来配置显示面板141。进一步的,触控面板131可覆盖显示面板141,当触控面板131检测到在其上或附近的触摸操作后,传送给处理器160以确定触摸事件的类型,随后处理器160根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图14中,触控面板131与显示面板141是作为两个独立的部件来实现手机100的输入和输入功能,但是在某些实施例中,可以将触控面板131与显示面板141集成而实现手机100的输入和输出功能。
手机100还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在手机100移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机100还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路170可包括扬声器和传声器,传声器可提供用户与手机100之间的音频接口。音频电路170可将接收到的音频数据转换后的电信号,传输到 扬声器,由扬声器转换为声音信号输出;另一方面,传声器将收集的声音信号转换为电信号,由音频电路170接收后转换为音频数据,再将音频数据输出处理器160处理后,经RF电路110以发送给比如另一手机,或者将音频数据输出至存储器120以便进一步处理。
WiFi属于短距离无线传输技术,手机100通过WiFi模块180可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图14示出了WiFi模块180,但是可以理解的是,其并不属于手机100的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器160是手机100的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行手机100的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器160可包括一个或多个处理单元;优选的,处理器160可集成应用处理器(Application Processor,AP)和通信处理器(Communication Processor,CP)。其中,应用处理器主要处理操作系统、用户界面和应用程序等;通信处理器,也可称为基带处理器(Baseband Processor,BP),主要处理无线通信,例如:负责管理所有需要天线的射频业务。可以理解的是,上述通信处理器也可以不集成到处理器160中。通信处理器可包括调制解调器(modulator-demodulator,modem)模块、编码译码模块,加扰模块,交织模块等。根据终端的实际需求不同,通信处理器包含的功能模块也可能不同,如不同的终端使用不同的通信处理器芯片。
手机100还包括给各个部件供电的电源190(比如电池),优选的,电源可以通过电源管理系统与处理器160逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管未示出,手机100还可以包括摄像头、蓝牙模块等,在此不再赘述。
心跳机制
为了维持应用程序所属的终端与对应的服务器之间的在线状态,应用程序需要每隔一定时间向应用服务器发送心跳,应用服务器在接收到该心跳后,向应用程序返回心跳响应。心跳也可称为心跳帧或心跳包。
如果应用程序在规定的一定时间间隔内,没有收到应用服务器返回的心跳响应,会认为网络链路不通或应用服务器出错,将进行重新连接登陆;而应用服务器如果在规定的一定时间间隔内,没有收到应用程序发送的心跳,则会释放服务器资源,注销该应用程序的在线状态。
在Android 4.3的系统中,如图2所示,终端中正在运行的应用程序包括应用程序a1、a2、a3,应用程序a1、a2、a3分别以不同的时间间隔向应用服务器发送心跳。终端上运行的每个应用程序都采用上述发送心跳的方式,隔一段时间向应用服务器发送心跳以维持应用程序的在线状态。正在运行的每个应用程序每次发送心跳时,终端均需要向移动网络的网络设备请求一次数据传输连接,并通过该数据传输连接与应用服务器交互心跳和心跳响应。
然而,终端每次与移动网络的网络设备建立数据传输连接,均需要占用移动网络控制层面的信令资源,例如,在分组域网络架构中,终端需要与移动网络的网络设备通过信令交互,进行一侧分组数据协议(Packet Data Protocol,PDP)激活,由网络设备为该终端分配一个IP地址,然后终端使用该IP地址,在数据网络中与网络设备通信对端进行数据传输。所以,频繁的心跳消息的传输,会占用了大量的移动网络控制层面的信令资源,当一个终端在线多个应用程序时,这种情况更加严重,从而影响其他业务的正常运行,并降低了移动网络的网络服务质量。
Android 4.4的系统对Android 4.3的系统进行了优化,对终端运行中的应用的心跳进行了部分合并批处理,如图2所示。终端中包括正在运行的应用程序a1、a2、a3,应用程序a1、a2、a3分别以不同的时间间隔向应用服 务器发送心跳。Android 4.4的系统对相邻的时间间隔短的心跳进行了批处理,如:在第1部分,终端发送a1、a2的心跳的时间相邻且间隔短,可将这两个心跳的发送合并处理,如在a1、a2的心跳发送的时间中取一个时间点发送b1心跳,其中b1心跳包括应用a1、a2的心跳。可以理解,此处的将两个心跳的发送合并处理,可以是将a1、a2的心跳整合在一起发送,也可以是在发送的时间点先后发送a1、a2的心跳。也就是说,b1心跳可以是两个心跳,是a1、a2的心跳的统称;b1心跳也可以是一个心跳,整合了a1、a2的心跳。若b1心跳整合了a1、a2的心跳,则需要网络设备的设备将a1、a2的心跳分别转发至对应的应用服务器。在第2部分a2、a1的心跳的发送时间相邻且间隔短,可将这两个心跳的发送合并处理,在a2、a1心跳发送的时间中间取一个时间点发送b2心跳,其中b2心跳包括应用a2、a1的心跳;在第3部分,终端发送a2、a3的心跳相邻且间隔短,将这两个心跳的发送合并处理,可在a2、a3的心跳发送的时间中取一个时间点发送b3心跳,其中b3心跳包括应用a2、a3的心跳;以此类推。
虽然Android 4.4的系统对正在运行的心跳进行了批处理,但可以看出,批处理后发送心跳的间隔仍然很短,活动频繁,以致消耗终端的整体功耗依然很大。
统一心跳是指将终端上处于运行状态的多个应用程序统一起来,在同一个时间点以同一个确定的周期同时或依次发送心跳。在统一心跳周期到达时,终端与网络设备建立数据传输连接,并通过建立的数据传输连接,将这多个应用程序对应的心跳发送给对应的应用服务器。终端的统一心跳周期是使终端当前处于运行状态的应用程序和对应的应用服务器处于在线状态的心跳发送周期。在网络连接畅通的状态下,若终端以统一心跳周期发送各运行状态的多个应用程序的心跳和收到应用服务器的心跳响应,应用程序和对应的应用服务器会保持一直在线,双方的交互不需要进行重新连接。可以理解的是,统一心跳周期与终端当前运行的应用程序有关,当打开一个应用程 序或关闭一个应用程序时,统一心跳周期可能会改变。
Android平台允许进程在后台活动,如push消息,同步网络数据等。这样导致灭屏待机时频繁占用网络资源,待机功耗偏大,而主要原因是由于各应用在灭屏后仍通过数据业务访问网络造成的。为了解决灭屏功耗过大问题,一些厂商通过持续灭屏超过30分钟或1小时,直接切断数据业务来降低功耗,但在小于1小时或小于30分钟的时间内,待机功耗依然很大,从目前大量用户的实测数据分析,在正常使用时,每用户平均十几分钟进行一次亮屏操作,因此超过30分钟或超过1小时断网功能的生效范围有限,仅在长时间不用手机时有效,如晚上睡觉。而若终端一灭屏就直接切断数据业务来降低功耗,终端正在进行的业务会受到影响,如用户通过微信与好友在聊天,当发送完一条消息后就灭屏了,若此时终端直接切断数据业务,用户将不能及时收到好友的回复消息,很明显会影响用户的体验。因此针对上述情况,终端需要进行进一步深入优化,降低待机功耗。
本发明实施例提供了一些解决方案能解决上述问题。以手机为例,本发明实施例的组网架构如图3所示。
该网络架构中包括终端与网络设备。Part A为终端,Part B和Part C为网络设备。其中,Part B为可选部分。
Part A:终端内部可建立一个与网络访问相关的网络代理,所有终端与网络设备的交互都由该网络代理集中收发。
Part B:可选部分,网络设备中可包括终端设备商的网络服务器。终端内部的网络代理与终端设备商的网络服务器建立通信链路。终端与该网络服务器的交互根据统一心跳周期处理。终端中应用程序的网络请求都由该网络服务器转发至对应的应用服务器。终端设备商的网络服务器对终端与网络的交互进行统一管理。只要保证心跳时链路畅通,无论是终端的应用程序还是应用程序对应的服务器都会处于在线状态。
Part C:网络设备包括第三方应用服务器。第三方应用服务器为终端中运行的应用程序对应的应用服务器。终端设备商的网络服务器可与第三方应用服务器交互,作为所有终端设备的代理。应理解,本发明实施例中的应用程序不包括本地应用程序,即不包括不与第三方应用服务器交互的应用程序。
网络设备若不包括终端设备商的网络服务器时,终端内部的网络代理在统一心跳到来时可将当前正在运行的应用程序的心跳分别发送至第三方应用服务器。可以理解的是,终端将心跳或其他交互消息发送至终端设备商的网络服务器或第三方应用服务器会经过网络中的一些其他设备,如基站、WiFi设备等,关于这部分内容本领域技术人员都能理解,本发明实施例不作详细描述。
可选的,终端内部的网络代理也可以是定时管理服务单元,定时管理服务单元可以根据指示设置定时器。终端可通过定时管理服务单元设置统一心跳周期,在通知心跳周期到来时,在定时器指示的时间唤醒终端,向终端当前处于在线状态的应用程序对应的应用服务器发送心跳。
本发明实施例1公开了一种终端与网络设备交互的方法,可以在用户无感知,并保持运行的应用程序未被挂起、也未被关闭并且心跳未停的情况下,降低待机功耗。下面,以终端为手机为例,说明该方案的具体实现过程,如图4所示。
S102,手机处于亮屏状态。
例如,手机屏幕处于点亮状态,用户在用微信跟朋友聊天,手机与网络设备正常通信。此外,手机中正在运行的应用程序还包括Facebook和新浪微博。
可选的,手机内部可包括网络代理。手机内的网络代理管理所有手机与网络设备交互的手机侧的网络会话。如:手机运行的应用程序向网络设备发 送的数据都经由网络代理发送,手机接收的数据都经由网络设备发送至对应的应用程序。
可选的,网络设备中可包括终端设备商的网络服务器。手机通过终端设备商的网络服务器与第三方服务器进行交互。此处,终端设备商对应的是手机的生产商,例如,如果用户使用的手机是华为mate7,那么终端设备商的服务器为华为的服务器;如果用户使用的手机是iPhone6,那么终端设备商的服务器即为苹果的服务器等。第三方服务器是指应用程序对应的服务器,如微信服务器、Facebook服务器、新浪服务器。
S104,0时刻,手机向网络设备发送第一心跳。
例如,该第一心跳包括手机上运行的三个应用程序中每个应用程序向其对应的应用服务器发送的心跳,如:微信向微信服务器发送的心跳、Facebook向Facebook服务器发送的心跳、新浪微博向新浪服务器发送的心跳。若网络设备中不包括终端设备商的网络服务器,手机在0时刻分别向每个应用程序对应的应用服务器发送心跳。若网络设备中包括终端设备商的网络服务器,则手机向终端设备商的网络服务器发送心跳。该终端设备商的网络服务器将接收到的心跳分别转发至对应的第三方服务器,即微信服务器、Facebook服务器和新浪服务器。手机以统一心跳周期t向第三方服务器发送心跳。手机向终端设备商的网络服务器发送心跳可以是手机将所有运行的应用程序的心跳集中起来发送,也可以是手机分别向终端设备商的网络服务器发送所有运行的应用程序的心跳。该第一心跳是目前正在运行的应用程序向对应的应用服务器发送的心跳的统称,以使各应用服务器知道自己“在线”。
终端上运行的应用程序可以包括前台运行的应用程序和后台运行的应用程序。前台运行的应用程序是指窗口运行且运行界面可以直接与用户进行互动的应用程序。后台运行的应用程序是指在资源管理器里运行,没有界面或界面不能直接与用户进行互动,但占用系统资源的应用程序。终端的屏幕 熄灭后,正在运行的应用程序都可认为是后台应用程序,或称为后台应用。
S106,网络设备接收到第一心跳后,返回第一心跳响应给手机。
例如,微信服务器、Facebook服务器和新浪服务器在接收到第一心跳后,返回第一心跳响应给手机。若网络设备中不包括终端设备商的网络服务器,手机中每个应用程序对应的应用服务器分别将第一心跳响应发送给手机。若网络设备中包括终端设备商的网络服务器,则每个应用程序对应的应用服务器,即微信服务器、Facebook服务器和新浪服务器分别将第一心跳响应发送给终端设备商的网络服务器;然后,终端设备商的网络服务器将接收到的第一心跳响应转发至手机。手机接收的第一心跳响应包括手机上正在运行的三个应用程序,微信、Facebook、新浪微博,的第一心跳响应。终端设备商的网络服务器可以将该三个应用程序的第一心跳响应整合起来一起发送给手机,由手机的网络代理再分别转发给对应的应用程序。终端设备商的网络服务器也可以将收到的该三个应用程序的第一心跳响应分别发送给手机。
S108,获取手机屏幕的状态,并执行相应的操作。
例如,手机接收到第一心跳响应后,立即获取手机屏幕的状态。手机也可在接收到第一心跳响应后,间隔预定时间后获取手机屏幕的状态。当手机屏幕为点亮状态时,手机与网络设备正常交互,不进行其他处理。
S110,熄灭手机屏幕。
例如,用户通过微信给朋友发送完一条消息后,按下按键使屏幕熄灭。此时,手机只是屏幕处于熄灭状态,并未关闭。手机上运行的应用程序都可认为是后台应用。
S112,t时刻时,手机向网络设备发送第二心跳。
例如,该心跳为手机上正在运行的全部应用程序,微信、Facebook、新浪微博,的统一心跳。可以理解的是,若S104中发送第一心跳时手机中运行的应用程序与S112发送第二心跳时运行的应用程序相同,那么手机发送心跳的统一心跳周期可以没有变化,若S104后,用户又打开了另外的应用 程序或关闭了某些应用程序,手机发送心跳的统一心跳周期可能根据运行的应用程序的不同而不同。手机向网络设备发送第二心跳的方式与发送第一心跳的方式相同,此处不再赘述。
S114,网络设备接收到第二心跳后,返回第二心跳响应给手机。
例如,微信服务器、Facebook服务器和新浪服务器在接收到第二心跳后,返回第二心跳响应给手机。微信服务器、Facebook服务器和新浪服务器向手机发送第二心跳响应的方式与发送第一心跳响应的方式相同,此处不再赘述。
S116,获取手机屏幕的状态,并执行相应的操作。
例如,手机在接收到第二心跳响应后,如果手机的屏幕为熄灭状态,且熄灭状态的持续时间不大于T1时,则释放手机与网络设备连接的网络链接资源。手机释放网络链接资源,modem会处于空闲态(Idle State),不再与空中接口进行交互了,因此,手机也就不能与网络设备进行数据交互了。可选的,手机可通过调用释放无线资源控制(Radio Resource Control,RRC)的接口,如RRC_Release接口,来释放网络链接资源。
如果手机的屏幕为熄灭状态,且熄灭状态的持续时间为大于T1且不大于T2,T2>T1>0,则禁止手机的后台应用访问所述网络设备。当禁止手机的后台应用访问网络设备时,手机与网络设备可以保持连接状态。但若手机与网络设备无交互的时间超过阈值,手机也可释放网络链接资源。
可选的,手机也可以禁止部分应用程序访问网络设备。如:手机可以限制一定比例的应用程序访问网络,其他的应用程序则禁止访问网络。手机也可禁止某些预设的应用程序访问网络,或者手机也可禁止一些与网络交互频繁或数据量大的应用程序访问网络。手机可通过统计交互次数或统计交互流量的大小是否超过相应的阈值来判断该应用程序与网络交互是否频繁或与网络交互数据量是否较大。
如果手机的屏幕为熄灭状态,且熄灭状态的持续时间为大于T2,则关 闭所述终端的数据业务。
可选的,若手机接收到第二心跳响应时,手机的屏幕为熄灭状态,且熄灭状态的持续时间不大于T1,则释放手机与网络设备连接的网络链接资源;若在下一个统一心跳周期到来前,手机屏幕的熄灭状态的持续时间达到T1,则禁止手机的后台应用访问网络设备;若在下一个统一心跳周期到来前,手机屏幕的熄灭状态的持续时间达到T2,则关闭手机的数据业务。
S118,在统一心跳周期到来前,手机恢复到与网络设备的正常连接状态。
例如,如果手机与所述网络设备的网络链接资源被释放,则手机恢复与网络设备连接的网络链接资源。手机与网络设备重新建立连接,modem由空闲态转为运行态。
可以理解的是,该网络链接资源可以是与发送第一心跳时完全相同的网络链接资源,也可以是不完全相同的网络链接资源,如网络侧分配的时频资源可能存在不同。但该步骤建立网络链接资源与发送第一心跳的网络链接资源在网络协议等其他方面没有实质区别,可以认为该步骤建立的网络链接资源与发送第一心跳的网络链接资源是一样的。
如果手机的后台应用被禁止访问所述网络设备,则手机恢复允许后台应用访问所述网络设备。
如果手机的数据业务被关闭,则打开手机的数据业务。
例如:如果手机接收到第一心跳响应后,手机的屏幕处于熄灭状态,且熄灭的持续时间小于T1,而当前手机的统一心跳周期到来前,熄灭的持续时间大于T1小于T2,则手机恢复与网络设备连接的网络链接资源,并恢复允许手机的后台应用访问网络设备。
S120,2t时刻时,手机向网络设备发送第三心跳。
例如,该心跳为手机上正在运行的全部应用程序,微信、Facebook、新浪微博,的统一心跳。手机向网络设备发送第三心跳的方式与发送第一、二心跳的方式相同,此处不再赘述。
S122,网络设备接收到第三心跳后,返回第三心跳响应给手机。
例如,微信服务器、Facebook服务器和新浪服务器在接收到第三心跳后,返回第三心跳响应给手机。微信服务器、Facebook服务器和新浪服务器向手机发送第三心跳响应的方式与发送第一、二心跳响应的方式相同,此处不再赘述。
S124,手机以统一心跳周期t周期性地发送和接收心跳,并获取手机屏幕的状态以执行相应的操作。
例如,在手机屏幕被点亮之前,手机按统一心跳周期t向网络设备发送心跳和接收网络设备返回的心跳响应,并在每次接收到心跳响应后,判断手机屏幕熄灭状态的持续时间以执行相应的操作,参见S116,此处不再赘述。
S126,用户点亮手机屏幕,手机与网络设备正常通信。
例如,用户操作手机,点亮手机屏幕后,手机与网络设备正常交互。即当手机收到心跳响应后,获取手机屏幕为点亮状态时,手机不进行其他处理,与网络设备保持正常的连接状态。应理解,本实施例中,手机不进行其他处理是手机不进行与网络设备正常交互外的其他处理,如S116中,释放所述终端与所述网络设备的网络链接资源,和/或禁止所述终端的后台应用访问所述网络设备,和/或关闭所述终端的数据业务的相关处理。
可选的,手机可以启动一个计时器/定时器或多个计时器/定时器来计时。心跳周期t、手机的屏幕熄灭状态的持续时间T1、T2可以是启动一个计时器来计时,也可以是启动两个计时器或三个计时器来计时,或启动更多的计时器来计时,本发明不作限制。
可选的,手机在接收到心跳响应后,如果手机的屏幕为熄灭状态,且熄灭状态的持续时间不大于T1,则释放手机与网络设备连接的网络链接资源。在下一个心跳周期到来前,手机可继续判断屏幕熄灭的持续时间是否大于 T1。如果手机的熄灭状态的持续时间达到T1,则禁止手机的后台应用访问网络设备;如果手机的熄灭状态的持续时间达到T2,则关闭手机的数据业务。手机可设置计时器,当手机的屏幕熄灭状态的持续时间达到T1时,即可触发手机禁止后台应用访问网络设备。手机可设置计时器,当手机的屏幕熄灭状态的持续时间达到T2时,即可触发手机关闭手机的数据业务。在下一个心跳周期到来前,手机也可不继续判断屏幕熄灭的持续时间,如:手机收到心跳响应后,如果手机的屏幕熄灭状态的持续时间不大于T1,则释放手机与网络设备连接的网络链接资源,然后在下一个心跳周期到来前不再判断屏幕的熄灭时间是否大于T1或T2。
可选的,在S116的另一种可选的实施方式中,手机在接收到心跳响应后,如果手机的屏幕为熄灭状态,且熄灭状态的持续时间不大于T1,则释放手机与网络设备进行连接的网络链接资源;如果熄灭状态的持续时间不大于T2,则关闭手机的数据业务;如果熄灭状态的持续时间大于T2,则禁止手机的后台应用访问所述网络设备。
可选的,在S116的另一种可选的实施方式中,手机在接收到心跳响应后,如果手机的屏幕为熄灭状态,且熄灭状态的持续时间不大于T1,则禁止手机的后台应用访问所述网络设备;如果熄灭状态的持续时间大于T1且不大于T2,则释放手机与网络设备进行连接的网络链接资源;如果熄灭状态的持续时间大于T2,则关闭手机的数据业务。
可选的,在S116的另一种可选的实施方式中,手机在接收到心跳响应后,如果手机的屏幕为熄灭状态,且熄灭状态的持续时间不大于T1,则禁止手机的后台应用访问所述网络设备;如果熄灭状态的持续时间大于T1且不大于T2,则关闭手机的数据业务;如果熄灭状态的持续时间大于T2,则释放手机与网络设备进行连接的网络链接资源。
可选的,在S116的另一种可选的实施方式中,手机在接收到心跳响应后,如果手机的屏幕为熄灭状态,且熄灭状态的持续时间不大于T1,则关闭手机的数据业务;如果熄灭状态的持续时间大于T1且不大于T2,则禁止手机的后台应用访问所述网络设备;如果熄灭状态的持续时间大于T2,则释放手机与网络设备进行连接的网络链接资源。
可选的,在S116的另一种可选的实施方式中,手机在接收到心跳响应后,如果手机的屏幕为熄灭状态,且熄灭状态的持续时间不大于T1,则关闭手机的数据业务;如果熄灭状态的持续时间大于T1且不大于T2,则释放手机与网络设备进行连接的网络链接资源;如果熄灭状态的持续时间大于T2,则禁止手机的后台应用访问所述网络设备。
可选的,手机在接收到心跳响应后,如果手机的屏幕为熄灭状态,手机可以只采取单一策略,不需要判断手机的屏幕熄灭状态的持续时间,如:如果手机的屏幕为熄灭状态,手机释放网络链接资源;或者,如果手机的屏幕为熄灭状态,手机禁止后台应用访问网络设备;或者,如果手机的屏幕为熄灭状态,关闭数据业务。
本发明实施例中,终端在接收到心跳响应后,如果屏幕处于熄灭状态,可选的,熄灭状态持续一段预设的时间,则可以释放所述终端与所述网络设备的网络链接资源,和/或禁止所述终端的后台应用访问所述网络设备,和/或关闭所述终端的数据业务,并在再次发送心跳前,恢复正常连接状态。这样,在两次心跳中间屏幕熄灭时,可选的,熄灭状态持续一段预设的时间,通过断开应用程序与网络设备的数据交互,可以使得应用程序所属的终端和应用服务器都在线,且用户无感知的情况下,有效地降低终端功耗。
实施例2
本实施例是在实施例1的基础上进行的一个实验,本实施例的终端以3G 制式的手机为例。终端以t为周期释放网络链接资源,让modem进入休眠态,其中t为终端的统一心跳周期。在本实施例中,该手机通过调用释放无线资源控制(Radio Resource Control,RRC)的接口来释放网络链接资源。
本实施例的3G制式的手机上安装并运行了一些日常应用,如:微信、QQ、网易新闻、Zarek、大众点评,也可以包括其他,本发明实施例仅例举几项示例。该手机可先计算得到当前运行的应用程序的统一心跳,计算统一心跳的实现方式有多种,本发明实施例不作限制。该手机的统一心跳也可通过其他条件或经验预先设定。
如图5所示,本实施例的步骤可以包括:
S202,若0时刻时,手机发送心跳。
手机与网络设备通过3G网络通信。手机上正在运行的应用程序分别向各应用程序对应的应用服务器发送心跳。可以理解,手机向应用服务器发送心跳会经过3G网络的其他网络设备,如基站等,此为本领域技术人员熟知的内容,此处不再赘述。
S204,手机接收心跳响应。
手机接收各应用服务器返回的心跳响应。各应用服务器在接收到心跳后,分别返回心跳响应给手机。
S206,手机屏幕为熄灭状态,释放网络链接资源。
手机接收心跳响应后,获取手机屏幕的状态。如果手机屏幕为熄灭状态,则调用RRC Release接口释放手机与网络连接的网络链接资源,使modem处于空闲态。
S208,手机恢复网络链接资源。
统一心跳周期即将到来时,手机恢复网络链接资源,使手机与网络处于正常连接状态。modem由空闲态变为运行态,重新与网络设备建立连接。
S210,t时刻,手机发送心跳。
统一心跳周期到来时,手机向当前正在运行的应用程序对应的应用服务 器发送心跳。
S212,手机接收心跳响应。
手机接收各应用服务器返回的心跳响应。各应用服务器在接收到心跳后,分别返回心跳响应给手机。
S214,周期性地执行上述S202~S212,直至手机屏幕处于亮屏状态。
也就是说,手机按照统一心跳周期t周期性地向手机正在运行的应用程序对应的应用服务器发送心跳和接收心跳响应,在每次接收到心跳响应后手机都释放网络链接资源,与网络断开连接,在下一个心跳周期到来前恢复网络链接资源,与网络重新建立连接,直到用户点亮手机屏幕。
在本实施例的实测实验中,使用上述方法,手机3小时的平均电流为15.351mA,比不使用上述方法时3小时的平均电流22.268mA少约7mA,收益达31.1%。本实施例的方法可以在用户毫无感知且保持应用程序心跳的情况下,降低功耗,延长手机的待机时间。
本发明实施例中,终端在接收到第一心跳响应后,判断如果屏幕处于熄灭状态,则通过释放网络链接资源,断开终端应用程序与网络设备的数据交互,并在发送第二心跳前,恢复网络链接资源,可以使得应用程序所属的终端和应用服务器都在线,且用户无感知的情况下,有效地降低终端功耗。
实施例3
本发明实施例3提供了一种终端300,其结构图如图7所示,用于执行实施例1~实施例2的方法,实施例1~实施例2中能实现的所有方案和特征均适用于本实施例,在此不再赘述。
所述终端300包括:发送模块310和接收模块320和处理模块330。可以理解,发送模块310和接收模块320也可集成在一起为收发模块。
在一种实现方式中,
发送模块,用于向网络设备发送第一心跳;
接收模块,用于接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
处理模块,用于在接收模块接收到第一心跳响应后,如果所述终端的屏幕为熄灭状态,且所述熄灭状态持续时间不大于T1,则释放所述终端与所述网络设备的网络链接资源;
如果所述熄灭状态持续时间为大于T1且不大于T2,T2>T1>0,则禁止所述终端的后台应用访问所述网络设备;
如果所述熄灭状态持续时间为大于T2,则关闭所述终端的数据业务;
所述处理模块,在所述发送模块向所述网络设备发送第二心跳之前,还用于执行:
如果所述终端与所述网络设备的网络链接资源被释放,则恢复所述网络链接资源;
如果所述终端的后台应用被禁止访问所述网络设备,则恢复允许所述终端的后台应用访问所述网络设备;
如果所述终端的数据业务被关闭,则打开所述终端的数据业务;所述发送模块,还用于向所述网络设备发送所述第二心跳;
所述接收模块,还用于接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
可选的,所述处理模块运行N个应用程序,N为整数,且N大于1,所述第一心跳包括所述N个应用程序中每个应用程序向其对应的应用服务器发送的心跳。
可选的,终端还可包括网络代理模块。其中,网络代理模块也可集成到处理模块330。所述N个应用程序通过所述终端中的网络代理向所述网络设备发送心跳。
可选的,网络设备包括所述终端对应的终端设备商的网络服务器。发送模块向网络设备发送第一心跳可以为:发送模块将第一心跳发送至该网络服 务器,该网络服务器再向所述N个应用程序对应的应用服务器转发所述第一心跳。
在另一种实现方式中,
处理模块330,用于在接收模块320接收到第一心跳响应后,如果所述终端的屏幕为熄灭状态,则释放所述终端与所述网络设备的网络链接资源;
处理模块330,在发送模块310向所述网络设备发送第二心跳之前,还用于恢复所述网络链接资源。
在另一种实现方式中,
处理模块330,用于在接收模块320接收到第一心跳响应后,如果所述终端的屏幕为熄灭状态,则禁止所述终端的后台应用访问所述网络设备;
处理模块330,在所述发送模块310向所述网络设备发送第二心跳之前,还用于恢复允许所述终端的后台应用访问所述网络设备。
在另一种实现方式中,
处理模块330,用于在接收模块310接收到第一心跳响应后,如果所述终端的屏幕为熄灭状态,则关闭所述终端的数据业务;
处理模块330,在发送模块320向所述网络设备发送第二心跳之前,还用于打开所述终端的数据业务。
本实施例的终端300还可配置为用于实现实施例1或实施例2的其他实现方式,为了简洁描述,此处不再赘述。
本发明实施例中,终端在接收到心跳响应后,如果屏幕处于熄灭状态,则释放所述终端与所述网络设备的网络链接资源/禁止所述终端的后台应用访问所述网络设备/关闭所述终端的数据业务,并在再次发送心跳前,恢复正常连接状态。这样,在两次心跳中间屏幕熄灭时,断开应用程序与网络设备的数据交互,可以使得应用程序所属的终端和应用服务器都在线,且用户无感知的情况下,有效地降低终端功耗。
本发明实施例4还提供的一种终端400,其硬件结构示意图如图5所示。终端400用于执行实施例1~实施例2的方法,实施例1~实施例2中能实现的所有方案和特征均适用于本实施例,在此不再赘述。
终端400包括处理器160、存储器120、收发器406和总线408。其中,处理器160、存储器120、收发器406通过总线408通信。可以理解,虽然图5所示的终端的处理器160和存储器120与图1的处理器160和存储器120相同,但本实施例的终端400不局限于手机,终端400中处理器和存储器等的结构可以与手机100的结构相关,但又不受手机结构的限制。可以理解,终端还可包括屏幕,用于显示信息,如图1的显示单元140,或者可仅包括显示面板141。
处理器160包括应用处理器(Application Processor,AP)和通信处理器(Communication Processor,CP)。应用处理器主要处理操作系统、用户界面和应用程序等;通信处理器也可称为基带处理器(Baseband Processor,BP),主要处理无线通信。收发器406可包括图1中的RF电路110和/或WiFi模块180。终端400可通过收发器406与网络设备进行通信。收发器406可以向网络设备发送数据,并接收网络设备的数据。终端400的结构可参见图1及手机100各部件的具体介绍,此处不再赘述。
处理器160可包括网络代理。所有终端与网络设备的交互都由该网络代理集中收发。具体的,该网络代理可为处理器160的软件模块。可选的,该网络代理可为AP中的软件模块。
具体的,在一种实现方式中,
处理器160,可用于向网络设备发送第一心跳。可以理解的是,处理器160将向网络设备发送的第一心跳发送给收发器406,然后收发器向网络设备发送该第一心跳。当处理器160运行N个应用程序时,第一心跳包括所述N个应用程序中每个应用程序向其对应的应用服务器发送的心跳,其中,N为正整数。若网络设备中不包括终端设备商的网络服务器,处理器160分别 向每个应用程序对应的应用服务器发送心跳。若网络设备中包括终端设备商的网络服务器,则处理器160向终端设备商的网络服务器发送心跳。该终端设备商的网络服务器将接收到的心跳分别转发至对应的应用服务器。
处理器160,还用于接收网络设备返回的第一心跳响应。同样,处理器接收的第一心跳响应为收发器406从网络设备接收得到。第一心跳响应为N个应用程序中每个应用程序对应的应用服务器返回的心跳响应。若网络设备中不包括终端设备商的网络服务器,每个应用程序对应的应用服务器分别将第一心跳响应发送给终端。若网络设备中包括终端设备商的网络服务器,则每个应用程序对应的应用服务器分别将第一心跳响应发送给终端设备商的网络服务器;然后,终端设备商的网络服务器将接收到的第一心跳响应转发至该终端。
处理器160,还用于在接收到所述第一心跳响应后,获取屏幕的状态,如果所述终端的屏幕为熄灭状态,且所述熄灭状态持续时间不大于T1,则释放所述终端与所述网络设备的网络链接资源;
如果所述熄灭状态持续时间为大于T1且不大于T2,T2>T1>0,则禁止所述终端的后台应用访问所述网络设备;
如果所述熄灭状态持续时间为大于T2,则关闭所述终端的数据业务;
处理器160还用于,在向所述网络设备发送第二心跳之前,执行:
如果所述网络代理与所述网络设备的网络链接资源被释放,则恢复所述网络链接资源;
如果所述终端的后台应用被禁止访问所述网络设备,则恢复允许所述终端的后台应用访问所述网络设备;
如果所述终端的数据业务被关闭,则打开所述终端的数据业务。
处理器160,还可用于向网络设备发送所述第二心跳;发送第二心跳的方式与第一心跳相同,此处不再赘述。
处理器160,还用于接收第二心跳响应。接收第二心跳的方式与第一心 跳相同,此处不再赘述。
可选的,
在另一种可选的实现方式中,
处理器160,在接收到所述第一心跳响应后,获取屏幕的状态,如果所述终端的屏幕为熄灭状态,处理器160可释放所述终端与所述网络设备的网络链接资源;或者,处理器160可禁止所述终端的后台应用访问所述网络设备;或者,处理器160可关闭所述终端的数据业务。在这种实现方式中,处理器可不用获取屏幕熄灭状态的持续时间。
处理器160,在向所述网络设备发送第二心跳之前,还用于执行:
如果所述网络代理与所述网络设备的网络链接资源被释放,则恢复所述网络链接资源;
如果所述终端的后台应用被禁止访问所述网络设备,则恢复允许所述终端的后台应用访问所述网络设备;
如果所述终端的数据业务被关闭,则打开所述终端的数据业务。
终端400还可配置为用于实现其他实现方式的终端,具体可参见实施例1中可选的实现方式,此处不再赘述。
本实施例提供的方案中,终端在接收到心跳响应后,如果屏幕处于熄灭状态,则释放所述终端与所述网络设备的网络链接资源/禁止所述终端的后台应用访问所述网络设备/关闭所述终端的数据业务,并在再次发送心跳前,恢复正常连接状态。这样,在两次心跳中间屏幕熄灭时,断开应用程序与网络设备的数据交互,可以使得应用程序所属的终端和应用服务器都在线,且用户无感知的情况下,有效地降低终端功耗。
应当理解,在本说明书的所有实施例中,如图7所示,所述终端一般包括至少一个处理器(例如CPU)、至少一个收发器、和至少一个总线。处理 器为电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储单元内的软件程序和/或模块,以及调用存储在存储单元内的数据,以执行电子设备的各种功能和/或处理数据。所述处理器可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器可以仅包括中央处理器(Central Processing Unit,简称CPU),也可以是GPU、数字信号处理器(Digital Signal Processor,简称DSP)、及通信单元中的控制芯片(例如基带芯片)的组合。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。
应注意,尽管图7所示的终端400仅仅示出了处理器160、存储器120、收发器406和总线408,但是在具体实现过程中,本领域的技术人员应当明白,终端400还包含实现正常运行所必须的其他器件。同时,根据具体需要,本领域的技术人员应当明白,终端400还可包含实现其他附加功能的硬件器件。此外,本领域的技术人员应当明白,终端400也可仅仅包含实现本发明实施例所必须的器件,而不必包含图7中所示的全部器件。
图7所示的硬件结构以及上述描述适用于本发明实施例所提供的各种终端。本领域普通技术人员可知,上述方法中的全部或部分步骤可以通过程序指令相关的硬件完成,该程序可以存储于一计算机可读存储介质中,该计算机可读存储介质如ROM、RAM和光盘等。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特 定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。

Claims (39)

  1. 一种终端与网络设备交互的方法,其特征在于,所述方法包括:
    终端向网络设备发送第一心跳;
    所述终端接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
    如果所述终端的屏幕为熄灭状态,且所述熄灭状态持续时间不大于T1,则释放所述终端与所述网络设备的网络链接资源;
    如果所述熄灭状态持续时间为大于T1且不大于T2,T2>T1>0,则禁止所述终端的后台应用访问所述网络设备;
    如果所述熄灭状态持续时间为大于T2,则关闭所述终端的数据业务;
    在所述终端向所述网络设备发送第二心跳之前,所述终端执行:
    如果所述终端与所述网络设备的网络链接资源被释放,则恢复所述网络链接资源;
    如果所述终端的后台应用被禁止访问所述网络设备,则恢复允许所述终端的后台应用访问所述网络设备;
    如果所述终端的数据业务被关闭,则打开所述终端的数据业务;
    所述终端向所述网络设备发送所述第二心跳;
    所述终端接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
  2. 根据权利要求1所述的方法,其特征在于,所述终端运行N个应用程序,N为整数,且N大于1,所述第一心跳包括所述N个应用程序中每个应用程序向其对应的应用服务器发送的心跳。
  3. 根据权利要求2所述的方法,其特征在于,所述N个应用程序通过所述终端中的网络代理向所述网络设备发送心跳。
  4. 根据权利要求2-3任一项所述的方法,其特征在于,所述网络设备包括所述终端对应的终端设备商的网络服务器,所述第一心跳发送至所述网 络服务器,所述网络服务器用于向所述N个应用程序对应的应用服务器转发所述第一心跳。
  5. 一种终端与网络设备交互的方法,其特征在于,所述方法包括:
    终端向网络设备发送第一心跳;
    所述终端接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
    如果所述终端的屏幕为熄灭状态,则释放所述终端与所述网络设备的网络链接资源;
    在所述终端向所述网络设备发送第二心跳之前,所述终端恢复所述网络链接资源;
    所述终端向所述网络设备发送所述第二心跳;
    所述终端接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
  6. 根据权利要求5所述的方法,其特征在于,所述终端运行N个应用程序,N为整数,且N大于1,所述第一心跳包括所述N个应用程序中每个应用程序向其对应的应用服务器发送的心跳。
  7. 根据权利要求6所述的方法,其特征在于,所述N个应用程序通过所述终端中的网络代理向所述网络设备发送心跳。
  8. 根据权利要求6-7任一项所述的方法,其特征在于,所述网络设备包括所述终端对应的终端设备商的网络服务器,所述第一心跳发送至所述网络服务器,所述网络服务器用于向所述N个应用程序对应的应用服务器转发所述第一心跳。
  9. 一种终端与网络设备交互的方法,其特征在于,所述方法包括:
    终端向网络设备发送第一心跳;
    所述终端接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
    如果所述终端的屏幕为熄灭状态,则禁止所述终端的后台应用访问所述网络设备;
    在所述终端向所述网络设备发送第二心跳之前,所述终端恢复允许所述终端的后台应用访问所述网络设备;
    所述终端向所述网络设备发送所述第二心跳;
    所述终端接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
  10. 根据权利要求9所述的方法,其特征在于,所述终端运行N个应用程序,N为整数,且N大于1,所述第一心跳包括所述N个应用程序中每个应用程序向其对应的应用服务器发送的心跳。
  11. 根据权利要求10所述的方法,其特征在于,所述N个应用程序通过所述终端中的网络代理向所述网络设备发送心跳。
  12. 根据权利要求10-11任一项所述的方法,其特征在于,所述网络设备包括所述终端对应的终端设备商的网络服务器,所述第一心跳发送至所述网络服务器,所述网络服务器用于向所述N个应用程序对应的应用服务器转发所述第一心跳。
  13. 一种终端与网络设备交互的方法,其特征在于,所述方法包括:
    终端向网络设备发送第一心跳;
    所述终端接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
    如果所述终端的屏幕为熄灭状态,则关闭所述终端的数据业务;
    在所述终端向所述网络设备发送第二心跳之前,所述终端打开所述终端的数据业务;
    所述终端向所述网络设备发送所述第二心跳;
    所述终端接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
  14. 根据权利要求13所述的方法,其特征在于,所述终端运行N个应用程序,N为整数,且N大于1,所述第一心跳包括所述N个应用程序中每个应用程序向其对应的应用服务器发送的心跳。
  15. 根据权利要求14所述的方法,其特征在于,所述N个应用程序通过所述终端中的网络代理向所述网络设备发送心跳。
  16. 根据权利要求14-15任一项所述的方法,其特征在于,所述网络设备包括所述终端对应的终端设备商的网络服务器,所述第一心跳发送至所述网络服务器,所述网络服务器用于向所述N个应用程序对应的应用服务器转发所述第一心跳。
  17. 一种终端与网络设备交互的方法,其特征在于,所述方法包括:
    终端获取所述终端的屏幕的状态;
    如果所述终端的屏幕为熄灭状态,且所述熄灭状态持续时间不大于T1,则释放所述终端与所述网络设备的网络链接资源;
    如果所述熄灭状态持续时间为大于T1且不大于T2,T2>T1>0,则禁止所述终端的后台应用访问所述网络设备;
    如果所述熄灭状态持续时间为大于T2,则关闭所述终端的数据业务。
  18. 一种与网络设备交互的终端,其特征在于,所述终端包括:
    发送模块,用于向网络设备发送第一心跳;
    接收模块,用于接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
    处理模块,用于在接收模块接收到第一心跳响应后,如果所述终端的屏 幕为熄灭状态,且所述熄灭状态持续时间不大于T1,则释放所述终端与所述网络设备的网络链接资源;
    如果所述熄灭状态持续时间为大于T1且不大于T2,T2>T1>0,则禁止所述终端的后台应用访问所述网络设备;
    如果所述熄灭状态持续时间为大于T2,则关闭所述终端的数据业务;
    所述处理模块,在所述发送模块向所述网络设备发送第二心跳之前,还用于执行:
    如果所述终端与所述网络设备的网络链接资源被释放,则恢复所述网络链接资源;
    如果所述终端的后台应用被禁止访问所述网络设备,则恢复允许所述终端的后台应用访问所述网络设备;
    如果所述终端的数据业务被关闭,则打开所述终端的数据业务;
    所述发送模块,还用于向所述网络设备发送所述第二心跳;
    所述接收模块,还用于接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
  19. 一种与网络设备交互的终端,其特征在于,所述终端包括:
    发送模块,用于向网络设备发送第一心跳;
    接收模块,用于接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
    处理模块,用于在接收模块接收到第一心跳响应后,如果所述终端的屏幕为熄灭状态,则释放所述终端与所述网络设备的网络链接资源;
    所述处理模块,在所述发送模块向所述网络设备发送第二心跳之前,还用于恢复所述网络链接资源;
    所述发送模块,还用于向所述网络设备发送所述第二心跳;
    所述接收模块,还用于接收所述网络设备返回的第二心跳响应,所述第 二心跳响应为对应所述第二心跳的响应。
  20. 一种与网络设备交互的终端,其特征在于,所述终端包括:
    发送模块,用于向网络设备发送第一心跳;
    接收模块,用于接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
    处理模块,用于在所述接收模块接收到第一心跳响应后,如果所述终端的屏幕为熄灭状态,则禁止所述终端的后台应用访问所述网络设备;
    所述处理模块,在所述发送模块向所述网络设备发送第二心跳之前,还用于恢复允许所述终端的后台应用访问所述网络设备;
    所述发送模块,还用于向所述网络设备发送所述第二心跳;
    所述接收模块,还用于接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
  21. 一种与网络设备交互的终端,其特征在于,所述终端包括:
    发送模块,用于向网络设备发送第一心跳;
    接收模块,用于接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
    处理模块,用于在所述接收模块接收到第一心跳响应后,如果所述终端的屏幕为熄灭状态,则关闭所述终端的数据业务;
    所述处理模块,在所述发送模块向所述网络设备发送第二心跳之前,还用于打开所述终端的数据业务;
    所述发送模块,还用于向所述网络设备发送所述第二心跳;
    所述接收模块,还用于接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
  22. 一种与网络设备交互的终端,其特征在于,所述终端包括:
    处理模块,用于获取所述终端的屏幕的状态;
    处理模块,还用于如果所述终端的屏幕为熄灭状态,且所述熄灭状态持续时间不大于T1,则释放所述终端与所述网络设备的网络链接资源;
    如果所述熄灭状态持续时间为大于T1且不大于T2,T2>T1>0,则禁止所述终端的后台应用访问所述网络设备;
    如果所述熄灭状态持续时间为大于T2,则关闭所述终端的数据业务。
  23. 一种终端,其特征在于,所述终端包括:
    收发器,用于发送和接收所述终端与网络设备进行交互的数据;
    一个或多个处理器;
    存储器;
    多个应用程序;以及
    一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为被所述一个或多个处理器执行,所述一个或多个程序包括指令,所述指令用于:
    所述终端向网络设备发送第一心跳;
    所述终端接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
    如果所述终端的屏幕为熄灭状态,且所述熄灭状态持续时间不大于T1,则释放所述终端与所述网络设备的网络链接资源;
    如果所述熄灭状态持续时间为大于T1且不大于T2,T2>T1>0,则禁止所述终端的后台应用访问所述网络设备;
    如果所述熄灭状态持续时间为大于T2,则关闭所述终端的数据业务;
    在所述终端向所述网络设备发送第二心跳之前,所述终端执行:
    如果所述终端与所述网络设备的网络链接资源被释放,则恢复所述网络链接资源;
    如果所述终端的后台应用被禁止访问所述网络设备,则恢复允许所述终端的后台应用访问所述网络设备;
    如果所述终端的数据业务被关闭,则打开所述终端的数据业务;
    所述终端向所述网络设备发送所述第二心跳;
    所述终端接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
  24. 根据权利要求23所述的终端,其特征在于,所述处理器运行N个应用程序,N为整数,且N大于1,所述第一心跳包括所述N个应用程序中每个应用程序向其对应的应用服务器发送的心跳。
  25. 根据权利要求24所述的终端,其特征在于,所述N个应用程序通过所述终端中的网络代理向所述网络设备发送心跳。
  26. 根据权利要求24-25任一项所述的终端,其特征在于,所述网络设备包括所述终端对应的终端设备商的网络服务器,所述第一心跳发送至所述网络服务器,所述网络服务器用于向所述N个应用程序对应的应用服务器转发所述第一心跳。
  27. 一种终端,其特征在于,所述终端包括:
    收发器,用于发送和接收所述终端与网络设备进行交互的数据;
    一个或多个处理器;
    存储器;
    多个应用程序;以及
    一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为被所述一个或多个处理器执行,所述一个或多个程序包括指令,所述指令用于:
    所述终端向网络设备发送第一心跳;
    所述终端接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
    如果所述终端的屏幕为熄灭状态,则释放所述终端与所述网络设备的网络链接资源;
    在所述终端向所述网络设备发送第二心跳之前,所述终端恢复所述网络链接资源;
    所述终端接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
  28. 根据权利要求27所述的终端,其特征在于,所述处理器运行N个应用程序,N为整数,且N大于1,所述第一心跳包括所述N个应用程序中每个应用程序向其对应的应用服务器发送的心跳。
  29. 根据权利要求28所述的终端,其特征在于,所述N个应用程序通过所述终端中的网络代理向所述网络设备发送心跳。
  30. 根据权利要求28-29任一项所述的终端,其特征在于,所述网络设备包括所述终端对应的终端设备商的网络服务器,所述第一心跳发送至所述网络服务器,所述网络服务器用于向所述N个应用程序对应的应用服务器转发所述第一心跳。
  31. 一种终端,其特征在于,所述终端包括:
    收发器,用于发送和接收所述终端与网络设备进行交互的数据;
    一个或多个处理器;
    存储器;
    多个应用程序;以及
    一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为被所述一个或多个处理器执行,所述一个或多个程序包括指令,所述指令用于:
    所述终端向网络设备发送第一心跳;
    所述终端接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
    如果所述终端的屏幕为熄灭状态,则禁止所述终端的后台应用访问所述网络设备;
    在所述终端向所述网络设备发送第二心跳之前,所述终端恢复允许所述终端的后台应用访问所述网络设备;
    所述终端接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
  32. 根据权利要求31所述的终端,其特征在于,所述处理器运行N个应用程序,N为整数,且N大于1,所述第一心跳包括所述N个应用程序中每个应用程序向其对应的应用服务器发送的心跳。
  33. 根据权利要求32所述的终端,其特征在于,所述N个应用程序通过所述终端中的网络代理向所述网络设备发送心跳。
  34. 根据权利要求32-33任一项所述的终端,其特征在于,所述网络设备包括所述终端对应的终端设备商的网络服务器,所述第一心跳发送至所述网络服务器,所述网络服务器用于向所述N个应用程序对应的应用服务器转发所述第一心跳。
  35. 一种终端,其特征在于,所述终端包括:
    收发器,用于发送和接收所述终端与网络设备进行交互的数据;
    一个或多个处理器;
    存储器;
    多个应用程序;以及
    一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为被所述一个或多个处理器执行,所述一个或多个程序包括指令,所述指令用于:
    所述终端向网络设备发送第一心跳;
    所述终端接收所述网络设备返回的第一心跳响应,所述第一心跳响应为对应所述第一心跳的响应;
    如果所述终端的屏幕为熄灭状态,则关闭所述终端的数据业务;
    在所述终端向所述网络设备发送第二心跳之前,所述终端打开所述终端的数据业务;
    所述终端向所述网络设备发送所述第二心跳;
    所述终端接收所述网络设备返回的第二心跳响应,所述第二心跳响应为对应所述第二心跳的响应。
  36. 根据权利要求35所述的终端,其特征在于,所述处理器运行N个应用程序,N为整数,且N大于1,所述第一心跳包括所述N个应用程序中每个应用程序向其对应的应用服务器发送的心跳。
  37. 根据权利要求36所述的终端,其特征在于,所述N个应用程序通过所述终端中的网络代理向所述网络设备发送心跳。
  38. 根据权利要求36-37任一项所述的终端,其特征在于,所述网络设备包括所述终端对应的终端设备商的网络服务器,所述第一心跳发送至所述网络服务器,所述网络服务器用于向所述N个应用程序对应的应用服务器转发所述第一心跳。
  39. 一种终端,其特征在于,所述终端包括:
    收发器,用于发送和接收所述终端与网络设备进行交互的数据;
    一个或多个处理器;
    存储器;
    多个应用程序;以及
    一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为被所述一个或多个处理器执行,所述一个或多个程序包括指令,所述指令用于:
    获取所述终端的屏幕的状态;
    如果所述终端的屏幕为熄灭状态,且所述熄灭状态持续时间不大于T1,则释放所述终端与所述网络设备的网络链接资源;
    如果所述熄灭状态持续时间为大于T1且不大于T2,T2>T1>0,则禁止所述终端的后台应用访问所述网络设备;
    如果所述熄灭状态持续时间为大于T2,则关闭所述终端的数据业务。
PCT/CN2015/082884 2015-06-30 2015-06-30 一种终端与网络设备交互的方法和终端 WO2017000247A1 (zh)

Priority Applications (14)

Application Number Priority Date Filing Date Title
MYPI2017703856A MY197308A (en) 2015-06-30 2015-06-30 Method for interaction between terminal and network device, and terminal
EP15896778.6A EP3270566B1 (en) 2015-06-30 2015-06-30 Method for terminal and network device interaction and terminal
BR122017025025A BR122017025025A2 (pt) 2015-06-30 2015-06-30 métodos para interação entre um terminal e um dispositivo de rede, terminais e programa
KR1020197015301A KR102185004B1 (ko) 2015-06-30 2015-06-30 단말과 네트워크 디바이스 사이의 상호작용을 위한 방법 및 단말
AU2015400550A AU2015400550B2 (en) 2015-06-30 2015-06-30 Method for interaction between terminal and network device, and terminal
BR112017022004A BR112017022004A2 (pt) 2015-06-30 2015-06-30 método para interação entre terminal e dispositivo de rede, e terminal
CA2982393A CA2982393C (en) 2015-06-30 2015-06-30 Method for interaction between terminal and network device, and terminal
CN201580081397.4A CN107736000B (zh) 2015-06-30 2015-06-30 一种终端与网络设备交互的方法和终端
US15/568,697 US10820273B2 (en) 2015-06-30 2015-06-30 Method for interaction between terminal and network device, and terminal
KR1020177031169A KR101985359B1 (ko) 2015-06-30 2015-06-30 단말과 네트워크 디바이스 사이의 상호작용을 위한 방법 및 단말
PCT/CN2015/082884 WO2017000247A1 (zh) 2015-06-30 2015-06-30 一种终端与网络设备交互的方法和终端
JP2017559094A JP6517370B2 (ja) 2015-06-30 2015-06-30 端末とネットワークデバイスとの間の相互作用のための方法及び端末
PH12017502186A PH12017502186A1 (en) 2015-06-30 2017-11-29 Method for interaction between terminal and network device, and terminal
AU2019204877A AU2019204877B2 (en) 2015-06-30 2019-07-08 Method for interaction between terminal and network device, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/082884 WO2017000247A1 (zh) 2015-06-30 2015-06-30 一种终端与网络设备交互的方法和终端

Publications (1)

Publication Number Publication Date
WO2017000247A1 true WO2017000247A1 (zh) 2017-01-05

Family

ID=57607502

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/082884 WO2017000247A1 (zh) 2015-06-30 2015-06-30 一种终端与网络设备交互的方法和终端

Country Status (11)

Country Link
US (1) US10820273B2 (zh)
EP (1) EP3270566B1 (zh)
JP (1) JP6517370B2 (zh)
KR (2) KR102185004B1 (zh)
CN (1) CN107736000B (zh)
AU (2) AU2015400550B2 (zh)
BR (2) BR112017022004A2 (zh)
CA (1) CA2982393C (zh)
MY (1) MY197308A (zh)
PH (1) PH12017502186A1 (zh)
WO (1) WO2017000247A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413143A (zh) * 2018-09-10 2019-03-01 金卡智能集团股份有限公司 一种物联网仪表低功耗定时远程通讯方法
WO2019246559A1 (en) 2018-06-22 2019-12-26 Establishment Labs S.A. Systems and methods for simulation and modeling of combined augmentation procedures

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6517370B2 (ja) 2015-06-30 2019-05-22 華為技術有限公司Huawei Technologies Co.,Ltd. 端末とネットワークデバイスとの間の相互作用のための方法及び端末
CN107181637B (zh) * 2016-03-11 2021-01-29 华为技术有限公司 一种心跳信息发送方法、装置及心跳发送节点
WO2018160823A1 (en) * 2017-03-02 2018-09-07 Carrier Corporation A wireless communication system and method of managing energy consumption of a wireless device
US10979497B2 (en) * 2018-07-19 2021-04-13 Cisco Technology, Inc. Multi-node discovery and master election process for chassis management
CN110087291B (zh) * 2019-04-24 2022-08-19 合肥移瑞通信技术有限公司 Wwan电子设备的低功耗控制方法及电子设备
US11539642B2 (en) * 2019-12-31 2022-12-27 Axis Ab Fallback command in a modular control system
US11611544B2 (en) * 2020-10-08 2023-03-21 Paypal, Inc. Delayed user authentication
CN114585108A (zh) * 2020-11-18 2022-06-03 成都鼎桥通信技术有限公司 连接处理方法及设备
CN114650147A (zh) * 2020-12-02 2022-06-21 成都鼎桥通信技术有限公司 登录方法及设备
US11757991B2 (en) * 2021-07-22 2023-09-12 Cisco Technology, Inc. Common synchronization of device command into multiple synchronized single device tasks
CN113965496B (zh) * 2021-10-15 2023-11-17 上汽通用五菱汽车股份有限公司 一种优化投屏进程响应的方法

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662474A (zh) * 2012-04-17 2012-09-12 华为终端有限公司 控制终端的方法、装置和终端
CN104052861A (zh) * 2013-03-14 2014-09-17 腾讯科技(深圳)有限公司 一种终端及其唤醒方法

Family Cites Families (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060080655A1 (en) * 2004-10-09 2006-04-13 Axalto Inc. System and method for post-issuance code update employing embedded native code
US20110047230A1 (en) * 2006-11-17 2011-02-24 Mcgee Steven J Method / process / procedure to enable: The Heart Beacon Rainbow Force Tracking
CN102036349B (zh) * 2009-09-29 2015-03-25 联想(北京)有限公司 维持终端和网络服务器连接的方法、终端及网络服务器
US8424000B2 (en) * 2010-07-30 2013-04-16 Symantec Corporation Providing application high availability in highly-available virtual machine environments
JP2012174048A (ja) * 2011-02-22 2012-09-10 Brother Ind Ltd データ処理プログラム及びデータ処理装置
US20120324077A1 (en) * 2011-06-17 2012-12-20 Broadcom Corporation Providing Resource Accessbility During a Sleep State
CN103152374B (zh) 2011-12-07 2016-08-10 华为终端有限公司 获知终端在线状态的方法与装置
CN102547936A (zh) * 2011-12-23 2012-07-04 华为终端有限公司 一种节能方法、装置及通讯终端
CN103188653B (zh) * 2011-12-27 2016-06-08 华为终端有限公司 接收数据的方法、发送数据的方法、移动终端和服务器
CN103209089B (zh) 2012-01-17 2016-06-08 华为技术有限公司 心跳周期的获取方法及终端、服务器
US8897762B2 (en) 2012-02-28 2014-11-25 Qualcomm Incorporated Optimizing signaling load overhead and battery consumption for background applications
US10111168B2 (en) * 2012-05-02 2018-10-23 Mediatek Inc. User equipment enhancement for diverse data application
EP4220354A1 (en) 2012-06-06 2023-08-02 Huawei Device Co., Ltd. Application management method and terminal
US9173086B2 (en) * 2012-07-17 2015-10-27 Samsung Electronics Co., Ltd. Method and apparatus for preventing screen off during automatic response system service in electronic device
US9003080B2 (en) * 2012-09-26 2015-04-07 International Business Machines Corporation Managed access to peripherals of a service terminal
US8655307B1 (en) * 2012-10-26 2014-02-18 Lookout, Inc. System and method for developing, updating, and using user device behavioral context models to modify user, device, and application state, settings and behavior for enhanced user security
CN103118188B (zh) 2013-01-25 2014-08-20 华为终端有限公司 应用心跳周期调整方法及装置、终端
WO2014179508A1 (en) * 2013-04-30 2014-11-06 Seven Networks, Inc. Detection and reporting of keepalive messages for optimization of keepalive traffic in a mobile network
WO2014197521A1 (en) 2013-06-03 2014-12-11 Seven Networks, Inc. Blocking/unblocking algorithms for signaling optimization in a wireless network for traffic utilizing proprietary and non-proprietary protocols
WO2014200631A1 (en) * 2013-06-11 2014-12-18 Seven Networks, Inc. Optimizing keepalive and other background traffic in a wireless network
WO2015026197A1 (ko) 2013-08-22 2015-02-26 삼성전자 주식회사 전자 장치에서 절전 모드를 수행하는 방법 및 이를 위한 전자 장치
WO2015061957A1 (zh) 2013-10-29 2015-05-07 华为终端有限公司 一种业务代理的方法、调制解调器及终端
CN105392187A (zh) * 2014-09-04 2016-03-09 中兴通讯股份有限公司 一种即时通讯应用程序管理方法、装置及其移动终端
US9785487B1 (en) * 2015-05-12 2017-10-10 Google Inc. Managing device functions based on physical interaction with device modules
DK201570281A1 (en) 2015-05-13 2016-11-28 Nel Hydrogen As Cooling of a fluid with a refrigerant at triple point
JP6517370B2 (ja) 2015-06-30 2019-05-22 華為技術有限公司Huawei Technologies Co.,Ltd. 端末とネットワークデバイスとの間の相互作用のための方法及び端末

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662474A (zh) * 2012-04-17 2012-09-12 华为终端有限公司 控制终端的方法、装置和终端
CN104052861A (zh) * 2013-03-14 2014-09-17 腾讯科技(深圳)有限公司 一种终端及其唤醒方法

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019246559A1 (en) 2018-06-22 2019-12-26 Establishment Labs S.A. Systems and methods for simulation and modeling of combined augmentation procedures
CN109413143A (zh) * 2018-09-10 2019-03-01 金卡智能集团股份有限公司 一种物联网仪表低功耗定时远程通讯方法
CN109413143B (zh) * 2018-09-10 2021-10-08 金卡智能集团股份有限公司 一种物联网仪表低功耗定时远程通讯方法

Also Published As

Publication number Publication date
JP6517370B2 (ja) 2019-05-22
KR20190060899A (ko) 2019-06-03
KR20170132827A (ko) 2017-12-04
JP2018521542A (ja) 2018-08-02
PH12017502186B1 (en) 2018-05-28
US20180302861A1 (en) 2018-10-18
BR112017022004A2 (pt) 2018-07-03
BR122017025025A2 (pt) 2019-09-10
EP3270566A4 (en) 2018-03-14
CN107736000A (zh) 2018-02-23
CA2982393C (en) 2022-07-19
EP3270566A1 (en) 2018-01-17
AU2019204877A1 (en) 2019-07-25
CA2982393A1 (en) 2017-01-05
AU2015400550B2 (en) 2019-04-18
AU2019204877B2 (en) 2020-12-10
EP3270566B1 (en) 2022-07-27
US10820273B2 (en) 2020-10-27
CN107736000B (zh) 2021-02-26
KR101985359B1 (ko) 2019-06-03
MY197308A (en) 2023-06-12
AU2015400550A1 (en) 2017-11-02
PH12017502186A1 (en) 2018-05-28
KR102185004B1 (ko) 2020-12-01

Similar Documents

Publication Publication Date Title
WO2017000247A1 (zh) 一种终端与网络设备交互的方法和终端
WO2016165062A1 (zh) 终端的控制方法、装置及终端
CN106155818B (zh) 一种终端拉取信息的处理方法和终端以及服务器
WO2018049897A1 (zh) 数据备份方法及设备
CN107577508B (zh) 应用程序处理方法、装置、可读存储介质和移动终端
WO2020093208A1 (zh) 应用程序处理方法和装置、计算机设备、计算机可读存储介质
CN108334345B (zh) 应用程序处理方法、装置、可读存储介质和移动终端
CN110062372A (zh) 一种sim卡控制方法及终端设备
WO2018214744A1 (zh) 信息处理方法及相关产品
CN109831359A (zh) 一种数据网络连接状态的检测方法及其终端设备
CN110709801B (zh) 一种降低耗电的方法和设备
CN108476441A (zh) 小区切换方法和终端设备
CN113038513A (zh) 针对独立组网弱覆盖的方法、终端设备及存储介质
CN107770449A (zh) 连拍方法、电子设备及存储介质
JP6754862B2 (ja) 端末とネットワークデバイスとの間の相互作用のための方法及び端末
WO2018126407A1 (zh) 一种数据传输方法及设备
WO2019128538A1 (zh) 信息处理方法、移动终端及计算机可读存储介质
WO2020097787A1 (zh) 一种音频资源释放的方法、装置及电子设备
CN114928877B (zh) 一种降低耗电的方法和设备
CN112486414A (zh) 数据处理方法及装置、存储介质和移动终端
CN116489088A (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: 15896778

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2015896778

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2982393

Country of ref document: CA

WWE Wipo information: entry into national phase

Ref document number: 122017025025

Country of ref document: BR

WWE Wipo information: entry into national phase

Ref document number: 15568697

Country of ref document: US

ENP Entry into the national phase

Ref document number: 20177031169

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2015400550

Country of ref document: AU

Date of ref document: 20150630

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2017559094

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 12017502186

Country of ref document: PH

NENP Non-entry into the national phase

Ref country code: DE

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112017022004

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 112017022004

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20171011