CN110505679B - Power consumption control method and device of communication terminal and storage medium - Google Patents

Power consumption control method and device of communication terminal and storage medium Download PDF

Info

Publication number
CN110505679B
CN110505679B CN201910755042.9A CN201910755042A CN110505679B CN 110505679 B CN110505679 B CN 110505679B CN 201910755042 A CN201910755042 A CN 201910755042A CN 110505679 B CN110505679 B CN 110505679B
Authority
CN
China
Prior art keywords
mode
wireless communication
communication module
communication terminal
power consumption
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
CN201910755042.9A
Other languages
Chinese (zh)
Other versions
CN110505679A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910755042.9A priority Critical patent/CN110505679B/en
Publication of CN110505679A publication Critical patent/CN110505679A/en
Application granted granted Critical
Publication of CN110505679B publication Critical patent/CN110505679B/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/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0258Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity controlling an operation mode according to history or models of usage information, e.g. activity schedule or time of day
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0267Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components
    • H04W52/027Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components by controlling a display operation or backlight unit
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a power consumption control method and device of a communication terminal and a storage medium. The method comprises the following steps: acquiring a screen state of a communication terminal and attributes of a background application program associated with a wireless communication module of the communication terminal; the attributes comprise quantity, program level and data transmission rate; when at least one of the screen state of the communication terminal and the attribute of a background application program associated with a wireless communication module of the communication terminal meets a preset condition, controlling the working mode of the wireless communication module to be switched from a first mode to a second mode; wherein the power consumption of the wireless communication module operating in the second mode is less than the power consumption of the wireless communication module operating in the first mode.

Description

