CN106708240B - Power saving method, server and power saving system - Google Patents

Power saving method, server and power saving system Download PDF

Info

Publication number
CN106708240B
CN106708240B CN201510802267.7A CN201510802267A CN106708240B CN 106708240 B CN106708240 B CN 106708240B CN 201510802267 A CN201510802267 A CN 201510802267A CN 106708240 B CN106708240 B CN 106708240B
Authority
CN
China
Prior art keywords
power saving
power consumption
mobile terminal
application program
time
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.)
Active
Application number
CN201510802267.7A
Other languages
Chinese (zh)
Other versions
CN106708240A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510802267.7A priority Critical patent/CN106708240B/en
Publication of CN106708240A publication Critical patent/CN106708240A/en
Application granted granted Critical
Publication of CN106708240B publication Critical patent/CN106708240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention relates to a power saving method applied to a mobile terminal, which comprises the steps of obtaining power consumption data of each application program in the mobile terminal and sending the power consumption data to a server; receiving a power saving strategy output after the server formulates an abnormal power consumption standard according to the power consumption data; and analyzing and operating the power saving strategy. The invention also provides a server and a power saving system, and the power saving method, the server and the power saving system utilize the power saving strategy output after the server formulates the abnormal power consumption standard according to the power consumption data, so that the power saving strategy in the server only needs to be modified when the power saving strategy needs to be updated, the whole code of the mobile terminal does not need to be modified, and the convenience of operation can be improved while power is saved.

Description

