CN109413726B - Power consumption control method and mobile terminal - Google Patents

Power consumption control method and mobile terminal Download PDF

Info

Publication number
CN109413726B
CN109413726B CN201811584354.XA CN201811584354A CN109413726B CN 109413726 B CN109413726 B CN 109413726B CN 201811584354 A CN201811584354 A CN 201811584354A CN 109413726 B CN109413726 B CN 109413726B
Authority
CN
China
Prior art keywords
mobile terminal
data packet
application program
module
receiving
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
CN201811584354.XA
Other languages
Chinese (zh)
Other versions
CN109413726A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201811584354.XA priority Critical patent/CN109413726B/en
Publication of CN109413726A publication Critical patent/CN109413726A/en
Application granted granted Critical
Publication of CN109413726B publication Critical patent/CN109413726B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • 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)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a power consumption control method and a mobile terminal, wherein the method comprises the following steps: receiving a data packet through a network module arranged in the mobile terminal; when the mobile terminal is determined to be in a standby state, determining an application program for processing the data packet; and when the application program meets the target condition, closing the application program or freezing the application program. The power consumption control method disclosed by the embodiment of the invention can effectively reduce the standby power consumption of the mobile terminal.

Description

Power consumption control method and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of mobile terminals, in particular to a power consumption control method and a mobile terminal.
Background
With the function of the mobile terminal becoming more and more rich, the types of the application programs installed in the mobile terminal become more and more. Through the application program installed in the mobile terminal, the mobile terminal can not only make and receive calls and send short messages, but also can surf the internet, listen to music, watch videos or play games and the like. Accordingly, applications installed in mobile terminals are increasingly interacting with networks.
When the mobile terminal is in use, the mobile terminal can be awakened by a network when in standby, so that the standby power consumption of the mobile phone is high. And the mobile terminal can only recognize that the network module is the wake-up source and can not locate the true wake-up source. Therefore, in the prior art, the source of network wakeup cannot be accurately located, and therefore standby power consumption of the mobile terminal cannot be effectively reduced.
Disclosure of Invention
The embodiment of the invention provides a power consumption control method, which aims to solve the problem that the standby power consumption of a mobile terminal cannot be effectively reduced in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for controlling power consumption of a mobile terminal, where the method is applied to the mobile terminal, and the method includes: receiving a data packet through a network module arranged in the mobile terminal; when the mobile terminal is determined to be in a standby state, determining an application program for processing the data packet, wherein the mobile terminal is turned off and is dormant in the standby state; and when the application program meets the target condition, closing the application program or freezing the application program.
In a second aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes: a receiving module, configured to receive a data packet through a network module provided in the mobile terminal; the mobile terminal comprises a first determining module, a second determining module and a judging module, wherein the first determining module is used for determining an application program for processing the data packet when the mobile terminal is determined to be in a standby state, and the mobile terminal is turned off and dormant in the standby state; and the closing and freezing module is used for closing the application program or freezing the application program when the application program meets the target condition.
In a third aspect, an embodiment of the present invention provides a mobile terminal, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, where the computer program, when executed by the processor, implements any one of the steps of the power consumption control method described in the embodiment of the present invention.
In a fourth aspect, the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores thereon a computer program, and the computer program, when executed by a processor, implements the steps of any one of the power consumption control methods described in the embodiments of the present invention.
In the embodiment of the invention, a data packet is received through a network module arranged in a mobile terminal; determining an application program for processing the data packet when the mobile terminal is determined to be in a standby state; when the application program meets the target condition, the application program is closed or frozen, the application program which is frequently awakened by the network when the mobile terminal is in the standby state can be determined, and the application program is closed or frozen in a targeted manner, so that the power consumption of the application program in the standby state of the mobile terminal is reduced, and the standby power consumption of the mobile terminal is finally reduced.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings.
In the drawings:
fig. 1 is a flowchart illustrating steps of a power consumption control method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a power consumption control method according to a second embodiment of the present invention;
fig. 3 is a block diagram of a mobile terminal according to a third embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of a mobile terminal according to a fourth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a flowchart illustrating steps of a power consumption control method according to a first embodiment of the present invention is shown.
The power consumption control method of the embodiment of the invention comprises the following steps:
step 101: and receiving the data packet through a network module arranged in the mobile terminal.
The network module may be a WiFi (WIreless-Fidelity) module or a modem. The WiFi module is used for receiving data packets transmitted through a WiFi network, and the modem is used for receiving data packets transmitted through a 3G or 4G mobile operator network. The modem is a processor in the mobile terminal for operating the user interface, system, and application programs.
Step 102: when it is determined that the mobile terminal is in a standby state, an application program for processing the data packet is determined.
The mobile terminal state mainly comprises: the mobile terminal comprises a bright screen running state and a standby state, wherein the mobile terminal is in a screen off and dormant state in the standby state.
Step 103: and when the application program meets the target condition, closing the application program or freezing the application program.
When the mobile terminal is frequently woken up by the network in the standby state, the application program consumes a large amount of power, so that the application program frequently woken up by the network can be closed or frozen in order to reduce the power consumption of the mobile terminal in the standby state.
The system resources occupied by the application program can be completely released by closing the application program, and the application program is not woken up by the network any more in the dormant state of the mobile terminal after the application program is closed, so that the standby power consumption of the mobile terminal can be reduced. Freezing an application means placing the application in a "controllable" suspended state, i.e. the control application cannot be switched to a running state.
The application program is closed or frozen, so that the application program can be reduced or prevented from being awakened by the network, the power consumption consumed by the application program being awakened by the network is reduced, and the standby power consumption of the mobile terminal is finally reduced.
The specific setting of the target condition may be set by a person skilled in the art according to actual requirements, for example, the specific setting may be set to determine that the target condition is satisfied when the number of times of awakening of the application program in unit time exceeds a preset value.
The power consumption control method provided by the embodiment of the invention receives a data packet through a network module arranged in a mobile terminal; determining an application program for processing the data packet when the mobile terminal is determined to be in a standby state; when the application program meets the target condition, the application program is closed or frozen, the application program which is frequently awakened by a network when the mobile terminal is in the standby state can be determined, and the application program is closed or frozen in a targeted manner, so that the power consumption of the application program in the standby state of the mobile terminal is reduced, and the standby power consumption of the mobile terminal is finally reduced.
Example two
Referring to fig. 2, a flowchart illustrating steps of a power consumption control method according to a second embodiment of the present invention is shown.
The power consumption control method of the embodiment of the invention comprises the following steps:
step 201: and receiving the data packet through a network module arranged in the mobile terminal.
In a specific implementation process, a data packet can be received through a WiFi wireless fidelity module arranged in the mobile terminal; alternatively, the data packet is received through a modem provided in the mobile terminal. The network module receiving the data packet is different correspondingly based on the different network connected with the mobile terminal.
Step 202: when it is determined that the mobile terminal is in a standby state, an application program for processing the data packet is determined.
And determining the identity of the application program receiving the data packet in the mobile terminal, wherein the application program corresponding to the identity is the application program for processing the data packet. When the mobile terminal is in a standby state, the application program runs in the background of the mobile terminal.
Step 203: the number of times the application program is woken up per unit time is determined.
And adding one to the corresponding awakened times when the application program receives the data packet once. The unit time can be set by a person skilled in the art according to actual requirements, for example: the unit time may be set to 1 minute, 30s, 15s, or the like, which is not particularly limited in the embodiment of the present invention.
Step 204: and when the awakened times exceed the preset times, determining that the application program meets the target condition.
The preset number of times can be set by those skilled in the art according to actual requirements, for example: the preset number of times may be set to 10 times, 5 times, 15 times, or the like, which is not particularly limited in the embodiment of the present invention. For example: if the number of times of awakening the application program in unit time is 10 and the preset number of times is 9, determining that the number of times of awakening exceeds the preset number of times, and determining that the application program meets the target condition at the moment, wherein the running state of the application program needs to be controlled.
In the embodiment of the present invention, step 203 and step 204 are described by taking an example of determining whether an application program satisfies a target condition by determining the number of times the application program is woken up. In the specific implementation process, without being limited thereto, it may also be determined whether the application program meets the target condition by:
firstly, determining an IP (Internet Protocol, Protocol for interconnection between networks) address for transmitting a data packet;
secondly, when the IP address is the same as the loopback address of the data packet, the application program is determined to meet the target condition.
For example: network restrictions cause the application to transmit using the loopback address, with both the transmit and receive packets being internal to the mobile terminal itself, causing the mobile terminal to wake up all the time. Therefore, when the IP address of the transmission data packet is detected as the loopback address, the application program is determined to satisfy the target condition.
Step 205: and when the application program meets the target condition, closing the application program or freezing the application program.
When running in the background, the application program may occupy system resources of the mobile terminal, such as memory, network resources, and the like. The system resources occupied by the application program can be completely released by closing the application program, and the application program is not woken up by the network any more in the dormant state of the mobile terminal after the application program is closed, so that the standby power consumption of the mobile terminal can be reduced.
After the application program is frozen, the application program can still run in the background of the mobile terminal, but the system can set a stricter wake-up condition for the application program, for example, the system can be set to prohibit the application program from being woken up when a data packet is received, so that the power consumption of the application program which is woken up by a network in a standby state of the mobile terminal is reduced, and finally the standby power consumption of the mobile terminal is reduced.
In controlling the standby power consumption of the mobile terminal, the standby power consumption of the mobile terminal may be reduced by disconnecting the network that transmits the packet, instead of reducing the standby power consumption of the mobile terminal by turning off or freezing the application as described above. After the network connection is disconnected, the server and other devices cannot transmit the data packet to the mobile terminal through the network connection any more, and accordingly the mobile terminal does not need to receive the data packet and perform subsequent processing on the data packet any more, so that the standby power consumption of the mobile terminal can be reduced. Specifically, the manner of determining whether to disconnect the network that transmits the data packet is as follows:
firstly, when the mobile terminal is in a standby state, after an application program for processing the data packet is determined, determining a port number of a receiving end of the data packet;
secondly, under the condition that the port number of the receiving end of the data packet is not in the local port number list, the network connection for transmitting the data packet is disconnected.
In the embodiment of the invention, one network connection corresponds to one local port number and one far-end port number; and detecting whether the local port number is in the used list of the local port number, if not, determining that the local port number is abnormal, and disconnecting the network connection corresponding to the local port number.
The power consumption control method provided by the embodiment of the invention receives a data packet through a network module arranged in a mobile terminal; determining an application program for processing the data packet when the mobile terminal is determined to be in a standby state; when the application program meets the target condition, the application program is closed or frozen, the application program which is frequently awakened by the network when the mobile terminal is in the standby state can be determined, and the running state of the application program is controlled in a targeted manner, so that the power consumption of the application program in the standby state of the mobile terminal is reduced, and the standby power consumption of the mobile terminal is finally reduced.
In addition, the power consumption control method provided by the embodiment of the invention also provides a mode for determining whether the target condition is met by detecting whether the IP address of the data packet is abnormal or not; in addition, a mode of determining whether to disconnect the network connection for transmitting the data packet by detecting whether the port number for receiving the data packet is abnormal is provided, and after the network connection is disconnected, the mobile terminal will not receive the data packet sent by the network connection any more in a standby state, the problem that the data packet is awakened is avoided, and the standby power consumption of the mobile terminal can be further reduced.
EXAMPLE III
Referring to fig. 3, a block diagram of a mobile terminal according to a third embodiment of the present invention is shown.
The mobile terminal of the embodiment of the invention comprises: a receiving module 301, configured to receive a data packet through a network module provided in the mobile terminal; a first determining module 302, configured to determine an application program for processing the data packet when it is determined that the mobile terminal is in a standby state, where the mobile terminal is turned off and dormant in the standby state; a close freeze module 303, configured to close the application or freeze the application when the application meets a target condition.
Preferably, the mobile terminal further includes: a number determination module 304, configured to determine the number of times the application is woken up per unit time before the close freezing module 303 closes the application or freezes the application when the application satisfies a target condition; a second determining module 305, configured to determine that the application program meets a target condition when the number of awakened times exceeds a preset number.
Preferably, the mobile terminal further includes: a third determining module 306, configured to determine an IP address for sending the data packet before the closing and freezing module 303 closes the application or freezes the application when the application meets the target condition; a fourth determining module 307, configured to determine that the application satisfies the target condition if the IP address is the same as the loopback address of the data packet.
Preferably, the mobile terminal further includes:
the fifth determining module is used for determining the port number of a receiving end of the data packet after the first determining module determines the application program for processing the data packet when the mobile terminal is determined to be in the standby state;
and the network connection disconnection module is used for disconnecting the network connection for transmitting the data packet under the condition that the port number of the receiving end of the data packet is not in the local port number list.
Preferably, the receiving module 301 includes: the first receiving submodule 3011 is configured to receive a data packet through a WiFi wireless fidelity module arranged in the mobile terminal; or, the second receiving sub-module 3012 is configured to receive the data packet through a modem provided in the mobile terminal.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
The mobile terminal provided by the embodiment of the invention receives the data packet through the network module arranged in the mobile terminal; when the mobile terminal is determined to be in a standby state, determining an application program for processing the data packet; when the application program meets the target condition, the application program is closed or frozen, the application program which is frequently awakened by the network when the mobile terminal is in the standby state can be determined, and the application program is closed or frozen in a targeted manner, so that the power consumption of the application program in the standby state of the mobile terminal is reduced, and the standby power consumption of the mobile terminal is finally reduced.
Example four
Referring to fig. 4, a block diagram of a mobile terminal according to a fourth embodiment of the present invention is shown.
Fig. 4 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 4 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 410 is configured to receive a data packet through a network module provided in the mobile terminal; when the mobile terminal is determined to be in a standby state, determining an application program for processing the data packet, wherein the mobile terminal is turned off and is dormant in the standby state; and when the application program meets the target condition, closing the application program or freezing the application program.
The mobile terminal provided by the embodiment of the invention receives the data packet through the network module arranged in the mobile terminal; when the mobile terminal is determined to be in a standby state, determining an application program for processing the data packet; when the application program meets the target condition, the application program is closed or frozen, the application program which is frequently awakened by the network when the mobile terminal is in the standby state can be determined, and the application program is closed or frozen in a targeted manner, so that the power consumption of the application program in the standby state of the mobile terminal is reduced, and the standby power consumption of the mobile terminal is finally reduced.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 402, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the mobile terminal 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The mobile terminal 400 also includes at least one sensor 405, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 4061 and/or the backlight when the mobile terminal 400 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 408 is an interface through which an external device is connected to the mobile terminal 400. 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 having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 400 or may be used to transmit data between the mobile terminal 400 and external devices.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 409 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 410 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, thereby integrally monitoring the mobile terminal. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The mobile terminal 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the mobile terminal 400 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 410, a memory 409, and a computer program that is stored in the memory 409 and can be run on the processor 410, and when being executed by the processor 410, the computer program implements each process of the above power consumption control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned power consumption control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (7)

