Method for reducing energy consumption, mobile terminal and computer-readable storage medium

By detecting changes in the networking frequency and geographical location of background applications and stopping unnecessary applications from running, it solves the problem of poor smartphone battery life and achieves longer battery life and lower power consumption.

CN112911692BActive Publication Date: 2024-09-20NUBIA TECHNOLOGY CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202110333541.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-29
Publication Date
2024-09-20
Estimated Expiration
2041-03-29

AI Technical Summary

Technical Problem

Smartphones have poor battery life, causing users to need to charge frequently, causing inconvenience and trouble to users.

Method used

When an application running in the background requests to connect to the Internet, it detects the number of times it has connected to the Internet and changes in geographical location within a preset period of time. If there is no change, it stops running the application to avoid frequently waking up the processor to save power consumption.

Benefits of technology

By reducing unnecessary networking and processor wake-ups, the power consumption of mobile terminals is significantly reduced, battery life is extended, and charging frequency is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112911692B
    Figure CN112911692B
Patent Text Reader

Abstract

The present invention discloses a method for reducing energy consumption, a mobile terminal and a computer-readable storage medium, wherein the method for reducing energy consumption comprises: when an application running in the background requests to connect to the Internet, detecting whether the number of times the application connects to the Internet within a first preset time period is greater than a preset number; if the number of times the application connects to the Internet within the first preset time period is greater than a preset number, detecting whether the geographical location of the terminal has changed; if the geographical location of the terminal has not changed, stopping the application. Through the present invention, when an application running in the background requests to connect to the Internet, it is determined whether to allow the application to connect to the Internet based on two factors, namely, its connection frequency and whether the location of the mobile terminal has changed, thereby avoiding frequent awakening of the application processor and saving power consumption of the mobile terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of terminal control technology, and in particular to a method for reducing energy consumption, a mobile terminal and a computer-readable storage medium. Background Art

[0002] In recent years, smart phones have become more and more popular, and they can realize more and more functions. They have become an increasingly indispensable part of people's lives. In people's daily lives, they not only use smart phones to make calls and send messages to realize the basic functions of mobile terminals, but also use smart phones to surf the Internet, shop, listen to music, play games and use various mobile terminal applications.

[0003] However, due to the lack of battery optimization technology, the battery life of smartphones is generally poor. Generally, smartphones need to be charged again after 12 hours of use. Therefore, the power consumption problem of smartphones has brought great inconvenience and trouble to users. Summary of the invention

[0004] The main purpose of the present invention is to provide a method for reducing energy consumption, a mobile terminal and a computer-readable storage medium, aiming to solve the technical problem in the prior art that the power consumption problem of smart phones brings great inconvenience and trouble to users.

[0005] To achieve the above object, the present invention provides a method for reducing energy consumption, the method for reducing energy consumption comprising:

[0006] When an application running in the background requests to connect to the Internet, detecting whether the number of times the application connects to the Internet within a first preset time period is greater than a preset number;

[0007] If the number of times the application connects to the Internet within the first preset time period is greater than a preset number, detecting whether the geographical location of the terminal has changed;

[0008] If the geographical location of the terminal has not changed, the application is stopped.

[0009] Optionally, when the application program running in the background requests to connect to the Internet, the step of detecting whether the number of times the application program connects to the Internet within a first preset time period is greater than a preset number includes:

[0010] When an application running in the background requests to connect to the Internet, detecting whether the application is recorded in the application whitelist;

[0011] If the application is not recorded in the application whitelist, it is detected whether the number of times the application is connected to the Internet within a first preset time period is greater than a preset number.

[0012] Optionally, the step of detecting whether the geographical location of the terminal has changed includes:

[0013] Comparing the location area codes of the terminal obtained twice consecutively;

[0014] If the location area codes of the terminal obtained twice are consistent, it is determined that the geographical location of the terminal has not changed;

[0015] If the location area codes of the terminal obtained twice consecutively are inconsistent, it is determined that the geographical location of the terminal has changed.