Power saving method, server and power saving system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a power saving method, a server, and a power saving system.
Background
At present, with the rapid development of communication technology and terminal technology, terminal devices (especially mobile terminals) have become essential articles for people's life. With the popularization of large-screen, high-performance and ultra-thin mobile terminals, the standby time becomes a major bottleneck restricting the application of the mobile terminal. How to enable the mobile terminal to stand by for a long time is a problem to be solved urgently.
Disclosure of Invention
Therefore, there is a need for a power saving method, a server and a power saving system, which can increase the standby time of a mobile terminal.
The invention provides a power saving method, which is applied to a mobile terminal and comprises the following steps: acquiring power consumption data of each application program in the mobile terminal, and sending the power consumption data to a server; receiving a power saving strategy output after the server formulates an abnormal power consumption standard according to the power consumption data; and analyzing and operating the power saving strategy.
The invention also provides a power saving method, which is applied to the server and comprises the following steps: receiving power consumption data of each application program sent by a mobile terminal; and after an abnormal power consumption standard is formulated according to the power consumption data, a power saving strategy is sent to the mobile terminal, so that the mobile terminal analyzes and operates the power saving strategy.
The invention also provides a power saving method which is applied between the mobile terminal and the server, and the power saving method comprises the steps of obtaining power consumption data of each application program in the mobile terminal and sending the power consumption data to the server; an output power saving strategy is made according to the power consumption data and then is output to the mobile terminal; and receiving the power saving strategy, and operating the power saving strategy after analysis.
The invention also provides a server, which is used for formulating an abnormal power consumption standard according to the power consumption data after receiving the power consumption data of each application program sent by the mobile terminal and sending a power saving strategy to the mobile terminal so that the mobile terminal analyzes and runs the power saving strategy.
The invention also provides a power saving system, which comprises a mobile terminal and a server; the mobile terminal is used for acquiring power consumption data of each application program and sending the power consumption data to the server; the server is used for formulating an abnormal power consumption standard according to the power consumption data and then outputting a power saving strategy to the mobile terminal so that the mobile terminal can analyze and operate the power saving strategy.
According to the power saving method, the server and the power saving system, the power saving strategy which is output after the server formulates the abnormal power consumption standard according to the power consumption data is utilized, so that the power saving strategy in the server only needs to be modified when the power saving strategy needs to be updated, the whole code of the mobile terminal does not need to be modified, and the power saving method, the server and the power saving system can save power and improve the convenience of operation.
In order to make the aforementioned and other objects, features and advantages of the invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1 is a block diagram of a mobile terminal employed in an embodiment of the present invention.
Fig. 2 is a block diagram of a server employed in the embodiment of the present invention.
Fig. 3 is a flowchart of a power saving method according to a first embodiment.
Fig. 4 is a flowchart of a power saving method according to a second embodiment.
Fig. 5 is a flowchart of a power saving method according to a third embodiment.
Fig. 6 is a flowchart of a power saving method according to a fourth embodiment.
Fig. 7 is a flowchart of a power saving method according to a fifth embodiment.
Fig. 8 is a schematic diagram of an application environment of the power saving method shown in fig. 7.
FIG. 9 is a timing diagram illustrating the power saving method shown in FIG. 7.
Fig. 10 is a block diagram of a mobile terminal according to a sixth embodiment.
Fig. 11 is a block diagram of a server according to a seventh embodiment.
Fig. 12 is a block diagram of a power saving system according to an eighth embodiment.
Detailed Description
To further illustrate the technical means and effects of the present invention adopted to achieve the predetermined objects, the following detailed description of the embodiments, structures, features and effects according to the present invention will be made with reference to the accompanying drawings and preferred embodiments.
Fig. 1 is a block diagram of a mobile terminal employed in an embodiment of the present invention. As shown in fig. 1, the mobile terminal includes a first memory 102, a memory controller 104, one or more (only one shown) first processors 106, a peripheral interface 108, a radio frequency module 110, a positioning module 112, a camera module 114, an audio module 116, a touch screen 118, and a key module 120. These components communicate with each other via one or more communication buses/signal lines.
It will be appreciated that the configuration shown in fig. 1 is merely illustrative and that the mobile terminal may also include more or fewer components than shown in fig. 1 or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
The first memory 102 may be used for storing software programs and modules, such as program instructions or modules corresponding to the power saving method performed in the mobile terminal according to the embodiment of the present invention.
The first processor 102 executes various functional applications and data processing by running software programs and modules stored in the first memory 104, thereby implementing the power saving method in the mobile terminal.
The first memory 102 may comprise a high speed random access first memory and may also comprise a non-volatile first memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state first memory. In some examples, the first memory 102 may further include first memories remotely located from the first processor 106, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. Access to the first memory 102 by the first processor 106, and possibly other components, may be under the control of the memory controller 104.
The peripherals interface 108 couples various input/output devices to the CPU and to the first memory 102. The first processor 106 executes various software, instructions within the first memory 102 to perform various functions of the mobile terminal as well as data processing.
In some embodiments, the peripheral interface 108, the first processor 106, and the memory controller 104 may be implemented in a single chip. In other examples, they may be implemented separately from each other.
The rf module 110 is used for receiving and transmitting electromagnetic waves, and implementing interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The rf module 110 may include various existing circuit elements for performing these functions, such as an antenna, an rf transceiver, a digital signal first processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, a first memory, and so on. The rf module 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network described above may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), enhanced Mobile Communication (Enhanced Data GSM Environment, EDGE), wideband Code division multiple Access (W-CDMA), code Division Multiple Access (CDMA), time Division Multiple Access (TDMA), bluetooth, wireless Fidelity (WiFi) (e.g., IEEE802.11 a, IEEE802.11 b, IEEE802.11g and/or IEEE802.11 n), voice over internet protocol (VoIP), wireless internet Access (world wide for internet, wi-Max), and any other protocols that are not currently developed for instant messaging, including any other protocols that are suitable for Wireless Communication.
The positioning module 112 is used for obtaining the current position of the mobile terminal. Examples of the positioning module 112 include, but are not limited to, a global positioning satellite system (GPS), a wireless local area network-based positioning technology, or a mobile communication network-based positioning technology.
The camera module 114 is used to take a picture or video. The taken picture or video may be stored in the first memory 102 and may be transmitted through the rf module 110.
Audio module 116 provides an audio interface to a user that may include one or more microphones, one or more speakers, and audio circuitry. The audio module 116 receives audio data from the peripheral interface 108, converts the audio data into electrical information, and transmits the electrical information to the speaker. The speaker converts the electrical information into sound waves that the human ear can hear. The audio circuitry also receives electrical information from the microphone, converts the electrical information to voice data, and transmits the voice data to the peripheral interface 108 for further processing. The audio data may be retrieved from the first memory 102 or through the radio frequency module 110. In addition, the audio data may also be stored in the first memory 102 or transmitted through the radio frequency module 110. In some examples, the audio module 116 may also include an earphone jack for providing an audio interface to a headset or other device.
The touch screen 118 provides both an output and an input interface between the mobile terminal and the user. The touch screen 118 is used to display video output to the user, the content of which may include text, graphics, video, and any combination thereof. The touch screen 118 is also used to receive user inputs, such as user clicks, swipes, and other gesture operations, so that the user interface objects respond to these user inputs. The technique of detecting user input may be based on resistive, capacitive, or any other possible touch detection technique. Specific examples of touch screen 118 display units include, but are not limited to, liquid crystal displays or light emitting polymer displays.
The key module 120 also provides an interface for a user to input to the mobile terminal, and the user can press different keys to cause the mobile terminal to perform different functions.
Fig. 2 shows a block diagram of one configuration of the server 20 employed in the embodiment of the present invention. As shown in fig. 2, server 20 includes one or more (only one shown) second processors 202, a second memory 204, and a transmission module 206. It will be understood by those of ordinary skill in the art that the configuration shown in fig. 2 is merely illustrative and is not intended to limit the configuration of the server 20. For example, server 20 may also include more or fewer components than shown in FIG. 2, or have a different configuration than shown in FIG. 2.
The second memory 204 can be used for storing software programs and modules, such as program instructions/modules corresponding to the power saving method in the embodiment of the present invention, and the second processor 202 executes various functional applications and data processing by running the software programs and modules stored in the second memory 204, that is, the power saving method is implemented. The second memory 204 may comprise a high speed random access second memory and may also comprise a non-volatile second memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state second memory. In some examples, the second memory 204 may further include a second memory remotely located from the second processor 202, which may be connected to the electronic device 100 over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission module 206 is used to receive or transmit data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission module 206 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet. In one example, the transmission module 206 is a Radio Frequency (RF) module, which is used for communicating with the mobile terminal in a wireless manner.
First embodiment
Fig. 3 is a flowchart of a power saving method according to a first embodiment. The power saving method can be applied to a mobile terminal, which can be but is not limited to a mobile phone, a tablet computer, and the like, as shown in fig. 3, and includes the following steps:
step S301: the power consumption data of each application program in the mobile terminal is obtained, and the power consumption data is sent to the server.
Wherein the power consumption data of each application program may be, but is not limited to, acquired periodically (e.g., every hour). Acquiring power consumption data may be, but is not limited to, acquiring using dumpsys batterystats.
However, the present invention is not limited to the case where the power consumption data of each application is periodically acquired and then immediately transmitted to the server, and the acquired power consumption data may be stored in a storage medium, and when the number of times of storing the power consumption data reaches a predetermined number (for example, six times), the six times of power consumption data may be transmitted to the server together.
Among them, the power consumption data may be transmitted to the server through, but not limited to, a hypertext Transfer protocol (HTTP).
The power consumption data may include, but is not limited to: the time to use the wake-up lock or the time and number to use the positioning system or the time slice occupying the central processor or a combination thereof. Where a time slice refers to the time that the CPU allocates to each program, and each thread is allocated a time period, referred to as its time slice. Of course, it will be understood by those skilled in the art that the power consumption data may also include download traffic of the application program, etc. which can reflect the amount of power consumed by the application program.
Preferably, the power consumption data includes at least the time of use of the wake-up lock, the time and number of times the positioning system is used, and the time slice occupied by the central processor.
Step S302: and receiving a power saving strategy output by the server after formulating an abnormal power consumption standard according to the power consumption data.
Wherein, the abnormal electricity consumption standard is established according to the electricity consumption data. That is, the abnormal power consumption criterion may select one or more of the power consumption data to perform corresponding abnormal determination.
Preferably, the abnormal power consumption criterion may include, but is not limited to, the time to use the wake-up lock reaching a first threshold time, or the time to use the positioning system exceeding a second threshold time, or the number of times to use the positioning system exceeding a third threshold number, or the time slice occupying the central processing unit reaching a fifth threshold time. Of course, it will be understood by those skilled in the art that the abnormal power consumption level is set to other levels, such as whether the download traffic of the application program exceeds a set value, etc.
The power saving policy may include, but is not limited to, the following steps:
when the mobile terminal is in a state of no call and screen off, if the first application program meets the abnormal power consumption standard and the screen off time of the mobile terminal exceeds a sixth threshold time, judging whether the first application program is an important program;
if the first application program is an important program, reminding the user of the power consumption of the first application program;
and if the first application program is not an important program, stopping running the first application program.
Further, the power saving policy may also include, but is not limited to: when the mobile terminal is in a non-call and screen-off state, if the first application program meets the abnormal power consumption standard and the screen-off time of the mobile terminal does not exceed the sixth threshold time, recording an execution log of the first application program.
Further, the power saving policy may also include, but is not limited to: a period of executing the power saving policy. Such as performing a power saving policy every ten minutes, etc.
Further, the power saving policy may further include recording an execution log of the first application program when the mobile terminal is in a non-call and screen-off state and if the first application program does not meet the abnormal power consumption standard, or recording the execution log of the first application program when the mobile terminal is in a call or non-screen-off state, and the like.
Step S303: and analyzing and operating the power saving strategy.
Specifically, the mobile terminal parses the power saving policy into executable codes, and executes corresponding steps according to the power saving policy.
According to the power saving method, the power saving strategy output after the abnormal power consumption standard is formulated by the server according to the power consumption data is utilized, so that the power saving strategy in the server only needs to be modified when the power saving strategy needs to be updated, the whole code of the mobile terminal does not need to be modified, and the convenience of operation can be improved while power is saved.
Second embodiment
Fig. 4 is a flowchart of a power saving method according to a second embodiment. Steps S401, S402, and S403 of the power saving method shown in fig. 4 are the same as steps S301, S302, and S303 of the power saving method shown in fig. 3, and are not repeated here, where the power saving method shown in fig. 4 further includes:
step S404: and recording a log executed by the power saving strategy, and sending the log executed by the power saving strategy to the server so that the server optimizes the power saving strategy according to the log executed by the power saving strategy.
Specifically, when the power saving effect does not meet the expectation (e.g., the power saving result does not meet the expectation), the server may modify the power saving policy according to the execution log, for example, modify a threshold of a certain object of the abnormal criterion in the power saving policy (e.g., the time for using the wake-up lock is modified from more than 3 minutes to more than 2 minutes), and/or increase the number of objects in the abnormal criterion (e.g., increase the traffic used by the application program to exceed 1M), and/or modify the execution result under a certain determination condition (e.g., when the mobile terminal is in a non-call and screen-off state, if the first application program meets the abnormal power consumption criterion, and the screen-off time of the mobile terminal does not exceed the sixth threshold time, the execution result is modified from recording the execution log of the first application program to stop running the first application program, and so on).
According to the power saving method, the power saving strategy output after the abnormal power consumption standard is formulated by the server according to the power consumption data is utilized, so that the power saving strategy in the server only needs to be modified when the power saving strategy needs to be updated, the whole code of the mobile terminal does not need to be modified, the convenience of operation can be improved while power is saved, the power saving strategy can be optimized according to the execution log of the power saving strategy, the flexibility is high, and the power saving effect is further improved.
Third embodiment
Fig. 5 is a flowchart of a power saving method according to a third embodiment. The power saving method is applied to the server, and as shown in fig. 5, the power saving method includes:
step S501: and receiving power consumption data of each application program sent by the mobile terminal.
The power consumption data may include, but is not limited to: the time to use the wake-up lock or the time and number to use the positioning system or the time slice occupying the central processor or a combination thereof. Where a time slice refers to the time that the CPU allocates to each program, and each thread is allocated a time period, referred to as its time slice. Of course, it will be understood by those skilled in the art that the power consumption data may also include download traffic of the application program, etc. which can reflect the amount of power consumed by the application program.
Preferably, the power consumption data includes at least the time of use of the wake-up lock, the time and number of times the positioning system is used, and the time slice occupied by the central processor.
Step S502: and after an abnormal power consumption standard is formulated according to the power consumption data, a power saving strategy is sent to the mobile terminal, so that the mobile terminal analyzes and operates the power saving strategy.
Wherein, the abnormal electricity consumption standard is established according to the electricity consumption data. That is, the abnormal power consumption criterion may select one or more of the power consumption data to perform corresponding abnormal determination.
Preferably, the abnormal power consumption criteria may include, but are not limited to, the time to use the wake-up lock reaching a first threshold time, or the time to use the positioning system exceeding a second threshold time, or the number of times to use the positioning system exceeding a third threshold number, or the time slice occupying the central processing unit reaching a fifth threshold time. Of course, it will be understood by those skilled in the art that the abnormal power consumption level is set to other levels, such as whether the download traffic of the application program exceeds a set value, etc.
The power saving policy may include, but is not limited to, the following steps:
when the mobile terminal is in a state of no call and screen off, if the first application program meets the abnormal power consumption standard and the screen off time of the mobile terminal exceeds a sixth threshold time, judging whether the first application program is an important program;
if the first application program is an important program, reminding the user of the power consumption of the first application program;
and if the first application program is not an important program, stopping running the first application program.
Further, the power saving policy may also include, but is not limited to: when the mobile terminal is in a non-call and screen-off state, if the first application program meets the abnormal power consumption standard and the screen-off time of the mobile terminal does not exceed the sixth threshold time, recording an execution log of the first application program.
Further, the power saving policy may also include, but is not limited to: a period of executing the power saving policy. Such as performing a power saving policy every ten minutes, etc.
Further, the power saving policy may further include recording an execution log of the first application program when the mobile terminal is in a non-call and screen-off state and if the first application program does not meet the abnormal power consumption standard, or recording the execution log of the first application program when the mobile terminal is in a call or non-screen-off state, and the like.
Specifically, the mobile terminal may parse the power saving policy into executable codes, and execute corresponding steps according to the power saving policy.
According to the power saving method, the power saving strategy output after the abnormal power consumption standard is made by the server according to the power consumption data, so that the power saving strategy in the server only needs to be modified when the power saving strategy needs to be updated, the whole code of the mobile terminal does not need to be modified, and the convenience of operation can be improved while power is saved.
Fourth embodiment
Fig. 6 is a flowchart of a power saving method according to a fourth embodiment. The power saving method shown in fig. 6 is substantially the same as the power saving method shown in fig. 5, except that the power saving method further includes:
step S603: and receiving a log of the execution of the power saving strategy recorded by the mobile terminal.
Step S604: and optimizing the power saving strategy according to the log executed by the power saving strategy.
Specifically, when the power saving effect does not meet the expectation (e.g., the power saving result does not meet the expectation), the server may modify the power saving policy according to the execution log, for example, modify a threshold of a certain object of the abnormal criterion in the power saving policy (e.g., the time for using the wake-up lock is modified from more than 3 minutes to more than 2 minutes), and/or increase the number of objects in the abnormal criterion (e.g., increase the traffic used by the application program to exceed 1M), and/or modify the execution result under a certain determination condition (e.g., when the mobile terminal is in a non-call and screen-off state, if the first application program meets the abnormal power consumption criterion, and the screen-off time of the mobile terminal does not exceed the sixth threshold time, the execution result is modified from recording the execution log of the first application program to stop running the first application program, and so on).
According to the power saving method, the power saving strategy output after the abnormal power consumption standard is formulated by the server according to the power consumption data is utilized, so that the power saving strategy in the server only needs to be modified when the power saving strategy needs to be updated, the whole code of the mobile terminal does not need to be modified, the convenience of operation can be improved while power is saved, the power saving strategy can be optimized according to the execution log of the power saving strategy, the flexibility is high, and the power saving effect is further improved.
Fifth embodiment
Fig. 7 is a flowchart of a power saving method according to a fifth embodiment. Fig. 8 is a schematic diagram of an application environment of the power saving method shown in fig. 7. FIG. 9 is a timing diagram illustrating the power saving method shown in FIG. 7. Referring to fig. 7, fig. 8 and fig. 9, a power saving method is applied between a mobile terminal 801 and a server 802, and the power saving method includes the following steps:
step S701: the mobile terminal 801 acquires power consumption data of each application in the mobile terminal 801 and transmits the power consumption data to the server 802.
The mobile terminal 801 may, but is not limited to, periodically (e.g., every hour) obtain power consumption data of each application program. Acquiring power consumption data may be, but is not limited to, acquiring using dumpsys batterystats.
Note that, the mobile terminal 801 may, but is not limited to, periodically acquire power consumption data for each application and immediately transmit the power consumption data to the server 802, or may store the acquired power consumption data in a storage medium, and transmit the power consumption data of six times to the server 802 when the number of times the power consumption data is stored reaches a predetermined number (for example, six times).
Among other things, mobile terminal 801 may transmit power consumption data to server 802 via, but not limited to, hypertext Transfer protocol (HTTP).
The power consumption data may include, but is not limited to: the time to use the wake-up lock or the time and number to use the positioning system or the time slice occupying the central processor or a combination thereof. Where a time slice refers to the time that the CPU allocates to each program, and each thread is allocated a time period, referred to as its time slice. Of course, it will be understood by those skilled in the art that the power consumption data may also include download traffic of the application program, etc. which can reflect the amount of power consumed by the application program.
Preferably, the power consumption data includes at least the time of use of the wake-up lock, the time and number of times the positioning system is used, and the time slice occupied by the central processor.
Step S702: the server 802 formulates an abnormal power consumption standard according to the power consumption data and then outputs a power saving strategy to the mobile terminal 801.
Wherein, the abnormal electricity consumption standard is established according to the electricity consumption data. That is, the abnormal power consumption criterion may select one or more of the power consumption data to perform corresponding abnormal determination.
Preferably, the abnormal power consumption criteria may include, but are not limited to, the time to use the wake-up lock reaching a first threshold time, or the time to use the positioning system exceeding a second threshold time, or the number of times to use the positioning system exceeding a third threshold number, or the time slice occupying the central processing unit reaching a fifth threshold time. Of course, it will be understood by those skilled in the art that the abnormal power consumption level is set to other levels, such as whether the download traffic of the application program exceeds a set value, etc.
The power saving policy may include, but is not limited to, the following steps:
when the mobile terminal 801 is in a state of no call and screen off, if the first application program meets the abnormal power consumption standard and the screen off time of the mobile terminal 801 exceeds a sixth threshold time, judging whether the first application program is an important program;
if the first application program is an important program, reminding the user of the power consumption of the first application program;
and if the first application program is not an important program, stopping running the first application program.
Further, the power saving policy may also include, but is not limited to: when the mobile terminal 801 is in a no-call and screen-off state, if the first application program meets the abnormal power consumption standard and the screen-off time of the mobile terminal 801 does not exceed the sixth threshold time, recording an execution log of the first application program.
Further, the power saving policy may also include, but is not limited to: a period of executing the power saving policy. Such as performing a power saving policy every ten minutes, etc.
Further, the power saving policy may further include recording an execution log of the first application program when the mobile terminal 801 is in a non-call and screen-off state and if the first application program does not meet the abnormal power consumption standard, or recording an execution log of the first application program when the mobile terminal 801 is in a call or non-screen-off state, and the like.
Step S703: the mobile terminal 801 receives the power saving policy, and executes the power saving policy after parsing.
Specifically, the mobile terminal 801 parses the power saving policy into executable codes, and executes corresponding steps according to the power saving policy.
Further, the power saving method may further include the steps of:
the mobile tracing section 801 records a log of power saving policy execution and transmits the log of power saving policy execution to the server 802;
the server 802 optimizes the power saving policy according to the log executed by the power saving policy.
Specifically, the server 802 may modify the power saving policy according to the execution log when the power saving effect is not compliant with the expectation (e.g., the power saving result is not compliant with the expectation), for example, modify a threshold of a certain object of the abnormal standard in the power saving policy (e.g., modify the time of using the wake-up lock from more than 3 minutes to more than 2 minutes), and/or increase the number of objects in the abnormal standard (e.g., increase the traffic used by the application to more than 1M), and/or modify the execution result under a certain determination condition (e.g., modify the execution result by recording the execution log of the first application to stop running the first application if the first application conforms to the abnormal power consumption standard and the time of turning off the screen of the mobile terminal 801 does not exceed the sixth threshold when the mobile terminal 801 is in the no-call and off-screen state), and so on.
According to the power saving method, the server 802 is used for making the power saving strategy output after the abnormal power consumption standard is established according to the power consumption data, so that when the power saving strategy needs to be updated, only the power saving strategy in the server 802 needs to be modified, the whole code of the mobile terminal 801 does not need to be modified, the power saving method can save power, improve the convenience of operation, further optimize the power saving strategy according to the execution log of the power saving strategy, is high in flexibility, and is beneficial to further improving the power saving effect.
Sixth embodiment
Fig. 10 is a block diagram of a mobile terminal according to a sixth embodiment. As shown in fig. 10, the mobile terminal includes a data acquisition module 1001, a data transmission module 1002, a policy reception module 1003, and a policy execution module 1004.
The acquisition module is used for acquiring power consumption data of each application program in the mobile terminal. The data sending module 1002 is configured to send the power consumption data to the server. The policy receiving module 1003 is configured to receive a power saving policy sent by the server. The policy enforcement module 1004 is configured to parse and run the power saving policy.
Further, the mobile terminal may also, but is not limited to, include a log feedback module (not shown in the figures). And the log feedback module is used for feeding back the log for executing the power saving strategy to the server.
In addition, the specific structure of the mobile terminal of the present invention can also refer to fig. 1, which is not described again.
The mobile terminal receives the power saving strategy output by the server after the server formulates the abnormal power consumption standard according to the power consumption data, and executes the corresponding power saving strategy, so that the power saving strategy in the server only needs to be modified when the power saving strategy needs to be updated, the whole code of the mobile terminal does not need to be modified, and the convenience of operation can be improved while power is saved.
Seventh embodiment
Fig. 11 is a block diagram of a server according to a seventh embodiment. As shown in fig. 11, the server is configured to, after receiving the power consumption data of each application program sent by the mobile terminal, formulate an abnormal power consumption standard according to the power consumption data, and send the power saving policy to the mobile terminal, so that the mobile terminal analyzes and runs the power saving policy.
The server comprises a data receiving module 1101, a policy generating module 1102 and a policy sending module 1103. The data receiving module 1101 is configured to receive power consumption data of each application program sent by the mobile terminal. The policy generation module 1102 is configured to generate a power saving policy after formulating an abnormal power consumption standard according to the power consumption data. The policy sending module 1103 is configured to send the power saving policy to the mobile terminal.
Further, the server may be further configured to receive a log of the power saving policy execution recorded by the mobile terminal, and optimize the power saving policy according to the log of the power saving policy execution.
In addition, the specific structure of the mobile terminal of the present invention can also refer to fig. 2, which is not described again.
According to the server, the power saving strategy output after the abnormal power consumption standard is formulated according to the power consumption data, and the corresponding power saving strategy is executed, so that the power saving strategy in the server only needs to be modified when the power saving strategy needs to be updated, the whole code of the mobile terminal does not need to be modified, and the convenience of operation can be improved while power is saved.
Eighth embodiment
Fig. 12 is a block diagram of a power saving system according to an eighth embodiment. As shown in fig. 12, the power saving system includes a mobile terminal 1201 and a server 1202.
The mobile terminal 1201 is configured to acquire power consumption data of each application program and send the power consumption data to the server 1202;
the server 1202 is configured to formulate a power saving policy output after an abnormal power consumption standard is formulated according to the power consumption data, and send the power saving policy to the mobile terminal 1201, so that the mobile terminal 1201 analyzes and operates the power saving policy.
Further, the mobile terminal 1201 may be further configured to log the power saving policy execution and send the log of the power saving policy execution to the server 1202. The server 1202 is also configured to optimize the power saving policy according to a log executed by the power saving policy.
According to the power saving system, the power saving strategy output after the abnormal power consumption standard is formulated according to the power consumption data, and the corresponding power saving strategy is executed, so that the power saving strategy in the server only needs to be modified when the power saving strategy needs to be updated, the whole code of the mobile terminal does not need to be modified, and the convenience of operation can be improved while power is saved.
It should be noted that, in the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Although the present invention has been described with reference to the preferred embodiments, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (14)