1. A method for controlling power consumption of a mobile terminal, the method comprising:
receiving a data packet through a network module arranged in the mobile terminal;
when the mobile terminal is determined to be in a standby state, determining an application program for processing the data packet, wherein the mobile terminal is turned off and is dormant in the standby state;
when the application program meets a target condition, closing the application program or freezing the application program;
before closing the application or freezing the application when the application satisfies a target condition, the method further comprises:
determining an IP address for sending the data packet;
determining that the application satisfies a target condition if the IP address is the same as a loopback address of the data packet; and sending the data packet and receiving the data packet are both in the local mobile terminal.
2. The method of claim 1, wherein after determining the application program that processes the data packet when the mobile terminal is determined to be in the standby state, the method further comprises:
determining a port number of a receiving end of the data packet;
and under the condition that the port number of the receiving end of the data packet is not in the local port number list, disconnecting the network connection for transmitting the data packet.
3. The method according to claim 1, wherein the receiving the data packet through a network module provided in the mobile terminal comprises:
receiving a data packet through a wireless fidelity (WiFi) module arranged in the mobile terminal; alternatively, the first and second electrodes may be,
and receiving a data packet through a modem arranged in the mobile terminal.
4. A mobile terminal, characterized in that the mobile terminal comprises:
a receiving module, configured to receive a data packet through a network module provided in the mobile terminal;
the mobile terminal comprises a first determining module, a second determining module and a judging module, wherein the first determining module is used for determining an application program for processing the data packet when the mobile terminal is determined to be in a standby state, and the mobile terminal is turned off and dormant in the standby state;
a close freezing module for closing the application program or freezing the application program when the application program meets a target condition;
a third determining module, configured to determine an IP address for sending the data packet when the closing and freezing module closes the application or before freezing the application when the application satisfies a target condition;
and a fourth determining module, configured to determine that the application satisfies a target condition when the IP address is the same as a loopback address of the data packet, where the sending and receiving of the data packet are both inside a mobile terminal itself.
5. The mobile terminal of claim 4, wherein the mobile terminal further comprises:
the fifth determining module is used for determining the port number of a receiving end of the data packet after the first determining module determines the application program for processing the data packet when the mobile terminal is determined to be in the standby state;
and the network connection disconnection module is used for disconnecting the network connection for transmitting the data packet under the condition that the port number of the receiving end of the data packet is not in the local port number list.
6. The mobile terminal of claim 4, wherein the receiving module comprises:
the first receiving submodule is used for receiving a data packet through a WiFi module arranged in the mobile terminal; alternatively, the first and second electrodes may be,
and the second receiving submodule is used for receiving the data packet through a modem arranged in the mobile terminal.
7. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the power consumption control method according to any one of claims 1 to 3.
CN201811584354.XA 2018-12-24 2018-12-24 Power consumption control method and mobile terminal Active CN109413726B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811584354.XA CN109413726B (en) 2018-12-24 2018-12-24 Power consumption control method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811584354.XA CN109413726B (en) 2018-12-24 2018-12-24 Power consumption control method and mobile terminal