[0016] Optionally, the method for reducing energy consumption further includes:

[0017] The location area code of the terminal is obtained once every second preset time period.

[0018] Optionally, if the geographical location of the terminal has not changed, the step of stopping running the application includes:

[0019] If the geographical location of the terminal has not changed, then detecting whether the terminal is in a screen-off state;

[0020] If the terminal is in a screen-off state, the application program is stopped.

[0021] Optionally, if the terminal is in a screen-off state, the step of stopping running the application includes:

[0022] If the terminal is in the screen-off state, check whether the application processor is in the sleep state;

[0023] If the application processor is in a sleep state, the application program is stopped from running.

[0024] Optionally, after the step of detecting whether the terminal is in a screen-off state if the geographical location of the terminal has not changed, the method further includes:

[0025] If the terminal is in a screen-on state, then detect whether the preset application is in a running state;

[0026] If the preset application is in running state, the application is stopped.

[0027] Optionally, the step of stopping the application includes:

[0028] Output power consumption reminder;

[0029] When an application closing instruction is received, the application program is stopped.

[0030] In addition, to achieve the above-mentioned purpose, the present invention also provides a mobile terminal, which includes: a memory, a processor, and a program for reducing energy consumption stored in the memory and executable on the processor, wherein the program for reducing energy consumption, when executed by the processor, implements the steps of the method for reducing energy consumption as described above.

[0031] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium, on which a program for reducing energy consumption is stored, and when the program for reducing energy consumption is executed by a processor, the steps of the method for reducing energy consumption as described above are implemented.

[0032] In the present invention, when an application running in the background requests to connect to the Internet, it is detected whether the number of connections made by the application within a first preset time period is greater than the preset number; if the number of connections made by the application within the first preset time period is greater than the preset number, it is detected whether the geographical location of the terminal has changed; if the geographical location of the terminal has not changed, the application is stopped. Through the present invention, when an application running in the background requests to connect to the Internet, it is determined whether to allow the application to connect to the Internet based on two factors: its connection frequency and whether the location of the mobile terminal has changed, thereby avoiding the application processor from being frequently awakened, thereby saving the power consumption of the mobile terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present invention;

[0034] Figure 2 A communication network system architecture diagram provided for an embodiment of the present invention;

[0035] Figure 3 A schematic flow chart of a first embodiment of a method for reducing energy consumption according to the present invention;

[0036] Figure 4 for Figure 3 A detailed flow chart of step S10;

[0037] Figure 5 for Figure 3 Detailed flow chart of step S20;

[0038] Figure 6 for Figure 3 A first detailed flow chart of step S30;

[0039] Figure 7 for Figure 6 Detailed flow chart of step S302;

[0040] Figure 8 for Figure 3 A second detailed flow chart of step S30 in FIG.

[0041] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0042] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0043] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.

[0044] In the embodiment of the present invention, the method for reducing energy consumption is applied to a mobile terminal, which can be implemented in various forms. For example, the mobile terminal involved in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a personal digital assistant (PDA), etc.

[0045] The following description will be made by taking a tablet computer as an example. It will be understood by those skilled in the art that, in addition to components specifically used for mobile purposes, the configuration according to the embodiments of the present invention can also be applied to other types of mobile terminals.

[0046] See also Figure 1 , Figure 1 To implement the hardware structure diagram of the mobile terminal of each embodiment of the present invention, the terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, A / V (audio / video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art can understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0047] Combine the following Figure 1 The following is a detailed introduction to the various components of the mobile terminal:

[0048] The radio frequency unit 101 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving the downlink information of the base station, it is sent to the processor 110 for processing; in addition, the uplink data is sent to the base station. Generally, the radio frequency unit 101 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 101 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution), etc.

[0049] WiFi is a short-range wireless transmission technology. Mobile terminals can help users send and receive emails, browse web pages, and access streaming media through WiFi module 102. It provides users with wireless broadband Internet access. Figure 1 The WiFi module 102 is shown, but it is understandable that it is not an essential component of the mobile terminal and can be omitted as needed without changing the essence of the invention.