1. A power saving method is applied to a mobile terminal, and is characterized in that the power saving method comprises the following steps:
the method comprises the steps that power consumption data of each application program in the mobile terminal are periodically obtained, and when the obtaining times of the power consumption data exceed a time threshold value, the power consumption data are sent to a server;
receiving a power saving strategy output by the server after the server formulates an abnormal power consumption standard according to the power consumption data, wherein the server supports communication with a plurality of mobile terminals, the power saving strategy comprises the abnormal power consumption standard and an execution result when a judgment condition is met, the judgment condition comprises the abnormal power consumption standard, and the power saving strategy comprises strategies in screen-off and non-screen-off states;
wherein the power saving policy comprises:
when the mobile terminal is in a state of no call and screen off, if a first application program meets the abnormal power consumption standard, the screen off time of the mobile terminal exceeds threshold time, and the first application program is an important program, reminding a user of the power consumption of the first application program;
analyzing and periodically operating the power saving strategy, wherein the power saving strategy is operated after being analyzed into executable codes;
and recording a log executed by the power saving strategy, and sending the log executed by the power saving strategy to a server so that the server optimizes the power saving strategy according to the log executed by the power saving strategy, wherein the optimization mode of the power saving strategy comprises at least one of modification of a threshold value of an abnormal power consumption standard, the number of objects of the abnormal power consumption standard and an execution result.
2. The power saving method according to claim 1, wherein the power consumption data includes: the time to use the wake-up lock, the time and number of times to use the positioning system, and the time slice to occupy the central processor.
3. The power saving method of claim 2, wherein the abnormal power consumption criteria comprises a time to use a wake-up lock reaching a first threshold time, or a time to use a positioning system exceeding a second threshold time, or a number of times to use a positioning system exceeding a third threshold number, or a time slice occupying a central processor reaching a fifth threshold time.
4. The power saving method of claim 1 or 3, wherein the power saving policy comprises:
and when the mobile terminal is in a non-call and screen-off state, if a first application program meets the abnormal power consumption standard, the screen-off time of the mobile terminal exceeds the threshold time, and the first application program is not an important program, stopping running the first application program.
5. The power saving method of claim 1, wherein the power saving policy further comprises: when the mobile terminal is in a state of no call and screen off, if the first application program meets the abnormal power consumption standard and the screen off time of the mobile terminal does not exceed the threshold time, recording an execution log of the first application program.
6. A power saving method applied to a server supporting communication with a plurality of mobile terminals, the power saving method comprising:
receiving power consumption data of each application program sent by a mobile terminal; the power consumption data are acquired by the mobile terminal periodically, wherein the acquisition times of the power consumption data exceed a time threshold;
after an abnormal power consumption standard is formulated according to the power consumption data, a power saving strategy is sent to the mobile terminal, so that the mobile terminal analyzes and periodically runs the power saving strategy, wherein the power saving strategy is analyzed into an executable code and then runs, the power saving strategy comprises the abnormal power consumption standard and an execution result when a judgment condition is met, the judgment condition comprises the abnormal power consumption standard, and the power saving strategy comprises strategies under the screen-off state and the non-screen-off state;
wherein the power saving policy comprises:
when the mobile terminal is in a state of no call and screen off, if a first application program meets the abnormal power consumption standard, the screen off time of the mobile terminal exceeds threshold time, and the first application program is an important program, reminding a user of the power consumption of the first application program;
receiving a log of the power saving strategy execution recorded by the mobile terminal;
and optimizing the power saving strategy according to the log executed by the power saving strategy, wherein the optimization mode of the power saving strategy comprises at least one of modification of a threshold value of the abnormal power consumption standard, the number of objects of the abnormal power consumption standard and an execution result.
7. The power saving method according to claim 6, wherein the power consumption data includes: the time to use the wake-up lock, the time and number of times to use the positioning system, and the time slice to occupy the central processor.
8. The power saving method of claim 7, wherein the abnormal power consumption criteria comprises a time to use a wake-up lock reaching a first threshold time, or a time to use a positioning system exceeding a second threshold time, or a number of times to use a positioning system exceeding a third threshold number of times, or a time slice occupying the central processor reaching a fifth threshold time.
9. The power saving method of claim 6 or 8, wherein the power saving policy comprises:
when the mobile terminal is in a non-call and screen-off state, if a first application program meets the abnormal power consumption standard, the screen-off time of the mobile terminal exceeds the threshold time, and the first application program is not an important program, the first application program stops running.
10. The power saving method of claim 6, wherein the power saving policy further comprises: when the mobile terminal is in a state of no call and screen off, if the first application program meets the abnormal power consumption standard and the screen off time of the mobile terminal does not exceed the threshold time, recording an execution log of the first application program.
11. A power saving method is applied between a mobile terminal and a server, the server supports communication with a plurality of mobile terminals, and the power saving method is characterized by comprising the following steps:
the method comprises the steps that power consumption data of each application program in the mobile terminal are periodically obtained, and when the obtaining times of the power consumption data exceed a time threshold value, the power consumption data are sent to a server;
a power saving strategy which is output after an abnormal power consumption standard is formulated according to the power consumption data and is sent to the mobile terminal, wherein the power saving strategy comprises the abnormal power consumption standard and an execution result when a judgment condition is met, the judgment condition comprises the abnormal power consumption standard, and the power saving strategy comprises strategies under a screen-off state and a non-screen-off state;
wherein the power saving policy comprises:
when the mobile terminal is in a non-call and screen-off state, if a first application program meets the abnormal power consumption standard, the screen-off time of the mobile terminal exceeds threshold time, and the first application program is an important program, reminding a user of the power consumption of the first application program;
receiving the power saving strategy, and periodically operating the power saving strategy after analyzing, wherein the power saving strategy is operated after being analyzed into executable codes;
recording a log executed by the power saving strategy, and sending the log executed by the power saving strategy to a server;
and optimizing the power saving strategy according to the log executed by the power saving strategy, wherein the optimization mode of the power saving strategy comprises at least one of modification of a threshold value of the abnormal power consumption standard, the number of objects of the abnormal power consumption standard and an execution result.
12. A server is characterized in that the server supports communication with a plurality of mobile terminals, and is used for formulating abnormal power consumption standards according to power consumption data after receiving the power consumption data of each application program sent by the mobile terminals, and sending power saving strategies to the mobile terminals so that the mobile terminals analyze and periodically run the power saving strategies, the power consumption data are periodically obtained by the mobile terminals, the power saving strategies are analyzed into executable codes and then run, the power saving strategies comprise the abnormal power consumption standards and execution results when judgment conditions are met, the judgment conditions comprise the abnormal power consumption standards, and the power saving strategies comprise strategies in screen-off and non-screen-off states;
the power consumption data is data with the acquisition times exceeding a time threshold;
the power saving strategy comprises:
when the mobile terminal is in a state of no call and screen off, if a first application program meets the abnormal power consumption standard, the screen off time of the mobile terminal exceeds threshold time, and the first application program is an important program, reminding a user of the power consumption of the first application program;
the server is further configured to receive a log of the mobile terminal recording the execution of the power saving policy, and optimize the power saving policy according to the log of the power saving policy, where an optimization manner of the power saving policy includes modifying at least one of a threshold of the abnormal power consumption standard, a number of objects of the abnormal power consumption standard, and an execution result.
13. A power saving system, comprising a mobile terminal and a server, the server supporting communication with a plurality of mobile terminals;
the mobile terminal is used for periodically acquiring power consumption data of each application program and sending the power consumption data to the server when the acquisition times of the power consumption data exceed a time threshold;
the server is used for formulating a power saving strategy output after an abnormal power consumption standard according to the power consumption data to the mobile terminal so as to enable the mobile terminal to analyze and periodically operate the power saving strategy, wherein the power saving strategy is analyzed into an executable code and then operates, the power saving strategy comprises the abnormal power consumption standard and an execution result when a judgment condition is met, the judgment condition comprises the abnormal power consumption standard, and the power saving strategy comprises strategies in a screen-off state and a non-screen-off state;
wherein the power saving policy comprises:
when the mobile terminal is in a state of no call and screen off, if a first application program meets the abnormal power consumption standard, the screen off time of the mobile terminal exceeds threshold time, and the first application program is an important program, reminding a user of the power consumption of the first application program;
the mobile terminal is also used for recording the log executed by the power saving strategy and sending the log executed by the power saving strategy to a server;
the server is further configured to optimize the power saving policy according to a log executed by the power saving policy, where an optimization manner of the power saving policy includes modifying at least one of a threshold of the abnormal power consumption standard, a number of objects of the abnormal power consumption standard, and an execution result.
14. A storage medium storing executable instructions for causing a processor to implement the power saving method of any one of claims 1 to 11 when executed.
CN201510802267.7A 2015-11-18 2015-11-18 Power saving method, server and power saving system Active CN106708240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510802267.7A CN106708240B (en) 2015-11-18 2015-11-18 Power saving method, server and power saving system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510802267.7A CN106708240B (en) 2015-11-18 2015-11-18 Power saving method, server and power saving system