Publications (2)

Publication Number Publication Date
CN109413726A CN109413726A (en) 2019-03-01
CN109413726B true CN109413726B (en) 2021-05-07

Family

ID=65460765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811584354.XA Active CN109413726B (en) 2018-12-24 2018-12-24 Power consumption control method and mobile terminal

Country Status (1)

Country Link
CN (1) CN109413726B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110167113A (en) * 2019-04-17 2019-08-23 努比亚技术有限公司 A kind of apparatus control method, wearable device and computer readable storage medium
CN112486594A (en) * 2020-12-01 2021-03-12 北京珞安科技有限责任公司 Intelligent terminal self-starting method, device and system and computer equipment
CN113518344B (en) * 2021-07-21 2022-05-10 荣耀终端有限公司 User equipment and energy saving method and medium thereof
CN115696520B (en) * 2021-07-30 2023-10-20 荣耀终端有限公司 Data communication method and device
CN116450446A (en) * 2022-01-06 2023-07-18 长鑫存储技术有限公司 Memory power consumption determining method and device, storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015070428A1 (en) * 2013-11-15 2015-05-21 华为终端有限公司 Method for waking up terminal system and terminal
WO2015184885A1 (en) * 2014-11-19 2015-12-10 中兴通讯股份有限公司 Method and device for closing background application of mobile terminal, and mobile terminal
CN106102142A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 terminal data processing method and device
CN106256116A (en) * 2015-04-14 2016-12-21 华为技术有限公司 A kind of method controlling application program and terminal
CN107436672A (en) * 2016-05-26 2017-12-05 中兴通讯股份有限公司 The processing method and terminal of a kind of application
CN107885307A (en) * 2016-09-30 2018-04-06 北京小米移动软件有限公司 Apparatus control method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324519A (en) * 2013-06-17 2013-09-25 华为技术有限公司 Method and device for clearing malicious power consumption applications, and user terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015070428A1 (en) * 2013-11-15 2015-05-21 华为终端有限公司 Method for waking up terminal system and terminal
WO2015184885A1 (en) * 2014-11-19 2015-12-10 中兴通讯股份有限公司 Method and device for closing background application of mobile terminal, and mobile terminal
CN106256116A (en) * 2015-04-14 2016-12-21 华为技术有限公司 A kind of method controlling application program and terminal
CN107436672A (en) * 2016-05-26 2017-12-05 中兴通讯股份有限公司 The processing method and terminal of a kind of application
CN106102142A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 terminal data processing method and device
CN107885307A (en) * 2016-09-30 2018-04-06 北京小米移动软件有限公司 Apparatus control method and device