[0050] The audio output unit 103 can convert the audio data received by the RF unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, etc. Moreover, the audio output unit 103 can also provide audio output related to a specific function performed by the terminal 100 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.

[0051] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processor (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 can be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a telephone call mode, a recording mode, a voice recognition mode, and other operating modes, and can process such sound into audio data. The processed audio (voice) data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 can implement various types of noise elimination (or suppression) algorithms to eliminate (or suppress) noise or interference generated in the process of receiving and sending audio signals.

[0052] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the terminal, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0053] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0054] The user input unit 107 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1071 or near the touch panel 1071 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 110, and can receive and execute the command sent by the processor 110. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, the other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, etc., which are not specifically limited here.

[0055] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of the touch event. Then, the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Figure 1 In the figure, the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to implement the input and output functions of the mobile terminal, which is not limited here.

[0056] The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.

[0057] The memory 109 can be used to store software programs and various data. The memory 109 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 109 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0058] The processor 110 is the control center of the mobile terminal. It uses various interfaces and lines to connect various parts of the entire mobile terminal. By running or executing software programs and / or modules stored in the memory 109, and calling data stored in the memory 109, it executes various functions of the mobile terminal and processes data, thereby monitoring the main screen page display terminal as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 110.

[0059] The mobile terminal 100 may also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.

[0060] although Figure 1 Not shown, the mobile terminal 100 may further include a Bluetooth module, etc., which will not be described in detail here.

[0061] like Figure 1 As shown, the memory 109 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a program for reducing energy consumption. The processor 110 may be used to call the program for reducing energy consumption stored in the memory 109 and perform the following steps:

[0062] When an application running in the background requests to connect to the Internet, detecting whether the number of times the application connects to the Internet within a first preset time period is greater than a preset number;

[0063] If the number of times the application connects to the Internet within the first preset time period is greater than a preset number, detecting whether the geographical location of the terminal has changed;

[0064] If the geographical location of the terminal has not changed, the application is stopped.

[0065] Further, the processor 110 may be used to call the energy consumption reduction program stored in the memory 109, and further perform the following steps:

[0066] When an application running in the background requests to connect to the Internet, detecting whether the application is recorded in the application whitelist;

[0067] If the application is not recorded in the application whitelist, it is detected whether the number of times the application is connected to the Internet within a first preset time period is greater than a preset number.

[0068] Further, the processor 110 may be used to call the energy consumption reduction program stored in the memory 109, and further perform the following steps:

[0069] Comparing the location area codes of the terminal obtained twice consecutively;

[0070] If the location area codes of the terminal obtained twice are consistent, it is determined that the geographical location of the terminal has not changed;

[0071] If the location area codes of the terminal obtained twice consecutively are inconsistent, it is determined that the geographical location of the terminal has changed.

[0072] Further, the processor 110 may be used to call the energy consumption reduction program stored in the memory 109, and further perform the following steps:

[0073] The location area code of the terminal is obtained once every second preset time period.

[0074] Further, the processor 110 may be used to call the energy consumption reduction program stored in the memory 109, and further perform the following steps:

[0075] If the geographical location of the terminal has not changed, then detecting whether the terminal is in a screen-off state;

[0076] If the terminal is in a screen-off state, the application program is stopped.

[0077] Further, the processor 110 may be used to call the energy consumption reduction program stored in the memory 109, and further perform the following steps:

[0078] If the terminal is in the screen-off state, check whether the application processor is in the sleep state;

[0079] If the application processor is in a sleep state, the application program is stopped from running.

[0080] Further, the processor 110 may be used to call the energy consumption reduction program stored in the memory 109, and further perform the following steps:

[0081] If the terminal is in a screen-on state, then detect whether the preset application is in a running state;

[0082] If the preset application is in running state, the application is stopped.

[0083] To facilitate understanding of the embodiments of the present invention, the communication network system on which the mobile terminal of the present invention is based is described below.