Power consumption control method and device of communication terminal and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a power consumption control method and apparatus for a communications terminal, and a storage medium.
Background
At present, with the development of mobile communication technology, communication technology enters the era of mass interconnection, and the application fields of intelligent communication terminals, intelligent homes, intelligent wearing, intelligent automobiles and the like are promoted to be developed vigorously, especially Wireless communication technologies, such as Wireless Fidelity (WiFi) technology, ZigBee and bluetooth technology, have the characteristics of large communication coverage, almost no geographic environment limitation, and convenient installation and expansion, so that Wireless communication transmitting/receiving module units integrated with corresponding functions are widely applied in the fields of intelligent communication terminals, intelligent homes, intelligent wearing, intelligent automobiles and the like, and at present, the Wireless communication technology modules have the problems of single working mode and high power consumption.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for controlling power consumption of a communication terminal, and a storage medium.
The technical scheme of the invention is realized as follows:
the embodiment of the invention provides a power consumption control method of a communication terminal, which is applied to the communication terminal, wherein the communication terminal comprises a screen for displaying, and the method comprises the following steps:
acquiring a screen state of a communication terminal and attributes of a background application program associated with a wireless communication module of the communication terminal, wherein the working modes of the wireless communication module of the communication terminal at least comprise a first mode and a second mode; the attributes include: quantity, program level, data transmission rate;
when at least one of the screen state of the communication terminal and the attribute of a background application program associated with a wireless communication module of the communication terminal meets a preset condition, controlling the working mode of the wireless communication module to be switched from a first mode to a second mode;
wherein the power consumption of the wireless communication module operating in the second mode is less than the power consumption of the wireless communication module operating in the first mode.
In the above scheme, when at least one of a screen state of the communication terminal and an attribute of a background application associated with a wireless communication module of the communication terminal satisfies a preset condition, controlling a working mode of the wireless communication module to switch from a first mode to a second mode includes:
and when the screen state of the terminal is determined to be the screen extinguishing state and the screen extinguishing state lasts for a preset time, controlling the working mode of the wireless communication module to be switched from the first mode to the second mode.
In the above scheme, after determining that the screen state of the terminal is the off-screen state and the off-screen state lasts for the preset duration, before controlling the operating mode of the wireless communication module to switch from the first mode to the second mode, the method further includes:
judging whether the number of background application programs associated with the wireless communication module is greater than a preset threshold value or not;
and when the number of the background application programs associated with the wireless communication module is determined to be larger than a preset threshold value, controlling the working mode of the wireless communication module to be switched from a first mode to a second mode.
In the foregoing solution, after determining that the number of background applications associated with the wireless communication module is greater than a preset threshold, and before controlling the working mode of the wireless communication module to switch from the first mode to the second mode, the method further includes:
judging whether the data transmission rate of a background application program associated with the wireless communication module is less than a preset rate or not;
and when the data transmission rate of the background application program associated with the wireless communication module is determined to be less than the preset rate, controlling the working mode of the wireless communication module to be switched from a first mode to a second mode.
In the above scheme, the method further comprises:
when it is determined that the number is less than or equal to the preset threshold, determining, for each of background applications associated with the wireless communication module, a program level corresponding to the each background application;
and when the program level meets a preset level condition, controlling the working mode of the wireless communication module to be switched from a first mode to a second mode.
In the foregoing solution, after the controlling the operating mode of the wireless communication module is switched from the first mode to the second mode, the method further includes:
judging whether the background application program associated with the wireless communication module is executed completely;
when the background application program associated with the wireless communication module is determined to be executed completely, controlling the working mode of the wireless communication module to be switched from the second mode to a third mode;
the working modes of the wireless communication module of the communication terminal further comprise a third mode, and the power consumption of the wireless communication module working in the third mode is smaller than that of the wireless communication module working in the second mode.
In the above scheme, the method further comprises:
when the program level does not meet a preset level condition, closing a background application program associated with the wireless communication module, and controlling the working mode of the wireless communication module to be switched from the second mode to a third mode;
the working modes of the wireless communication module of the communication terminal further comprise a third mode, and the power consumption of the wireless communication module working in the third mode is smaller than that of the wireless communication module working in the second mode.
The embodiment of the invention provides a power consumption control device of a communication terminal, which is applied to the communication terminal and comprises the following components:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the screen state of a communication terminal and the attribute of a background application program associated with a wireless communication module of the communication terminal, and the working mode of the wireless communication module of the communication terminal at least comprises a first mode and a second mode; the attributes include: quantity, program level, data transmission rate;
the control unit is used for controlling the working mode of the wireless communication module to be switched from a first mode to a second mode when at least one of the screen state of the communication terminal and the attribute of a background application program associated with the wireless communication module of the communication terminal meets a preset condition; wherein the power consumption of the wireless communication module operating in the second mode is less than the power consumption of the wireless communication module operating in the first mode.
The embodiment of the invention provides a power consumption control device of a communication terminal, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize the steps of any one of the methods.
Embodiments of the present invention provide a computer storage medium having stored thereon computer instructions that, when executed by a processor, perform any of the method steps described above.
The power consumption control method, the power consumption control device and the power consumption control storage medium of the communication terminal provided by the embodiment of the invention are used for acquiring the screen state of the communication terminal and the attribute of a background application program associated with a wireless communication module of the communication terminal, wherein the working modes of the wireless communication module of the communication terminal at least comprise a first mode and a second mode; the attributes include: quantity, program level, data transmission rate; when at least one of the screen state of the communication terminal and the attribute of a background application program associated with a wireless communication module of the communication terminal meets a preset condition, controlling the working mode of the wireless communication module to be switched from a first mode to a second mode; wherein the power consumption of the wireless communication module operating in the second mode is less than the power consumption of the wireless communication module operating in the first mode. By adopting the technical scheme provided by the embodiment of the invention, when at least one of the screen state of the communication terminal and the attribute of the background application program associated with the wireless communication module of the communication terminal meets the preset condition, the wireless communication module can be controlled to be switched to the second mode with lower power consumption, so that the power saving performance of the wireless communication module can be improved, and a better power saving effect can be obtained.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation process of configuring an operation mode of a WiFi module in the related art;
fig. 2 is a schematic flow chart illustrating an implementation of a power consumption control method of a communication terminal according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a specific implementation of a power consumption control method of a first communication terminal according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a specific implementation of a power consumption control method of a second communication terminal according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a specific implementation of a power consumption control method of a third communication terminal according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a specific implementation flow of a power consumption control method of a fourth communication terminal according to an embodiment of the present invention;
fig. 7 is a schematic flowchart of a method for controlling power consumption of the communication terminal according to the embodiment of the present invention implemented by a software program;
FIG. 8 is a schematic diagram of the operation modes of the present invention implementing three power consumption levels;
fig. 9 is a first schematic structural diagram illustrating a power consumption control apparatus of a communication terminal according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a configuration structure of a power consumption control apparatus of a communication terminal according to an embodiment of the present invention.
Detailed Description
In the related art, along with the development of mobile communication technology, communication technology enters the era of interconnection of everything, and the application fields of intelligent communication terminals, intelligent homes, intelligent wearing, intelligent automobiles and the like are promoted to be developed vigorously, especially wireless communication technologies, such as WiFi technology, ZigBee and bluetooth technology, have the characteristics of large communication coverage, almost no limitation of geographic environment and convenient installation and expansion, so that wireless communication sending/receiving module units integrated with corresponding functions are widely applied in the fields of intelligent communication terminals, intelligent homes, intelligent wearing, intelligent automobiles and the like, and at present, the wireless communication technology modules have the problems of single working mode and high power consumption.
Taking the WiFi communication module as an example, the working mode of the WiFi communication module is determined by the preset parameters stored in the configuration file, once the preset parameter values stored in the configuration file are determined in the initialization process, the working mode of the WiFi communication module is also determined, and adjustment and optimization cannot be made according to the change of the application scenario of the communication terminal. For example, the WiFi communication module may support 6 working modes, the power consumption of different working modes is different, the working mode of the WiFi communication module is determined by the preset parameter stored in the configuration file, and the 6 working modes specifically include: a complete non-power-saving mode, a low-power-consumption on and deep-sleep off mode, a deep-low-power-consumption on and deep-sleep off mode, a low-power-consumption on and deep-sleep on mode; deep power down on and deep sleep on modes and full power down modes. In the standby process of the communication terminal, once the preset parameter value is determined in the initialization process, the working mode of the WiFi communication module is also uniquely determined (for example, a completely non-power-saving mode), and subsequently, the working mode cannot be adjusted and optimized according to the change of the application scenario of the communication terminal. Fig. 1 is a schematic diagram of an implementation process of configuring a working mode of a WiFi communication module in the related art, as shown in fig. 1, after a communication terminal executes a power-on command, the working mode of the WiFi communication module is determined according to preset parameters configured in a configuration file, so that the WiFi communication module is always in the working mode no matter the communication terminal is on or off. If the working mode of the WiFi communication module is initialized to be set to be a completely non-power-saving mode, the standby power consumption of the WiFi module is high when a user does not use the communication terminal, such as in the morning; if the initial working mode of the WiFi module is set to the full power saving mode, the user experience may be affected in the process that the user normally uses the communication terminal, such as slow download or game playing; if the initial working mode of the communication WiFi module is set to the low power consumption on and deep sleep off modes, it is not beneficial to detect the standby power consumption of the communication terminal, and meanwhile, the standby power consumption is higher in the process that the user does not use the communication terminal. Here, if the operation mode of the WiFi communication module needs to be changed, the operation mode needs to be changed by recompiling the version modification code. In the above manner, the wireless communication module can only work in a fixed working mode, and the working mode is single, so that a better power saving effect cannot be obtained.
Based on this, in the embodiment of the present invention, a screen state of a communication terminal and an attribute of a background application associated with a wireless communication module of the communication terminal are obtained, where a working mode of the wireless communication module of the communication terminal at least includes a first mode and a second mode; the attributes include: quantity, program level, data transmission rate; when at least one of the screen state of the communication terminal and the attribute of a background application program associated with a wireless communication module of the communication terminal meets a preset condition, controlling the working mode of the wireless communication module to be switched from a first mode to a second mode; wherein the power consumption of the wireless communication module operating in the second mode is less than the power consumption of the wireless communication module operating in the first mode.
The invention is described in further detail below with reference to the drawings and specific embodiments.
An embodiment of the present invention provides a power consumption control method for a communication terminal, which is applied to the communication terminal, and fig. 2 is a schematic diagram of an implementation flow of the power consumption control method for the communication terminal according to the embodiment of the present invention; as shown in fig. 2, the method includes:
step 201: acquiring a screen state of a communication terminal and attributes of a background application program associated with a wireless communication module of the communication terminal; the attributes include: number, program level, data transfer rate.
Here, the screen state of the communication terminal may include a bright screen state and a dead screen state.
Here, the background application associated with the wireless communication module of the communication terminal may refer to a background application using the wireless communication module, such as a wechat program and the like. The wireless communication module may include: a WiFi communication module, a ZigBee communication module, a Bluetooth communication module and the like.
And in actual application, the screen state and the attributes of the background application program can be obtained through the processor of the communication terminal.
For example, the processor of the communication terminal may obtain the screen state of the communication terminal, the number of background applications associated with the wireless communication module, and the data transmission rate according to an interface function. The processor of the communication terminal may determine the program level of the background application associated with the wireless communication module according to the name of the data packet of the background application associated with the wireless communication module.
Step 202: and when at least one of the screen state of the communication terminal and the attribute of the background application program associated with the wireless communication module meets a preset condition, controlling the working mode of the wireless communication module to be switched from a first mode to a second mode.
Wherein the power consumption of the wireless communication module operating in the second mode is less than the power consumption of the wireless communication module operating in the first mode.
Here, controlling the working mode of the wireless communication module to switch from the first mode to the second mode may specifically include the following several cases:
in the first case, when the screen state of the communication terminal meets a preset condition, the working mode of the wireless communication module can be controlled to be switched from the first mode to the second mode.
For example, after it is determined that the screen state of the terminal is the screen off state and the screen off state lasts for a preset time, the operating mode of the wireless communication module is controlled to be switched from the first mode to the second mode.
In the second case, when the screen state of the communication terminal and the number of background applications associated with the wireless communication module satisfy a preset condition, the operating mode of the wireless communication module may be controlled to be switched from the first mode to the second mode.
For example, after it is determined that the screen state of the terminal is the screen off state and the screen off state lasts for a preset duration, if the number of background applications associated with the wireless communication module is greater than a preset threshold, the operating mode of the wireless communication module is controlled to be switched from the first mode to the second mode.
In a third case, when the screen state of the communication terminal, the number of background applications associated with the wireless communication module, and the data transmission rate satisfy preset conditions, the operating mode of the wireless communication module may be controlled to be switched from the first mode to the second mode.
For example, after it is determined that the screen state of the terminal is the screen off state and the screen off state lasts for a preset duration, if the number of background applications associated with the wireless communication module is greater than a preset threshold and the transmission rate is less than a first preset rate, the operating mode of the wireless communication module is controlled to be switched from the first mode to the second mode.
In a fourth situation, when the screen state of the communication terminal, the number of background applications and the program level associated with the wireless communication module satisfy preset conditions, the working mode of the wireless communication module can be controlled to be switched from the first mode to the second mode.
For example, after it is determined that the screen state of the terminal is the screen off state and the screen off state lasts for a preset duration, if the number of background applications associated with the wireless communication module is smaller than a preset threshold and the program level of the background applications associated with the wireless communication module meets a preset condition, the operating mode of the wireless communication module is controlled to be switched from the first mode to the second mode.
Here, after controlling the operation mode of the wireless communication module to be switched from the first mode to the second mode, the operation mode of the wireless communication module may be further controlled to be switched from the second mode to the third mode.
Wherein the first mode, the second mode and the third mode are different in that: the power consumption of the wireless communication module working in the third mode is less than that of the wireless communication module working in the second mode, and the power consumption of the wireless communication module working in the second mode is less than that of the wireless communication module working in the first mode.
In view of the first situation, in practical application, in order to improve the power saving performance of the wireless communication module and obtain a better power saving effect during the standby process of the terminal, the operating mode of the wireless communication module may be controlled to be switched after the terminal is turned off for a period of time.
Based on this, in an embodiment, the controlling the operating mode of the wireless communication module to switch from the first mode to the second mode when at least one of the screen state of the communication terminal and the attribute of the background application associated with the wireless communication module of the communication terminal satisfies a preset condition includes: and when the screen state of the communication terminal is determined to be the screen extinguishing state and the screen extinguishing state lasts for a preset time, controlling the working mode of the wireless communication module to be switched from the first mode to the second mode.
Here, the first preset time period and the second preset time period may be set here.
Specifically, after the screen state of the communication terminal is determined to be the screen off state and the screen off state lasts for a first preset time, the working mode of the wireless communication module is controlled to be switched from a first mode to a second mode; when the screen state of the terminal is determined to be the screen off state and the screen off state lasts for a second preset time, controlling the working mode of the wireless communication module to be switched from the second mode to a third mode; and the second preset time length is greater than the first preset time length.
For example, when a user does not use the communication terminal, when the screen-off duration of the communication terminal is determined to be greater than 1 minute, the working mode of the wireless communication module is controlled to be switched from the non-sleep mode to the moderate sleep mode; and when the screen-off duration of the communication terminal is determined to be greater than 2 minutes, controlling the working mode of the wireless communication module to be switched from the medium sleep mode to the deep sleep mode.
Here, the power consumption of the communication terminal operating in the deep sleep mode is less than the power consumption of the communication terminal operating in the middle sleep mode; the power consumption of the communication terminal operating in the moderate sleep mode is less than the power consumption of the communication terminal operating in the non-sleep mode.
For the second situation, in practical application, after the communication terminal is turned off for a period of time, if the application running in the background of the terminal includes the background application using the wireless communication module, the working mode of the wireless communication module may be controlled to be switched from the first mode to the second mode based on the number of the background applications using the wireless communication module.
Based on this, in an embodiment, after determining that the screen state of the terminal is the screen off state and the screen off state lasts for the preset time period, before controlling the operating mode of the wireless communication module to switch from the first mode to the second mode, the method further includes: judging whether the number of background application programs associated with the wireless communication module is greater than a preset threshold value or not; and when the number of the background application programs associated with the wireless communication module is determined to be larger than a preset threshold value, controlling the working mode of the wireless communication module to be switched from a first mode to a second mode.
Here, after controlling the operating mode of the wireless communication module to switch from the first mode to the second mode, the method may further include: judging whether the background application program associated with the wireless communication module is executed; when the background application program associated with the wireless communication module is determined to be executed completely, controlling the working mode of the wireless communication module to be switched from the second mode to a third mode; the working modes of the wireless communication module of the communication terminal further comprise a third mode, and the power consumption of the wireless communication module in the third mode is smaller than that in the second mode.
For example, when a user does not use the communication terminal, when it is determined that the screen-off duration of the communication terminal is greater than 1 minute and the number of background applications associated with the wireless communication module is greater than 3, controlling the operating mode of the wireless communication module to be switched from the non-sleep mode to the moderate sleep mode; and when the 3 background applications are determined to be executed completely, controlling the working mode of the wireless communication module to be switched from the moderate sleep mode to the deep sleep mode.
Here, the power consumption of the communication terminal operating in the deep sleep mode is less than the power consumption of the communication terminal operating in the middle sleep mode; the power consumption of the communication terminal operating in the moderate sleep mode is less than the power consumption of the communication terminal operating in the non-sleep mode.
For the third situation, in practical application, after the communication terminal is turned off for a period of time, if the application running in the background of the terminal includes the background application using the wireless communication module, the operating mode of the wireless communication module may be controlled to be switched from the first mode to the second mode based on the number of the background applications using the wireless communication module and the data transmission rate.
Based on this, in an embodiment, after determining that the number of background applications associated with the wireless communication module is greater than the preset threshold, before controlling the operating mode of the wireless communication module to switch from the first mode to the second mode, the method further includes: judging whether the data transmission rate of a background application program associated with the wireless communication module is less than a preset rate or not; and when the data transmission rate of the background application program associated with the wireless communication module is determined to be less than the preset rate, controlling the working mode of the wireless communication module to be switched from a first mode to a second mode.
Here, a first preset rate and a second preset rate may be set.
Specifically, when the data transmission rate of a background application program associated with the wireless communication module is determined to be less than a first preset rate, controlling the working mode of the wireless communication module to be switched from a first mode to a second mode; when the data transmission rate of a background application program associated with the wireless communication module is determined to be smaller than a second preset rate, controlling the working mode of the wireless communication module to be switched from the second mode to a third mode; wherein the second preset rate is smaller than the first preset rate.
For example, when a user does not use the communication terminal, when it is determined that the screen-off duration of the communication terminal is greater than 1 minute and the number of background applications associated with the wireless communication module is greater than 3, if it is determined that the data transmission rates of the background applications associated with the wireless communication module, such as WeChat, QQ, Taobao, microblog and the like, are all less than 20Kbps, the operating mode of the wireless communication module is controlled to be switched from the non-sleep mode to the moderate sleep mode; and if the data transmission rates of the background applications such as WeChat, QQ, Taobao and the like associated with the wireless communication module are determined to be less than 10Kbps, controlling the working mode of the wireless communication module to be switched from the moderate sleep mode to the deep sleep mode.
Here, the power consumption of the communication terminal operating in the deep sleep mode is less than the power consumption of the communication terminal operating in the middle sleep mode; the power consumption of the communication terminal operating in the moderate sleep mode is less than the power consumption of the communication terminal operating in the non-sleep mode.
For the fourth situation, in practical application, after the communication terminal is turned off for a period of time, if the application running in the background of the terminal includes the background application using the wireless communication module, the operating mode of the wireless communication module may be controlled to be switched from the first mode to the second mode based on the number and the program level of the background application using the wireless communication module.
Based on this, in an embodiment, the method further comprises: when it is determined that the number is less than or equal to the preset threshold, determining, for each of background applications associated with the wireless communication module, a program level corresponding to each of the background applications; and when the program grade meets a preset grade condition, controlling the working mode of the wireless communication module to be switched from a first mode to a second mode.
Here, that the program level meets the preset level condition may mean that the program level corresponding to each background application is greater than or equal to the preset level.
Specifically, when the program level meets a preset level condition, the working mode of the wireless communication module is controlled to be switched from a first mode to a second mode; and when the program level does not meet the preset level condition, closing a background application program associated with the wireless communication module, and controlling the working mode of the wireless communication module to be switched from the second mode to a third mode.
For example, when a user does not use the communication terminal, when it is determined that the screen-off duration of the communication terminal is greater than 1 minute and the number of background applications associated with the wireless communication module is less than 3, if it is determined that the program levels of the two background applications, namely three kingdoms and WeChat, associated with the wireless communication module are both greater than or equal to a preset level, controlling the operating mode of the wireless communication module to be switched from the non-sleep mode to the moderate sleep mode; and if the program grades of the two background application programs of the three kingdoms killer and the WeChat which are associated with the wireless communication module are determined to be less than the preset grade, directly closing the two background application programs of the three kingdoms killer and the WeChat, and controlling the working mode of the wireless communication module to be switched from the moderate sleep mode to the deep sleep mode.
Here, the power consumption of the communication terminal operating in the deep sleep mode is less than the power consumption of the communication terminal operating in the middle sleep mode; the power consumption of the communication terminal operating in the moderate sleep mode is less than the power consumption of the communication terminal operating in the non-sleep mode.
In actual application, the program level of the corresponding background application program can be determined based on the name of the data packet to which the background application program associated with the wireless communication module belongs.
For example, for the background application A, B, C associated with the wireless communication module, it is assumed that the name of the packet to which the background application a belongs is import _ data1, and the names of the packets to which the background applications B and C belong are data2, where the packet import _ data1 is used to store background applications with a program level above level 3, such as the background application with the download amount ranked 20, and the data2 is used to store background applications with a program level below level 3, it can be determined that the background application a is the background application with a program level above level 3, and the background application B, C is the background application with a program level below level 3 by reading the name of the packet. Assuming that the preset level is level 3, it may be determined that the program level of the background application a is the same as the preset level, so that the operating mode of the wireless communication module may be controlled to be switched from the first mode to the second mode.
In actual application, the program grade of the corresponding background application program can be determined according to the use duration of the background application program in a preset time period.
For example, for the background application A, B, C associated with the wireless communication module, assuming that the usage duration of the background application a is 4 hours, the usage duration of the background application B is 6 hours, and the usage duration of the background application B is 2 hours in one day, it may be determined that the program level of the background application B is level 3, the program level of the background application a is level 2, and the program level of the background application a is level 1. Wherein, the grade 3 characterization has the highest grade, and the grade 1 characterization has the lowest grade. Assuming that the preset level is level 3, it may be determined that the level of the background application B is the same as the preset level, so that the operating mode of the wireless communication module may be controlled to be switched from the first mode to the second mode.
By adopting the technical scheme provided by the embodiment of the invention, when at least one of the screen state of the communication terminal and the attribute of the background application program associated with the wireless communication module of the communication terminal meets the preset condition, the wireless communication module can be controlled to be switched to the second mode with lower power consumption, so that the power saving performance of the wireless communication module can be improved, and a better power saving effect can be obtained.
The following describes a specific implementation principle of the power consumption control method of the communication terminal according to an embodiment of the present invention in detail with reference to a specific embodiment.
Fig. 3 is a schematic diagram of a specific implementation flow of a power consumption control method of a communication terminal according to a first embodiment of the present invention, and as shown in fig. 3, the method includes the following steps:
step 301: after the communication terminal executes the starting command, reading preset parameters stored in the configuration file; according to the read preset parameters, the working mode of the wireless communication module is determined to be the non-sleep mode, and step 302 is executed.
Here, it is assumed that values of the preset parameters may include 0, 1, 2, 3, 4, and 5, where 0 represents a non-sleep mode, 1 represents an on low power consumption and deep sleep off mode, 2 represents an on deep low power consumption and deep sleep off mode, 3 represents an on low power consumption and deep sleep on mode, 4 represents an on deep power consumption and deep sleep on mode, and 5 represents a full power saving mode. If the value of the preset parameter read by the communication terminal is 0, the working mode of the wireless communication module can be determined to be the non-sleep mode.
Step 302: and the communication terminal controls the wireless communication module to work in an unhighling mode.
Step 303: the communication terminal acquires the current screen state; judging whether the current screen state is a screen-off state; if it is determined that the current screen state is the off-screen state, step 304 is performed.
Step 304: the communication terminal acquires the screen-off duration; judging whether the obtained screen-off duration is greater than a first preset duration or not; and when the acquired screen-off duration is determined to be greater than a first preset duration, controlling the wireless communication module to work in a moderate sleep mode, and executing step 305.
Step 305: the communication terminal judges whether the acquired screen-off duration is greater than a second preset duration or not; and executing step 306 when the acquired screen-off duration is determined to be greater than the second preset duration.
Here, the second preset duration is greater than the first preset duration.
Step 306: the communication terminal controls the wireless communication module to work in a deep sleep mode,
here, the power consumption of the communication terminal operating in the deep sleep mode is less than the power consumption of the communication terminal operating in the middle sleep mode; the power consumption of the communication terminal operating in the moderate sleep mode is less than the power consumption of the communication terminal operating in the non-sleep mode.
Fig. 4 is a schematic flowchart of a specific implementation flow of a power consumption control method of a second communication terminal according to an embodiment of the present invention, as shown in fig. 4, including the following steps:
step 401: after the communication terminal executes the starting command, reading preset parameters stored in the configuration file; according to the read preset parameters, the working mode of the wireless communication module is determined to be the non-sleep mode, and step 402 is executed.
Here, it is assumed that values of the preset parameters may include 0, 1, 2, 3, 4, and 5, where 0 represents a non-sleep mode, 1 represents an on low power consumption and deep sleep off mode, 2 represents an on deep low power consumption and deep sleep off mode, 3 represents an on low power consumption and deep sleep on mode, 4 represents an on deep power consumption and deep sleep on mode, and 5 represents a full power saving mode. If the value of the preset parameter read by the communication terminal is 0, the working mode of the wireless communication module can be determined to be the non-sleep mode.
Step 402: and the communication terminal controls the wireless communication module to work in an unhighling mode.
Step 403: the communication terminal acquires the current screen state; judging whether the current screen state is a screen-off state; if it is determined that the current screen state is the off-screen state, step 304 is performed.
Step 404: the communication terminal acquires the screen-off duration; judging whether the obtained screen-off duration is greater than a first preset duration or not; when it is determined that the acquired screen-off duration is greater than the first preset duration, step 405 is performed.
Step 405: determining whether the number of background applications associated with the wireless communication module is greater than 3; when the number of background applications associated with the wireless communication module is determined to be greater than 3, controlling the wireless communication module to operate in the intermediate sleep mode, and executing step 406.
Step 406: judging whether background application programs associated with the wireless communication module are all executed; and when determining whether the background application programs associated with the wireless communication module are all executed, controlling the wireless communication module to work in a deep sleep mode.
Here, the power consumption of the communication terminal operating in the deep sleep mode is less than the power consumption of the communication terminal operating in the middle sleep mode; the power consumption of the communication terminal operating in the moderate sleep mode is less than the power consumption of the communication terminal operating in the non-sleep mode.
Fig. 5 is a schematic flowchart of a specific implementation of a power consumption control method of a third communication terminal according to an embodiment of the present invention, and as shown in fig. 5, the method includes the following steps:
step 501: after the communication terminal executes the starting command, reading preset parameters stored in the configuration file; according to the read preset parameters, the working mode of the wireless communication module is determined to be the non-sleep mode, and step 502 is executed.
Here, it is assumed that values of the preset parameters may include 0, 1, 2, 3, 4, and 5, where 0 represents a non-sleep mode, 1 represents an on low power consumption and deep sleep off mode, 2 represents an on deep low power consumption and deep sleep off mode, 3 represents an on low power consumption and deep sleep on mode, 4 represents an on deep power consumption and deep sleep on mode, and 5 represents a full power saving mode. If the value of the preset parameter read by the communication terminal is 0, the working mode of the wireless communication module can be determined to be the non-sleep mode.
Step 502: and the communication terminal controls the wireless communication module to work in an unhighling mode.
Step 503: the communication terminal acquires the current screen state; judging whether the current screen state is a screen-off state; if the current screen state is determined to be the off-screen state, step 504 is performed.
Step 504: the communication terminal acquires the screen-off duration; judging whether the obtained screen-off duration is greater than a first preset duration or not; and when the acquired screen-off duration is determined to be greater than the first preset duration, executing step 505.
Step 505: determining whether the number of background applications associated with the wireless communication module is greater than 3; when it is determined that the number of background applications associated with the wireless communication module is greater than 3, step 506 is performed.
Step 506: judging whether the data transmission rates of background application programs associated with the wireless communication module are all smaller than a first rate; when it is determined that the data transmission rates of the background applications associated with the wireless communication module are all less than the first rate, the wireless communication module is controlled to operate in the intermediate sleep mode, and step 507 is executed.
Step 507: judging whether the data transmission rates of background application programs associated with the wireless communication module are all smaller than a second rate; and when the data transmission rates of the background application programs associated with the wireless communication module are determined to be less than the second rate, controlling the wireless communication module to work in a deep sleep mode.
Here, the second rate is smaller than the first rate.
Here, the power consumption of the communication terminal operating in the deep sleep mode is less than the power consumption of the communication terminal operating in the middle sleep mode; the power consumption of the communication terminal operating in the moderate sleep mode is less than the power consumption of the communication terminal operating in the non-sleep mode.
Fig. 6 is a schematic diagram of a specific implementation flow of a power consumption control method of a fourth communication terminal according to an embodiment of the present invention, as shown in fig. 6, including the following steps:
step 601: after the communication terminal executes the starting command, reading preset parameters stored in the configuration file; according to the read preset parameters, the working mode of the wireless communication module is determined to be the non-sleep mode, and step 602 is executed.
Here, it is assumed that values of the preset parameters may include 0, 1, 2, 3, 4, and 5, where 0 represents a non-sleep mode, 1 represents an on low power consumption and deep sleep off mode, 2 represents an on deep low power consumption and deep sleep off mode, 3 represents an on low power consumption and deep sleep on mode, 4 represents an on deep power consumption and deep sleep on mode, and 5 represents a full power saving mode. If the value of the preset parameter read by the communication terminal is 0, the working mode of the wireless communication module can be determined to be the non-sleep mode.
Step 602: and the communication terminal controls the wireless communication module to work in an unhighling mode.
Step 603: the communication terminal acquires the current screen state; judging whether the current screen state is a screen-off state; if it is determined that the current screen state is the off-screen state, step 604 is performed.
Step 604: the communication terminal acquires the screen-off duration; judging whether the obtained screen-off duration is greater than a first preset duration or not; when it is determined that the acquired screen-off duration is greater than the first preset duration, step 605 is performed.
Step 605: determining whether the number of background applications associated with the wireless communication module is greater than 3; when it is determined that the number of background applications associated with the wireless communication module is less than or equal to 3, step 606 is performed.
Step 606: judging whether the program grades of the background application programs associated with the wireless communication module are all larger than or equal to a preset grade; when determining that the program levels of the background application programs associated with the wireless communication module are all greater than or equal to a preset level, controlling the wireless communication module to work in a moderate sleep mode, and executing step 607; otherwise, step 608 is performed.
Step 607: judging whether background application programs associated with the wireless communication module are all executed; and when determining whether the background application programs associated with the wireless communication module are all executed, controlling the wireless communication module to work in a deep sleep mode.
Step 608: and closing a background application program associated with the wireless communication module, and controlling the wireless communication module to work in a deep sleep mode.
Here, the power consumption of the communication terminal operating in the deep sleep mode is less than the power consumption of the communication terminal operating in the middle sleep mode; the power consumption of the communication terminal operating in the moderate sleep mode is less than the power consumption of the communication terminal operating in the non-sleep mode.
Fig. 7 is a schematic flowchart illustrating a method for controlling power consumption of the communication terminal implemented by a software program according to an embodiment of the present invention, and as shown in fig. 7, communication between an application layer of the wireless communication module and the kernel may be implemented by a netlink and a read/write device node, so as to control the wireless communication module to switch a working mode. Taking the example of controlling the wireless communication module to switch the working mode based on the screen state of the communication terminal, the number of background application programs associated with the wireless communication module, and the program level, the specific implementation process may include: firstly, an application layer of the communication terminal reads the screen-off duration of the communication terminal and the number of background application programs associated with the wireless communication module through a system interface function. After the screen is turned off for a period of time, the application layer of the communication terminal determines the to-be-switched working mode of the wireless communication module based on the number of background application programs associated with the wireless communication module. Specifically, if the number of background applications associated with the wireless communication module is greater than 3, it is determined that the wireless communication module needs to be controlled to enter the intermediate sleep mode, which may be represented by a value 0, and by commanding: if Echo1 is greater than DPS, writing the numerical value corresponding to the working mode to be switched of the wireless communication module, namely 0, into the created reading and writing equipment node DPS; when the number of background applications associated with the wireless communication module is less than or equal to 3, if the program levels of the background applications associated with the wireless communication module are all greater than or equal to a preset level, it is determined that the wireless communication module needs to be controlled to enter a moderate sleep mode, which may be represented by a value 0, and by a command: and if Echo2 is greater than DPS, writing the numerical value corresponding to the determined working mode to be switched of the wireless communication module, namely 0, into the created reading and writing equipment node DPS. In this way, the kernel of the wireless communication module monitors the DPS, obtains the value corresponding to the working mode to be switched of the wireless communication module through the interface function in the kernel driving chip, and sets the current working mode of the wireless communication module to be the moderate dormancy mode according to the read value.
Fig. 8 is a schematic diagram of the operation modes of three power consumption levels, as shown in fig. 8, for the sleep operation mode with higher level, such as the qwower 3.0 in fig. 8, the less the wake-up time (nw in fig. 8), the longer the sleep time (ns in fig. 8), and the less the interaction with the Access Point (AP), so that the power consumption of the wireless communication module is lower. It should be noted that, here, during the standby process of the terminal, the wireless communication module may operate in a mode with lower power consumption, such as the qwower 3.0 in fig. 8, so that the sleep time of the wireless communication module can be longer, and thus, the overall power consumption of the communication terminal is reduced, the standby power consumption of the wireless communication module is reduced, and a better power saving effect is achieved.
In order to implement the power consumption control method of the communication terminal according to the embodiment of the present invention, a power consumption control device of the communication terminal is further provided according to the embodiment of the present invention, and fig. 9 is a schematic structural diagram of the power consumption control device of the communication terminal according to the embodiment of the present invention; as shown in fig. 9, the apparatus includes:
an obtaining unit 91, configured to obtain a screen state of a communication terminal and an attribute of a background application associated with a wireless communication module of the communication terminal; the attributes include: number, program level, data transfer rate.
The control unit 92 is configured to control the working mode of the wireless communication module to be switched from a first mode to a second mode when at least one of the screen state of the communication terminal and the attribute of the background application program associated with the wireless communication module meets a preset condition; wherein the power consumption of the wireless communication module operating in the second mode is less than the power consumption of the wireless communication module operating in the first mode.
Here, the screen state of the communication terminal may include a bright screen state and a dead screen state.
Here, the background application associated with the wireless communication module of the communication terminal may refer to a background application using the wireless communication module, such as a wechat program and the like.
In an embodiment, the control unit 92 is specifically configured to: and when the screen state of the communication terminal is determined to be the screen extinguishing state and the screen extinguishing state lasts for a first preset time, controlling the working mode of the wireless communication module to be switched from the first mode to the second mode.
In an embodiment, the control unit 92 is specifically configured to: when the screen state of the communication terminal is determined to be the screen off state and the screen off state lasts for a first preset time, controlling the working mode of the wireless communication module to be switched from the first mode to the second mode, and when the screen state of the terminal is determined to be the screen off state and the screen off state lasts for a second preset time, controlling the working mode of the wireless communication module to be switched from the second mode to the third mode; and the second preset time length is greater than the first preset time length.
In an embodiment, the control unit 92 is specifically configured to: after the screen state of the terminal is determined to be the screen off state and the screen off state lasts for a preset time length and before the working mode of the wireless communication module is controlled to be switched from the first mode to the second mode, whether the number of background application programs related to the wireless communication module is larger than a preset threshold value or not is judged; and when the number of the background application programs associated with the wireless communication module is determined to be larger than a preset threshold value, controlling the working mode of the wireless communication module to be switched from a first mode to a second mode.
In an embodiment, the control unit 92 is specifically configured to: after the screen state of the terminal is determined to be the screen off state and the screen off state lasts for a preset time length and the working mode of the wireless communication module is controlled to be switched from the first mode to the second mode, whether the execution of a background application program associated with the wireless communication module is finished or not is judged; when the background application program associated with the wireless communication module is determined to be executed completely, controlling the working mode of the wireless communication module to be switched from the second mode to a third mode; the working modes of the wireless communication module of the communication terminal further comprise a third mode, and the power consumption of the wireless communication module in the third mode is smaller than that in the second mode.
In an embodiment, the control unit 92 is specifically configured to: when the number of the background application programs associated with the wireless communication module is larger than a preset threshold value and before the working mode of the wireless communication module is controlled to be switched from a first mode to a second mode, judging whether the data transmission rate of the background application programs associated with the wireless communication module is smaller than a first preset rate or not; when the data transmission rate of the background application program associated with the wireless communication module is determined to be smaller than a first preset rate, controlling the working mode of the wireless communication module to be switched from a first mode to a second mode.
In an embodiment, the control unit 92 is specifically configured to: after the number of background application programs associated with the wireless communication module is determined to be larger than a preset threshold value and the working mode of the wireless communication module is controlled to be switched from a first mode to a second mode, judging whether the data transmission rate of the background application programs associated with the wireless communication module is smaller than a second preset rate or not; when the data transmission rate of a background application program associated with the wireless communication module is determined to be smaller than a second preset rate, controlling the working mode of the wireless communication module to be switched from the second mode to a third mode; wherein the second preset rate is smaller than the first preset rate.
In an embodiment, the control unit 92 is specifically configured to: when it is determined that the number is less than or equal to the preset threshold, determining, for each of background applications associated with the wireless communication module, a program level corresponding to each of the background applications; when the program grade meets a preset grade condition, controlling the working mode of the wireless communication module to be switched from a first mode to a second mode; and when the program level does not meet the preset level condition, closing a background application program associated with the wireless communication module, and controlling the working mode of the wireless communication module to be switched from the second mode to a third mode.
In actual application, the obtaining unit 91 is implemented by a communication interface in a power consumption control device of a communication terminal; the control unit 92 may be implemented by a processor in a power consumption control device of the communication terminal.
It should be noted that: the power consumption control device of the communication terminal according to the above-mentioned embodiment is exemplified by only dividing the program modules when controlling to switch the operation mode of the wireless communication module, and in practical applications, the above-mentioned processing may be distributed to different program modules according to needs, that is, the internal structure of the device may be divided into different program modules to complete all or part of the above-mentioned processing. In addition, the power consumption control device of the communication terminal and the power consumption control method of the communication terminal provided in the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
An embodiment of the present invention further provides a power consumption control apparatus of a communication terminal, as shown in fig. 10, the apparatus 100 includes: a communication interface 101, a processor 102, a memory 103; wherein, the first and the second end of the pipe are connected with each other,
a communication interface 101 capable of performing information interaction with other devices;
and the processor 102 is connected with the communication interface 101 and is used for executing the method provided by one or more technical schemes of the intelligent device side when running a computer program. And the computer program is stored on the memory 83.
Of course, in actual use, the various components in the power consumption control apparatus 100 of the communication terminal are coupled together by the bus system 104. It is understood that the bus system 104 is used to enable communications among the components. The bus system 104 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 104 in fig. 10.
The memory 103 in the embodiment of the present application is used to store various types of data to support the operation of the control device 80. Examples of such data include: any computer program for operating on the power consumption control apparatus 100 of a communication terminal.
The method disclosed in the embodiments of the present application can be applied to the processor 102, or implemented by the processor 102. The processor 102 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 102. The Processor 102 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The processor 102 may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 103, and the processor 102 reads the information in the memory 103 and performs the steps of the foregoing method in combination with the hardware thereof.
In an exemplary embodiment, the power consumption control apparatus 100 of the communication terminal may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors (gpus), controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic elements for performing the foregoing methods.
It will be appreciated that the memory 103 of embodiments of the subject application can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration, and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Double Data Rate Synchronous Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Random Access Memory (DRAM), Synchronous Random Access Memory (DRAM), Direct Random Access Memory (DRmb Access Memory). The memories described in the embodiments of the present application are intended to comprise, without being limited to, these and any other suitable types of memory.
It should be noted that: "first," "second," and the like are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit. Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided herein may be combined in any combination to arrive at a new method or apparatus embodiment without conflict.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (9)