Also Published As

Publication number Publication date
CN109413726A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN109413726B (en) Power consumption control method and mobile terminal
CN108712566B (en) Voice assistant awakening method and mobile terminal
CN111278090B (en) Transmission method of indication signal, terminal and network equipment
CN110753389A (en) Network control method and electronic equipment
CN110399000B (en) Mobile terminal and temperature control method thereof
CN110266323B (en) Signal control circuit, terminal equipment and signal control method
CN113163460A (en) Service processing method, terminal and network equipment
CN111131885A (en) Play control method and electronic equipment
CN109151741B (en) Multimedia message receiving method and terminal
CN109005297B (en) Display method of navigation application and mobile terminal
CN108089935B (en) Application program management method and mobile terminal
CN108200635B (en) Operation control method of application program and mobile terminal
CN111131930B (en) Device resource control method, first electronic device, and computer-readable storage medium
CN109992430B (en) Data transmission method, first terminal and second terminal
CN109743469B (en) VOLTE-based communication method and mobile terminal
CN111309133A (en) Power saving control method and electronic equipment
US20220417296A1 (en) Registration Method and Electronic Device
CN108259807B (en) Communication method, mobile terminal and computer readable storage medium
CN107770811B (en) Data processing method, mobile terminal and computer readable storage medium
CN111459323B (en) Control method, electronic device and medium
CN111343618B (en) Display method and electronic equipment
CN111356096B (en) Information sending method and electronic equipment
CN110365842B (en) Terminal control method and terminal equipment
CN107864294B (en) Do not disturb mode starting method and mobile terminal
CN108287755B (en) Application program control method and mobile terminal

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