[0084] See also Figure 2 , Figure 2 A communication network system architecture diagram is provided for an embodiment of the present invention. The communication network system is an LTE system of universal mobile communication technology. The LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203 and an operator's IP service 204, which are sequentially connected for communication.

[0085] Specifically, UE201 may be the above-mentioned terminal 100, which will not be described in detail here.

[0086] E-UTRAN 202 includes eNodeB 2021 and other eNodeBs 2022 , etc. Among them, eNodeB 2021 can be connected to other eNodeBs 2022 through a backhaul (eg, an X2 interface), and eNodeB 2021 is connected to EPC 203 , and eNodeB 2021 can provide UE 201 with access to EPC 203 .

[0087] EPC203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, PGW (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function) 2036, etc. Among them, MME2031 is a control node that processes signaling between UE201 and EPC203, and provides bearer and connection management. HSS2032 is used to provide some registers to manage functions such as home location register (not shown in the figure), and save some user-specific information such as service features and data rates. All user data can be sent through SGW2034, PGW2035 can provide IP address allocation and other functions for UE 201, PCRF2036 is the policy and charging control policy decision point for service data flow and IP bearer resources, which selects and provides available policy and charging control decisions for the policy and charging execution function unit (not shown in the figure).

[0088] The IP service 204 may include the Internet, an intranet, an IMS (IP Multimedia Subsystem) or other IP services.

[0089] Although the above introduction takes the LTE system as an example, those skilled in the art should know that the present invention is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA and future new network systems, etc., which are not limited here.

[0090] Based on the above mobile terminal hardware structure and communication network system, various embodiments of the method of the present invention are proposed.

[0091] In one embodiment, referring to Figure 3 , Figure 3 This is a flow chart of the first embodiment of the method for reducing energy consumption of the present invention. Figure 3 As shown, ways to reduce energy consumption include:

[0092] Step S10, when the application program running in the background requests to connect to the Internet, detecting whether the number of times the application program connects to the Internet within a first preset time period is greater than a preset number;

[0093] In this embodiment, when a network connection request is received from an application running in the background, the number of network connections of the application within the first preset time is obtained, and then the number of network connections of the application within the first preset time is compared with the preset number. The first preset time and the preset number are set according to actual needs, for example, the first preset time is set to 10 minutes, and the preset number is set to 3 times; or the first preset time is set to 20 minutes, and the preset number is set to 5 times. It should be noted that this is only an exemplary description of the first preset time and the preset number.

[0094] For a mobile terminal, when an application running in the background successfully connects to the Internet, the time of each connection is recorded. For example, it is recorded that application A running in the background successfully connects to the Internet at two times, t1 and t2. When application A running in the background requests to connect to the Internet at time t3, it is detected that the number of connections within the first preset time period before time t3 is not greater than the preset number, then application A running in the background is allowed to connect to the Internet, and the successful connection of application A running in the background at time t3 is recorded. When application A running in the background requests to connect to the Internet at time t4, it is detected that the number of connections within the first preset time period before time t4 is greater than the preset number, then step S20 is entered for subsequent judgment.

[0095] Further, in one embodiment, referring to Figure 4 , Figure 4 for Figure 3 Detailed flow chart of step S10 in FIG. Figure 4 As shown, step S10 includes:

[0096] Step S101, when an application running in the background requests to connect to the Internet, detecting whether the application is recorded in an application whitelist;

[0097] In this embodiment, when an application running in the background requests to connect to the Internet, it is detected whether the application is recorded in the application whitelist. The application specified by the user can be added to the application whitelist based on a manual operation of the user. For example, the user first selects the application, and then the application selected by the user is added to the application whitelist; or the user selects the application type, and then the application belonging to the application type selected by the user is added to the application whitelist.

[0098] For example, applications A, B, C, D, and E are added to the application whitelist. If application A is running in the background and requests to connect to the Internet, it can be detected that application A is recorded in the application whitelist.

[0099] Step S102: If the application is not recorded in the application whitelist, it is detected whether the number of network connections of the application within a first preset time period is greater than a preset number.

