CN113010000B - Power consumption optimization method and device, electronic equipment and storage medium - Google Patents

Power consumption optimization method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113010000B
CN113010000B CN202110198934.0A CN202110198934A CN113010000B CN 113010000 B CN113010000 B CN 113010000B CN 202110198934 A CN202110198934 A CN 202110198934A CN 113010000 B CN113010000 B CN 113010000B
Authority
CN
China
Prior art keywords
application
network information
electronic equipment
electronic device
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
CN202110198934.0A
Other languages
Chinese (zh)
Other versions
CN113010000A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110198934.0A priority Critical patent/CN113010000B/en
Publication of CN113010000A publication Critical patent/CN113010000A/en
Application granted granted Critical
Publication of CN113010000B publication Critical patent/CN113010000B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3209Monitoring remote activity, e.g. over telephone lines or network connections
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • 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/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • 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/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0245Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal according to signal strength
    • 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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to a power consumption optimization method and device, electronic equipment and storage medium. The method comprises the following steps: monitoring whether the display screen state of the electronic equipment and the network information of the electronic equipment change or not; if the display screen is in a screen-off state and the network information changes, determining a target application belonging to a preset type in the currently running application in the electronic equipment; the target application of the preset type requests permission for influencing power consumption and is identified as an application needing to receive changed network information; and sending the changed network information to the target application. By the method, the power consumption of the electronic equipment can be saved, and the use experience of a user is improved.

Description