1. A power consumption control method of a communication terminal, applied to a communication terminal including a screen for display, comprising:
acquiring a screen state of a communication terminal and attributes of a background application program associated with a wireless communication module of the communication terminal, wherein the working modes of the wireless communication module of the communication terminal at least comprise a first mode and a second mode; the attributes include: quantity, program level, data transmission rate;
when at least one of the screen state of the communication terminal and the attribute of a background application program associated with a wireless communication module of the communication terminal meets a preset condition, controlling the working mode of the wireless communication module to be switched from a first mode to a second mode;
wherein the power consumption of the wireless communication module operating in the second mode is less than the power consumption of the wireless communication module operating in the first mode;
when at least one of the screen state of the communication terminal and the attribute of a background application program associated with a wireless communication module of the communication terminal meets a preset condition, controlling the working mode of the wireless communication module to be switched from a first mode to a second mode, wherein the method comprises the following steps:
when the screen state of the communication terminal is determined to be the screen off state and the screen off state lasts for a preset time, if the number of background application programs associated with the wireless communication module is larger than a preset threshold value and the transmission rate is smaller than a first preset rate, the working mode of the wireless communication module is controlled to be switched from a first mode to a second mode.
2. The method according to claim 1, wherein when at least one of the screen status of the communication terminal and the attribute of a background application program associated with a wireless communication module of the communication terminal meets a preset condition, controlling the operating mode of the wireless communication module to switch from a first mode to a second mode comprises:
and when the screen state of the terminal is determined to be the screen extinguishing state and the screen extinguishing state lasts for a preset time, controlling the working mode of the wireless communication module to be switched from the first mode to the second mode.
3. The method according to claim 2, wherein after determining that the screen state of the terminal is the screen-off state and the screen-off state lasts for a preset time period, and before the controlling the operating mode of the wireless communication module to switch from the first mode to the second mode, the method further comprises:
judging whether the number of background application programs associated with the wireless communication module is greater than a preset threshold value or not;
and when the number of the background application programs associated with the wireless communication module is determined to be larger than a preset threshold value, controlling the working mode of the wireless communication module to be switched from a first mode to a second mode.
4. The method of claim 3, further comprising:
when it is determined that the number is less than or equal to the preset threshold, determining, for each of background applications associated with the wireless communication module, a program level corresponding to the each background application;
and when the program grade meets a preset grade condition, controlling the working mode of the wireless communication module to be switched from a first mode to a second mode.
5. The method according to claim 3 or 4, wherein after the controlling the operation mode of the wireless communication module to be switched from the first mode to the second mode, the method further comprises:
judging whether the background application program associated with the wireless communication module is executed completely;
when the background application program associated with the wireless communication module is determined to be executed completely, controlling the working mode of the wireless communication module to be switched from the second mode to a third mode;
the working modes of the wireless communication module of the communication terminal further comprise a third mode, and the power consumption of the wireless communication module working in the third mode is smaller than that of the wireless communication module working in the second mode.
6. The method of claim 4, further comprising:
when the program level does not meet a preset level condition, closing a background application program associated with the wireless communication module, and controlling the working mode of the wireless communication module to be switched from the second mode to a third mode;
the working modes of the wireless communication module of the communication terminal further comprise a third mode, and the power consumption of the wireless communication module working in the third mode is smaller than that of the wireless communication module working in the second mode.
7. A power consumption control apparatus of a communication terminal, applied to the communication terminal, the apparatus comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the screen state of a communication terminal and the attribute of a background application program associated with a wireless communication module of the communication terminal, and the working mode of the wireless communication module of the communication terminal at least comprises a first mode and a second mode; the attributes include: quantity, program level, data transmission rate;
the control unit is used for controlling the working mode of the wireless communication module to be switched from a first mode to a second mode when at least one of the screen state of the communication terminal and the attribute of a background application program associated with the wireless communication module of the communication terminal meets a preset condition; wherein the power consumption of the wireless communication module operating in the second mode is less than the power consumption of the wireless communication module operating in the first mode;
the control unit is specifically configured to: and when the screen state of the communication terminal is determined to be the screen extinguishing state and the screen extinguishing state lasts for a preset time, if the number of background application programs associated with the wireless communication module is greater than a preset threshold value and the transmission rate is less than a first preset rate, controlling the working mode of the wireless communication module to be switched from a first mode to a second mode.
8. A power consumption control apparatus for a communication terminal, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 6 are implemented when the processor executes the program.
9. A computer storage medium having computer instructions stored thereon, wherein the instructions, when executed by a processor, perform the steps of the method of any one of claims 1 to 6.
CN201910755042.9A 2019-08-15 2019-08-15 Power consumption control method and device of communication terminal and storage medium Active CN110505679B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910755042.9A CN110505679B (en) 2019-08-15 2019-08-15 Power consumption control method and device of communication terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910755042.9A CN110505679B (en) 2019-08-15 2019-08-15 Power consumption control method and device of communication terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110505679A CN110505679A (en) 2019-11-26
CN110505679B true CN110505679B (en) 2022-08-16