[0100] In this embodiment, if the background application currently requesting networking is not recorded in the application whitelist, it is necessary to detect whether the number of network connections of the application within the first preset time period is greater than the preset number. On the contrary, if the background application currently requesting networking is recorded in the application whitelist, it is directly allowed to connect to the network.

[0101] Step S20, if the number of network connections of the application within the first preset time period is greater than a preset number, detecting whether the geographical location of the terminal has changed;

[0102] In this embodiment, when the number of network connections of the application within the first preset time period is greater than the preset number, it is further detected whether the geographical location of the mobile terminal has changed. Specifically, whether the geographical location of the mobile terminal has changed can be determined by whether the GPS location information of the mobile terminal has changed or whether the network location has changed. For example, the GPS location information of the mobile terminal is obtained once every second preset time period. When it is necessary to detect whether the geographical location of the terminal has changed, the GPS location information of the mobile terminal obtained twice in the most recent adjacent period is compared. If the GPS location information of the mobile terminal obtained twice in the most recent adjacent period is consistent, it is considered that the geographical location of the mobile terminal has not changed; if the GPS location information of the mobile terminal obtained twice in the most recent adjacent period is inconsistent, it is considered that the geographical location of the mobile terminal has changed. Or, the network location information of the mobile terminal is obtained once every second preset time period. When it is necessary to detect whether the geographical location of the terminal has changed, the network location information of the mobile terminal obtained twice in the most recent adjacent period is compared. If the network location information of the mobile terminal obtained twice in the most recent adjacent period is consistent, it is considered that the geographical location of the mobile terminal has not changed; if the network location information of the mobile terminal obtained twice in the most recent adjacent period is inconsistent, it is considered that the geographical location of the mobile terminal has changed. Among them, the second preset time period is set according to actual needs and is not limited here.

[0103] Further, in one embodiment, referring to Figure 5 , Figure 5 for Figure 3 Detailed flow chart of step S20 in FIG. Figure 5 As shown, step S20 includes:

[0104] Step S201, comparing the location area codes of the terminal obtained twice consecutively;

[0105] In this embodiment, if the number of network connections of the application within the first preset time period is greater than the preset number, the location area codes of the terminals acquired twice closest to the current moment are acquired, and the location area codes of the terminals acquired twice are compared.

[0106] Step S202: If the location area codes of the terminal obtained twice are consistent, it is determined that the geographical location of the terminal has not changed;

[0107] In this embodiment, if the location area codes of the terminal acquired twice consecutively are consistent, it is determined that the geographical location of the terminal has not changed.

[0108] Step S203: If the location area codes of the terminal obtained twice are inconsistent, it is determined that the geographical location of the terminal has changed.

[0109] In this embodiment, if the location area codes of the terminal obtained twice consecutively are inconsistent, it is determined that the geographical location of the terminal has changed.

[0110] It is easy to understand that in addition to determining whether the geographical location of the mobile terminal has changed based on the location area code of the terminal obtained twice adjacently, it is also possible to determine whether the geographical location of the mobile terminal has changed based on other information. For example, compare whether the TAC parameters obtained twice adjacently are consistent. If they are consistent, it is determined that the geographical location of the terminal has not changed. If they are inconsistent, it is determined that the geographical location of the terminal has changed. Among them, the full name of TAC is Tracking Area Code. This parameter is the identifier of the tracking area within the PLMN, which is used for UE location management and is unique within the PLMN. Of course, it is also possible to determine whether the geographical location of the mobile terminal has changed based on other information, such as TAI (Tracking Area Identity, which is a TA identifier composed of MCC, MNC and TAC). Or it is determined whether LAU (Location Area Update) information or TAU (Tracking Area Update) information is received within a preset time period. If it is received, it is determined that the geographical location of the terminal has changed. If not, it is determined that the geographical location of the terminal has not changed.

[0111] Furthermore, in one embodiment, the method for reducing energy consumption further includes:

[0112] The location area code of the terminal is obtained once every second preset time period.

