CN106941713A - It is a kind of to reduce the method and its device of mobile terminal power consumption - Google Patents

It is a kind of to reduce the method and its device of mobile terminal power consumption Download PDF

Info

Publication number
CN106941713A
CN106941713A CN201710345827.XA CN201710345827A CN106941713A CN 106941713 A CN106941713 A CN 106941713A CN 201710345827 A CN201710345827 A CN 201710345827A CN 106941713 A CN106941713 A CN 106941713A
Authority
CN
China
Prior art keywords
finger daemon
server
application program
mobile terminal
packet
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201710345827.XA
Other languages
Chinese (zh)
Inventor
李军
李爵宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710345827.XA priority Critical patent/CN106941713A/en
Publication of CN106941713A publication Critical patent/CN106941713A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • 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

Abstract

The method and its device of mobile terminal power consumption are reduced the invention discloses a kind of, this method includes:A finger daemon, the communication of finger daemon affiliate application and server are created on Modem sides;When the long connection timer of application program wakes up finger daemon, finger daemon sends heartbeat packet to server;When finger daemon receives the packet of server, finger daemon query communication information and by packet delivery to corresponding application program on AP sides.The device includes being arranged on the finger daemon module of Modem sides, for when long connection timer wakes up finger daemon module, heartbeat packet to be sent to server;And when receiving the packet of server, query communication information and by packet delivery to application program;Data memory module, the communication information for storing application program and server, the communication of finger daemon module relation application program and server.Present invention seek to address that being awakened as frequently as those utilized in conventional solutions during the connection of mobile terminal length and causing the high technical problem of power consumption.

Description