Publications (2)

Publication Number Publication Date
CN106708240A CN106708240A (en) 2017-05-24
CN106708240B true CN106708240B (en) 2023-02-10

Family

ID=58932874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510802267.7A Active CN106708240B (en) 2015-11-18 2015-11-18 Power saving method, server and power saving system

Country Status (1)

Country Link
CN (1) CN106708240B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107589822A (en) * 2017-08-23 2018-01-16 深圳市沃特沃德股份有限公司 Electricity-saving control method, device and mobile terminal
CN107844189A (en) * 2017-10-30 2018-03-27 东莞市金铭电子有限公司 A kind of method, system, terminal and computer-readable recording medium for reducing blank screen power consumption
CN108541013B (en) * 2018-03-29 2022-06-10 Oppo广东移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium
CN111385859A (en) * 2020-02-28 2020-07-07 北京九州云动科技有限公司 Terminal power consumption detection optimization method and device
CN112184072B (en) * 2020-10-28 2023-07-25 中国联合网络通信集团有限公司 Machine room equipment management method and device
CN113778214A (en) * 2021-09-15 2021-12-10 广州点金石信息技术有限公司 Power saving optimization method and device, mobile terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103037108A (en) * 2012-12-10 2013-04-10 乐蛙科技(上海)有限公司 Power saving method for smart mobile terminal
CN104166615A (en) * 2014-08-08 2014-11-26 可牛网络技术(北京)有限公司 Method, device, server and mobile terminal for determining power consumption condition of third party application program
CN104298335A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Application program process cleaning method and device of mobile terminal and mobile terminal
CN104375624A (en) * 2014-12-11 2015-02-25 北京奇虎科技有限公司 Mobile terminal and power saving suggestion method for same

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103198256B (en) * 2012-01-10 2016-05-25 凹凸电子(武汉)有限公司 For detection of detection system and the method for Application Status

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103037108A (en) * 2012-12-10 2013-04-10 乐蛙科技(上海)有限公司 Power saving method for smart mobile terminal
CN104298335A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Application program process cleaning method and device of mobile terminal and mobile terminal
CN104166615A (en) * 2014-08-08 2014-11-26 可牛网络技术(北京)有限公司 Method, device, server and mobile terminal for determining power consumption condition of third party application program
CN104375624A (en) * 2014-12-11 2015-02-25 北京奇虎科技有限公司 Mobile terminal and power saving suggestion method for same