[0113] In this embodiment, the location area code of the terminal is obtained once every second preset time period, wherein the second preset time period is set according to actual needs and is not limited here. And only the location area code of the terminal obtained for the two most recent times is saved, and there is no need to save the location area code of the terminal obtained each time, thereby saving storage space. For example, the location area code of the terminal is obtained once at time t1 and stored; the location area code of the terminal is obtained once at time t2 and stored; the location area code of the terminal is obtained once at time t3, the stored location area code of the terminal obtained at time t1 is cleared, and the location area code obtained at time t3 is stored; the location area code of the terminal is obtained once at time t4, the stored location area code of the terminal obtained at time t2 is cleared, and the location area code obtained at time t4 is stored; and so on.

[0114] Step S30: If the geographical location of the terminal has not changed, then stop running the application.

[0115] In this embodiment, after the above judgment, if it is determined that the number of network connections of the application running in the background within the first preset time period is greater than the preset number and the geographical location of the terminal has not changed, the application is stopped to prevent it from performing network operations. Because the network operation requires waking up the application processor, and the power consumption of the mobile terminal will increase after the application processor is awakened, the solution of this embodiment can reduce the number of times the application processor is awakened, thereby saving the power consumption of the mobile terminal.

[0116] In this embodiment, when an application running in the background requests to connect to the Internet, it is detected whether the number of connections made by the application within the first preset time period is greater than the preset number; if the number of connections made by the application within the first preset time period is greater than the preset number, it is detected whether the geographical location of the terminal has changed; if the geographical location of the terminal has not changed, the application is stopped. Through this embodiment, when an application running in the background requests to connect to the Internet, it is determined whether to allow the application to connect to the Internet based on two factors: its connection frequency and whether the location of the mobile terminal has changed, thereby avoiding the frequent awakening of the application processor and saving the power consumption of the mobile terminal.

[0117] Further, in one embodiment, referring to Figure 6 , Figure 6 for Figure 3 The first detailed flow chart of step S30 in FIG. Figure 6 As shown, step S30 includes:

[0118] Step S301, if the geographical location of the terminal has not changed, detecting whether the terminal is in a screen-off state;

[0119] In this embodiment, when it is detected that the geographical location of the mobile terminal has not changed, it is further detected whether the terminal is in a screen-off state.

[0120] Step S302: If the terminal is in a screen-off state, stop running the application.

[0121] In this embodiment, when the terminal is in the screen-off state, the application is stopped. It is easy to understand that when the geographical location of the mobile terminal has not changed and the mobile terminal is in the screen-off state, it means that the user is not currently using the mobile terminal, and an application is running in the background on the mobile terminal and frequently connected to the Internet, which will frequently wake up the application processor, thereby increasing the power consumption of the mobile terminal, and the connection is made when the user is not using the mobile terminal, that is, the connection is made without the user's knowledge. In this case, it is necessary to stop running the application to avoid unnecessary consumption of the power of the mobile terminal.

[0122] Further, in one embodiment, referring to Figure 7 , Figure 7 for Figure 6 Detailed flow chart of step S302 in FIG. Figure 7 As shown, step S302 includes:

[0123] Step S3021, if the terminal is in a screen-off state, detecting whether the application processor is in a sleep state;

[0124] In this embodiment, when the mobile terminal is in the screen-off state, it is further detected whether the application processor is in the dormant state. Because the application networking will wake up the application processor, and the power consumption is caused by the application processor being awakened. If the application processor itself is in the awakened state, even if the background application is allowed to connect to the Internet, it will not further increase the power consumption of the mobile terminal. Therefore, it is necessary to further detect whether the application processor is in the dormant state.

[0125] Step S3022: If the application processor is in a sleep state, stop running the application program.

[0126] In this embodiment, if the application processor is in a dormant state, the application is stopped to avoid waking up the application processor, thereby avoiding unnecessary consumption of power in the mobile terminal. On the contrary, if the application processor is already in an awake state, the network request of the application running in the background can be allowed.