Power consumption optimization method and device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of electronic equipment, and in particular relates to a power consumption optimization method and device, electronic equipment and a storage medium.
Background
With rapid development of electronic technology, electronic devices with display screens, such as smartphones, tablet computers, etc., have become increasingly popular.
Due to the increase of functions of the electronic equipment, serious tests are necessarily brought to the battery life of the electronic equipment. Under the condition that the battery of the electronic equipment stores energy to a certain extent, how to prolong the endurance of the electronic equipment by optimizing the self power consumption of the electronic equipment has become an important problem to be solved.
Disclosure of Invention
The disclosure provides a power consumption optimization method and device, electronic equipment and storage medium.
According to a first aspect of embodiments of the present disclosure, there is provided a power consumption optimization method, applied to an electronic device, including:
monitoring whether the display screen state of the electronic equipment and the network information of the electronic equipment change or not;
if the display screen is in a screen-off state and the network information changes, determining a target application belonging to a preset type in the currently running application in the electronic equipment; the target application of the preset type requests permission for influencing power consumption and is identified as an application needing to receive changed network information;
and sending the changed network information to the target application.
Optionally, the method further comprises:
and if the display screen is in the screen-off state and the currently running application in the electronic equipment does not belong to the target application of the preset type, prohibiting the changed network information from being sent to all the currently running applications in the electronic equipment.
Optionally, the method further comprises:
and if the display screen is in a bright screen state and the network information is changed, sending the changed network information to all the applications currently running in the electronic equipment.
Optionally, the method further comprises:
acquiring rights requested by applications installed in the electronic equipment and preset grades of the applications; wherein the preset level characterizes the necessity of the application to receive changed network information;
if the authority of the application belongs to the preset authority affecting the power consumption, establishing a first corresponding relation between an application identifier of the application and the authority;
establishing a second corresponding relation between the application identifier and the preset grade;
the determining a target application belonging to a preset type in the currently running applications in the electronic device includes:
and characterizing the application identifier of the application in the current running application as an application needing to receive the changed network information in the preset level corresponding to the application identifier of the application in the second corresponding relation, and determining the application identifier of the application as the target application of the preset type.
Optionally, the method further comprises:
detecting whether an application in the electronic equipment is updated or not;
if the application is updated, updating the first corresponding relation and the second corresponding relation according to the authority requested by the updated application and a preset level.
Optionally, the network information of the electronic device includes at least one of:
information of a base station supporting the network communication of the electronic device;
network signal strength of the electronic device.
According to a second aspect of the embodiments of the present disclosure, there is provided a power consumption optimizing apparatus, applied to an electronic device, including:
the monitoring module is configured to monitor whether the display screen state of the electronic equipment and the network information of the electronic equipment change or not;
the determining module is configured to determine a target application belonging to a preset type in the currently running application in the electronic equipment if the display screen is in a screen-off state and the network information changes; the target application of the preset type requests permission for influencing power consumption and is identified as an application needing to receive changed network information;
and the first sending module is configured to send the changed network information to the target application.
Optionally, the apparatus further includes:
and the prohibition module is configured to prohibit sending the changed network information to all the applications currently running in the electronic equipment if the display screen is in the screen-off state and the applications currently running in the electronic equipment do not belong to the target application of the preset type.
Optionally, the apparatus further includes:
and the second sending module is configured to send the changed network information to all the applications currently running in the electronic equipment if the display screen is in a bright screen state and the network information is changed.
Optionally, the apparatus further includes:
the statistics module is configured to acquire the authority requested by each application installed in the electronic equipment and the preset grade of each application; wherein the preset level characterizes the necessity of the application to receive changed network information;
the first establishing module is configured to establish a first corresponding relation between an application identifier of the application and the permission if the permission of the application belongs to the permission which is preset to influence power consumption;
the second establishing module is configured to establish a second corresponding relation between the application identifier and the preset grade;
the determining module is specifically configured to determine that an application identifier of an application belongs to an application identifier in the first corresponding relationship in the currently running application, and a preset level corresponding to the application identifier of the application in the second corresponding relationship is an application that needs to receive changed network information, and the application identifier of the application is a target application of the preset type.
Optionally, the apparatus further includes:
the detection module is configured to detect whether the application in the electronic equipment is updated or not;
and the updating module is configured to update the first corresponding relation and the second corresponding relation according to the authority requested by the updated application and the preset grade if the application is updated.
Optionally, the network information of the electronic device includes at least one of:
information of a base station supporting the network communication of the electronic device;
network signal strength of the electronic device.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the power consumption optimization method as described in the first aspect above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium comprising:
the instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the power consumption optimization method as described in the first aspect above.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
in the embodiment of the disclosure, when the display screen of the electronic device is in a screen-off state and the network information of the electronic device changes, the electronic device determines a target application belonging to a preset type in the currently running application and sends the changed network information to the target application. On one hand, the method and the device send the changed network information to the target application which requests the influence on the power consumption authority and belongs to the network information which needs to be received after the change, namely send the changed network information to the target application which needs to receive the network information after the change, so that the information is sent more pointedly and more finely; on the other hand, when the electronic equipment is in the screen-off state, the changed network information is only sent to part of target applications in the applications currently operated by the electronic equipment, and all the operated applications do not need to be awakened, so that the power consumption of the electronic equipment can be reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart of a power consumption optimization method according to an embodiment of the disclosure.
Fig. 2 is a flowchart second of a power consumption optimization method according to an embodiment of the disclosure.
Fig. 3 is a flowchart three of a power consumption optimization method according to an embodiment of the present disclosure.
FIG. 4 is a power consumption optimization apparatus diagram illustrating an example embodiment.
Fig. 5 is a block diagram of an electronic device shown in an embodiment of the disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Fig. 1 is a flowchart of a power consumption optimization method according to an embodiment of the present disclosure, and as shown in fig. 1, the power consumption optimization method applied to a terminal includes the following steps:
s11, monitoring whether the display screen state of the electronic equipment and the network information of the electronic equipment change or not;
s12, if the display screen is in a screen-off state and the network information is changed, determining that a target application belonging to a preset type in the currently running application in the electronic equipment; the target application of the preset type requests permission for influencing power consumption and is identified as an application needing to receive changed network information;
and S13, sending the changed network information to the target application.
In an embodiment of the present disclosure, an electronic device includes: a mobile device and a stationary device; the mobile device includes: a cell phone, a tablet computer or a wearable device, etc. The stationary device includes, but is not limited to, a personal computer (Personal Computer, PC).
The electronic equipment comprises a display screen, and when the electronic equipment is awakened, the display screen is in a lighting state; and when the electronic equipment is dormant, the display screen is in a screen-off state. In addition, a wireless communication module may be included in the electronic device, including, for example, a wireless internet (Wireless Fidelity, wi-Fi) module, and the electronic device may interact with information within the local area network based on the Wi-Fi module and other devices. However, when the location of the electronic device changes, or the electronic device is just at the intersection of the neighboring cell base stations, a handover of the operator cell base station, a change in signal strength, etc. may be caused. The handover of the cell base station, the change of the signal strength, etc. belong to the change of the network information.
In step S11, the electronic device monitors the status of the display screen and whether the network information of the electronic device changes, and in steps S12 to S13, when it is detected that the display screen is in the off-screen status and the network information changes, the electronic device further determines a target application in the currently running applications in the electronic device, and only sends the changed network information to the target application. The target application requests permission to influence power consumption and is identified as an application that needs to receive changed network information.
In the embodiment of the disclosure, when determining the state of the display screen, the electronic device may monitor the change of the state of the screen in real time based on the operating system interface, for example, through a "screen state monitoring unit" function module included in the electronic device. When determining whether the network information changes, the electronic device may monitor whether the network information changes, for example, through a "network management unit" function module of the electronic device. Based on the monitoring of the display screen state and the monitoring of whether the network information changes, the electronic equipment can determine the target application and only send the changed network information to the target application after acquiring the screen state as the off-screen state from the screen state monitoring unit through the included power consumption management unit functional module.
It should be noted that, when the target application requests the permission that affects the power consumption, the target application may have a larger impact on the power consumption of the electronic device when executing the function after requesting to obtain some permissions. In an embodiment of the present disclosure, the rights to affect power consumption include: acquiring positioning authority, acquiring base station information authority, acquiring base station positioning authority or acquiring current network signal strength authority and the like.
In embodiments of the present disclosure, for an application installed in an electronic device, whether the application needs to receive changed network information may be identified based on a user's operation. For example, after the application is successfully installed in the electronic device for the first time, the electronic device automatically pops up a box of "whether to receive the changed network information" so as to be set by a user, or after the application is successfully installed in the electronic device, the user sets whether the corresponding application needs to receive the changed network information based on a setting interface of the application.
In one embodiment, the network information of the electronic device includes at least one of:
information of a base station supporting the network communication of the electronic device;
network signal strength of the electronic device.
In an embodiment of the present disclosure, the applications currently running in the electronic device include applications running in different running environments, wherein the running environments include: foreground operation or background operation. The electronic equipment can comprise a functional module of an application state monitoring unit, and the unit can acquire the survival state, foreground and background states of each application through an operating system interface. For example, the electronic device may monitor whether the application is open, whether a process of the application is closed, etc., to determine a survivability status of the application; alternatively, whether an interface of the application is displayed on a display screen of the electronic device, is operable, etc. is monitored to determine a foreground or background state of the application. The electronic equipment comprises a 'power consumption management unit' functional module, and the current running application in the electronic equipment can be obtained from an 'application state monitoring unit'.
In addition, in the embodiments of the present disclosure, the electronic device may also identify whether the application needs to receive the changed network information according to the running environment of the currently running application. For example, when the application currently running in the mobile phone runs in the foreground, it is identified as an application that needs to receive the changed network information, and when the application currently running in the mobile phone runs in the background, it is identified as an application that does not need to receive the changed network information.
Since the electronic device may be in a state of being turned off for a long period of time during daily use of the electronic device. In the off-screen state, the user is likely not to use the electronic equipment, so that the power consumption of the electronic equipment in the off-screen state is reduced as much as possible, and the phenomenon of electric quantity waste is reduced. When the electronic equipment is in the screen-off state, the electronic equipment still wakes up all the applications currently running in the electronic equipment when the network information is monitored to change, and the changed network information is sent to all the applications, so that the problem of high power consumption exists. Furthermore, in many cases, the electronic device may only be located just at the intersection of neighboring cell base stations, resulting in frequent changes of network information. After the electronic device monitors the frequently changed network information, the electronic device also frequently sends the changed network information to each application, so that the power consumption loss is larger.
In contrast, when the display screen of the electronic device is in a screen-off state and the network information of the electronic device is changed, the method and the device determine the target application belonging to the preset type in the currently running application in advance and send the changed network information to the target application. On one hand, the method and the device send the changed network information to the target application which requests the influence on the power consumption authority and belongs to the network information which needs to be received after the change, namely send the changed network information to the target application which needs to receive the network information after the change, so that the information is sent more pointedly and more finely; on the other hand, when the electronic equipment is in the screen-off state, the changed network information is only sent to part of target applications in the applications currently operated by the electronic equipment, and all the operated applications do not need to be awakened, so that the power consumption of the electronic equipment can be reduced, and the use experience of a user is improved.
Fig. 2 is a flowchart second of a power consumption optimization method according to an embodiment of the present disclosure, and as shown in fig. 2, the power consumption optimization method applied to a terminal includes the following steps:
s14, if the display screen is in the screen-off state and the currently running application in the electronic equipment does not belong to the target application of the preset type, the changed network information is forbidden to be sent to all the currently running applications in the electronic equipment.
In the embodiment of the disclosure, if the display screen is in the screen-off state and none of the currently running applications in the electronic device belongs to a target application of a preset type, that is, none of the currently running applications in the electronic device requests permission to affect power consumption and/or is not identified to receive the changed network information, the changed network information is not sent to all of the currently running applications. For example, the changed network information is not transmitted to all applications currently running by the "power consumption management unit" control.
It can be understood that in this embodiment, when the display screen is in the off-screen state, as long as the currently running application in the electronic device is not the target application, no changed network information is sent, so that the power consumption of the electronic device in the off-screen state is greatly reduced.
In one embodiment, the method further comprises:
and if the display screen is in a bright screen state and the network information is changed, sending the changed network information to all the applications currently running in the electronic equipment.
In this embodiment, if the display screen is in the bright screen state, it is indicated that the user is using the electronic device at this time, so when there is a change in the network information, the changed network information needs to be sent to all the applications currently running in the electronic device immediately, for example, the changed network information is sent to all the applications currently running through the control of the "power consumption management unit", so as to ensure that each application of the electronic device can run normally to serve the user.
Fig. 3 is a flowchart III of a power consumption optimization method according to an embodiment of the disclosure, and as shown in fig. 3, the power consumption optimization method applied to a terminal further includes the following steps:
s01, acquiring rights requested by each application installed in the electronic equipment and preset grades of each application; wherein the preset level characterizes the necessity of the application to receive changed network information;
s02, if the authority of the application belongs to the preset authority affecting the power consumption, establishing a first corresponding relation between an application identifier of the application and the authority;
s03, establishing a second corresponding relation between the application identifier and the preset grade;
step S12 in fig. 1 includes:
s12a, the application identifier of the application belongs to the application identifier in the first corresponding relation in the currently running application, the preset level corresponding to the application identifier of the application in the second corresponding relation is characterized as the application needing to receive the changed network information, and the application is determined to be the target application of the preset type.
In the embodiment of the disclosure, after each application is installed in the electronic device, the authority requested by each application installed in the electronic device and the preset level of each application can be obtained. For example, the electronic device includes an "application statistics unit" function module, and this unit monitors, through an operating system interface, operations of installing, removing and updating each application program of the electronic device, and once these operations are monitored, reads a system permission list required to be used by an application through an installation package management module of the operating system. When the application is installed in the electronic equipment, an installation package management module in the system of the electronic equipment can read the permissions.
After the rights of the application are read, a filtering can be performed. The goal of the filtering is to determine if the application has requested some rights that would affect power consumption. As mentioned above, the rights to affect power consumption are: acquiring positioning authority, acquiring base station information authority, acquiring base station positioning authority, acquiring current network signal strength authority and the like.
And when the authority of the application belongs to the preset authority affecting the power consumption, establishing a first corresponding relation between the application identifier and the authority of the application. Wherein the application identification comprises at least one of: application name, version information of the application, application number. Table 1 below is a table of correspondence between application identifications and permissions:
table 1 correspondence between application identifications and rights
Rights Application identification
Obtaining positioning authority Hundred degree map, high-De map and drop
Acquiring base station information authority Beautiful ball, drop and tremble
Acquiring positioning authority of base station Beautiful ball, drop and tremble
Acquiring current network signal strength authority Hundred degree map, high-Germany map and WeChat
In addition, in the embodiment of the disclosure, the electronic device also establishes a second correspondence between the identifier of the application and the preset level, for example, the second correspondence is also established based on the "application statistics unit". As described above, each application installed in the electronic device may set a level identification of the necessity of the application to receive the changed network information based on the user's operation or the running environment of the current application. The preset grades can be divided into: "necessary notification class" and "optional notification class", etc. The electronic device may represent the hierarchy with different identifiers, e.g., identify a "necessary notification class" with a "1" and an "optional notification class" with a "0". The present disclosure is not particularly limited with respect to the representation of the preset level. Table 2 below is a table of correspondence between application identifications and levels:
table 2 correspondence between application identifications and levels
Grade Application identification
Necessary notification class Hundred degree map, high-De map and drop
Selectable notification classes WeChan, tremble sound and beautiful ball
Based on the established first corresponding relation and the established second corresponding relation, the electronic device can acquire the first corresponding relation and the second corresponding relation from the application statistics unit through the power consumption management unit, search the first corresponding relation and the second corresponding relation according to the application identifier of the currently running application, and determine the application belonging to the application identified in the first corresponding relation, wherein the preset level in the second corresponding relation is identified as the application which needs to receive the changed network information as the target application.
It can be understood that the method and the device for determining the target application belong to the preset type in the currently running application based on the established first corresponding relation and the second corresponding relation, namely, the target application is determined in a table look-up like manner, and the method and the device have the characteristics of simple scheme and high efficiency.
In one embodiment, the method further comprises:
detecting whether an application in the electronic equipment is updated or not;
if the application is updated, updating the first corresponding relation and the second corresponding relation according to the authority requested by the updated application and a preset level.
In the embodiment of the disclosure, since each application program is installed, removed and updated in the electronic device, for example, the mobile phone deletes the "hundred degree map", the information about the "hundred degree map" in the first corresponding relationship and the second corresponding relationship also needs to be deleted, so that the space required for storing the first corresponding relationship and the second corresponding relationship in the electronic device is reduced.
In addition, when a certain application is newly installed in the electronic device, or the authority of the certain application is updated, and whether the application receives the preset level of the changed network information or not is updated, the information about the application in the first corresponding relation and the second corresponding relation also needs to be updated immediately, so that the electronic device can accurately determine the target application belonging to the preset type in the currently running application.
FIG. 4 is a power consumption optimization apparatus diagram illustrating an example embodiment. Referring to fig. 4, the apparatus includes:
a monitoring module 101 configured to monitor a display screen state of the electronic device and whether network information of the electronic device changes;
the determining module 102 is configured to determine a target application belonging to a preset type in an application currently running in the electronic device if the display screen is in a screen-off state and the network information changes; the target application of the preset type requests permission for influencing power consumption and is identified as an application needing to receive changed network information;
a first sending module 103 is configured to send the changed network information to the target application.
Optionally, the apparatus further includes:
and the prohibition module 104 is configured to prohibit sending the changed network information to all the applications currently running in the electronic device if the display screen is in the screen-off state and the applications currently running in the electronic device do not belong to the target application of the preset type.
Optionally, the apparatus further includes:
and the second sending module 105 is configured to send the changed network information to all the applications currently running in the electronic device if the display screen is in a bright screen state and the network information is changed.
Optionally, the apparatus further includes:
a statistics module 106, configured to obtain rights requested by each application installed in the electronic device, and preset levels of each application; wherein the preset level characterizes the necessity of the application to receive changed network information;
a first establishing module 107, configured to establish a first correspondence between an application identifier of the application and the authority if the authority of the application belongs to an authority that affects power consumption in a preset manner;
a second establishing module 108, configured to establish a second correspondence between the application identifier and the preset level;
the determining module 102 is specifically configured to determine that, in the currently running application, an application identifier of the application belongs to an application identifier in the first corresponding relationship, and a preset level corresponding to the application identifier of the application in the second corresponding relationship is an application that needs to receive changed network information, and determine that the application is the target application of the preset type.
Optionally, the apparatus further includes:
a detection module 109 configured to detect whether an update is present in an application in the electronic device;
and the updating module 110 is configured to update the first corresponding relationship and the second corresponding relationship according to the authority requested by the updated application and a preset level if the application is updated.
Optionally, the network information of the electronic device includes at least one of:
information of a base station supporting the network communication of the electronic device;
network signal strength of the electronic device.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 5 is a block diagram illustrating an electronic device apparatus 800 according to an example embodiment. For example, the device 800 may be a mobile phone, mobile computer, or the like.
Referring to fig. 5, apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the apparatus 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen between the device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the apparatus 800. For example, the sensor assembly 814 may detect an on/off state of the device 800, a relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or one component of the apparatus 800, the presence or absence of user contact with the apparatus 800, an orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the apparatus 800 and other devices, either in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as Wi-Fi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of apparatus 800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform a power consumption optimization method, the method comprising:
monitoring whether the display screen state of the electronic equipment and the network information of the electronic equipment change or not;
if the display screen is in a screen-off state and the network information changes, determining a target application belonging to a preset type in the currently running application in the electronic equipment; the target application of the preset type requests permission for influencing power consumption and is identified as an application needing to receive changed network information;
and sending the changed network information to the target application.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A power consumption optimization method, characterized by being applied to an electronic device, the method comprising:
monitoring whether the display screen state of the electronic equipment and the network information of the electronic equipment change or not;
acquiring rights requested by applications installed in the electronic equipment and preset grades of the applications; wherein the preset level characterizes the necessity of the application to receive changed network information;
if the authority of the application belongs to the preset authority affecting the power consumption, establishing a first corresponding relation between an application identifier of the application and the authority;
establishing a second corresponding relation between the application identifier and the preset grade;
if the display screen is in a screen-off state and the network information changes, determining a target application belonging to a preset type in the currently running application in the electronic equipment; the target application of the preset type requests permission for influencing power consumption and is identified as an application needing to receive changed network information;
the determining a target application belonging to a preset type in the currently running applications in the electronic device includes:
the application identification of the application in the current running application belongs to the application identification in the first corresponding relation, the preset level corresponding to the application identification of the application in the second corresponding relation is characterized as the application needing to receive the changed network information, and the application identification of the application is determined as the target application of the preset type;
and sending the changed network information to the target application.
2. The method according to claim 1, wherein the method further comprises:
and if the display screen is in the screen-off state and the currently running application in the electronic equipment does not belong to the target application of the preset type, prohibiting the changed network information from being sent to all the currently running applications in the electronic equipment.
3. The method according to claim 1, wherein the method further comprises:
and if the display screen is in a bright screen state and the network information is changed, sending the changed network information to all the applications currently running in the electronic equipment.
4. The method according to claim 1, wherein the method further comprises:
detecting whether an application in the electronic equipment is updated or not;
if the application is updated, updating the first corresponding relation and the second corresponding relation according to the authority requested by the updated application and a preset level.
5. The method of claim 1, wherein the network information of the electronic device comprises at least one of:
information of a base station supporting the network communication of the electronic device;
network signal strength of the electronic device.
6. A power consumption optimizing apparatus for use in an electronic device, the apparatus comprising:
the monitoring module is configured to monitor whether the display screen state of the electronic equipment and the network information of the electronic equipment change or not;
the statistics module is configured to acquire the authority requested by each application installed in the electronic equipment and the preset grade of each application; wherein the preset level characterizes the necessity of the application to receive changed network information;
the first establishing module is configured to establish a first corresponding relation between an application identifier of the application and the permission if the permission of the application belongs to the permission which is preset to influence power consumption;
the second establishing module is configured to establish a second corresponding relation between the application identifier and the preset grade;
the determining module is configured to determine a target application belonging to a preset type in the currently running application in the electronic equipment if the display screen is in a screen-off state and the network information changes; the target application of the preset type requests permission for influencing power consumption and is identified as an application needing to receive changed network information;
the determining module is specifically configured to determine that an application identifier of an application belongs to an application identifier in the first corresponding relation in the currently running application, and a preset level corresponding to the application identifier of the application in the second corresponding relation is an application needing to receive changed network information, as a target application of the preset type;
and the first sending module is configured to send the changed network information to the target application.
7. The apparatus of claim 6, wherein the apparatus further comprises:
and the prohibition module is configured to prohibit sending the changed network information to all the applications currently running in the electronic equipment if the display screen is in the screen-off state and the applications currently running in the electronic equipment do not belong to the target application of the preset type.
8. The apparatus of claim 6, wherein the apparatus further comprises:
and the second sending module is configured to send the changed network information to all the applications currently running in the electronic equipment if the display screen is in a bright screen state and the network information is changed.
9. The apparatus of claim 6, wherein the apparatus further comprises:
the detection module is configured to detect whether the application in the electronic equipment is updated or not;
and the updating module is configured to update the first corresponding relation and the second corresponding relation according to the authority requested by the updated application and the preset grade if the application is updated.
10. The apparatus of claim 6, wherein the network information of the electronic device comprises at least one of:
information of a base station supporting the network communication of the electronic device;
network signal strength of the electronic device.
11. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the power consumption optimization method of any one of claims 1 to 5.
12. A non-transitory computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the power consumption optimization method of any one of claims 1-5.
CN202110198934.0A 2021-02-22 2021-02-22 Power consumption optimization method and device, electronic equipment and storage medium Active CN113010000B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110198934.0A CN113010000B (en) 2021-02-22 2021-02-22 Power consumption optimization method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110198934.0A CN113010000B (en) 2021-02-22 2021-02-22 Power consumption optimization method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113010000A CN113010000A (en) 2021-06-22
CN113010000B true CN113010000B (en) 2024-03-26