Also Published As

Publication number Publication date
CN106708240A (en) 2017-05-24

Similar Documents

Publication Publication Date Title
CN106708240B (en) Power saving method, server and power saving system
US10659587B2 (en) Incoming call management method and apparatus
RU2564247C2 (en) System, method and device for providing adaptive user notifications
EP2882234B1 (en) Method, apparatus, equipment and system for controlling turn-on and turn-off of wireless network
CN109274405B (en) Data transmission method and device, electronic equipment and computer readable medium
WO2019076171A1 (en) Method, terminal, and network device for information transmission in unlicensed band
CN105657479B (en) Video processing method and device
CN109120683B (en) Data transmission method and related product
JP7254936B2 (en) Information reception method, transmission method, terminal and network side equipment
CN112997470B (en) Audio output control method and device, computer readable storage medium and electronic equipment
CN105468513B (en) Test method, device and system based on mobile terminal
CN107871015B (en) Log data processing method and device, terminal and readable storage medium
CN106155468B (en) Alarm display method and terminal
US8984078B2 (en) Systems and methods for device-to-cloud message delivery
CN106713171B (en) Server, and current-limiting protection system and method based on delay queues
CN105704106B (en) A kind of visualization IVR implementation method and mobile terminal
CN112997471B (en) Audio channel switching method and device, readable storage medium and electronic equipment
CN112805988B (en) Call control method and device, computer readable storage medium and electronic equipment
US8417222B1 (en) Systems and methods for delivering messages based on a device radio status
CN109511139B (en) WIFI control method and device, mobile device and computer-readable storage medium
CN110754097B (en) Call control method, device, terminal equipment and storage medium
CN113039524A (en) Audio resource processing method and device, computer readable storage medium and electronic equipment
CN111159462A (en) Method and terminal for playing songs
CN107967155B (en) Method, device, server and medium for realizing program operation based on Hook shared library
WO2019033985A1 (en) Call control method, device, terminal device, and storage medium

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
GR01 Patent grant
GR01 Patent grant