[0127] Further, in one embodiment, referring to Figure 8 , Figure 8 for Figure 3 The second detailed flow chart of step S30 in FIG. Figure 8 As shown, after step S301, the following further includes:

[0128] Step S303, if the terminal is in a screen-on state, detecting whether a preset application is in a running state;

[0129] In this embodiment, if the terminal is in the screen-on state, it means that the user is using the mobile terminal, for example, watching a video or playing a mobile game. In this case, if the application running in the background is allowed to connect to the Internet, it will occupy the network speed, causing the video playback or game to freeze, thereby affecting the user experience. Therefore, when the terminal is in the screen-on state, it is necessary to detect whether the preset application is in the running state. Among them, the preset application is set according to actual needs, for example, video applications and game applications are preset applications.

[0130] Step S304: If the preset application is in running state, stop running the application.

[0131] In this embodiment, when it is detected that the preset application is in the running state, in order to avoid adverse effects on the normal operation of the preset application, it is necessary to stop the application running in the background.

[0132] Furthermore, in one embodiment, the step of stopping the application includes:

[0133] Output power consumption reminder; when receiving application closing instruction, stop running the application.

[0134] In this embodiment, when it is necessary to stop running the application, a power consumption reminder can be output first, for example, through vibration, sound, light, etc. When the user perceives the power consumption reminder, the application shutdown instruction is triggered. When the mobile terminal receives the application shutdown instruction, the application is stopped.

[0135] In addition, an embodiment of the present invention further provides a computer-readable storage medium.

[0136] In one embodiment, the computer-readable storage medium stores a program for reducing energy consumption, and when the program for reducing energy consumption is executed by a processor, the following steps are implemented:

[0137] When an application running in the background requests to connect to the Internet, detecting whether the number of times the application connects to the Internet within a first preset time period is greater than a preset number;

[0138] If the number of times the application connects to the Internet within the first preset time period is greater than a preset number, detecting whether the geographical location of the terminal has changed;

[0139] If the geographical location of the terminal has not changed, the application is stopped.

[0140] Furthermore, in one embodiment, the computer-readable storage medium stores a program for reducing energy consumption, and when the program for reducing energy consumption is executed by the processor, the following steps are implemented:

[0141] When an application running in the background requests to connect to the Internet, detecting whether the application is recorded in the application whitelist;

[0142] If the application is not recorded in the application whitelist, it is detected whether the number of times the application is connected to the Internet within a first preset time period is greater than a preset number.

[0143] Furthermore, in one embodiment, the computer-readable storage medium stores a program for reducing energy consumption, and when the program for reducing energy consumption is executed by the processor, the following steps are implemented:

[0144] Comparing the location area codes of the terminal obtained twice consecutively;

[0145] If the location area codes of the terminal obtained twice are consistent, it is determined that the geographical location of the terminal has not changed;

[0146] If the location area codes of the terminal obtained twice consecutively are inconsistent, it is determined that the geographical location of the terminal has changed.

[0147] Furthermore, in one embodiment, the computer-readable storage medium stores a program for reducing energy consumption, and when the program for reducing energy consumption is executed by the processor, the following steps are implemented:

[0148] The location area code of the terminal is obtained once every second preset time period.

[0149] Furthermore, in one embodiment, the computer-readable storage medium stores a program for reducing energy consumption, and when the program for reducing energy consumption is executed by the processor, the following steps are implemented:

[0150] If the geographical location of the terminal has not changed, then detecting whether the terminal is in a screen-off state;

[0151] If the terminal is in a screen-off state, the application program is stopped.

[0152] Furthermore, in one embodiment, the computer-readable storage medium stores a program for reducing energy consumption, and when the program for reducing energy consumption is executed by the processor, the following steps are implemented:

[0153] If the terminal is in the screen-off state, check whether the application processor is in the sleep state;

[0154] If the application processor is in a sleep state, the application program is stopped from running.

[0155] Furthermore, in one embodiment, the computer-readable storage medium stores a program for reducing energy consumption, and when the program for reducing energy consumption is executed by the processor, the following steps are implemented:

[0156] If the terminal is in a screen-on state, then detect whether the preset application is in a running state;

[0157] If the preset application is in running state, the application is stopped.

[0158] Furthermore, in one embodiment, the computer-readable storage medium stores a program for reducing energy consumption, and when the program for reducing energy consumption is executed by the processor, the following steps are implemented:

[0159] Output power consumption reminder;

[0160] When an application closing instruction is received, the application program is stopped.

[0161] Among them, the method implemented when the program for reducing energy consumption is executed can refer to the various embodiments of the method for reducing energy consumption of the present invention, and will not be repeated here.

[0162] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0163] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0164] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0165] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for reducing energy consumption, characterized in that: The method for reducing energy consumption comprises: When an application running in the background requests to connect to the Internet, detecting whether the number of times the application connects to the Internet within a first preset time period is greater than a preset number; If the number of times the application connects to the Internet within the first preset time period is greater than a preset number, detecting whether the geographical location of the terminal has changed; If the geographical location of the terminal has not changed, stopping the application; The step of detecting whether the geographical location of the terminal has changed includes: Comparing the location area codes of the terminal obtained twice consecutively; If the location area codes of the terminal obtained twice are consistent, it is determined that the geographical location of the terminal has not changed; If the location area codes of the terminal obtained twice are inconsistent, it is determined that the geographical location of the terminal has changed; The method for reducing energy consumption further comprises: Obtaining a location area code of the terminal every second preset time period; If the geographical location of the terminal does not change, the step of stopping the application includes: If the geographical location of the terminal has not changed, then check whether the terminal is in the screen-off state; If the terminal is in a screen-off state, stop running the application; If the terminal is in a screen-off state, the step of stopping the application includes: If the terminal is in the screen-off state, check whether the application processor is in the sleep state; If the application processor is in a dormant state, stopping the application program; After the step of detecting whether the terminal is in a screen-off state if the geographical location of the terminal has not changed, the method further includes: If the terminal is in the screen-on state, check whether the preset application is in the running state; If the preset application is in a running state, stop running the application; When the application program running in the background requests to connect to the Internet, the step of detecting whether the number of times the application program connects to the Internet within a first preset time period is greater than a preset number includes: When an application running in the background requests to connect to the Internet, detecting whether the application is recorded in the application whitelist; If the application is not recorded in the application whitelist, detecting whether the number of times the application connects to the Internet within a first preset time period is greater than a preset number; The step of stopping the application includes: Output power consumption reminder; When receiving an application closing instruction, stopping the application; in, Only the location area codes of the terminal obtained for the two most recent times are saved, and there is no need to save the location area code of the terminal obtained each time; the location area code of the terminal is obtained once at time t1 and stored; the location area code of the terminal is obtained once at time t2 and stored; the location area code of the terminal is obtained once at time t3, the stored location area code of the terminal obtained at time t1 is cleared, and the location area code obtained at time t3 is stored; the location area code of the terminal is obtained once at time t4, the stored location area code of the terminal obtained at time t2 is cleared, and the location area code obtained at time t4 is stored; and so on.

2. A mobile terminal, characterized in that: The mobile terminal includes: a memory, a processor, and a program for reducing energy consumption stored in the memory and executable on the processor. When the program for reducing energy consumption is executed by the processor, the steps of the method for reducing energy consumption according to claim 1 are implemented.

3. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a program for reducing energy consumption, and when the program for reducing energy consumption is executed by a processor, the steps of the method for reducing energy consumption according to claim 1 are implemented.

Citation Information

Patent Citations

  • Catalytic dehydrohalogenation process

    EP0002021A1

  • Method for automatically stopping mobile terminal application and mobile terminal

    CN103645802A

  • Method and device for finding out background networking and power consumption rogue software

    CN103853981A

  • Device and method for dynamically loading application programs

    CN105373405A

  • Method and system for automatically closing background redundant applications based on mobile terminal

    CN106332247A