CN113010000A - 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
CN113010000A
CN113010000A CN202110198934.0A CN202110198934A CN113010000A CN 113010000 A CN113010000 A CN 113010000A CN 202110198934 A CN202110198934 A CN 202110198934A CN 113010000 A CN113010000 A CN 113010000A
Authority
CN
China
Prior art keywords
application
network information
electronic device
electronic equipment
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.)
Granted
Application number
CN202110198934.0A
Other languages
Chinese (zh)
Other versions
CN113010000B (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

Images

Classifications

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

Abstract

The disclosure relates to a power consumption optimization method and apparatus, an electronic device, and a storage medium. The method comprises the following steps: monitoring the state of a display screen of the electronic equipment and whether the network information of the electronic equipment changes; if the display screen is in a screen-off state and the network information changes, determining that the target application belongs to a preset type in the currently running applications in the electronic equipment; the preset type target application requests the authority influencing the power consumption and is identified as the application needing to receive the 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 present disclosure relates to the field of electronic devices, and in particular, to a power consumption optimization method and apparatus, an electronic device, and a storage medium.
Background
With the rapid development of electronic technology, electronic devices with display screens, such as smart phones and tablet computers, have become more and more popular.
Due to the increase of the functions of the electronic equipment, a severe test is inevitably brought to the battery endurance 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 becomes an important challenge.
Disclosure of Invention
The disclosure provides a power consumption optimization method and apparatus, an electronic device, and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a power consumption optimization method applied to an electronic device, including:
monitoring the state of a display screen of the electronic equipment and whether the network information of the electronic equipment changes;
if the display screen is in a screen-off state and the network information changes, determining that the target application belongs to a preset type in the currently running applications in the electronic equipment; the preset type target application requests the authority influencing the power consumption and is identified as the application needing to receive the changed network information;
and sending the changed network information to the target application.
Optionally, the method further includes:
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 preset type of target application, forbidding sending of the changed network information to all the currently running applications in the electronic equipment.
Optionally, the method further includes:
and if the display screen is in a bright screen state and the network information changes, sending the changed network information to all applications currently running in the electronic equipment.
Optionally, the method further includes:
acquiring the permission requested by each installed application in the electronic equipment and the preset grade of each application; wherein the preset level represents the necessity of the application to receive the changed network information;
if the authority of the application belongs to the preset authority influencing power consumption, establishing a first corresponding relation between the application identification of the application and the authority;
establishing a second corresponding relation between the application identifier and the preset grade;
the determining of the target application belonging to the preset type in the currently running applications in the electronic device includes:
and determining that the application identifier of the application in the currently running application belongs to the application identifier in the first corresponding relationship, and the corresponding preset grade of the application identifier of the application in the second corresponding relationship is characterized as the application which needs to receive the changed network information, and determining the application as the target application of the preset type.
Optionally, the method further includes:
detecting whether an application in the electronic equipment is updated;
and if the application is updated, updating the first corresponding relationship and the second corresponding relationship 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 electronic device network communication;
a 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 optimization apparatus, applied to an electronic device, including:
the monitoring module is configured to monitor the state of a display screen of the electronic equipment and whether network information of the electronic equipment changes or not;
the determining module is configured to determine a target application which belongs to a preset type in currently running applications in the electronic equipment if the display screen is in a screen-off state and the network information changes; the preset type target application requests the authority influencing the power consumption and is identified as the application needing to receive the changed network information;
a first sending module configured to send the changed network information to the target application.
Optionally, the apparatus further comprises:
and the forbidding module is configured to forbid sending of 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 preset type of target applications.
Optionally, the apparatus further comprises:
and the second sending module is configured to send the changed network information to all applications currently running in the electronic equipment if the display screen is in a bright screen state and the network information changes.
Optionally, the apparatus further comprises:
the statistical module is configured to acquire the authority requested by each application installed in the electronic equipment and the preset level of each application; wherein the preset level represents the necessity of the application to receive the changed network information;
the first establishing module is configured to establish a first corresponding relation between the application identifier of the application and the authority if the authority of the application belongs to the preset authority influencing power consumption;
the second establishing module is configured to establish a second corresponding relation between the application identifier and the preset level;
the determining module is specifically configured to determine that, in the currently running application, an application identifier of the application belongs to the application identifiers in the first corresponding relationship, and a preset level corresponding to the application identifier of the application in the second corresponding relationship represents an application that needs to receive the changed network information, as the target application of the preset type.
Optionally, the apparatus further comprises:
the detection module is configured to detect whether the application in the electronic equipment is updated;
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 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 electronic device network communication;
a network signal strength of the electronic device.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
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 including:
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 have the following beneficial effects:
in the embodiment of the disclosure, when the display screen of the electronic device is in the screen-off state and the network information of the electronic device changes, the electronic device may determine that a target application belonging to a preset type in currently running applications, 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 to influence the power consumption authority and belongs to the network information needing to be received, namely send the changed network information to the target application which needs to receive the changed network information, so that the information sending is more targeted and finer; on the other hand, when the electronic device is in the screen-off state, the changed network information is only sent to part of the target applications in the applications currently running in the electronic device, and all running applications do not need to be awakened, so that the power consumption of the electronic device 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 present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a first flowchart of a power consumption optimization method according to an embodiment of the present disclosure.
Fig. 2 is a flowchart of a power consumption optimization method shown in the embodiment of the present disclosure.
Fig. 3 is a flowchart of a power consumption optimization method shown in the embodiment of the present disclosure.
Fig. 4 is a diagram illustrating a power consumption optimization device, according to 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 the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart of a power consumption optimization method shown in 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 the state of a display screen of the electronic equipment and whether the network information of the electronic equipment changes;
s12, if the display screen is in the screen-off state and the network information changes, determining that the target application belongs to a preset type in the currently running applications in the electronic equipment; the preset type target application requests the authority influencing the power consumption and is identified as the application needing to receive the 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 mobile phone, a tablet computer, or a wearable device, etc. The stationary device includes, but is not limited to, a 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 in a dormant state, the display screen is in a screen-off state. In addition, the electronic device may further include a Wireless communication module, for example, a Wireless Fidelity (Wi-Fi) module, and the electronic device may perform information interaction with other devices in the local area network based on the Wi-Fi module. However, when the position of the electronic device changes, or the electronic device happens to be located at the border of the adjacent cell base station, handover of the operator cell base station, change of signal strength, and the like may be caused. The handover of the cell base station, the change of the signal strength, and the like all belong to the change of network information.
In step S11, the electronic device monitors whether the display screen state and the network information of the electronic device change, and in steps S12 to S13, when it is detected that the display screen is in the screen-off state and the network information changes, further determines a target application among applications currently running in the electronic device, and sends only the changed network information to the target application. Wherein the target application requests permission to affect power consumption and is identified as the application that needs to receive the changed network information.
In the embodiment of the present disclosure, when determining the display screen state, the electronic device may monitor, for example, a change in the screen state in real time based on the operating system interface through a "screen state monitoring unit" function module included in the electronic device. When the electronic device determines whether the network information changes, for example, a "network management unit" function module of the electronic device may monitor whether the network information changes. Based on the monitoring of the state of the display screen and the monitoring of whether the network information changes, the electronic device can acquire that the screen state is in the screen-off state from the screen state monitoring unit through the function module of the power consumption management unit, determine the target application and only send the changed network information to the target application.
It should be noted that, when the target application requests the permission to influence the power consumption, the target application may have a large influence on the power consumption of the electronic device when executing the function after requesting to acquire some permissions. In an embodiment of the disclosure, the authority affecting power consumption includes: the method comprises the steps of obtaining a positioning authority, obtaining a base station information authority, obtaining a base station positioning authority or obtaining a current network signal strength authority and the like.
In an embodiment 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 an operation of a user. For example, after the application is successfully installed in the electronic device for the first time, the electronic device automatically pops up a "whether to receive the changed network information" box for the user to set, 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 electronic device network communication;
a network signal strength of the electronic device.
In an embodiment of the present disclosure, applications currently running in an electronic device include applications running in different running environments, where the running environments include: foreground running or background running. The electronic device may include an "application state monitoring unit" that may acquire the current survival state, foreground state, and background state of each application through an operating system interface. For example, the electronic device can monitor whether an application is open, whether a process of the application is closed, etc. to determine the survival status of the application; alternatively, monitoring whether an interface of the application is displayed on a display screen of the electronic device, operable, etc. determines a foreground or background state of the application. The electronic equipment comprises a power consumption management unit functional module which can acquire the currently running application from an application state monitoring unit.
In addition, in the embodiment 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 currently running application in the mobile phone runs in the foreground, the currently running application is identified as an application that needs to receive the changed network information, and when the currently running application in the mobile phone runs in the background, the currently running application is identified as an application that does not need to receive the changed network information.
Since the electronic device may be in the screen-off state for a long time during the daily use of the electronic device. When the electronic device is in the screen-off state, the user is likely not to use the electronic device, and therefore power consumption of the electronic device in the screen-off state needs to be reduced as much as possible, and the phenomenon of electric quantity waste is reduced. In consideration of the fact that when the electronic device is in the screen-off state, the electronic device still wakes up each application currently running in the electronic device when monitoring that the network information changes and sends the changed network information to each application, the problem of high power consumption exists. Furthermore, in many cases, the electronic device may only be right at the border of the neighboring cell base stations, resulting in frequent changes of the network information. After monitoring the frequently-changed network information, the electronic device also frequently sends the changed network information to each application, thereby causing a large power loss.
In contrast, according to the method and the device, when the display screen of the electronic device is in the screen-off state and the network information of the electronic device changes, the target application which belongs to the preset type in the currently running applications is determined in advance, and the changed network information is sent to the target application. On one hand, the method and the device send the changed network information to the target application which requests to influence the power consumption authority and belongs to the network information needing to be received, namely send the changed network information to the target application which needs to receive the changed network information, so that the information sending is more targeted and finer; on the other hand, when the electronic device is in the screen-off state, the changed network information is only sent to part of the target applications in the currently running applications of the electronic device, and all running applications do not need to be awakened, so that the power consumption of the electronic device can be reduced, and the use experience of a user is improved.
Fig. 2 is a flowchart of a power consumption optimization method shown in the embodiment of the present disclosure, and as shown in fig. 2, the power consumption optimization method applied to the terminal includes the following further steps:
and 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 preset type of target application, prohibiting sending the changed network information 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 the currently running applications in the electronic device do not belong to the preset type of target applications, that is, the currently running applications in the electronic device do not request the right to affect the power consumption and/or are not identified to receive the changed network information, the changed network information is not sent to all the currently running applications. For example, the changed network information is not sent to all the applications currently running under the control of the power consumption management unit.
It can be understood that, in this embodiment, when the display screen is in the screen-off state, the changed network information is not sent as long as none of the applications currently running in the electronic device is the target application, so that power consumption of the electronic device in the screen-off 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 changes, sending the changed network information to all applications currently running in the electronic equipment.
In this embodiment, if the display screen is in a bright screen state, it indicates that the user is using the electronic device at this time, and therefore when there is a change in the network information, the changed network information needs to be sent to all applications currently running in the electronic device in real time, for example, the changed network information is sent to all applications currently running through the control of the "power consumption management unit" to ensure that each application of the electronic device can run normally to serve the user.
Fig. 3 is a flowchart of a power consumption optimization method shown in the embodiment of the present disclosure, and as shown in fig. 3, the power consumption optimization method applied to the terminal further includes the following steps:
s01, acquiring the permission requested by each installed application in the electronic equipment and the preset level of each application; wherein the preset level represents the necessity of the application to receive the changed network information;
s02, if the authority of the application belongs to the preset authority influencing power consumption, establishing a first corresponding relation between the application identifier of the application and the authority;
s03, establishing a second corresponding relation between the application identification and the preset grade;
step S12 in fig. 1, includes:
s12a, determining that, in the currently running application, the application identifier of the application belongs to the application identifier in the first corresponding relationship, and the preset level of the application identifier of the application in the second corresponding relationship is an application that needs to receive the changed network information, and the application is the target application of the preset type.
In the embodiment of the disclosure, after each application is installed in the electronic device, the permission requested by each installed application in the electronic device and the preset level of each application can be acquired. For example, the electronic device includes an "application statistics unit" function module, and the unit monitors operations of installing, removing, and updating each application program of the electronic device through an operating system interface, and once it is monitored that the operations are completed, 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, the installation package management module in the system of the electronic equipment can read the permissions.
After the rights of the application are read, filtering may be performed once. The goal of filtering is to determine whether the application has requested some rights that would affect power consumption. As previously mentioned, the rights affecting power consumption are: the method comprises the steps of obtaining a positioning authority, obtaining a base station information authority, obtaining a base station positioning authority, obtaining a current network signal strength authority and the like.
And when the authority of the application belongs to the preset authority influencing the power consumption, establishing a first corresponding relation between the application identifier of the application and the authority. Wherein the application identification comprises at least one of: application name, version information of the application, and application number. The following table 1 is a table of correspondence between application identifiers and permissions:
TABLE 1 correspondence between application identification and Authority
Authority Application identification
Obtaining positioning rights Baidu map, Gaode map and Didi
Obtaining base station information authority Beautifying, dripping and trembling
Obtaining base station positioning authority Beautifying, dripping and trembling
Obtaining current network signal strength authority Baidu map, Gaode map and WeChat
In addition, in the embodiment of the present disclosure, the electronic device further establishes a second corresponding relationship between the identifier of the application and the preset level, for example, the second corresponding relationship is also established based on the "application statistics unit". As described above, each application installed in the electronic device may set the level identification of the necessity of the application to receive the changed network information based on the operation of the user or the execution environment of the current application. Wherein, the preset grade can be divided into: "necessary notification class" and "optional notification class", etc. The electronic device may represent the hierarchy with different identifiers, for example, a "necessary notification class" is identified with a "1" and an "optional notification class" is identified with a "0". The present disclosure is not particularly limited with respect to the manner of representation of the preset level. The following table 2 is a table of correspondence between application identifiers and ranks:
TABLE 2 correspondence between application identification and level
Grade Application identification
Classes of required notifications Baidu map, Gaode map and Didi
Optional notification classes WeChat, tremble, beauty ball
Based on the established first corresponding relationship and the second corresponding relationship, the electronic device can obtain the first corresponding relationship and the second corresponding relationship from the application counting unit through the power consumption management unit, search in the first corresponding relationship and the second corresponding relationship according to the application identification of the currently running application, and determine the application which belongs to the identification in the first corresponding relationship and is identified as the application which needs to receive the changed network information in the second corresponding relationship as the target application.
It can be understood that, the present disclosure determines the target application belonging to the preset type in the currently running applications based on the established first corresponding relationship and the second corresponding relationship, that is, determines the target application by a table look-up-like manner, and has 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;
and if the application is updated, updating the first corresponding relationship and the second corresponding relationship according to the authority requested by the updated application and a preset level.
In the embodiment of the disclosure, since each application is installed, removed, and updated in the electronic device, for example, the mobile phone deletes the "Baidu map", information about the "Baidu map" in the first corresponding relationship and the second corresponding relationship also needs to be deleted, so as to reduce a space required for storing the first corresponding relationship and the second corresponding relationship in the electronic device.
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 is updated, the information about the application in the first corresponding relationship and the second corresponding relationship also needs to be updated immediately, so that the electronic device can accurately determine the target application which belongs to the preset type in the currently running application.
Fig. 4 is a diagram illustrating a power consumption optimization device, according to an example embodiment. Referring to fig. 4, the apparatus includes:
the monitoring module 101 is 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 currently running applications in the electronic device if the display screen is in a screen-off state and the network information changes; the preset type target application requests the authority influencing the power consumption and is identified as the application needing to receive the changed network information;
a first sending module 103 configured to send the changed network information to the target application.
Optionally, the apparatus further comprises:
the prohibiting module 104 is configured to prohibit sending of the changed network information to all 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 preset type of target application.
Optionally, the apparatus further comprises:
the second sending module 105 is configured to send the changed network information to all applications currently running in the electronic device if the display screen is in a bright screen state and the network information changes.
Optionally, the apparatus further comprises:
a statistic module 106 configured to obtain a permission requested by each application installed in the electronic device and a preset level of each application; wherein the preset level represents the necessity of the application to receive the changed network information;
a first establishing module 107, configured to establish a first corresponding relationship between the application identifier of the application and the authority if the authority of the application belongs to a preset authority affecting power consumption;
a second establishing module 108 configured to establish a second corresponding relationship 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 the application identifiers in the first corresponding relationship, and a preset level corresponding to the application identifier of the application in the second corresponding relationship represents an application that needs to receive the changed network information, as the target application of the preset type.
Optionally, the apparatus further comprises:
a detection module 109 configured to detect whether an application in the electronic device is updated;
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 electronic device network communication;
a network signal strength of the electronic device.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a block diagram illustrating an electronic device apparatus 800 in accordance with an example embodiment. For example, the device 800 may be a mobile phone, a mobile computer, etc.
Referring to fig. 5, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction 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 operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile 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 disks.
Power components 806 provide power to the various components of 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 that provides an output interface between the device 800 and a user. 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating 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 a focal length and optical zoom capability.
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 apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also 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 keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the 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 a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object 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 gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices 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 an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an 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, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a power consumption optimization method, the method comprising:
monitoring the state of a display screen of the electronic equipment and whether the network information of the electronic equipment changes;
if the display screen is in a screen-off state and the network information changes, determining that the target application belongs to a preset type in the currently running applications in the electronic equipment; the preset type target application requests the authority influencing the power consumption and is identified as the application needing to receive the 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 variations, uses, or adaptations of the disclosure following, in general, the 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 will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. A power consumption optimization method is applied to an electronic device, and the method comprises the following steps:
monitoring the state of a display screen of the electronic equipment and whether the network information of the electronic equipment changes;
if the display screen is in a screen-off state and the network information changes, determining that the target application belongs to a preset type in the currently running applications in the electronic equipment; the preset type target application requests the authority influencing the power consumption and is identified as the application needing to receive the changed network information;
and sending the changed network information to the target application.
2. The method of claim 1, further comprising:
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 preset type of target application, forbidding sending of the changed network information to all the currently running applications in the electronic equipment.
3. The method of claim 1, further comprising:
and if the display screen is in a bright screen state and the network information changes, sending the changed network information to all applications currently running in the electronic equipment.
4. The method of claim 1, further comprising:
acquiring the permission requested by each installed application in the electronic equipment and the preset grade of each application; wherein the preset level represents the necessity of the application to receive the changed network information;
if the authority of the application belongs to the preset authority influencing power consumption, establishing a first corresponding relation between the application identification of the application and the authority;
establishing a second corresponding relation between the application identifier and the preset grade;
the determining of the target application belonging to the preset type in the currently running applications in the electronic device includes:
and determining that the application identifier of the application in the currently running application belongs to the application identifier in the first corresponding relationship, and the corresponding preset grade of the application identifier of the application in the second corresponding relationship is characterized as the application which needs to receive the changed network information, and determining the application as the target application of the preset type.
5. The method of claim 4, further comprising:
detecting whether an application in the electronic equipment is updated;
and if the application is updated, updating the first corresponding relationship and the second corresponding relationship according to the authority requested by the updated application and a preset level.
6. 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 electronic device network communication;
a network signal strength of the electronic device.
7. An apparatus for optimizing power consumption, applied to an electronic device, the apparatus comprising:
the monitoring module is configured to monitor the state of a display screen of the electronic equipment and whether network information of the electronic equipment changes or not;
the determining module is configured to determine a target application which belongs to a preset type in currently running applications in the electronic equipment if the display screen is in a screen-off state and the network information changes; the preset type target application requests the authority influencing the power consumption and is identified as the application needing to receive the changed network information;
a first sending module configured to send the changed network information to the target application.
8. The apparatus of claim 7, further comprising:
and the forbidding module is configured to forbid sending of 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 preset type of target applications.
9. The apparatus of claim 7, further comprising:
and the second sending module is configured to send the changed network information to all applications currently running in the electronic equipment if the display screen is in a bright screen state and the network information changes.
10. The apparatus of claim 7, further comprising:
the statistical module is configured to acquire the authority requested by each application installed in the electronic equipment and the preset level of each application; wherein the preset level represents the necessity of the application to receive the changed network information;
the first establishing module is configured to establish a first corresponding relation between the application identifier of the application and the authority if the authority of the application belongs to the preset authority influencing power consumption;
the second establishing module is configured to establish a second corresponding relation between the application identifier and the preset level;
the determining module is specifically configured to determine that, in the currently running application, an application identifier of the application belongs to the application identifiers in the first corresponding relationship, and a preset level corresponding to the application identifier of the application in the second corresponding relationship represents an application that needs to receive the changed network information, as the target application of the preset type.
11. The apparatus of claim 10, further comprising:
the detection module is configured to detect whether the application in the electronic equipment is updated;
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 a preset level if the application is updated.
12. The apparatus of claim 7, wherein the network information of the electronic device comprises at least one of:
information of a base station supporting the electronic device network communication;
a network signal strength of the electronic device.
13. 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 6.
14. A non-transitory computer readable storage medium, instructions in which, when executed by a processor of an electronic device, enable the electronic device to perform the power consumption optimization method of any of claims 1 to 6.
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 true CN113010000A (en) 2021-06-22
CN113010000B 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
王行甫;及娜;毛续飞;: "一种利用无线地磁节点的智能停车诱导系统", 小型微型计算机系统, vol. 36, no. 09, 15 September 2015 (2015-09-15), pages 2031 - 2036 *

Also Published As

Publication number Publication date
CN113010000B (en) 2024-03-26

Similar Documents

Publication Publication Date Title
CN107040591B (en) Method and device for controlling client
CN110945883B (en) Paging signaling receiving method and device and paging signaling sending method and device
CN110383887B (en) Cell reselection method and device
CN110262692B (en) Touch screen scanning method, device and medium
CN112770341A (en) Calling method and device
CN115002851B (en) Cell control method and device of terminal, electronic equipment and storage medium
CN107885307B (en) Equipment control method and device
CN109314902B (en) Access control method, device and storage medium
CN107436782B (en) Application silent installation method and device
CN112752328B (en) Network control method, device and storage medium
CN105786561B (en) Method and device for calling process
CN113010000B (en) Power consumption optimization method and device, electronic equipment and storage medium
CN106060104B (en) Application management method and device
CN114430370B (en) Method, device, equipment and storage medium for determining network slice
CN113873603A (en) Network control method, device and storage medium
CN108418878B (en) Notification message pushing method and device, readable storage medium and electronic equipment
CN113727248A (en) Method, device and medium for playing audio by loudspeaker
CN112817844A (en) Background process residence test method, device, equipment and storage medium
CN107894902B (en) Equipment control method and device
CN112083841A (en) Information input method, device and storage medium
CN112738833B (en) Network information updating method and device
US20240121592A1 (en) Method for suspending service and method for indicating suspension
CN114449542B (en) Cell registration method, device and medium
CN111274590B (en) Request processing method and device, electronic equipment and storage medium
CN110291815B (en) Method, device and medium for improving service continuity

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