It is a kind of to reduce the method and its device of mobile terminal power consumption
Technical field
The present invention relates to the method and its device of communication technique field, more particularly to a kind of reduction mobile terminal power consumption.
Background technology
With the development of mobile Internet, using instant messaging and social networks to represent the Internet, applications on mobile terminals Form swift and violent development.In existing technology, in order to ensure the instant transmission of message and the renewal of immediate status, IMU News and social networking service are required for mobile terminal and server to keep connection status.Generally, mobile terminal and service It is by way of long connection that device, which keeps the method for connection status,.Long connection refer to can be continuously transmitted in a TCP connection it is many Individual packet, during TCP connections are kept, if sent without packet, it is necessary to which both sides' hair detection wraps to maintain this to connect.It is long Connection is used for frequent operation, point-to-point communication, and connection number can not situation too much.Each TCP connections are required for three steps Shake hands, this needs the time, if each operation is first to connect, then so processing speed can be reduced much if operating, so Do not turned off after each having operated, packet is directly transmitted during processing next time, without setting up TCP connections.For example:The company of database Connect with long connection, if frequently communication can cause socket mistakes with short connection, and frequently socket is created and is also pair The waste of resource.
Although the function of intelligent mobile terminal is stronger and stronger, huge progress is all achieved on hardware and system, But it is so the bottleneck for restricting mobile terminal development that battery technology, which is taken up an official post,.If mobile terminal is always maintained at connecting with the long of server State is connect, mobile terminal will be unable to enter resting state.This long connection status continues for a long time, the mobile end that network connection is brought It will be very serious to hold power consumption.In android system, connected to keep long, it is necessary to by timing transmission heartbeat packet, come Network address translation (Network Address Translation, NAT) list item is kept not to be eliminated, the mode of timing is used AlarmManager setting timers keep mobile terminal to be capable of being waken up for timing.After mobile terminal is waken up, process is just Corresponding code can be performed to complete work.For problems, in order to reduce the power consumption of mobile terminal, common employing mode Be by limiting the use of this long connection, or only allow certain applications to keep long connection reduce wake-up times and when Between.Flexibly using for long connection is so limited, so as to reduce Consumer's Experience.
The content of the invention
It is a primary object of the present invention to propose the method and its device of a kind of reduction mobile terminal power consumption, it is intended to solve to move It is awakened as frequently as those utilized in conventional solutions during dynamic terminal length connection and causes the high technical problem of power consumption.
To achieve the above object, the method for a kind of reduction mobile terminal power consumption that the present invention is provided, this method includes following Step:
A finger daemon, the finger daemon affiliate application and service are created on BBP (Modem sides) The communication of device;
When the long connection timer of the application program wakes up the finger daemon, the finger daemon is to the service Device sends heartbeat packet;
When the finger daemon receives the packet of the server, the finger daemon inquires about the communication information simultaneously By the packet delivery to the corresponding application program on application processor (AP sides).
Further, server, each institute of finger daemon associated storage described in each application program correspondence one State the heartbeat packet of application program;When the long connection timer of the application program wakes up the finger daemon, to the application The corresponding server of program sends the heartbeat packet of the application program.
Further, the finger daemon presets a heartbeat packet, each application program correspondence of heartbeat packet association The server, when the long connection timer of the application program wakes up the finger daemon, to the application program pair The server answered sends the heartbeat packet.
Further, when multiple application programs send long connection timer described in one to the finger daemon respectively When, the long timer that connects is inserted batch processing queue alignment by the finger daemon by batch processing (batch) mechanism.
Further, the application program and the communication information of the server are stored in a communication information table, described logical Letter information table includes the information such as application information, server address and heartbeat packet transmission cycle.
Further, when the application program sends the long connection timer to the finger daemon, terminal system The process of the application processor is freezed by freezing mechanism;When the long connection timer wakes up the finger daemon, The process of the application processor keeps frozen state.
Further, when the application program switches to running background, the application setting length connects timer, Terminal system is freezed process of the application program in application processor by freezing mechanism, the application program pause Operation, and the long timer that connects is sent to the finger daemon.
Further, the finger daemon is led to by way of socket (socket) with the application processor Letter;When the finger daemon receives the packet of the server, the finger daemon passes through the socket (socket) Connect and wake up the application processor, the application processor receives the packet and distributes the corresponding application journey Sequence.
Further, the finger daemon wakes up the application processor, and the application processor stores the packet, The process of the application program is kept to keep frozen state.
Further, when the application program switches to current operation, the application processor will the correspondence application The packet of program is sent to the application program.
Further, when the application program is exited or is closed by the terminal system, the application processor inspection The process for measuring the application program terminates, and the application processor connects the BBP by socket (socket) The finger daemon, update the application information.
Further, when the application program is exited or is closed by the terminal system, the finger daemon is from institute State communication information table and delete the application information, remove the corresponding long connection timer of the application program.
Further, the application program backstage is not had to transport in the communication information table is space-time, the terminal system OK, the finger daemon sends the heartbeat packet according to predetermined period to the server, keep the finger daemon with it is described Connection between server.
Further, when the communication information table is space-time, calculate the finger daemon and send the heart to institute's server The execution number of times of bag is jumped, when the execution number of times is more than or equal to preset times threshold values, the finger daemon and the clothes are closed Long connection between business device.
Further, when the application program is in running background, the execution number of times threshold values of the heartbeat packet is set, when When the execution number of times of the heartbeat packet is more than or equal to the execution number of times threshold values, prompt the user whether to close the application program and Long connection between the server.
Further, when the electricity of the mobile terminal is less than or equal to default electricity threshold values, the finger daemon is kept Long connection of the running background time most between the short application program and the server, close other application programs with it is corresponding Server between long connection.
Further, when the electricity of the mobile terminal is less than or equal to default electricity threshold values, current residual electricity is carried Show operation interface, the finger daemon sends the communication information table for keeping long connection to operation interface;Prompting selection is closed The long connection closed between the application program and the server.
In addition, to achieve the above object, the present invention also propose it is a kind of reduce the device of mobile terminal power consumption, including guard into Journey module, the finger daemon module is arranged in BBP (Modem sides), for the long connection timing in application program When device wakes up the finger daemon module, heartbeat packet is sent to server;And when receiving the packet of the server, look into Ask the communication information and by the packet delivery to the corresponding application program on application processor;
Data memory module, the communication information for storing application program and server, the finger daemon module relation The communication of the application program and the server.
Further, the finger daemon module includes:Data transmission unit, for the long connection in the application program When timer wakes up the finger daemon module, heartbeat packet is sent to server;
Data receipt unit, for when receiving the packet of the server, query communication information and by the data Bag is distributed to the corresponding application program;
Unit is communicated to connect, for being communicated by way of socket (socket) with application processor;
Process freezing unit, for when the application program sends long connection timer to the finger daemon, passing through Freeze mechanism to freeze the process of application processor.
Further, the finger daemon module also includes batch unit, for distinguishing in multiple application programs When sending long connection timer described in one to the finger daemon, the length is connected by timing by batch processing (batch) mechanism Device insertion batch processing queue alignment.
Further, the data memory module stores a communication information table, and the communication information table includes application program The information such as information, server address and heartbeat packet transmission cycle.
The method and its device of a kind of reduction mobile terminal power consumption proposed by the present invention, by the base band of terminal system Manage and finger daemon is created in device (Modem sides), this finger daemon connects agency as the long of application program, when application program is needed When regularly sending heartbeat packet, the finger daemon is only waken up;By finger daemon complete heartbeat packet transmission so as to ensure with Data communication between server;When server sends packet to application program, finger daemon received data packet, Ran Houtong The application processor that socket (socket) connects terminal system is crossed, the application processor is waken up, then arrives packet delivery Corresponding application program.It that is to say by setting up a set of communication mechanism in AP (Application Processor) side, Modem realizes side that long connection request is managed collectively, to reduce the number that process is waken up in AP sides, so as to reduce mobile whole The power consumption expense for holding the multi-process after the frequency being waken up and wake-up to bring;Greatly improve the use duration of mobile terminal.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for the mobile terminal for realizing each embodiment of the invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 reduces the method flow block diagram of mobile terminal power consumption for the first of the embodiment of the present invention;
Fig. 4 is the method flow block diagram of second of reduction mobile terminal power consumption of the embodiment of the present invention;
Fig. 5 reduces the method flow block diagram of mobile terminal power consumption for the third of the embodiment of the present invention;
Fig. 6 is the method flow block diagram of the 4th kind of reduction mobile terminal power consumption of the embodiment of the present invention;
Fig. 7 is the method flow block diagram of the 5th kind of reduction mobile terminal power consumption of the embodiment of the present invention;
Fig. 8 reduces the apparatus structure block diagram of mobile terminal power consumption for the first of the embodiment of the present invention;
Fig. 9 is the apparatus structure block diagram of second of reduction mobile terminal power consumption of the embodiment of the present invention;
Figure 10 reduces the program of device FB(flow block) of mobile terminal power consumption for the embodiment of the present invention;
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Describe to realize the mobile terminal of each embodiment of the invention referring now to accompanying drawing.In follow-up description, use For represent element such as " module ", " part " or " unit " suffix only for be conducive to the present invention explanation, itself Not specific meaning.Therefore, " module " can be used mixedly with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP The mobile terminal of (portable media player), guider etc. and such as numeral TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for movement Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 illustrates for the hardware configuration of the mobile terminal of realization each embodiment of the invention.
Mobile terminal 1 00 can include wireless communication unit 110, A/V (audio/video) input block 120, user input Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown Part.More or less components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and wireless communication system Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module 112nd, at least one in wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 is received.Broadcast singal can exist in a variety of manners, for example, it can be with DMB (DMB) electronics The form of program guide (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast Receiver module 111 can receive signal broadcast by using various types of broadcast systems.Especially, broadcasting reception module 111 Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video Broadcast-hand-held (DVB-H), the Radio Data System of forward link media (MediaFLO@), received terrestrial digital broadcasting integrated service Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via broadcasting reception module 111 receive broadcast singal and/ Or broadcast related information can be stored in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And in server at least one and/or receive from it radio signal.Such radio signal can be logical including voice Talk about signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module Typical case be GPS (global positioning system).According to current technology, GPS module 115, which is calculated, comes from three or more satellites Range information and correct time information and for the Information application triangulation of calculating so that according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, defended for calculating the method for position and temporal information using three Star and the position calculated by using other satellite correction and the error of temporal information.In addition, GPS module 115 Can be by Continuous plus current location information in real time come calculating speed information.
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include the He of camera 121 Microphone 1220, the static map that 121 pairs of camera is obtained in Video Capture pattern or image capture mode by image capture apparatus The view data of piece or video is handled.Picture frame after processing may be displayed on display unit 151.At camera 121 Picture frame after reason can be stored in memory 160 (or other storage mediums) or be carried out via wireless communication unit 110 Send, two or more cameras 1210 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone relation mould Sound (voice data) is received via microphone in formula, logging mode, speech recognition mode etc. operational mode, and can be by Such acoustic processing is voice data.Audio (voice) data after processing can be changed in the case of telephone calling model For the form output of mobile communication base station can be sent to via mobile communication module 112.Microphone 122 can implement all kinds Noise eliminate (or suppress) algorithm with eliminate noise that (or suppression) produce during receiving and sending audio signal or Person disturbs.
User input unit 130 can control each of mobile terminal according to the order generation key input data of user input Plant operation.User input unit 130 allows the various types of information of user input, and can include keyboard, metal dome, touch Plate (for example, detection due to being touched caused by resistance, pressure, electric capacity etc. change sensitive component), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, touch-screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1 00, (for example, mobile terminal 1 00 opens or closes shape State), the position of mobile terminal 1 00, user is for the presence or absence of contact (that is, touch input) of mobile terminal 1 00, mobile terminal The acceleration or deceleration movement of 100 orientation, mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00 The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can be sensed The sliding-type phone is opening or closing.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).Sensing unit 140 can include proximity transducer 1410.
Interface unit 170 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be that storage is used to verify that user uses each of mobile terminal 1 00 Plant information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know Other device can be connected via port or other attachment means with mobile terminal 1 00.Interface unit 170 can be used for reception and come from The input (for example, data message, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 1 00 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 may be used as allowing by it by electricity Power provides to the path of mobile terminal 1 00 from base or may be used as allowing passing through it from the various command signals that base is inputted It is transferred to the path of mobile terminal.The various command signals or electric power inputted from base may be used as being used to recognize that mobile terminal is The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio and/or tactile manner Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include display Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity When talking about call mode, display unit 151 can be shown with conversing or other communicating (for example, text messaging, multimedia file Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, show video or figure UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and touch pad in the form of layer it is superposed on one another to form touch-screen when, display unit 151 may be used as input unit and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to be watched from outside, and this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 1 00 can include two or more display units (or other display devices), for example, moving Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detection to touch Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, It is that wireless communication unit 110 is received or in memory 160 when under the isotypes such as speech recognition mode, broadcast reception mode The voice data transducing audio signal of middle storage and it is output as sound.Moreover, dio Output Modules 152 can be provided and movement The audio output (for example, call signal receives sound, message sink sound etc.) for the specific function correlation that terminal 100 is performed. Dio Output Modules 152 can include loudspeaker, buzzer etc..
Alarm unit 153 can provide output to notify event to mobile terminal 1 00.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video is exported, alarm unit 153 can provide output in a different manner with the generation of notification event.For example, alarm unit 153 can be in the form of vibration Output is provided, when receiving calling, message or some other entrance communications (incoming communication), alarm list Member 153 can provide tactile output (that is, vibrating) to notify to user.Exported by providing such tactile, even in When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memory 160 can store software program of the processing performed by controller 180 and control operation etc., Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And, memory 160 can store the vibration of various modes on being exported when touching and being applied to touch-screen and audio signal Data.
Memory 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 1 00 can be with performing memory by network connection The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data Communication, video calling etc. related control and processing.In addition, controller 180 can include being used to reproduce (or playback) many matchmakers The multi-media module 181 of volume data, multi-media module 181 can be constructed in controller 180, or can be structured as and control Device 180 is separated.Controller 180 can be with execution pattern identifying processing, by the handwriting input performed on the touchscreen or picture Draw input and be identified as character or image.
With the development of mobile terminal technology, the mobile terminal of early stage is used only for phone, SMS communication, therefore only has There is wireless communication module 110, and controller 180 is exactly communication processor or BBP 182, i.e. controller 180 is exactly Baseband chip.Later, mobile terminal was provided with multi-media module 181, and multi-media module 181 is by coprocessor accelerator module Come what is realized, that is, controller 180 includes baseband chip and adds coprocessor accelerator module.Existing intelligent mobile terminal is general Realized all over baseband chip is employed plus application processor 183, that is, controller 180 includes communication processor (numeral BBP) 182 and application processor 183, we generally can regard application processor 183AP as a computer, digital base Provided with processor CP can regard wireless modem as.AP sides and Modem sides that namely we often say.Interfacing between AP, CP has SPI, UART, USB, SDIO, shareMemory etc..Communication between AP, CP can be carried out by traditional AT orders, MBIM etc., complete Into functions such as call, short message, mobile Internet accesses.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each member Appropriate electric power needed for part and component.
Various embodiments described herein can be with use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implemented.Implement for hardware, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein At least one in electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can be with allowing to perform the single of at least one function or operation Software module is implemented.Software code can by the software application (or program) write with any appropriate programming language Lai Implement, software code can be stored in memory 160 and be performed by controller 180.
So far, oneself according to its function through describing mobile terminal.Below, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is as showing Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 1 00 as shown in Figure 1 may be constructed such that using via frame or packet transmission data it is all if any Line and wireless communication system and satellite-based communication system are operated.
The communication system for describing wherein be operated according to the mobile terminal of the present invention referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such teaching is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1s 00, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to the BSC275 formation interfaces with that can be couple to base station 270 via back haul link. If any of interface that back haul link can be known according to Ganji is constructed, the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system can include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of sensing specific direction Each subregion of line covering is radially away from BS270.Or, each subregion can be by two or more for diversity reception Antenna is covered.Each BS270 may be constructed such that the multiple frequency distribution of support, and each frequency distribution has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, specific BS270 each subregion can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295 100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 1 00 to receive the broadcast sent by BT295 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.Satellite 300 helps to position multiple mobile terminals At least one in 100.
In fig. 2, multiple satellites 300 are depicted, it is understood that be, it is possible to use any number of satellite obtains useful Location information.GPS module 115 as shown in Figure 1 is generally configured to coordinate with satellite 300 to obtain desired positioning letter Breath.GPS tracking techniques or outside GPS tracking techniques are substituted, the other of the position that can track mobile terminal can be used Technology.In addition, at least one gps satellite 300 can optionally or additionally handle satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminal 1s 00 Signal.Mobile terminal 1 00 generally participates in call, information receiving and transmitting and other types of communication.It is each anti-that certain base station 270 is received Handled to link signal in specific BS270.The data of acquisition are forwarded to the BSC275 of correlation.BSC provides call Resource allocation and the mobile management function of coordination including the soft switching process between BS270.BSC275 is also by the number received According to MSC280 is routed to, it is provided for the extra route service with PSTN290 formation interfaces.Similarly, PSTN290 with MSC280 formation interfaces, MSC and BSC275 formation interface, and BSC275 correspondingly control BS270 with by forward link signals It is sent to mobile terminal 1 00.
Mobile terminal 1 00 realizes network service by wireless communication system, typically employs the communication protocols such as TCP/IP real Now with the data interaction of server end, when using Transmission Control Protocol when network service, before real read-write operation, server It must be set up one between client to be connected, after the completion of read-write operation, they can be with when both sides no longer need this to connect This connection is discharged, establishment of connection needs three-way handshake, and discharging then needs to shake hands for 4 times, thus each connects Foundation is all to need resource consumption and time loss.TCP connections can typically include short connection and long connection:
During the short connections of TCP, client initiates connection request to server, and server is connected to request, and then both sides set up company Connect.Client sends message to server, and server responds client, and then once read-write is completed, at this time both sides any one It is individual to initiate close operations, but typically all client first initiates close operations, because general server will not Reply and closed connection after client immediately.See from the description above, short connection is general only to be passed between client/server Pass a read-write operation.The management of short connection is fairly simple, and the connection existed is all useful connection, it is not necessary to extra control Means.
When TCP length is connected, client initiates to connect to server, and server receives client connections, and both sides set up connection. Client and server is completed after once reading and writing, and the connection between them can't be closed actively, follow-up read-write operation meeting It is continuing with this connection.
This is related to TCP keepalive features, and keepalive feature is mainly that server application is provided, and server application wishes to know client Whether end is collapsed, and resource is used so as to represent client.If client has disappeared so that reservation one is half-open on server The connection put, and server is waiting the data from client, then server should will far wait the data of client, keep-alive Function is just attempt to detect this semi-open connection in server end.
If given being connected in two hours does not have any action, server just sends out a detection to client Message segment, client necessarily be in one of following 4 states:
1st, client is still normally run, and reachable from server.The TCP responses of client are normal, and server it is also known that Other side is normal, and server after 2 hours resets keepalive timer.
2nd, client has been collapsed, and is closed or restarted.In either case, the TCP of client All do not respond to.Service end will can not receive the response to detection, and overtime after 75 seconds.Server sends 10 so altogether Detection, each interval 75 seconds.If server does not receive a response, it is considered as client and had been switched off and the company of termination Connect.
3rd, client is collapsed and restarted.Server will receive a response detected to its keep-alive, this sound Should be a reset so that server terminates this connection.
4th, client computer is normally run, but server is unreachable, and such case is similar with 2, and TCP detectable is exactly not have Receive the response detected.
From the above it can be seen that TCP keepalive features are mainly the survival condition of the long connection of detection, but there is one here Problem, the detection cycle for function of surviving is oversize, is also exactly that it is the survival for detecting TCP connections, when running into the connection of malice, Keepalive feature will fail.
Under the application scenarios of long connection, the connection that client ends typically will not be actively closed between them, Client with Connection between server can have a problem that if not closing always, as client connects more and more, Server will be difficult to bear, and at this time server ends need to take some strategies, such as close some and do not read and write event for a long time The connection of generation, can so avoid some malice connections from causing the service of server ends impaired;Can be with if condition allows again Using client machine as granularity, limit each client most greatly enhances connection number, and some client can be so avoided completely Involve back-end services.
Mobile terminal 1 00 relates generally to a variety of application programs, and these application programs need to keep data with the webserver Interaction, the dependence that application program is connected to TCP length is increasing, MSN or VOIP (VoiceoverInternetProtocol, by analog signal digital) software needs that service can be received at any time The message at device end, this is accomplished by setting up and maintains the connection between server.But in the prior art, application program and service The length connection set up between device is, it is necessary to which the process of application program goes to maintain this length connection, that is, the AP sides of mobile terminal to provide The maintenance of connection is grown to realize in source.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
As shown in figure 3, first embodiment of the invention propose it is a kind of reduce mobile terminal power consumption method, this method include with Lower step:
S101, a finger daemon is created on BBP, the finger daemon affiliate application and server Communication;
S102, when the long connection timer of the application program wakes up the finger daemon, the finger daemon is to institute State server and send heartbeat packet;
S103, when the finger daemon receives the packet of the server, the finger daemon inquires about the communication Information and by the packet delivery to the corresponding application program on application processor (AP sides).
Wherein, server described in each application program correspondence one, the finger daemon associated storage it is each it is described should With the heartbeat packet of program;When the long connection timer of the application program wakes up the finger daemon, to the application program The corresponding server sends the heartbeat packet of the application program.
For example, the communication application program such as correspondence QQ, wechat, Alipay, is respectively necessary for corresponding server and keeps long connection, Need to connect from different servers, the communication application program such as correspondence QQ, wechat, Alipay needs different heartbeat packets, so The quantity of heartbeat packet is just a lot, takes memory space.
To reduce the quantity of heartbeat packet, the finger daemon preset a heartbeat packet, and the heartbeat packet association is each described to answer With the corresponding server of program, when the long connection timer of the application program wakes up the finger daemon, to described The corresponding server of application program sends the heartbeat packet.For example, the communication application program such as correspondence QQ, wechat, Alipay Same heartbeat packet is only set, the connection between finger daemon and different server is kept using same heartbeat packet, so The communication application programs such as QQ, wechat, Alipay are associated by finger daemon afterwards, realized between corresponding server and application program Long connection.
By creating finger daemon, while the communication information between affiliate application and server, grows when needing maintenance During connection, the long connection timer of application program is received and managed by finger daemon, and finger daemon sends heartbeat packet to server, Maintain to grow connection avoiding problems application program, the same management of long connection is realized by finger daemon;When server hair It is also to wake up terminal system after finger daemon is received, then be distributed to corresponding application program when sending packet.
As shown in figure 4, first embodiment of the invention propose two kinds reduction mobile terminal power consumption methods, this method include with Lower step:
S201, a finger daemon is created on BBP, the finger daemon affiliate application and server Communication;
S202, when multiple application programs send long connection timer described in one to the finger daemon respectively, institute State finger daemon and the long timer that connects is inserted by batch processing queue alignment by batch processing (batch) mechanism;The application Program and the communication information of the server are stored in a communication information table
S203, when the long connection timer of the application program wakes up the finger daemon, the finger daemon is to institute State server and send heartbeat packet;
S204, when the finger daemon receives the packet of the server, the finger daemon inquires about the communication Information and by the packet delivery to the corresponding application program on application processor (AP sides).
The mailing address of application information and server is stored in communication information table, the information such as heartbeat packet cycle are sent, It is easy to finger daemon quick search to the communication information between application program and server, to maintain long connection between the two.
As shown in figure 5, first embodiment of the invention propose three kinds reduction mobile terminal power consumption methods, this method include with Lower step:
S301, a finger daemon is created on BBP, the finger daemon affiliate application and server Communication;
S302, when the application program sends the long connection timer to the finger daemon, terminal system passes through Freeze mechanism to freeze the process of the application processor;It is described when the long connection timer wakes up the finger daemon The process of application processor keeps frozen state.
S303, when multiple application programs send long connection timer described in one to the finger daemon respectively, institute State finger daemon and the long timer that connects is inserted by batch processing queue alignment by batch processing (batch) mechanism;The application Program and the communication information of the server are stored in a communication information table
S304, when the long connection timer of the application program wakes up the finger daemon, the finger daemon is to institute State server and send heartbeat packet;
S305, when the finger daemon receives the packet of the server, the finger daemon inquires about the communication Information and by the packet delivery to the corresponding application program on application processor.
Wherein, when the application program switches to running background, the application setting length connects timer, passes through Freeze process of the just described application program of mechanism in terminal system to freeze, the application program operation suspension, and by institute State long connection timer and be sent to the finger daemon.The opportunity for setting long connection timer is switched to backstage as application program During operation, now terminal heartbeat does not have this actually used application program, but in order to maintain the quick real-time number of application program According to communication, some communication application programs are particularly, if QQ, wechat etc. are, it is necessary to keep between communication application program and server Long connection, the information of more new application.
As shown in fig. 6, first embodiment of the invention propose four kinds reduction mobile terminal power consumption methods, this method include with Lower step:
S401, a finger daemon is created on BBP, the finger daemon affiliate application and server Communication;
S402, when the application program sends the long connection timer to the finger daemon, terminal system passes through Freeze mechanism to freeze the process of the application processor;It is described when the long connection timer wakes up the finger daemon The process of application processor keeps frozen state.
S403, when multiple application programs send long connection timer described in one to the finger daemon respectively, institute State finger daemon and the long timer that connects is inserted by batch processing queue alignment by batch processing (batch) mechanism;The application Program and the communication information of the server are stored in a communication information table
S404, when the long connection timer of the application program wakes up the finger daemon, the finger daemon is to institute State server and send heartbeat packet;
S405, the finger daemon are communicated by way of socket with the application processor;Guarded when described When process receives the packet of the server, the finger daemon is connected by the socket and wakes up the application processing Device, the application processor receives the packet and distributes the corresponding application program.
Wherein, the finger daemon wakes up the application processor, and the application processor stores the packet, keeps The process of the application program keeps frozen state.
Wherein, when the application program switches to current operation, the application processor will the correspondence application program Packet be sent to the application program.
For example, finger daemon received data packet, wakes up generally by application processor and be pre-stored after application program, application Program can select not show;But this process have activated the process of application program, when between application program and server Frequently during communication, such as QQ, wechat communication application program, almost real-time Data Transmission, even if being kept by finger daemon Long connection, make it that communication application program keeps frozen state, causes finger daemon frequently received data packet on the contrary yet;Increase Energy consumption is added.Prestored now by application processor after finger daemon received data packet, be not sent to application program; When application program is by use, namely application program front stage operation, then deliver a packet to application program;Keep backstage fortune Capable application program keeps frozen state, reduces energy consumption.
As shown in fig. 7, first embodiment of the invention propose five kinds reduction mobile terminal power consumption methods, this method include with Lower step:
S501, a finger daemon is created on BBP, the finger daemon affiliate application and server Communication;
S502, when the application program sends the long connection timer to the finger daemon, terminal system passes through Freeze mechanism to freeze the process of the application processor;It is described when the long connection timer wakes up the finger daemon The process of application processor keeps frozen state.
S503, when multiple application programs send long connection timer described in one to the finger daemon respectively, institute State finger daemon and the long timer that connects is inserted by batch processing queue alignment by batch processing (batch) mechanism;The application Program and the communication information of the server are stored in a communication information table
S504, when the long connection timer of the application program wakes up the finger daemon, the finger daemon is to institute State server and send heartbeat packet;
S505, the finger daemon are communicated by way of socket with the application processor;Guarded when described When process receives the packet of the server, the finger daemon is connected by the socket and wakes up the application processing Device, the application processor receives the packet and distributes the corresponding application program
S506, when the application program is exited or is closed by the terminal system, the application processor is detected The process of the application program terminates, and the application processor connects the institute of the BBP by socket (socket) Finger daemon is stated, the finger daemon deletes the application information from the communication information table, removes the application program Corresponding long connection timer
When application program is exited or closed, generally long connection is closed immediately, still, when application program is only When exiting login again or switching account number, if setting up data communication again after disconnecting long connection, it can so influence data logical The experience of letter.
Therefore, there is no the application program running background, institute in the communication information table is space-time, the terminal system State finger daemon and the heartbeat packet is sent to the server according to predetermined period, keep the finger daemon and the server Between connection.For example, the predetermined period can be 2min, 5min, 10min etc., finger daemon keeps applying journey with conventional Long connection between the server of sequence, keeps length to be connected with server, quick to start.
When the communication information table is space-time, the execution that the finger daemon sends the heartbeat packet to institute's server is calculated Number of times, when the execution number of times is more than or equal to preset times threshold values, is closed between the finger daemon and the server Long connection.Length connection between finger daemon and server can not keep for a long time, so add energy consumption, therefore, Keep that corresponding long connection should be closed after the regular hour.
Wherein, when the application program is in running background, the execution number of times threshold values of the heartbeat packet is set, when described When the execution number of times of heartbeat packet is more than or equal to the execution number of times threshold values, prompt the user whether to close the application program and described Long connection between server.
Wherein, when the electricity of the mobile terminal is less than or equal to default electricity threshold values, the finger daemon keeps backstage Long connection of the run time most between the short application program and the server, closes other application programs and corresponding clothes Long connection between business device.
Wherein, when the electricity of the mobile terminal is less than or equal to default electricity threshold values, current residual electricity prompting is arrived Operation interface, the finger daemon sends the communication information table for keeping long connection to operation interface;Institute is closed in prompting selection State the long connection between application program and the server.
With mobile terminal electric quantity consumption, when mobile terminal electricity reaches default electricity threshold values, disappear to extend electricity Time-consuming wherein long connection is one of main backstage energy consumption, is kept, it is necessary to close the consumption of the application program of some running backgrounds Communication information table is pushed to operation interface by shield process, and user can select to close all or part of application program and server Between long connection, so as to save energy consumption.
In addition, to achieve the above object, as shown in figure 8, the present invention also proposes a kind of device of reduction mobile terminal power consumption, Including finger daemon module 1821, the finger daemon module 1821 is arranged in BBP 182, in application program Long connection timer when waking up the finger daemon module, send heartbeat packet to server;And receiving the server Packet when, query communication information and by the packet delivery to the corresponding application journey on application processor (AP sides) Sequence;
Data memory module 1822, the communication information for storing application program and server, the finger daemon module Associate the communication of the application program and the server.
As shown in figure 9, the finger daemon module 1821 includes:Data transmission unit, in the application program When long connection timer wakes up the finger daemon module, heartbeat packet is sent to server;
Data receipt unit, for when receiving the packet of the server, query communication information and by the data Bag is distributed to the corresponding application program;
Unit is communicated to connect, for being communicated by way of socket (socket) with application processor (AP sides);
Process freezing unit, for when the application program sends long connection timer to the finger daemon, passing through Freeze mechanism to freeze the process of application processor 183.
Wherein, the finger daemon module 1821 also includes batch unit, for distinguishing in multiple application programs When sending long connection timer described in one to the finger daemon, the length is connected by timing by batch processing (batch) mechanism Device insertion batch processing queue alignment.
Wherein, the data memory module 1822 stores a communication information table, and the communication information table includes application program The information such as information, server address and heartbeat packet transmission cycle.
As shown in Figure 10, the process of application program, finger daemon etc. are all contained in terminal system, wherein in application processing In device 183, AP sides are that is to say, the process of multiple application programs is associated by Binder call-by mechanisms with SystemServer, SystemServer is led to by Socket modes and the finger daemon data communication of BBP (Modem sides) 182, finger daemon Cross ICP/IP protocol and realize data communication with server, constitute the system architecture of the present invention, wherein:
Binder is a kind of distinctive interprocess communication (IPC) mode, the hand developed from Unix in android system Section, communicating pair must handle the challenges such as thread synchronization, memory management, and data are transmitted between process and are used in shared The mode deposited, such data only need to replicate and once just can reach another process from a process (general IPC is required for two Portion, copies to kernel, then copy to service processes from kernel from consumer process), so substantially increase the efficiency of data transfer. When Binder is called can call by passing process euid to service end, therefore service end can be by checking the authority of calling process To decide whether to allow it to use the service called.
During operation, when application setting length connects timer, by the timer labeled as long connection timer (so as to Distinguish other timers), the process in system is freezed using mechanism is freezed, when long connection timer wakes up terminal system When, finger daemon is only waken up, other processes still keep frozen state.When multiple long connection timer requests are sended over, The timer request sent is done into timer alignment operation.Mainly by formulating window mode, timer is divided into difference Bach batches in handle.Maintenance application and server end communication information table in finger daemon, so as to application message is inquired about, Server address, sends heartbeat packet cycle etc..Finger daemon is responsible for the operation for completing to send heartbeat packet.Finger daemon with Communicated between SystemServer processes by way of socket.
When there is message sink, it can wake up and accurately be assigned to corresponding application program.Terminal system SystemServer, Informing it needs to receive related news, it is necessary to notify to be shown to corresponding application program.When application program is exited either When being deleted by the system, at the end of SystemServer detects the process, notify that finger daemon has process to be deleted by socket, Need to update application message, finger daemon removes the application related information from communication information table, and remove phase customs director connection Timer operation.
Finger daemon is connected as client length and acted on behalf of, when application program needs timing to send heartbeat packet, notification agent Side finger daemon.The application program is registered in long connection proxy information table by finger daemon.Finger daemon by bach mechanism, Long connection timer insertion batch processing queue is completed into alignment.Nearest long connection timer is set into kernel.When being During system dormancy, application program side process is freezed, when timer then wakes up system, application program side process, which to appoint so keep, freezes Knot state, only wakes up and acts on behalf of finger daemon.Finger daemon is responsible for heartbeat data packets being sent to server end, keeps long connection shape State.When server end has PUSH message to send, finger daemon is received after packet, the long connection proxy information table of inquiry, by number According to being distributed to application program.When application program is exited, the application node in table is deleted, timer is cleared up in batch processing queue.
Wherein, socket is commonly referred to as " socket ", is the basic operation unit for the network service for supporting TCP/IP, can With regard as the process between different main frames carry out two-way communication end points, briefly be exactly communication two sides one kind about It is fixed, complete communication process with the correlation function in socket.Application program generally sends request by " socket " to network Or response network request.By taking J2SDK-1.3 as an example, Socket and ServerSocket class libraries is located in java.net bags. ServerSocket is used for server end, and Socket is used when setting up network connection.In successful connection, application program two End can all produce a Socket example, operate this example, the session needed for completing.For a network connection, set It is equality to connect word, not difference, not because producing different stage in server end or in client.Either Socket Or their work of ServerSocket is completed by SocketImpl classes and its subclass.
System Server are the cores of android system, Dalvik virtual machine startup after immediately begin to initialization and Operation.Other system services are run in the environment of System Server processes.System Server are the O of terminal system Process, that is to say kernel state process.
Process has point of kernel state process and User space process.So the establishment of process also just has two ways:One be by Operating system is created, and two are created by parent process.When system starts, operating system can create some processes, and they carry Management and the task of distributing system resource, these processes are commonly known as system process.System allows a process creation newly to enter Journey, new process is subprocess, and subprocess can also create new subprocess, form process tree construction.Whole linux system All processes are also a tree structure.Tree root is that system is constructed automatically, i.e., performed under kernel state No. 0 process, and he is The ancestors of all processes.By No. 1 process (kernel state) of No. 0 process creation, No. 1 partially-initialized work being responsible for performing kernel and System configuration is carried out, and creates several kernel threads for cache and virtual stock management.Then, No. 1 process is adjusted Executable program init is run with execve (), and develops into No. 1 process of User space, i.e. init processes.It is according to configuration text Part/etc/initab requirement, completes system startup work, and it is No. 1, No. 2 to create numbering..Some endpoint registration processes getty.Each getty processes set its process group identification number, and detect the interface circuit for being configured to system terminal.When detecting When carrying out the connection signal of self terminal, getty processes will perform accreditation process login by function execve (), and now user is just Login name can be inputted and password enters landfall process, if it is successful, being performed again by function execv () by login programs Shell, the shell processes receive the pid of getty processes, replace original getty processes.Again by shell directly or indirectly Produce other processes.Said process can be described as:No. 0 No. 1 user of kernel thread-> of kernel process-> 1 of process-> 1 enters Journey (init processes)-> getty process-> shell processes.
The method and its device of a kind of reduction mobile terminal power consumption proposed by the present invention, are kept by being created in terminal system Shield process, this finger daemon is acted on behalf of as the long connection of application program, when application program needs timing to send heartbeat packet, only Only wake up the finger daemon;Complete the transmission of heartbeat packet to ensure the data communication between server by finger daemon; When server sends packet to application program, then finger daemon received data packet is connected by socket (socket) Terminal system, wakes up the terminal system, then by packet delivery to corresponding application program.The present invention is by AP A set of communication mechanism is set up in (Application Processor) side, and long connection request is managed collectively, to reduce AP sides In be waken up the number of process, opened so as to reduce the power consumption that the multi-process after the frequency and wake-up that mobile terminal is waken up brings Pin;Greatly improve the use duration of mobile terminal.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are make it that a station terminal equipment (can be mobile phone, computer, clothes It is engaged in device, air-conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of method for reducing mobile terminal power consumption, it is characterised in that the described method comprises the following steps:
A finger daemon, the communication of the finger daemon affiliate application and server are created on BBP;
When the long connection timer of the application program wakes up the finger daemon, the finger daemon is sent out to the server Send heartbeat packet;
When the finger daemon receives the packet of the server, the finger daemon inquires about the communication information and by institute Packet delivery is stated to the corresponding application program on application processor.
2. a kind of method for reducing mobile terminal power consumption according to claim 1, it is characterised in that when multiple applications When program sends long connection timer described in one to the finger daemon respectively, the finger daemon is by batch processing mechanism by institute State long connection timer insertion batch processing queue alignment.
3. it is according to claim 2 it is a kind of reduce mobile terminal power consumption method, it is characterised in that the application program and The communication information of the server is stored in a communication information table, and the communication information table includes application information, server The information such as address and heartbeat packet transmission cycle.
4. a kind of method for reducing mobile terminal power consumption according to claim 1, it is characterised in that when the application program When sending the long connection timer to the finger daemon, terminal system is by freezing mechanism entering the application processor Journey is freezed;When the long connection timer wakes up the finger daemon, the process of the application processor keeps frozen state.
5. a kind of method for reducing mobile terminal power consumption according to claim 4, it is characterised in that the finger daemon leads to The mode for crossing socket is communicated with the application processor;When the finger daemon receives the packet of the server When, the finger daemon is connected by the socket and wakes up the application processor, and the application processor receives described Packet simultaneously distributes the corresponding application program.
6. a kind of method for reducing mobile terminal power consumption according to claim 1, it is characterised in that when the application program When exiting or being closed, the process that the application processor detects the application program terminates, and the application processor leads to The finger daemon that socket connects the BBP is crossed, the application information is updated.
7. a kind of method for reducing mobile terminal power consumption according to claim 6, it is characterised in that when the application program When exiting or being closed, the finger daemon deletes the application information from the communication information table, removes described answer With the corresponding long connection timer of program.
8. a kind of reduce the device of mobile terminal power consumption, it is characterised in that including finger daemon module, the finger daemon module It is arranged in BBP, for when the long connection timer of application program wakes up the finger daemon module, to service Device sends heartbeat packet;And when receiving the packet of the server, query communication information simultaneously gives the packet delivery The corresponding application program on application processor;
Data memory module, the communication information for storing application program and server, described in the finger daemon module relation The communication of application program and the server.
9. a kind of device of reduction mobile terminal power consumption according to claim 8, it is characterised in that the finger daemon mould Block includes:Data transmission unit, for when the long connection timer of the application program wakes up the finger daemon module, to Server sends heartbeat packet;
Data receipt unit, for when receiving the packet of the server, query communication information simultaneously to divide the packet Issue the corresponding application program;
Unit is communicated to connect, for being communicated by way of socket with application processor;
Process freezing unit, for when the application program sends long connection timer to the finger daemon, by freezing Mechanism freezes the process of application processor;
Batch unit, for sending long connection timer described in one to the finger daemon respectively in multiple application programs When, the long timer that connects is inserted by batch processing queue alignment by batch processing mechanism.
10. a kind of device of reduction mobile terminal power consumption according to claim 8, it is characterised in that the data storage Module stores a communication information table, and the communication information table includes application information, server address and heartbeat packet and sent The information such as cycle.
CN201710345827.XA 2017-05-16 2017-05-16 It is a kind of to reduce the method and its device of mobile terminal power consumption Pending CN106941713A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710345827.XA CN106941713A (en) 2017-05-16 2017-05-16 It is a kind of to reduce the method and its device of mobile terminal power consumption

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710345827.XA CN106941713A (en) 2017-05-16 2017-05-16 It is a kind of to reduce the method and its device of mobile terminal power consumption

Publications (1)

Publication Number Publication Date
CN106941713A true CN106941713A (en) 2017-07-11

Family

ID=59465050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710345827.XA Pending CN106941713A (en) 2017-05-16 2017-05-16 It is a kind of to reduce the method and its device of mobile terminal power consumption

Country Status (1)

Country Link
CN (1) CN106941713A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108363629A (en) * 2018-02-28 2018-08-03 杭州朗和科技有限公司 For the method for instant messaging, medium, device and computing device
CN108934056A (en) * 2018-06-20 2018-12-04 联想(北京)有限公司 The control method and system of electronic equipment
CN109375959A (en) * 2018-09-28 2019-02-22 北京小米移动软件有限公司 Orient the method and device of pull-up application
CN109753352A (en) * 2019-01-04 2019-05-14 Oppo广东移动通信有限公司 Using processing method, electronic device and the computer readable storage medium freezed
CN110990066A (en) * 2019-11-26 2020-04-10 江苏嘉则信息技术有限公司 Sleep awakening method of communication terminal
CN111988191A (en) * 2019-05-22 2020-11-24 北京华为数字技术有限公司 Fault detection method and device for distributed communication network
CN112769651A (en) * 2021-01-13 2021-05-07 杭州迪普科技股份有限公司 TCP connection detection method and device and electronic equipment
CN113572751A (en) * 2021-07-20 2021-10-29 杭州默安科技有限公司 Network flow analysis system and method
CN113709202A (en) * 2020-05-22 2021-11-26 北京罗克维尔斯科技有限公司 Method and system for awakening system chip
CN113765948A (en) * 2020-06-02 2021-12-07 华为技术有限公司 Long connection device and network system
CN114125023A (en) * 2021-11-12 2022-03-01 青岛海尔科技有限公司 Data connection determining method and device, storage medium and electronic device
CN114126014A (en) * 2021-11-04 2022-03-01 维沃移动通信有限公司 Heartbeat proxy method and device
EP3962180A4 (en) * 2019-08-06 2022-06-15 ZTE Corporation Network-based control method for power consumption of applications, terminal and storage medium
US11693693B2 (en) 2017-10-13 2023-07-04 Huawei Technologies Co., Ltd. Resource management based on ranking of importance of applications

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188653A (en) * 2011-12-27 2013-07-03 华为终端有限公司 Method of data receiving, method of data sending, mobile terminal and server
WO2014200631A1 (en) * 2013-06-11 2014-12-18 Seven Networks, Inc. Optimizing keepalive and other background traffic in a wireless network
WO2015077961A1 (en) * 2013-11-28 2015-06-04 华为终端有限公司 Method for sending heartbeat message and mobile terminal
CN105306418A (en) * 2014-06-24 2016-02-03 博雅网络游戏开发(深圳)有限公司 Method and system for sharing communication connection by multiple application programs
CN105893129A (en) * 2016-03-30 2016-08-24 北京小米移动软件有限公司 Processing method and device for application programs in terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188653A (en) * 2011-12-27 2013-07-03 华为终端有限公司 Method of data receiving, method of data sending, mobile terminal and server
WO2014200631A1 (en) * 2013-06-11 2014-12-18 Seven Networks, Inc. Optimizing keepalive and other background traffic in a wireless network
WO2015077961A1 (en) * 2013-11-28 2015-06-04 华为终端有限公司 Method for sending heartbeat message and mobile terminal
CN105306418A (en) * 2014-06-24 2016-02-03 博雅网络游戏开发(深圳)有限公司 Method and system for sharing communication connection by multiple application programs
CN105893129A (en) * 2016-03-30 2016-08-24 北京小米移动软件有限公司 Processing method and device for application programs in terminal

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11693693B2 (en) 2017-10-13 2023-07-04 Huawei Technologies Co., Ltd. Resource management based on ranking of importance of applications
CN108363629B (en) * 2018-02-28 2020-10-27 杭州朗和科技有限公司 Method, medium, apparatus and computing device for instant messaging
CN108363629A (en) * 2018-02-28 2018-08-03 杭州朗和科技有限公司 For the method for instant messaging, medium, device and computing device
CN108934056A (en) * 2018-06-20 2018-12-04 联想(北京)有限公司 The control method and system of electronic equipment
CN109375959A (en) * 2018-09-28 2019-02-22 北京小米移动软件有限公司 Orient the method and device of pull-up application
CN109375959B (en) * 2018-09-28 2022-03-25 北京小米移动软件有限公司 Method and device for directionally pulling up application
CN109753352A (en) * 2019-01-04 2019-05-14 Oppo广东移动通信有限公司 Using processing method, electronic device and the computer readable storage medium freezed
CN111988191A (en) * 2019-05-22 2020-11-24 北京华为数字技术有限公司 Fault detection method and device for distributed communication network
CN111988191B (en) * 2019-05-22 2022-03-29 北京华为数字技术有限公司 Fault detection method and device for distributed communication network
US11943127B2 (en) 2019-08-06 2024-03-26 Zte Corporation Network-based control method for power consumption of applications, terminal and storage medium
EP3962180A4 (en) * 2019-08-06 2022-06-15 ZTE Corporation Network-based control method for power consumption of applications, terminal and storage medium
CN110990066B (en) * 2019-11-26 2023-12-05 江苏嘉则信息技术有限公司 Sleep awakening method of communication terminal
CN110990066A (en) * 2019-11-26 2020-04-10 江苏嘉则信息技术有限公司 Sleep awakening method of communication terminal
CN113709202A (en) * 2020-05-22 2021-11-26 北京罗克维尔斯科技有限公司 Method and system for awakening system chip
CN113709202B (en) * 2020-05-22 2023-09-19 北京罗克维尔斯科技有限公司 Method and system for waking up system chip
CN113765948B (en) * 2020-06-02 2022-12-27 华为技术有限公司 Long connection device and network system
WO2021244087A1 (en) * 2020-06-02 2021-12-09 华为技术有限公司 Long connection apparatus and network system
CN113765948A (en) * 2020-06-02 2021-12-07 华为技术有限公司 Long connection device and network system
CN112769651B (en) * 2021-01-13 2022-04-26 杭州迪普科技股份有限公司 TCP connection detection method and device and electronic equipment
CN112769651A (en) * 2021-01-13 2021-05-07 杭州迪普科技股份有限公司 TCP connection detection method and device and electronic equipment
CN113572751A (en) * 2021-07-20 2021-10-29 杭州默安科技有限公司 Network flow analysis system and method
CN114126014A (en) * 2021-11-04 2022-03-01 维沃移动通信有限公司 Heartbeat proxy method and device
CN114125023A (en) * 2021-11-12 2022-03-01 青岛海尔科技有限公司 Data connection determining method and device, storage medium and electronic device
CN114125023B (en) * 2021-11-12 2024-03-22 青岛海尔科技有限公司 Method and device for determining data connection, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN106941713A (en) It is a kind of to reduce the method and its device of mobile terminal power consumption
CN106155741B (en) It is a kind of to avoid processing unit and method of the application program without response
CN105282245B (en) Cross-server message push system and method
CN105511928B (en) System upgrade device and method
CN105100090B (en) Communication method, server and system based on internal and external network separation
CN106843450A (en) The storage processing method and device of a kind of terminal applies
CN106878053A (en) A kind of config update devices and methods therefor based on ZOOKEEPER
CN107040543A (en) Single-point logging method, terminal and storage medium
CN107104970A (en) A kind of regular and synchronized processing method, system, rule server and gray scale server
CN106843723A (en) A kind of application program associates application method and mobile terminal
CN106528298A (en) Resource distribution method and device
CN105764085A (en) Abnormal electricity consumption detection method and terminal
CN110084635A (en) Terminal advertisement management method, advertising management optimization system, terminal and storage medium
CN109005290A (en) A kind of alarm clock setting method, terminal and computer readable storage medium
CN105827531B (en) A kind of routing access method and terminal
CN105897700A (en) Information processing method, terminal and server
CN106888317A (en) A kind of interaction processing method, device and terminal
CN105302457B (en) Terminal control method and device
CN106506364A (en) A kind of cut-in method, client and routing server
CN106507460A (en) A kind of intelligent power saving method, terminal
CN106528236A (en) Memory acceleration white list configuration method and device
CN106604269A (en) Mobile terminal network communication method and system
CN106028428A (en) Information processing method and mobile terminal
CN106911486B (en) A kind of message push processing method, apparatus and system
CN106686703A (en) Terminal and timer wakeup method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170711