Family

ID=76406570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110198934.0A Active CN113010000B (en) 2021-02-22 2021-02-22 Power consumption optimization method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113010000B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105228202A (en) * 2015-10-12 2016-01-06 小米科技有限责任公司 Method for connecting network and device
CN105848268A (en) * 2016-05-25 2016-08-10 努比亚技术有限公司 Method and terminal for reducing power consumption
CN106066872A (en) * 2016-05-27 2016-11-02 维沃移动通信有限公司 A kind of data updating management method and electronic equipment
CN106774786A (en) * 2016-11-22 2017-05-31 珠海市魅族科技有限公司 A kind of power consumption control method and device
CN107070816A (en) * 2017-03-31 2017-08-18 北京小米移动软件有限公司 Recognition methods, device and the mobile terminal of application
CN107145214A (en) * 2017-04-28 2017-09-08 努比亚技术有限公司 The method and mobile terminal of application program power consumption management
CN107395889A (en) * 2017-07-28 2017-11-24 广东欧珀移动通信有限公司 Reduce method, apparatus, storage medium and the mobile terminal of mobile terminal power consumption
WO2018034544A1 (en) * 2016-08-18 2018-02-22 삼성전자 주식회사 Communication network connection control method, storage medium, and electronic device therefor
CN107783633A (en) * 2017-09-12 2018-03-09 深圳市金立通信设备有限公司 A kind of method, terminal and computer-readable recording medium for managing application program
WO2018082412A1 (en) * 2016-11-03 2018-05-11 华为技术有限公司 Electronic equipment control method, device and electronic equipment
CN110087287A (en) * 2019-04-23 2019-08-02 努比亚技术有限公司 Terminal searches control method, device, mobile terminal and the storage medium of net
CN110855838A (en) * 2019-11-22 2020-02-28 RealMe重庆移动通信有限公司 Positioning service control method, positioning service control device, mobile terminal and storage medium
CN111290563A (en) * 2015-04-14 2020-06-16 华为技术有限公司 Terminal control method and device and terminal
CN111526529A (en) * 2020-04-30 2020-08-11 维沃移动通信有限公司 Network prompting method and device and electronic equipment
CN111654898A (en) * 2020-06-02 2020-09-11 Tcl通讯(宁波)有限公司 Information display method and device, storage medium and terminal
CN112333763A (en) * 2020-10-26 2021-02-05 维沃移动通信有限公司 Network selection method and device

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111290563A (en) * 2015-04-14 2020-06-16 华为技术有限公司 Terminal control method and device and terminal
CN105228202A (en) * 2015-10-12 2016-01-06 小米科技有限责任公司 Method for connecting network and device
CN105848268A (en) * 2016-05-25 2016-08-10 努比亚技术有限公司 Method and terminal for reducing power consumption
CN106066872A (en) * 2016-05-27 2016-11-02 维沃移动通信有限公司 A kind of data updating management method and electronic equipment
WO2018034544A1 (en) * 2016-08-18 2018-02-22 삼성전자 주식회사 Communication network connection control method, storage medium, and electronic device therefor
WO2018082412A1 (en) * 2016-11-03 2018-05-11 华为技术有限公司 Electronic equipment control method, device and electronic equipment
CN106774786A (en) * 2016-11-22 2017-05-31 珠海市魅族科技有限公司 A kind of power consumption control method and device
CN107070816A (en) * 2017-03-31 2017-08-18 北京小米移动软件有限公司 Recognition methods, device and the mobile terminal of application
CN107145214A (en) * 2017-04-28 2017-09-08 努比亚技术有限公司 The method and mobile terminal of application program power consumption management
CN107395889A (en) * 2017-07-28 2017-11-24 广东欧珀移动通信有限公司 Reduce method, apparatus, storage medium and the mobile terminal of mobile terminal power consumption
CN107783633A (en) * 2017-09-12 2018-03-09 深圳市金立通信设备有限公司 A kind of method, terminal and computer-readable recording medium for managing application program
CN110087287A (en) * 2019-04-23 2019-08-02 努比亚技术有限公司 Terminal searches control method, device, mobile terminal and the storage medium of net
CN110855838A (en) * 2019-11-22 2020-02-28 RealMe重庆移动通信有限公司 Positioning service control method, positioning service control device, mobile terminal and storage medium
CN111526529A (en) * 2020-04-30 2020-08-11 维沃移动通信有限公司 Network prompting method and device and electronic equipment
CN111654898A (en) * 2020-06-02 2020-09-11 Tcl通讯(宁波)有限公司 Information display method and device, storage medium and terminal
CN112333763A (en) * 2020-10-26 2021-02-05 维沃移动通信有限公司 Network selection method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种利用无线地磁节点的智能停车诱导系统;王行甫;及娜;毛续飞;;小型微型计算机系统;20150915;第36卷(第09期);2031-2036 *