Family

ID=68588156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910755042.9A Active CN110505679B (en) 2019-08-15 2019-08-15 Power consumption control method and device of communication terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110505679B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113079558B (en) * 2020-01-03 2022-10-18 荣耀终端有限公司 Power consumption control method, chip system and terminal equipment
CN113498154A (en) * 2020-04-06 2021-10-12 瑞昱半导体股份有限公司 Method for WiFi module and related system
CN112822742A (en) * 2021-02-01 2021-05-18 联想(北京)有限公司 Processing method and device
CN117015014A (en) * 2022-04-28 2023-11-07 中兴通讯股份有限公司 Data transmission method, model training method, device, and computer-readable medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718027A (en) * 2016-01-20 2016-06-29 努比亚技术有限公司 Management method of background application programs and mobile terminal
CN107608853A (en) * 2017-09-06 2018-01-19 广东欧珀移动通信有限公司 Control method, device, storage medium and the intelligent terminal of terminal usage time
CN107943266A (en) * 2017-11-20 2018-04-20 北京小米移动软件有限公司 power consumption control method, device and equipment
CN108536269A (en) * 2018-03-26 2018-09-14 上海康斐信息技术有限公司 A kind of method and its system reducing terminal standby power consumption
CN110045809A (en) * 2018-01-12 2019-07-23 广东欧珀移动通信有限公司 Information processing method, device, computer equipment and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100869950B1 (en) * 2006-12-01 2008-11-24 삼성전자주식회사 configuration structure of extendable idle screen of mobile device and display method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718027A (en) * 2016-01-20 2016-06-29 努比亚技术有限公司 Management method of background application programs and mobile terminal
CN107608853A (en) * 2017-09-06 2018-01-19 广东欧珀移动通信有限公司 Control method, device, storage medium and the intelligent terminal of terminal usage time
CN107943266A (en) * 2017-11-20 2018-04-20 北京小米移动软件有限公司 power consumption control method, device and equipment
CN110045809A (en) * 2018-01-12 2019-07-23 广东欧珀移动通信有限公司 Information processing method, device, computer equipment and computer readable storage medium
CN108536269A (en) * 2018-03-26 2018-09-14 上海康斐信息技术有限公司 A kind of method and its system reducing terminal standby power consumption

Also Published As

Publication number Publication date
CN110505679A (en) 2019-11-26

Similar Documents

Publication Publication Date Title
CN110505679B (en) Power consumption control method and device of communication terminal and storage medium
US9887542B2 (en) Power broker module
CN103782272B (en) Switch task between isomery core
ES2573284T3 (en) Hybrid cache criteria managers with double write / single write, and related systems and procedures
JP5661874B2 (en) Idle period reporting for power management
US10317984B2 (en) System on chip, method of managing power thereof, and electronic device
EP3345070B1 (en) Systems and methods for dynamically adjusting memory state transition timers
EP2989536B1 (en) Management of access to a hybrid drive in power saving mode
TW201512836A (en) Throttling of application access to resources
CN109151961B (en) Operation method of mobile terminal, terminal and computer readable storage medium
US20170177406A1 (en) Methods for managing a service or application for a smart device and a smart device utilizing the same
KR20150068747A (en) on-volatile memory system and host communicating with the same
CN109857239B (en) Storage control method and device
CN105204633A (en) Control method of mobile terminal music play and mobile terminal
CN105706168A (en) System and method for reducing memory I/O power via data masking
CN105227784A (en) A kind of power-saving processing method of mobile terminal and mobile terminal
CN110708691A (en) Information processing method and electronic equipment
EP3962180A1 (en) Network-based control method for power consumption of applications, terminal and storage medium
CN107613546B (en) BLE chip, control method of designated element in BLE chip and Bluetooth low-power-consumption equipment
CN104391564A (en) Power consumption control method and device
CN113867963A (en) Electronic equipment and processing method
CN113377396A (en) Upgrading method and device, electronic equipment and storage medium
CN112306213A (en) Display card mode switching method and device based on terminal, storage medium and terminal
CN111800846A (en) Method and system for saving power consumption by identifying different scenes
CN112732169A (en) Data writing or reading method, device, storage medium and electronic device

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