Also Published As

Publication number Publication date
CN113010000A (en) 2021-06-22

Similar Documents

Publication Publication Date Title
EP3168745A1 (en) Method, device and system for application updating
CN108040360A (en) The method and apparatus of screen display control
CN110945883B (en) Paging signaling receiving method and device and paging signaling sending method and device
CN106775903B (en) Security policy file updating method and device
CN107885307B (en) Equipment control method and device
CN105094904A (en) Application program installation method and device
CN105511852A (en) Screen display processing method, and device and equipment
CN112672389B (en) Network switching method
CN116069612A (en) Abnormality positioning method and device and electronic equipment
CN113010000B (en) Power consumption optimization method and device, electronic equipment and storage medium
CN105786561B (en) Method and device for calling process
CN112752328A (en) Network control method, device and storage medium
CN111338501A (en) Pressure-sensitive vibration processing method and device, mobile terminal and electronic equipment
CN110879658A (en) Method and device for adjusting display brightness, electronic equipment and storage medium
CN106162612A (en) Control the method and device of Root authority
CN112083841B (en) Information input method, device and storage medium
CN106354595B (en) Mobile terminal, hardware component state detection method and device
CN106127088B (en) Smart machine method for tracing and device
CN106060104B (en) Application management method and device
CN114430370B (en) Method, device, equipment and storage medium for determining network slice
CN114449542B (en) Cell registration method, device and medium
CN105873154B (en) Network access method and device
CN105245517B (en) Locking means, the apparatus and system of application
CN108418878B (en) Notification message pushing method and device, readable storage medium and electronic equipment
CN113873603A (en) Network control method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant