CN116054297B - Charging method and device and electronic equipment - Google Patents

Charging method and device and electronic equipment Download PDF

Info

Publication number
CN116054297B
CN116054297B CN202210602149.1A CN202210602149A CN116054297B CN 116054297 B CN116054297 B CN 116054297B CN 202210602149 A CN202210602149 A CN 202210602149A CN 116054297 B CN116054297 B CN 116054297B
Authority
CN
China
Prior art keywords
application
power consumption
module
charging
electronic device
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
CN202210602149.1A
Other languages
Chinese (zh)
Other versions
CN116054297A (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210602149.1A priority Critical patent/CN116054297B/en
Publication of CN116054297A publication Critical patent/CN116054297A/en
Application granted granted Critical
Publication of CN116054297B publication Critical patent/CN116054297B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/007188Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters
    • H02J7/007192Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters in response to temperature
    • H02J7/007194Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters in response to temperature of the battery
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • H01M10/443Methods for charging or discharging in response to temperature
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00036Charger exchanging data with battery
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0063Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with circuits adapted for supplying loads from the battery
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0068Battery or charger load switching, e.g. concurrent charging and load supply
    • 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
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Abstract

The embodiment of the application provides a charging method, a charging device and electronic equipment. The method comprises the following steps: the electronic device determines a first application while charging. The first application is a foreground-running application. The electronic equipment determines a power consumption model corresponding to the first application, and adjusts charging power and/or self power consumption according to the power consumption model. The electronic device may determine the charging power to be used and/or the manner in which to limit its own power consumption by a power consumption model when charging. Therefore, the electronic equipment can be charged in a mode of reducing the charging power in advance and/or limiting the power consumption before the battery temperature reaches the temperature threshold value, so that the battery temperature is prevented from reaching the temperature threshold value, and damage to the battery is avoided.

Description

Charging method and device and electronic equipment
Technical Field
The embodiment of the application relates to the technical field of electronic equipment, in particular to a charging method and device and electronic equipment.
Background
The user can charge the electronic equipment while using the electronic equipment so as to avoid the influence on normal use caused by low or exhausted electric quantity of the electronic equipment. The electronic device generates corresponding power consumption when running an application used by a user, and the power consumption can cause temperature rise of the electronic device. Meanwhile, the charging circuit of the electronic equipment also generates charging heat, so that the temperature rise of the electronic equipment is increased, and the battery temperature of the electronic equipment is easily caused to be too high. Excessive battery temperature can affect the charge and discharge performance of an electronic device, for example, by disrupting chemical equilibrium within the battery, resulting in battery capacity degradation, even explosions, and the like.
In order to avoid the situation that the battery temperature of the electronic equipment is too high when the electronic equipment is used while being charged, the electronic equipment detects the current battery temperature in real time, so that when the battery temperature reaches a threshold value, the charging current is reduced, the charging heat generated by a charging circuit is reduced, and the battery temperature of the electronic equipment is reduced. However, when the electronic device detects that the charging current needs to be reduced, the battery temperature of the electronic device is already high, and the charging current is reduced at this time, so that the cooling speed of the electronic device is also slow, and therefore, the manner of adjusting the charging current according to the current battery temperature of the electronic device cannot effectively control the battery temperature of the electronic device.
Disclosure of Invention
The embodiment of the application provides a charging method, a charging device and electronic equipment, so that the battery temperature of the electronic equipment when the electronic equipment is used for running an application while charging is effectively controlled.
In a first aspect, embodiments of the present application provide a charging method. The method comprises the following steps: when the electronic equipment is charged, a first application is determined, and the first application is an application running in the foreground. The electronic device determines a power consumption model corresponding to the first application. The electronic device adjusts the charging power and/or its own power consumption according to the power consumption model.
According to the method, when the electronic equipment is charged, the charging power to be used can be determined through the power consumption model, and/or the self power consumption is limited. Therefore, the electronic equipment can be charged in a mode of pre-using the determined charging power and/or limiting the power consumption before the battery temperature reaches the temperature threshold value, so that the battery temperature is prevented from reaching the temperature threshold value, and damage to the battery is avoided.
In one implementation, the power consumption model includes a correspondence between an application and power consumption, and the electronic device adjusting the charging power according to the power consumption model includes: and the electronic equipment predicts and obtains the first power consumption corresponding to the first application according to the power consumption model. The first power consumption is power consumption to be generated by the first application within a specified period of time. The electronic device reduces the charging power according to the first power consumption. According to the method, when the electronic equipment runs the application while charging, the power consumption to be generated by the first application can be predicted, and the charging power is reduced in advance according to the power consumption before the battery temperature of the electronic equipment reaches the temperature threshold value, so that the charging heat generation is reduced, the overall heat generated by the power consumption generated by running the application and the charging heat generated by charging on the electronic equipment is effectively controlled, the battery temperature of the electronic equipment is further effectively controlled, and the battery temperature is prevented from reaching the temperature threshold value.
In one implementation, the electronic device also obtains a second power consumption while charging. The second power consumption is a current power consumption of the first application. The electronic device adjusts the charging power according to the power consumption model, comprising: the electronic device adjusts the charging power according to the weighted value of the first power consumption and the second power consumption. According to the method, the electronic equipment combines the power consumption to be generated by the first application in the current use process, namely the first power consumption, and the actual power consumption of the first application in the current use process to date, namely the second power consumption, to determine the charging power to be used, and the obtained charging power is determined to integrate the historical performance and the current actual performance of the first application, so that the reliability is higher, and the accurate control of the battery temperature is facilitated.
In one implementation, the electronic device, while charging, also determines the second application and the first module. The second application is an application running in the background, and the first module is a hardware module that currently generates power consumption. The power consumption model comprises an association relation between the first application and other applications and a dependency relation between the first application and the module. The association relation is a calling relation of calling other applications by the first application, and the electronic device adjusts self power consumption according to the power consumption model, and comprises the following steps: and the electronic equipment determines at least one third application and at least one second module according to the power consumption model, wherein the third application is an application which has no association relation with the first application in the second application, and the second module is a module which has no dependence relation with the first application in the first module. The electronic device shuts down the third application and/or limits the power to the second module. According to the method, when the electronic equipment runs the application while charging, the application which has no association with the first application can be exited, and/or the power supply to the module which has no association with the first application is limited, so that the application and the module can be prevented from generating additional power consumption to the electronic equipment, the battery temperature of the electronic equipment can be effectively controlled, and the battery temperature can be prevented from reaching the temperature threshold.
In one implementation, an electronic device determines at least one third application and at least one second module according to a power consumption model, comprising: the electronic device determines a fourth application in the second application and determines a third module in the first module according to the power consumption model. The fourth application is an application with an association relation with the first application, and the third module is a module with an association relation with the first application. The electronic device determines a third application according to the second application and the fourth application, and determines a second module according to the first module and the third module. The third application is an application except the fourth application in the second application, and the second module is a module except the third module in the first module. According to the method, the electronic equipment can quickly and accurately determine the fourth application with the association relation with the first application and the third module with the dependency relation with the first application according to the pre-established power consumption model. Furthermore, the third application which has no association relation with the first application in the second application and the second module which has no dependency relation with the first application in the first module are rapidly and accurately determined.
In one implementation, the electronic device limiting power to the second module includes: the electronic device reduces the supply current to the second module or the electronic device disconnects the supply of power to the second module. According to the method, the electronic device can flexibly adjust the power supply mode based on the dependence degree between the first application and the second module, for example, by reducing the power supply current to keep the basic function of the corresponding module, and by disconnecting the power supply, the power consumption of the corresponding module is avoided.
In one implementation, the electronic device turns off the third application and/or limits power to the second module, including: the electronic device closes the fifth application and/or limits the power supply to the fourth module. The fifth application comprises i applications with the history power consumption from high to low in the third application, i is a positive integer greater than 0, the fourth module comprises j modules with the history power consumption from high to low in the second module, and j is a positive integer greater than 0. According to the method, the electronic equipment does not need to exit all fifth applications at one time and/or limit the power supply to all fourth modules at one time so as to keep part of the fifth applications for direct use by users, thereby simplifying the operation steps of the users for starting the part of the fifth applications and keeping the normal power supply of the part of the fourth modules, further ensuring the normal operation of the part of the fourth modules and enabling the users to normally experience the functions realized by the part of the fourth modules.
In one implementation, the charging method further includes: and the electronic equipment establishes a power consumption model according to the historical operation data of the first application. The historical operating data of the first application includes at least one of: the method comprises the steps of operating frequency of a first application, increasing the overall power consumption of the electronic device by the first application during operation, dependency of the first application on each hardware module, association degree of the first application and other applications, and generating the power consumption module during operation of the first application. According to the method, the electronic equipment can pre-establish the power consumption model corresponding to the first application so as to directly use the power consumption model during charging, thereby improving the efficiency and accuracy of adjusting the charging power and/or the self power consumption.
In one implementation, the power consumption model is a neural network model, an array, a linked list, or a class. According to the method, the model type for building the power consumption model can be flexibly selected.
In a second aspect, embodiments of the present application provide a charging device. The charging device includes: the first determining unit is used for determining a first application when charging, wherein the first application is an application running in the foreground. And the second determining unit is used for determining a power consumption model corresponding to the first application. And the processing unit is used for adjusting the charging power and/or the self power consumption according to the power consumption model.
According to the charging device provided by the embodiment of the application, when the electronic equipment is charged, the charging power to be used and/or the way of limiting the power consumption of the electronic equipment can be determined through the power consumption model. Therefore, the electronic equipment can be charged in a mode of pre-using the determined charging power and/or limiting the power consumption before the battery temperature reaches the temperature threshold value, so that the battery temperature is prevented from reaching the temperature threshold value, and damage to the battery is avoided.
In one implementation, the power consumption model includes a correspondence between an application and power consumption, and the processing unit is configured to predict, according to the power consumption model, first power consumption corresponding to the first application in a process of adjusting the charging power according to the power consumption model. The first power consumption is power consumption to be generated by the first application within a specified period of time. The processing unit is further configured to reduce the charging power according to the first power consumption. Therefore, when the electronic equipment runs the application while charging, the power consumption to be generated by the first application can be predicted, and the charging power is reduced in advance according to the power consumption before the battery temperature of the electronic equipment reaches the temperature threshold value, so that the charging heat generation is reduced, the whole heat generated by the power consumption generated by running the application and the charging heat generated by charging to the electronic equipment is effectively controlled, the battery temperature of the electronic equipment is further effectively controlled, and the battery temperature is prevented from reaching the temperature threshold value.
In one implementation, the first determining unit is further configured to obtain a second power consumption when the electronic device is charged, where the second power consumption is a current power consumption of the first application. And in the process of adjusting the charging power by the processing unit according to the power consumption model, the processing unit is used for adjusting the charging power according to the weighted values of the first power consumption and the second power consumption. In this way, the electronic device determines the charging power to be used in combination with the power consumption to be generated by the first application in the current use process, namely, the first power consumption, and the actual power consumption of the first application up to now in the current use process, namely, the second power consumption, and determines the obtained charging power to integrate the historical performance and the current actual performance of the first application, so that the reliability is higher, and the battery temperature is more favorably and accurately controlled.
In one implementation, the first determining unit is further configured to determine, when the electronic device is being charged, a second application and a first module, where the second application is an application running in the background, and the first module is a hardware module that currently generates power consumption. The power consumption model comprises an incidence relation between the first application and other applications and a dependency relation between the first application and the module, wherein the incidence relation is a calling relation of the first application for calling the other applications. In the process of regulating the self power consumption by the processing unit according to the power consumption model, the processing unit is used for determining at least one third application and at least one second module according to the power consumption model, wherein the third application is an application which has no association relation with the first application in the second application, and the second module is a module which has no dependence relation with the first application in the first module. The processing unit is further adapted to shut down the third application and/or to limit the power supply to the second module. Therefore, when the electronic equipment runs the application while charging, the application which has no association relation with the first application can be exited, and/or the power supply to the module which has no association relation with the first application is limited, so that the application and the module can be prevented from generating additional power consumption to the electronic equipment, the battery temperature of the electronic equipment can be effectively controlled, and the battery temperature can be prevented from reaching a temperature threshold value.
In one implementation manner, in the process that the processing unit determines at least one third application and at least one second module according to the power consumption model, the first determining unit is configured to determine a fourth application in the second application according to the power consumption model, and determine a third module in the first module, where the fourth application is an application having an association relationship with the first application, and the third module is a module having a dependency relationship with the first application. The first determining unit is further configured to determine a third application according to the second application and the fourth application, and determine a second module according to the first module and the third module, where the third application is an application in the second application except the fourth application, and the second module is a module in the first module except the third module. In this way, the electronic device can quickly and accurately determine the fourth application with the association relation with the first application and the third module with the dependency relation with the first application according to the pre-established power consumption model. Furthermore, the third application which has no association relation with the first application in the second application and the second module which has no dependency relation with the first application in the first module are rapidly and accurately determined.
In one implementation, the processing unit is configured to reduce a current of the power supply to the second module or disconnect the power supply to the second module during the process of limiting the power supply to the second module. In this way, the electronic device can flexibly adjust the power supply mode based on the dependency degree between the first application and the second module, for example, by reducing the power supply current to keep the basic function of the corresponding module, and by disconnecting the power supply, the power consumption of the corresponding module is avoided.
In one implementation, during the process of closing the third application and/or limiting the power supply to the second module, the processing unit is configured to close the fifth application and/or limit the power supply to the fourth module, where the fifth application includes i applications with historical power consumption from high to low in the at least third application and top in the first order, i is a positive integer greater than 0, and the fourth module includes j modules with historical power consumption from high to low and top in the at least second module, and j is a positive integer greater than 0. Therefore, the electronic equipment does not need to exit all fifth applications at one time and/or limit the power supply to all fourth modules at one time so as to reserve part of the fifth applications for direct use by users, thereby simplifying the operation steps of the users for starting the part of the fifth applications and reserving the normal power supply of the part of the fourth modules, further ensuring the normal operation of the part of the fourth modules and enabling the users to normally experience the functions realized by the part of the fourth modules.
In one implementation, the charging device further includes a building unit, where the building unit is configured to build a power consumption model according to historical operating data of the first application. The historical operating data of the first application includes at least one of: the method comprises the steps of operating frequency of a first application, increasing the overall power consumption of the electronic device by the first application during operation, dependency of the first application on each hardware module, association degree of the first application and other applications, and generating the power consumption module during operation of the first application. In this way, the electronic device may pre-establish the power consumption model corresponding to the first application, so as to directly use the power consumption model during charging, thereby improving efficiency and accuracy of adjusting the charging power and/or self power consumption.
In one implementation, the power consumption model is a neural network model, an array, a linked list, or a class. In this way, the model type of the power consumption model can be flexibly selected.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory; the memory stores program instructions that, when executed by the processor, cause the electronic device to perform the methods of the above aspects and their various implementations.
In a fourth aspect, embodiments of the present application further provide a chip system, where the chip system includes a processor and a memory, and the memory stores program instructions that, when executed by the processor, cause the chip system to perform the method in each of the above aspects and their respective implementations. For example, information related to the above method is generated or processed.
In a fifth aspect, embodiments of the present application further provide a computer-readable storage medium, in which program instructions are stored, which when run on a computer, cause the computer to perform the methods of the above aspects and their respective implementations.
In a sixth aspect, embodiments of the present application also provide a computer program product which, when run on a computer, causes the computer to perform the methods of the above aspects and their respective implementations.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2 is a flowchart of a charging method 200 provided in an embodiment of the present application;
fig. 3 is a flowchart of a charging method 300 provided in a first embodiment of the present application;
fig. 4 is a schematic diagram of a change of battery temperature of an analog mobile phone in different usage scenarios and charging modes according to an embodiment of the present application;
fig. 5 is a flowchart of a charging method 500 provided in a second embodiment of the present application;
fig. 6 is a flowchart of a charging method 600 provided in a third embodiment of the present application;
fig. 7 is a flowchart of a charging method 700 provided in a fourth embodiment of the present application;
fig. 8 is a flowchart of a charging method 800 provided in a fifth embodiment of the present application;
fig. 9 is a schematic structural diagram of a charging device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of another charging device according to an embodiment of the present application.
Detailed Description
The terms first, second, third and the like in the description and in the claims and drawings are used for distinguishing between different objects and not for limiting the specified sequence.
In the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
The terminology used in the description of the embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application, as will be described in detail with reference to the accompanying drawings.
In this embodiment of the present application, the electronic device may be a mobile phone, a tablet computer, an intelligent wearable device (such as a watch, a virtual reality VR glasses, etc.), and so on. Fig. 1 is a schematic hardware structure of an electronic device according to an embodiment of the present application. As shown in fig. 1, the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, a SIM card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It will be appreciated that the structure illustrated in fig. 1 does not constitute a specific limitation on the electronic device. In another embodiment of the present application, an electronic device may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (Application Processor, AP), a Modem (Modem), a graphics processor (Graphics Processing Unit, GPU), an image signal processor (Image Signal Processor, ISP), a controller, a video codec, a digital signal processor (Digital Signal Processor, DSP), a baseband processor, and/or a Neural network processor (Neural-network Processing Unit, NPU), etc. The different processing units may be separate devices or may be integrated in one or more processors.
The charge management module 140 is configured to receive a charge input from a charger. The charger may be a wireless charger or a wired charger.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like.
The wireless communication function of the electronic device may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied on an electronic device.
The wireless communication module 160 may provide solutions for wireless communication including WLAN (e.g., wi-Fi network), BT, global navigation satellite system (Global Navigation Satellite System, GNSS), frequency modulation (Frequency Modulation, FM), near field wireless communication technology (Near Field Communication, NFC), infrared technology, etc., as applied on electronic devices. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate and amplify the signal, and convert the signal into electromagnetic waves to radiate the electromagnetic waves through the antenna 2.
In some embodiments, in examples where wireless communication module 160 provides bluetooth communication, wireless communication module 160 may be specifically a bluetooth chip. The bluetooth chip may include one or more memories, one or more processors, and the like. The processor in the bluetooth chip can perform operations such as frequency modulation, filtering, operation, judgment and the like on the electromagnetic wave received by the antenna 2, and convert the processed signal into electromagnetic wave to radiate, i.e. the electromagnetic wave does not need to be processed by the processor 110.
The wireless communication module 160 or the processor 110 may perform steps performed by the electronic device in the method according to the embodiments of the present application, and in particular, reference may be made to the related descriptions of the electronic device in fig. 2-10, which are not repeated herein.
The electronic device implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor.
The display screen 194 is used for displaying images, videos, or the like. A series of graphical user interfaces (Graphical User Interface, GUI) may be displayed on the display 194 of the electronic device.
The electronic device may implement a photographing function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The camera 193 is used to capture still images or video.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 121.
The electronic device may implement audio functions such as music playing, recording, etc. through the audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, and application processor, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195 or removed from the SIM card interface 195 to enable contact and separation with the electronic device. The electronic device may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The SIM card interface 195 may also be compatible with external memory cards. The electronic equipment interacts with the network through the SIM card, so that the functions of communication, data communication and the like are realized.
Above the above components, an operating system such as iOS operating system, android operating system, windows operating system, and the like is run. An application may be installed and run on the operating system. In other embodiments, there may be multiple operating systems running within the electronic device.
The user charges the electronic equipment while using the electronic equipment so as to avoid the influence on normal use caused by low or exhausted electric quantity of the electronic equipment. At this time, the electronic device is in a use scenario of running the application while charging, and when running the application, the electronic device generates corresponding power consumption, and this part of power consumption may cause temperature rise of the electronic device. Meanwhile, the charging circuit of the electronic equipment also generates charging heat, so that the temperature rise of the electronic equipment is increased, and the battery temperature of the electronic equipment is easily caused to be too high. In order to avoid the situation that the battery temperature of the electronic equipment is too high when the electronic equipment is used while being charged, the electronic equipment detects the current battery temperature in real time, so that when the battery temperature reaches a battery temperature threshold value, the charging current is reduced, the charging heat generated by a charging circuit is reduced, and the battery temperature of the electronic equipment is reduced. Taking the electronic equipment as a mobile phone for example, the battery temperature threshold of the mobile phone is set to 45 ℃, if the mobile phone detects that the battery temperature is greater than or equal to 45 ℃, the mobile phone reduces charging current, such as reducing charging power, reducing adapter current, reducing cable current, reducing impedance current and the like, and after the charging current is reduced, the charging heat of the mobile phone is also reduced. However, when the mobile phone detects that the charging current needs to be reduced, the battery temperature of the mobile phone is already high, which can affect the performance of the mobile phone. In addition, even if the charging current is reduced, the temperature of the mobile phone needs to be reduced for a certain period of time, and the battery temperature of the mobile phone is still high in the period of time, so that the performance of the mobile phone can be continuously influenced.
Taking the electronic equipment as a mobile phone as an example, in some use scenarios, a user makes a call while charging the mobile phone, a background of the mobile phone runs a shopping application, and a display screen of the mobile phone is in a bright screen state. In the above scenario, the mobile phone runs the call application and the shopping application at the same time, and the 5G module and the screen module are both in the power supply mode. The application in the running state and the module in the power supply mode can generate power consumption for the mobile phone, so that the mobile phone is heated.
In order to solve the above-mentioned problems, the embodiment of the present application provides a charging method. When the electronic equipment is charged and the application is operated, the charging current can be reduced in advance according to the historical power consumption of the operated application, and/or the operation power consumption and the charging heating of the electronic equipment can be reduced by limiting the mode of the operated application and the module, so that the battery temperature of the electronic equipment is effectively controlled.
Fig. 2 is a flowchart of a charging method 200 provided in an embodiment of the present application, as shown in fig. 2, the method 200 includes the following steps S201-S203:
in step S201, the electronic device determines a first application when charging. The first application is a foreground-running application.
In the embodiment of the present application, the application being used by the user is a foreground running application, i.e. a first application. The first application is N, wherein N is more than or equal to 1, and N is an integer. The electronic device determines a first application by detecting an application run by the foreground. For example: if the electronic equipment detects that the application running in the foreground is a call application, the call application is a first application. Another example is: if the electronic device detects that the applications running in the foreground are a music application and a news application, the music application and the news application are first applications.
In step S202, the electronic device determines a power consumption model corresponding to the first application.
The electronic device may pre-establish the power consumption model based on historical operating data of the first application. Wherein the historical operating data of the first application includes at least one of: the method comprises the steps of operating frequency of a first application, increasing the overall power consumption of the electronic device by the first application during operation, depending on each hardware module by the first application, associating the first application with other applications, and generating the power consumption module during operation of the first application.
The association degree of the first application and other applications is used for representing the association relation between the first application and other applications. In the embodiment of the present application, the association relationship between applications refers to a call relationship between applications. For example: if the normal operation of the application A needs to call the data of the application B, the application A and the application B have an association relation.
The degree of dependence of the first application on each hardware module is used for representing the dependence relationship between the first application and the hardware module. In the embodiment of the application, the dependency relationship between the application and the module refers to that the running of the application needs to depend on the work of the module. For example: when the game application is running, the screen needs to be in a bright screen state to display the game picture through the screen, that is, the running of the game application needs to depend on the operation of the screen module, that is, the game application and the screen module have a dependency relationship.
Therefore, the running of the application with the association relation of the first application and the power supply state of the module with the association relation of the first application are guaranteed, and the requirements for keeping the normal running of the first application are met.
The power consumption model may be a neural network model, an array, a linked list, a class, etc.
Taking electronic equipment as a mobile phone and a power consumption model as a neural network model as an example for explanation: and in the process of using the first application in the non-charging state, the mobile phone records the operation data of the first application, and carries out iterative learning through a neural network according to the operation data recorded each time so as to obtain a power consumption model. The mobile phone inputs the name of the first application in the power consumption model, so that the power consumption of the first application to be generated in a specified time period can be predicted, the application with the association relation with the first application is determined, and the module with the dependence relation with the first application is determined.
Taking electronic equipment as a mobile phone and a power consumption model as an array as an example for explanation: and in the process of using the first application in the non-charging state, the mobile phone records the running data of the first application, and establishes an array according to the name and the running data of the first application, such as 'the name of the first application-the running data'. And the electronic equipment updates the array according to the operation data recorded each time to obtain a power consumption model. The mobile phone can determine a corresponding array according to the name of the first application, and further determine operation data corresponding to the first application according to the determined array.
The power consumption model may include one or more models, that is, a module that predicts power consumption to be generated by the first application within a specified period of time through one model, determines an application having an association relationship with the first application, and determines a dependency relationship with the first application. The power consumption to be generated by the first application in a specified time period can be predicted through a plurality of models, the application with the association relation with the first application is determined, and the module with the dependency relation with the first application is determined.
In step S203, the electronic device adjusts the charging power and/or its own power consumption according to the power consumption model.
When the electronic equipment is charged, the power consumption to be generated by the first application in the appointed time period can be predicted directly according to the established power consumption model, the application with the association relation with the first application is determined, and the hardware module with the association relation with the first application is used for improving the efficiency of acquiring the power consumption data corresponding to the first application. The electronic device may determine the charging power to be used according to the predicted power consumption, and determine the manner of adjusting the power consumption of the electronic device according to the application having the association relationship with the first application and the hardware module having the dependency relationship with the first application. Therefore, the electronic equipment can be charged in a mode of pre-using the determined charging power and/or adjusting the power consumption before the battery temperature reaches the temperature threshold value, so that the battery temperature is prevented from reaching the temperature threshold value, and damage to the battery is avoided.
The method 200 is described in connection with the following examples:
the following is a first embodiment of the present application.
A first embodiment of the present application provides a charging method. In a first embodiment, an electronic device adjusts charging power according to a power consumption model. Fig. 3 is a flowchart of a charging method 300 provided in the first embodiment of the present application. As shown in fig. 3, the method 300 includes the following steps S301-S303:
in step S301, the electronic device determines a first application when charging.
In the embodiment of the application, the electronic device adopts default charging power during charging, and the charging power is not adjusted along with the rise of the battery temperature, or is reduced after the battery temperature reaches the temperature threshold. The electronic device may start a first charging mode according to the following implementation manner, where the electronic device dynamically adjusts the charging power in the first charging mode:
in one implementation, the electronic device initiates a first charging mode in response to a control instruction entered by a user.
In another implementation, the electronic device automatically turns on the first charging mode when detecting that the current battery temperature is greater than or equal to the first temperature threshold. Wherein the first temperature threshold is smaller than the temperature threshold in the second charging mode, i.e. when the battery temperature of the electronic device reaches the first temperature threshold, no influence is exerted on the battery performance.
In the embodiment of the present application, the application being used by the user is a foreground running application, i.e. a first application. The first application is N, wherein N is more than or equal to 1, and N is an integer. The electronic device determines a first application by detecting an application run by the foreground. For example: if the electronic equipment detects that the application running in the foreground is a call application, the call application is a first application. Another example is: if the electronic device detects that the applications running in the foreground are a music application and a news application, the music application and the news application are first applications.
In the embodiment of the present application, the power consumption generated by the first application during the running process may be referred to as effective power consumption. In any state of the electronic device (including a charged state and a non-charged state), effective power consumption is unavoidable, that is, a temperature rise caused by the effective power consumption to the electronic device is unavoidable. When the electronic equipment is charged, the effective power consumption and the overall temperature rise generated by charging and heating can be reduced by reducing the charging and heat generation, so that the battery temperature of the electronic equipment is effectively controlled.
Step S302, the electronic device predicts and obtains first power consumption corresponding to the first application according to the power consumption model. The first power consumption is power consumption to be generated by the first application within a specified period of time.
The electronic device may obtain the first power consumption corresponding to the first application based on a pre-established power consumption model (e.g., a neural network model, an array, a linked list, a class, etc.).
Taking electronic equipment as a mobile phone, a power consumption model as a neural network model, and a first application as a call application as an example for explanation: the mobile phone inputs the name of the call application into the neural network model, and predicts the first power consumption to be generated by the call application, such as 800mW.
Taking electronic equipment as a mobile phone, a power consumption model as an array, and a first application as a call application as an example for explanation: the mobile phone determines a corresponding array of 'call-800 mW' according to the name of the call application, and further predicts and obtains the power consumption to be generated by the call application, namely 800mW.
In step S303, the electronic device reduces the charging power according to the first power consumption.
The electronic equipment can reduce the charging power in advance according to the first power consumption before the battery temperature of the electronic equipment reaches the temperature threshold so as to reduce the charging heat generation, thereby effectively controlling the first power consumption and the reduced charging power to generate the whole heat to the electronic equipment, further effectively controlling the battery temperature of the electronic equipment and avoiding the battery temperature from reaching the temperature threshold. Wherein, the higher the value of the first power consumption, the smaller the value of the reduced charging power.
The charging method provided in the first embodiment of the present application is further described below with reference to an example.
Taking the electronic device as a mobile phone and the first application as a call application as an example, the steps of the charging method 200 performed by the electronic device are exemplarily described. The example includes steps corresponding to steps S301-S303, respectively, in the method 300 shown in fig. 3.
When the mobile phone is charged, the user uses the call application to make a call. The mobile phone detects that the application operated by the foreground is a call application. The mobile phone predicts the first power consumption corresponding to the call application through a pre-established power consumption model (array). Taking the example that an array of 'call-800 mW' is pre-stored in the mobile phone, the mobile phone acquires the array of 'call-800 mW' according to the name of the call application, and further determines that the first power consumption corresponding to the call application is 800mW. The mobile phone reduces the charging power in advance according to the first power consumption '800 mW' corresponding to the call application. For example: the mobile phone predicts that the battery temperature of the mobile phone will be increased by 2 ℃ according to the first power consumption of 800mW, and reduces the charging power by reducing the charging power, and reduces the current charging power of 20W to 10W in advance so as to reduce the increase of the battery temperature. Therefore, the actual power consumption generated by the mobile phone running call application and the overall heat generated by the mobile phone when the mobile phone is charged by using the charging power of 10W are relatively low, and the temperature rise of the battery can be effectively controlled, so that the battery temperature of the mobile phone can be effectively controlled.
The charging method provided in the first embodiment of the present application is further described below with reference to another example.
Taking the electronic device as a mobile phone, the first application as a music application and a news application as examples, the steps of the charging method 300 performed by the electronic device are exemplarily described. The example includes steps corresponding to steps S301-S303, respectively, in the method 300 shown in fig. 3.
When the mobile phone is charged, the user plays music by using the music application and browses news by using the news application. The mobile phone detects that the applications operated by the foreground are music applications and news applications. The mobile phone predicts the first power consumption corresponding to the music application and the news application through a pre-established power consumption model (neural network model). In one implementation, the name "music" of the music application and the name "news" of the news application are input in the neural network model by the mobile phone, so as to respectively predict the first power consumption corresponding to the music application, such as 75mW, and the first power consumption corresponding to the news application, such as 150mW, and the mobile phone calculates the sum (or the weighted value) of the first power consumption corresponding to the music application and the first power consumption corresponding to the news application as the first power consumption for final use. In another implementation manner, the mobile phone inputs the name "music" of the music application and the name "news" of the news application in the neural network model, and can directly predict and obtain the corresponding comprehensive power consumption (the comprehensive power consumption can be corresponding to the sum of the first power consumption of the music application and the first power consumption of the news application or a weighted value), and the comprehensive power consumption is the first power consumption of the final use. Taking the final first power consumption as the sum of the first power consumption of the music application and the first power consumption of the news application as an example, the final first power consumption is 225mW. The mobile phone reduces the charging power in advance according to the first power consumption corresponding to the music application and the first power consumption corresponding to the news application, namely the first power consumption for final use is 225mW. For example: the mobile phone predicts that the battery temperature of the mobile phone will be increased by 0.5 ℃ according to the first power consumption 225mW, and reduces the charging power by reducing the charging power, and reduces the current charging power 20W to 5W so as to reduce the increase of the battery temperature. Therefore, the actual power consumption generated by running the music application and the news application on the mobile phone and the overall heat generated by the mobile phone by the charging heat generated by charging the mobile phone with the charging power of 5W are relatively low, and the temperature rise of the battery can be effectively controlled, so that the battery temperature of the mobile phone is effectively controlled.
Fig. 4 is a schematic diagram of a change of battery temperature of an analog mobile phone in different usage scenarios and charging modes according to an embodiment of the present application. In fig. 4 (1), the battery temperature is changed with time when the mobile phone is charged in an idle state, the charging power of the mobile phone is 20W, and the battery temperature is maintained at 33-34 ℃ basically after the battery is warmed up. In fig. 4, (2) is a schematic diagram of the battery temperature changing with time after the mobile phone is charged under the CPU load state and the first charging mode is started, the charging power of the mobile phone is reduced to 5W, and the battery temperature is maintained at 41-44 ℃ substantially without reaching 45 ℃ after the battery is warmed up. In fig. 4 (3), the mobile phone is charged in the CPU load state, and the first charging mode is not started, and the battery temperature changes with time, where the CPU load state of the mobile phone is the same as the CPU load state of the mobile phone shown in fig. 4 (2), the charging power of the mobile phone is still 20W, and the battery temperature exceeds 45 ℃ after the battery is warmed up. As can be seen from comparison of (1) - (3) in fig. 4, after the mobile phone starts the first charging mode, charging and heating can be effectively reduced, so that temperature rise of the battery is effectively controlled, the battery temperature is controlled below a temperature threshold value of 45 ℃, and damage to the battery is avoided.
In the embodiment of the application, when the electronic device is running while charging, the power consumption to be generated by the currently running application can be predicted, and the charging power is reduced in advance according to the power consumption before the battery temperature of the electronic device reaches the temperature threshold value, so as to reduce the charging heat generation, thereby effectively controlling the overall heat generated by the power consumption generated by running the application and the charging heat generated by charging on the electronic device, further effectively controlling the battery temperature of the electronic device, and avoiding the battery temperature from reaching the temperature threshold value.
The following is a second embodiment of the present application.
A second embodiment of the present application provides a charging method. In a second embodiment, the electronic device adjusts the charging power according to a power consumption model. Fig. 5 is a flowchart of a charging method 500 provided in a second embodiment of the present application. As shown in fig. 5, the method 500 includes steps S501-S503, where step S502 is similar to step S302, and is not repeated here. The following description is made of step S501 and step S503:
in step S501, the electronic device acquires a first application while charging. The electronic device also obtains a second power consumption. The second power consumption is a current power consumption of the first application.
In the embodiment of the application, the electronic device may calculate the power consumption corresponding to the first application by obtaining the current power consumption of the SoC, that is, the second power consumption, where the second power consumption is the actual power consumption generated by the first application in the current use process.
In step S503, the electronic device decreases the charging power according to the weighted value of the first power consumption and the second power consumption.
In this embodiment of the present application, the electronic device may configure weight values for the first power consumption and the second power consumption in advance, where the first power consumption (P1) and the second power consumption (P2) satisfy the following formulas:
P=k1·P1+k2·P2
wherein P represents a weighted value of the first power consumption and the second power consumption, k1 represents a weighted value corresponding to the first power consumption, k2 represents a weighted value corresponding to the second power consumption, and k1+k2=1.
Therefore, the electronic equipment determines the charging power to be used by combining the first power consumption (the power consumption to be generated by the first application in the current use process) and the second power consumption (the actual power consumption of the first application to date in the current use process), and the obtained charging power is determined to integrate the historical performance and the current actual performance of the first application, so that the reliability is higher, and the battery temperature can be controlled accurately.
The charging method provided in the second embodiment of the present application is further described below with reference to an example.
Taking the electronic device as a mobile phone and the first application as a call application as an example, the steps of the charging method 500 performed by the electronic device are exemplarily described. The example includes steps corresponding to steps S501-S503, respectively, in the method 500 shown in fig. 5.
When the mobile phone is charged, the user uses the call application to make a call. The mobile phone detects that the application operated by the foreground is a call application. The mobile phone obtains the second power consumption generated so far in the use process of the call application, for example, the second power consumption is 400mW. The mobile phone acquires first power consumption corresponding to the call application through a pre-established power consumption model (array). Taking the example that an array of 'call-800 mW' is pre-stored in the mobile phone, the mobile phone acquires the array of 'call-800 mW' according to the name of the call application, and further determines that the first power consumption corresponding to the call application is 800mW. The mobile phone calculates a weighted value according to the first power consumption '800 mW' and the second power consumption '400 mW' corresponding to the call application. Taking the example that the weight value of the first power consumption is 0.6 and the weight value of the second power consumption is 0.4, the weight value of the first power consumption and the second power consumption is 640mW, and the mobile phone reduces the charging power in advance according to 640 mW. For example: the mobile phone predicts that the battery temperature of the mobile phone will be increased by 1.5 ℃ according to the weighted value 640mW of the first power consumption and the second power consumption, and reduces the charging power by reducing the charging power, and reduces the current charging power by 20W to 15W so as to reduce the increase of the battery temperature.
In the embodiment of the application, the electronic device determines the charging power to be used by combining the first power consumption and the second power consumption, and the determined charging power integrates the historical power consumption and the current actual power consumption of the first application, so that the reliability is higher, and the battery temperature can be controlled accurately.
The following is a third embodiment of the present application.
A third embodiment of the present application provides a charging method. The electronic device adjusts its own power consumption according to the power consumption model. Fig. 6 is a flowchart of a charging method 600 provided in a third embodiment of the present application. As shown in fig. 6, the method 600 includes the following steps S601-S603:
in step S601, the electronic device determines a first application, a second application, and a first module when charging. The second application refers to an application running in the background, and the first module refers to a module that currently generates power consumption.
In the embodiment of the application, the electronic device defaults to not adjust its power consumption along with the battery temperature when charging. The electronic device may turn on the first charging mode in reference to step S201, which is not described herein. In the first charging mode, the electronic device dynamically adjusts its own power consumption.
In the embodiment of the application, the application that is started in the electronic device but is not used by the user is the application running in the background, namely, the second application. The second application is M, wherein M is more than or equal to 0, and M is an integer. The module which is communicated with the battery is a module in a power supply state, namely a first module. And the electronic equipment acquires the second application by detecting the application running in the background. For example: if the electronic device detects that the application running in the background is a video application, the second application is a video application. The electronic equipment acquires the first module through detecting the communication state of the module and the battery. For example: the electronic equipment detects that the communication state of the screen module and the battery is on, and the screen module is a first module.
In step S602, the electronic device determines at least one third application and at least one second module according to the power consumption model. The third application refers to an application which has no association relation with the first application in the second application, and the second module refers to a module which has no dependency relation with the first application in the first module.
The electronic device may obtain an application (i.e., a fourth application) having an association relationship with the first application and a module (i.e., a third module) having a dependency relationship with the first application based on a pre-established power consumption model (e.g., a neural network model, an array, a linked list, a class, etc.). And the electronic equipment eliminates the fourth application from the second application to obtain a third application, namely, an application which has no association relation with the first application in the application running in the background. And the electronic equipment eliminates the third module from the first module to obtain a second module, namely a module which has no dependency relationship with the first application in the modules in the power supply mode.
In step S603, the electronic device closes the third application and/or limits the power supply to the second module.
Because the first application and the third application have no association relationship, the first application and the second module have no dependence relationship, and therefore, the third application is exited and/or the power supply to the second module is limited, and the normal operation of the first application is not influenced.
In one implementation, the electronic device only closes the third application, yet maintains normal power to the second module.
In one implementation, the electronic device limits power to the second module, such as reducing power current to the second module, or disconnects power to the second module without shutting down the third application.
In one implementation, the electronic device shuts down the third application and limits power to the second module, such as reducing power supply current to the second module or disconnecting power to the second module.
In some embodiments, if the electronic device closes the third application, the electronic device preferentially closes a fifth application, where the fifth application is i applications (1. Ltoreq.i.ltoreq.P, and i is an integer) that have a history of power consumption from high to low among the P third applications and are top-ranked. Therefore, the electronic equipment does not need to close all the third applications at one time so as to reserve part of the third applications for direct use by a user, and the operation steps of opening the part of the third applications by the user are simplified. Further, if the electronic device monitors that the temperature of the battery is rising faster or the temperature is higher, all third applications are shut down.
In some embodiments, if the electronic device limits the power supply of the second module, the electronic device preferentially limits the fourth module, wherein the fourth module is j modules (1. Ltoreq.j. Ltoreq.q, and j is an integer) of the Q second modules that have a history of power consumption from high to low. Therefore, the electronic equipment does not need to limit the power supply of all the second modules at one time so as to keep the normal power supply of part of the second modules, thereby ensuring the normal operation of the part of the second modules and enabling the user to normally experience the functions realized by the part of the second modules. Further, if the electronic device monitors that the temperature of the battery is rising faster or the temperature is higher, the power supply of all the second modules is restricted.
The charging method provided in the third embodiment of the present application is further described below with reference to an example.
Taking the electronic device as a mobile phone and the first application as a call application as an example, the steps of the charging method 600 performed by the electronic device are exemplarily described. The example includes steps corresponding to steps S601-S603 in the method 600 shown in fig. 6, respectively.
When the mobile phone is charged, the user uses the call application to make a call. The mobile phone detects that a first application running in the foreground is a call application, a second application running in the background is a music application, and a first module in a power supply mode is a 5G module, a screen module, a GPU module and a Wi-Fi module. The mobile phone determines that a third application which has no association relation with the call application in the second application is a music application through a pre-established power consumption model (neural network model), and a second module which has no dependency relation with the call application in the first module is a screen module, a GPU module and a Wi-Fi module. The mobile phone exits the music application, and limits the power supply to the screen module, the GPU module and the Wi-Fi module, for example, the Wi-Fi module is adjusted to be in a dormant mode, so that the power supply current to the screen module is reduced, the brightness of the screen is reduced, and the power supply to the GPU module is disconnected.
The charging method provided in the third embodiment of the present application is further described below with reference to another example.
Taking the electronic device as a mobile phone and the first application as a game application as an example, the steps of the charging method 600 performed by the electronic device are exemplarily described. The example includes steps corresponding to steps S601-S603 in the method 600 shown in fig. 6, respectively.
The user plays a game using the game application while the handset is charged. The mobile phone detects that a first application running in the foreground is a game application, a second application running in the background is a video application, and a first module in a power supply mode is a 5G module, a screen module, a GPU module and a Wi-Fi module. The mobile phone determines that a third application which has no association relation with the game application in the second application is a video application through a pre-established power consumption model (neural network model), and a second module which has no dependency relation with the game application in the first module is a 5G module. The handset exits the video application and limits power to the 5G module, such as disconnecting power to the 5G module.
The charging method provided in the third embodiment of the present application is further described below with reference to still another example.
Taking the electronic device as a mobile phone and the first application as a social application as an example, the steps of the charging method 600 performed by the electronic device are exemplarily described. The example includes steps corresponding to steps S601-S603 in the method 600 shown in fig. 6, respectively.
The user uses the social application chat while the phone is charging. The mobile phone detects that a first application running in the foreground is a social application, a second application running in the background is a gallery application and a video application, and a first module in a power supply mode is a 5G module, a screen module and a Bluetooth module. The mobile phone determines that a third application which has no association relation with the social application in the second application is a video application through a pre-established power consumption model (neural network model), and a second module which has no dependency relation with the social application in the first module is a Bluetooth module. The handset exits the video application and limits power to the bluetooth module, such as disconnecting power to the bluetooth module.
In the embodiment of the application, when the electronic device runs the application while charging, the application which has no association relationship with the first application can be closed, and/or the power supply to the module which has no association relationship with the first application is limited, so that the application and the module can be prevented from generating power consumption to the electronic device, the battery temperature of the electronic device can be effectively controlled, and the battery temperature can be prevented from reaching the temperature threshold.
The following is a fourth embodiment of the present application.
A fourth embodiment of the present application provides a charging method. In this embodiment, the electronic device adjusts the charging power and its own power consumption according to the power consumption model. Fig. 7 is a flowchart of a charging method 700 provided in a fourth embodiment of the present application. As shown in fig. 7, the method 700 includes the following steps S701-S703:
in step S701, the electronic device determines the first application, the second application, and the first module when charging.
In the embodiment of the application, the electronic device adopts default charging power during charging, and the charging power cannot be adjusted along with the rise of the battery temperature, or the power consumption of the electronic device cannot be adjusted along with the adjustment of the battery temperature, or the charging mode of reducing the charging power after the battery temperature reaches the temperature threshold value. The electronic device may turn on the first charging mode in reference to step S301, which is not described herein. In the first charging mode, the electronic device dynamically adjusts the charging power and its own power consumption.
Step S701 may refer to step S601, and will not be described herein.
In step S702, the electronic device predicts the first power consumption corresponding to the first application according to the power consumption model, and determines at least one third application and at least one second module.
The process of predicting the first power consumption is similar to step S302, and the process of determining the at least one third application and the at least one second module is similar to step S602, which are not repeated herein.
In step S703, the electronic device reduces the charging power according to the first power consumption, and shuts down the third application and/or limits the power supply to the second module.
The process of the electronic device reducing the charging power according to the first power consumption is similar to step S303, and the process of the electronic device closing the third application and/or limiting the power supply to the second module is similar to step S603, which will not be described again here.
The charging method provided in the fourth embodiment of the present application is further described below with reference to an example.
Taking the electronic device as a mobile phone and the first application as a call application as an example, the steps of the charging method 700 performed by the electronic device are exemplarily described. The example includes steps corresponding to steps S701-S703, respectively, in the method 700 shown in fig. 7.
When the mobile phone is charged, the user uses the call application to make a call. The mobile phone detects that a first application running in the foreground is a call application, a second application running in the background is a music application, and a first module in a power supply mode is a 5G module, a screen module, a GPU module and a Wi-Fi module. The mobile phone obtains a first power consumption of 800mW corresponding to a call application through a pre-established power consumption model (a neural network model), determines a third application which has no association relation with the call application in the second application as a music application, and a second module which has no dependence relation with the call application in the first module as a screen module, a GPU module and a Wi-Fi module. The mobile phone exits the music application, and limits the power supply to the screen module, the GPU module and the Wi-Fi module, for example, the Wi-Fi module is adjusted to be in a dormant mode, so that the power supply current to the screen module is reduced, the brightness of the screen is reduced, and the power supply to the GPU module is disconnected. And pre-reducing the charging power according to the first power consumption '800 mW' corresponding to the call application. For example: the mobile phone predicts that the battery temperature of the mobile phone will be increased by 2 ℃ according to the first power consumption of 800mW, and the mobile phone reduces the charging power by reducing the charging power, so that the current charging power of 20W is reduced to 10W in advance.
The charging method provided in the fourth embodiment of the present application is further described below with reference to another example.
Taking the electronic device as a mobile phone and the first application as a game application as an example, the steps of the charging method 700 performed by the electronic device are exemplarily described. The example includes steps corresponding to steps S701-S703, respectively, in the method 700 shown in fig. 7.
The user plays a game using the game application while the handset is charged. The mobile phone detects that a first application running in the foreground is a game application, a second application running in the background is a video application, and a first module in a power supply mode is a 5G module, a screen module, a GPU module and a Wi-Fi module. The mobile phone acquires first power consumption of 1200mW corresponding to the game application through a pre-established power consumption model (neural network model), determines a third application which has no association relation with the game application in the second application as a video application, and determines a second module which has no dependence relation with the game application in the first module as a 5G module. The handset exits the video application and limits power to the 5G module, such as disconnecting power to the 5G module. And pre-reducing the charging power according to the first power consumption '1200 mW' corresponding to the game application. For example: the mobile phone predicts that the battery temperature of the mobile phone will be increased by 3 ℃ according to the first power consumption of 1200mW, and the mobile phone reduces the charging power by reducing the charging power, so that the current charging power of 20W is reduced to 5W in advance.
The charging method provided in the fourth embodiment of the present application is further described below with reference to still another example.
Taking the electronic device as a mobile phone and the first application as a social application as an example, the steps of the charging method 700 performed by the electronic device are exemplarily described. The example includes steps corresponding to steps S701-S703, respectively, in the method 700 shown in fig. 7.
The user uses the social application chat while the phone is charging. The mobile phone detects that a first application running in the foreground is a social application, a second application running in the background is a gallery application and a video application, and a first module in a power supply mode is a 5G module, a screen module and a Bluetooth module. The mobile phone obtains a first power consumption of 750mW corresponding to the social application through a pre-established power consumption model (a neural network model), determines a third application which has no association relationship with the social application in the second application as a video application, and determines a second module which has no dependence relationship with the social application in the first module as a Bluetooth module. The handset exits the video application and limits power to the bluetooth module, such as disconnecting power to the bluetooth module. And pre-reducing the charging power according to the first power consumption '750 mW' corresponding to the social application. For example: the mobile phone predicts that the battery temperature of the mobile phone will be increased by 1.7 ℃ according to the first power consumption of 750mW, and the mobile phone reduces the charging power by reducing the charging power, so that the current charging power is reduced to 12W in advance.
In the embodiment of the application, the electronic equipment can effectively avoid the extra power consumption of the battery generated by irrelevant applications and modules and reduce the charging heat generation by limiting the applications and modules which are not related to the call application and reducing the charging power, thereby effectively controlling the temperature rise of the battery and further effectively controlling the battery temperature of the electronic equipment.
The following is a fifth embodiment of the present application.
A fifth embodiment of the present application provides a charging method. In this embodiment, the electronic device adjusts the charging power and its own power consumption according to the power consumption model. Fig. 8 is a flowchart of a charging method 800 provided in a fifth embodiment of the present application. As shown in fig. 8, the method 800 includes steps S801 to S803, wherein step S802 is similar to step S702, and will not be described herein. The following description is made of step S801 and step S803:
in step S801, the electronic device determines a first application, a second application, and a first module when charging. The electronic device also obtains a second power consumption.
The process of the electronic device obtaining the current second power consumption of the first application is similar to step S501, and will not be described herein.
In step S803, the electronic device reduces the charging power according to the weighted value of the first power consumption and the second power consumption, and shuts down the third application and/or limits the power supply to the second module.
The process of the electronic device closing the third application and/or limiting the power supply to the second module is similar to step S603, and the process of the electronic device reducing the charging power according to the weighted value of the first power consumption and the second power consumption is similar to step S503, which will not be repeated here.
The charging method provided in the fifth embodiment of the present application is further described below with reference to an example.
Taking the electronic device as a mobile phone and the first application as a call application as an example, the steps of the charging method 800 performed by the electronic device are exemplarily described. The example includes steps corresponding to steps S801-S803, respectively, in the method 800 shown in fig. 8.
When the mobile phone is charged, the user uses the call application to make a call. The mobile phone detects that a first application running in the foreground is a call application, a second application running in the background is a music application, and a first module in a power supply mode is a 5G module, a screen module, a GPU module and a Wi-Fi module. And, the mobile phone obtains the second power consumption generated so far in the use process of the call application, for example, the second power consumption is 400mW. The mobile phone acquires first power consumption corresponding to the call application through a pre-established power consumption model (array). Taking the example that an array of 'call-800 mW' is pre-stored in the mobile phone, the mobile phone acquires the array of 'call-800 mW' according to the name of the call application, and further determines that the first power consumption corresponding to the call application is 800mW. And determining that a third application which has no association relation with the call application in the second application is a music application through a pre-established power consumption model, and a second module which has no dependency relation with the call application in the first module is a screen module, a GPU module and a Wi-Fi module. The mobile phone exits the music application, and limits the power supply to the screen module, the GPU module and the Wi-Fi module, for example, the Wi-Fi module is adjusted to be in a dormant mode, so that the power supply current to the screen module is reduced, the brightness of the screen is reduced, and the power supply to the GPU module is disconnected. And the mobile phone calculates a weighted value according to the first power consumption '800 mW' and the second power consumption '400 mW' corresponding to the call application. Taking the example that the weight value of the first power consumption is 0.6 and the weight value of the second power consumption is 0.4, the weight value of the first power consumption and the second power consumption is 640mW, and the mobile phone reduces the charging power in advance according to 640 mW. For example: the mobile phone predicts that the battery temperature of the mobile phone will be increased by 1.5 ℃ according to the weighted value of the first power consumption and the second power consumption of 640mW, and reduces the charging power by reducing the charging power, so that the current charging power is reduced to 15W by 20W.
In the embodiment of the application, the electronic equipment can effectively avoid the extra power consumption of the battery generated by irrelevant applications and modules and reduce the charging heat generation by limiting the applications and modules which are not related to the call application and reducing the charging power, thereby effectively controlling the temperature rise of the battery and further effectively controlling the battery temperature of the electronic equipment. Meanwhile, when the electronic equipment adjusts the charging power, the charging power to be used is determined by combining the first power consumption and the second power consumption, and the obtained charging power is determined to be integrated with the historical power consumption and the current actual power consumption of the first application, so that the reliability is higher, and the battery temperature can be controlled accurately.
In the embodiments provided in the present application, the solutions of the communication method provided in the present application are described from the electronic device itself. It will be appreciated that the electronic device, in order to achieve the above-described functions, includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Fig. 9 is a schematic structural diagram of a charging device according to an embodiment of the present application.
In some embodiments, the electronic device may implement the corresponding functions by the hardware apparatus shown in fig. 9. As shown in fig. 9, the charging device may include: a memory 901 and a processor 902.
In one implementation, the processor 902 may include one or more processing units, such as: the processor 902 may include an application processor, a modem processor, a graphics processor, an image signal processor, a controller, a video codec, a digital signal processor, a baseband processor, and/or a neural network processor, etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. The memory 901 is coupled to the processor 902 for storing various software programs and/or sets of instructions. In some embodiments, memory 901 may include volatile memory and/or non-volatile memory.
In one embodiment, the software program and/or sets of instructions in the memory 901, when executed by the processor 902, cause the electronic device to perform the method steps of: when charging, determining a first application, wherein the first application is an application running in the foreground. And determining a power consumption model corresponding to the first application. And adjusting the charging power and/or the self power consumption according to the power consumption model.
In this way, the electronic device may determine the charging power to be used and/or the manner in which to limit its own power consumption via the power consumption model when charging. Therefore, the electronic equipment can be charged in a mode of pre-using the determined charging power and/or limiting the power consumption before the battery temperature reaches the temperature threshold value, so that the battery temperature is prevented from reaching the temperature threshold value, and damage to the battery is avoided.
Optionally, the power consumption model comprises a correspondence of the application to the power consumption, which when executed by the processor 902 causes the electronic device to perform the following method steps: and predicting and obtaining the first power consumption corresponding to the first application according to the power consumption model. The first power consumption is power consumption to be generated by the first application within a specified period of time. The charging power is reduced according to the first power consumption. Therefore, when the electronic equipment runs the application while charging, the power consumption to be generated by the first application can be predicted, and the charging power is reduced in advance according to the power consumption before the battery temperature of the electronic equipment reaches the temperature threshold value, so that the charging heat generation is reduced, the whole heat generated by the power consumption generated by running the application and the charging heat generated by charging to the electronic equipment is effectively controlled, the battery temperature of the electronic equipment is further effectively controlled, and the battery temperature is prevented from reaching the temperature threshold value.
Optionally, the software program and/or sets of instructions in the memory 901, when executed by the processor 902, cause the electronic device to perform the method steps of: and when the first application is charged, acquiring second power consumption which is the current power consumption of the first application. And in the process of adjusting the charging power according to the power consumption model, adjusting the charging power according to the weighted values of the first power consumption and the second power consumption. In this way, the electronic device determines the charging power to be used in combination with the power consumption to be generated by the first application in the current use process, namely, the first power consumption, and the actual power consumption of the first application up to now in the current use process, namely, the second power consumption, and determines the obtained charging power to integrate the historical performance and the current actual performance of the first application, so that the reliability is higher, and the battery temperature is more favorably and accurately controlled.
Optionally, the software program and/or sets of instructions in the memory 901, when executed by the processor 902, cause the electronic device to perform the method steps of: during charging, a second application and a first module are also determined, wherein the second application is an application running in the background, and the first module is a hardware module generating power consumption currently. The power consumption model comprises an incidence relation between the first application and other applications and a dependency relation between the first application and the module, wherein the incidence relation is a calling relation of the first application for calling the other applications. And in the process of adjusting the self power consumption according to the power consumption model, determining at least one third application and at least one second module according to the power consumption model, wherein the third application is an application which has no association relation with the first application in the second application, and the second module is a module which has no dependence relation with the first application in the first module. The third application is turned off and/or power to the second module is limited. Therefore, when the electronic equipment runs the application while charging, the application which has no association relation with the first application can be exited, and/or the power supply to the module which has no association relation with the first application is limited, so that the application and the module can be prevented from generating additional power consumption to the electronic equipment, the battery temperature of the electronic equipment can be effectively controlled, and the battery temperature can be prevented from reaching a temperature threshold value.
Optionally, the software program and/or sets of instructions in the memory 901, when executed by the processor 902, cause the electronic device to perform the method steps of: and determining a fourth application in the second application and a third module in the first module according to the power consumption model, wherein the fourth application is an application with an association relation with the first application, and the third module is a module with an association relation with the first application. And determining a third application according to the second application and the fourth application, and determining a second module according to the first module and the third module, wherein the third application is an application except the fourth application in the second application, and the second module is a module except the third module in the first module. In this way, the electronic device can quickly and accurately determine the fourth application with the association relation with the first application and the third module with the dependency relation with the first application according to the pre-established power consumption model. Furthermore, the third application which has no association relation with the first application in the second application and the second module which has no dependency relation with the first application in the first module are rapidly and accurately determined.
Optionally, the software program and/or sets of instructions in the memory 901, when executed by the processor 902, cause the electronic device to perform the method steps of: reducing the supply current to the second module or disconnecting the supply of power to the second module. In this way, the electronic device can flexibly adjust the power supply mode based on the dependency degree between the first application and the second module, for example, by reducing the power supply current to keep the basic function of the corresponding module, and by disconnecting the power supply, the power consumption of the corresponding module is avoided.
Optionally, the software program and/or sets of instructions in the memory 901, when executed by the processor 902, cause the electronic device to perform the method steps of: and closing a fifth application and/or limiting power supply to a fourth module, wherein the fifth application comprises i applications with the history power consumption from high to low in the at least one third application, i is a positive integer greater than 0, and the fourth module comprises j modules with the history power consumption from high to low in the at least one second module, j is a positive integer greater than 0. Therefore, the electronic equipment does not need to exit all fifth applications at one time and/or limit the power supply to all fourth modules at one time so as to reserve part of the fifth applications for direct use by users, thereby simplifying the operation steps of the users for starting the part of the fifth applications and reserving the normal power supply of the part of the fourth modules, further ensuring the normal operation of the part of the fourth modules and enabling the users to normally experience the functions realized by the part of the fourth modules.
Optionally, the software program and/or sets of instructions in the memory 901, when executed by the processor 902, cause the electronic device to further perform the method steps of: and building a power consumption model according to the historical operation data of the first application. The historical operating data of the first application includes at least one of: the method comprises the steps of operating frequency of a first application, increasing the overall power consumption of the electronic device by the first application during operation, dependency of the first application on each hardware module, association degree of the first application and other applications, and generating the power consumption module during operation of the first application. In this way, the electronic device may pre-establish the power consumption model corresponding to the first application, so as to directly use the power consumption model during charging, thereby improving efficiency and accuracy of adjusting the charging power and/or self power consumption.
Optionally, the power consumption model is a neural network model, an array, a linked list, or a class. In this way, the model type of the power consumption model can be flexibly selected. In this way, the model type of the power consumption model can be flexibly selected.
In addition, in some embodiments, the electronic device may implement the corresponding functionality through software modules. As shown in fig. 10, the charging device for realizing the function of the above-described electronic device behavior includes: a first determination unit 1001, a second determination unit 1002, and a processing unit 1003.
Wherein: the first determining unit 1001 is configured to determine, during charging, a first application, where the first application is an application running in the foreground. A second determining unit 1002, configured to determine a power consumption model corresponding to the first application. The processing unit 1003 is configured to adjust the charging power and/or the self power consumption according to the power consumption model.
In this way, the electronic device may determine the charging power to be used and/or the manner in which to limit its own power consumption via the power consumption model when charging. Therefore, the electronic equipment can be charged in a mode of pre-using the determined charging power and/or limiting the power consumption before the battery temperature reaches the temperature threshold value, so that the battery temperature is prevented from reaching the temperature threshold value, and damage to the battery is avoided.
Optionally, the power consumption model includes a correspondence between an application and power consumption, and the processing unit 1003 adjusts the charging power according to the power consumption model includes: and predicting and obtaining the first power consumption corresponding to the first application according to the power consumption model. The first power consumption is power consumption to be generated by the first application within a specified period of time. The charging power is reduced according to the first power consumption. Therefore, when the electronic equipment runs the application while charging, the power consumption to be generated by the first application can be predicted, and the charging power is reduced in advance according to the power consumption before the battery temperature of the electronic equipment reaches the temperature threshold value, so that the charging heat generation is reduced, the whole heat generated by the power consumption generated by running the application and the charging heat generated by charging to the electronic equipment is effectively controlled, the battery temperature of the electronic equipment is further effectively controlled, and the battery temperature is prevented from reaching the temperature threshold value.
Optionally, when the electronic device is charged, the first determining unit 1001 is further configured to obtain a second power consumption, where the second power consumption is a current power consumption of the first application. The processing unit 1003 adjusts the charging power according to the power consumption model includes: and adjusting the charging power according to the weighted values of the first power consumption and the second power consumption. In this way, the electronic device determines the charging power to be used in combination with the power consumption to be generated by the first application in the current use process, namely, the first power consumption, and the actual power consumption of the first application up to now in the current use process, namely, the second power consumption, and determines the obtained charging power to integrate the historical performance and the current actual performance of the first application, so that the reliability is higher, and the battery temperature is more favorably and accurately controlled.
Optionally, when the electronic device is charged, the first determining unit 1001 is further configured to determine a second application and a first module, where the second application is an application running in the background, and the first module is a hardware module that generates power consumption currently. The power consumption model comprises an incidence relation between the first application and other applications and a dependency relation between the first application and the module, wherein the incidence relation is a calling relation of the first application for calling the other applications. The processing unit 1003 adjusts its own power consumption according to the power consumption model includes: and determining at least one third application and at least one second module according to the power consumption model, wherein the third application is an application which has no association relation with the first application in the second application, and the second module is a module which has no association relation with the first application in the first module. The third application is turned off and/or power to the second module is limited. Therefore, when the electronic equipment runs the application while charging, the application which has no association relation with the first application can be exited, and/or the power supply to the module which has no association relation with the first application is limited, so that the application and the module can be prevented from generating additional power consumption to the electronic equipment, the battery temperature of the electronic equipment can be effectively controlled, and the battery temperature can be prevented from reaching a temperature threshold value.
Optionally, the determining, by the processing unit 1003, the at least one third application and the at least one second module according to the power consumption model includes: and determining a fourth application in the second application and a third module in the first module according to the power consumption model, wherein the fourth application is an application with an association relation with the first application, and the third module is a module with an association relation with the first application. And determining a third application according to the second application and the fourth application, and determining a second module according to the first module and the third module, wherein the third application is an application except the fourth application in the second application, and the second module is a module except the third module in the first module. In this way, the electronic device can quickly and accurately determine the fourth application with the association relation with the first application and the third module with the dependency relation with the first application according to the pre-established power consumption model. Furthermore, the third application which has no association relation with the first application in the second application and the second module which has no dependency relation with the first application in the first module are rapidly and accurately determined.
Optionally, the limiting of the power supply to the second module by the processing unit 1003 includes: reducing the supply current to the second module or disconnecting the supply of power to the second module. In this way, the electronic device can flexibly adjust the power supply mode based on the dependency degree between the first application and the second module, for example, by reducing the power supply current to keep the basic function of the corresponding module, and by disconnecting the power supply, the power consumption of the corresponding module is avoided.
Optionally, the processing unit 1003 powering down the third application and/or limiting the powering of the second module includes: and closing a fifth application and/or limiting power supply to a fourth module, wherein the fifth application comprises i applications with the history power consumption from high to low in the at least one third application, i is a positive integer greater than 0, and the fourth module comprises j modules with the history power consumption from high to low in the at least one second module, j is a positive integer greater than 0. Therefore, the electronic equipment does not need to exit all fifth applications at one time and/or limit the power supply to all fourth modules at one time so as to reserve part of the fifth applications for direct use by users, thereby simplifying the operation steps of the users for starting the part of the fifth applications and reserving the normal power supply of the part of the fourth modules, further ensuring the normal operation of the part of the fourth modules and enabling the users to normally experience the functions realized by the part of the fourth modules.
Optionally, the apparatus further comprises: and the establishing unit 1004 is configured to establish a power consumption model according to the historical operating data of the first application. The historical operating data of the first application includes at least one of: the method comprises the steps of operating frequency of a first application, increasing the overall power consumption of the electronic device by the first application during operation, dependency of the first application on each hardware module, association degree of the first application and other applications, and generating the power consumption module during operation of the first application. In this way, the electronic device may pre-establish the power consumption model corresponding to the first application, so as to directly use the power consumption model during charging, thereby improving efficiency and accuracy of adjusting the charging power and/or self power consumption.
Optionally, the power consumption model is a neural network model, an array, a linked list, or a class. In this way, the model type of the power consumption model can be flexibly selected. In this way, the model type of the power consumption model can be flexibly selected.
The embodiments of the present application also provide a computer storage medium, in which program instructions are stored, which when run on a computer, cause the computer to perform the methods of the above aspects and their respective implementations.
Embodiments of the present application also provide a computer program product which, when run on a computer, causes the computer to perform the methods of the above aspects and their respective implementations.
The application also provides a chip system. The system-on-a-chip comprises a processor for supporting the apparatus or device to implement the functions involved in the above aspects, e.g. to generate or process information involved in the above methods. In one possible design, the system on a chip further includes a memory for storing program instructions and data necessary for the apparatus or device described above. The chip system can be composed of chips, and can also comprise chips and other discrete devices.
The foregoing detailed description of the invention has been presented for purposes of illustration and description, and it should be understood that the foregoing is by way of illustration and description only, and is not intended to limit the scope of the invention.

Claims (13)

1. A method of charging, the method comprising:
when the electronic equipment is charged, determining a first application, wherein the first application is an application operated by a foreground;
the electronic equipment determines a power consumption model corresponding to the first application, wherein the power consumption model is used for predicting first power consumption to be generated by the first application in a specified time period, and/or determining an association relation between the first application and other applications and a dependency relation between the first application and a module, and the association relation is a calling relation of the first application for calling the other applications;
the electronic equipment predicts the first power consumption corresponding to the first application according to the power consumption model, and predicts the temperature rise of the battery temperature according to the first power consumption;
The electronic equipment pre-adjusts charging power and/or self power consumption according to the current battery temperature and the temperature rise of the battery temperature so as to prevent the battery temperature from reaching a temperature threshold;
the electronic device pre-adjusts the charging power according to the current battery temperature and the temperature rise of the battery temperature, wherein the pre-adjusting the charging power comprises: reducing charging power according to the current battery temperature and the temperature rise of the battery temperature; the electronic device pre-adjusts its own power consumption according to the current battery temperature and the temperature rise of the battery temperature, including: and closing a background application which has no association relation with the first application and/or limiting power supply to a hardware module which has no dependency relation with the first application and currently generates power consumption.
2. The charging method according to claim 1, wherein the electronic device further acquires second power consumption, which is current power consumption of the first application, when charging;
the electronic equipment adjusts charging power according to the power consumption model, and the method comprises the following steps:
and the electronic equipment adjusts the charging power according to the weighted values of the first power consumption and the second power consumption.
3. The charging method according to claim 1, wherein the electronic device, when charged, further determines a second application and a first module, the second application being an application running in the background, the first module being a hardware module that currently generates power consumption;
The power consumption model comprises an association relation between the first application and other applications and a dependency relation between the first application and a module, and the electronic device adjusting self power consumption according to the power consumption model comprises:
the electronic equipment determines at least one third application and at least one second module according to the power consumption model, wherein the third application is an application which has no association relation with the first application in the second application, and the second module is a module which has no dependency relation with the first application in the first module;
the electronic device shuts down the third application and/or limits power to the second module.
4. A charging method according to claim 3, wherein the electronic device determines at least one third application and at least one second module from the power consumption model, comprising:
the electronic equipment determines a fourth application in the second application according to the power consumption model, and determines a third module in the first module, wherein the fourth application is an application with an association relation with the first application, and the third module is a module with a dependence relation with the first application;
The electronic device determines the third application according to the second application and the fourth application, and determines the second module according to the first module and the third module, wherein the third application is an application in the second application except the fourth application, and the second module is a module in the first module except the third module.
5. A method of charging according to claim 3, wherein the electronic device limiting power to the second module comprises:
the electronic device reduces the supply current to the second module or the electronic device disconnects the supply of power to the second module.
6. A charging method according to claim 3, wherein the electronic device powering down the third application and/or limiting the power supply to the second module comprises:
the electronic device closes a fifth application and/or limits power supply to a fourth module, wherein the fifth application comprises i applications with history power consumption from high to low in the at least one third application, i is a positive integer greater than 0, and the fourth module comprises j modules with history power consumption from high to low in the at least one second module, and j is a positive integer greater than 0.
7. The charging method according to claim 1, characterized in that the charging method further comprises:
the electronic equipment establishes the power consumption model according to the historical operation data of the first application;
the historical operating data of the first application includes at least one of: the method comprises the steps of operating frequency of a first application, lifting amount of the first application to the whole power consumption of the electronic equipment during operation, dependence degree of the first application on each hardware module, association degree of the first application and other applications, and modules generating power consumption during operation of the first application.
8. The charging method of claim 1, wherein the power consumption model is a neural network model, an array, a linked list, or a class.
9. A charging device, characterized in that the charging device comprises:
the processing unit is used for determining a first application when charging, wherein the first application is an application running in the foreground;
the processing unit is further configured to determine a power consumption model corresponding to the first application, where the power consumption model is used to predict first power consumption to be generated by the first application in a specified time period, and/or is used to determine an association relationship between the first application and other applications, and determine a dependency relationship between the first application and a module, where the association relationship is a calling relationship of the first application for calling the other applications;
The processing unit is further configured to predict, according to the power consumption model, the first power consumption corresponding to the first application, and predict, according to the first power consumption, a temperature rise of a battery temperature;
the processing unit is further used for pre-adjusting the charging power and/or the self power consumption according to the current battery temperature and the temperature rise of the battery temperature so as to prevent the battery temperature from reaching a temperature threshold;
wherein, the processing unit pre-adjusts the charging power according to the current battery temperature and the temperature rise of the battery temperature, including: reducing charging power according to the current battery temperature and the temperature rise of the battery temperature; the processing unit pre-adjusts the power consumption according to the current battery temperature and the temperature rise of the battery temperature, and the pre-adjusting the power consumption comprises the following steps: and closing a background application which has no association relation with the first application and/or limiting power supply to a hardware module which has no dependency relation with the first application and currently generates power consumption.
10. An electronic device, comprising: a processor and a memory; the memory stores program instructions that, when executed by the processor, cause the electronic device to perform the method of any of claims 1-8.
11. A chip system, comprising: a memory and a processor; the memory stores program instructions that, when executed by the processor, cause the chip system to perform the method of any of claims 1-8.
12. A computer storage medium having stored therein program instructions which, when run on a computer, cause the computer to perform the method of any of claims 1-8.
13. A computer program product, characterized in that it, when run on a computer, causes the computer to perform the method of any of claims 1-8.
CN202210602149.1A 2022-05-30 2022-05-30 Charging method and device and electronic equipment Active CN116054297B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210602149.1A CN116054297B (en) 2022-05-30 2022-05-30 Charging method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210602149.1A CN116054297B (en) 2022-05-30 2022-05-30 Charging method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN116054297A CN116054297A (en) 2023-05-02
CN116054297B true CN116054297B (en) 2024-03-29

Family

ID=86113877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210602149.1A Active CN116054297B (en) 2022-05-30 2022-05-30 Charging method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116054297B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016187842A1 (en) * 2015-05-27 2016-12-01 华为技术有限公司 Charging method and mobile terminal
CN107423199A (en) * 2017-07-14 2017-12-01 广东欧珀移动通信有限公司 Electronic equipment, temperature rise control method, control device and storage medium
CN107885545A (en) * 2017-10-31 2018-04-06 广东欧珀移动通信有限公司 application management method, device, storage medium and electronic equipment
CN108052196A (en) * 2017-12-29 2018-05-18 北京元心科技有限公司 Power consumption control method, device and terminal device
CN109960395A (en) * 2018-10-15 2019-07-02 华为技术有限公司 Resource regulating method and computer equipment
CN111446753A (en) * 2020-03-31 2020-07-24 联想(北京)有限公司 Charging control method, device, equipment and storage medium
CN112737019A (en) * 2020-12-24 2021-04-30 联想(北京)有限公司 Charging control method and device
CN113224822A (en) * 2021-05-26 2021-08-06 北京小米移动软件有限公司 Charging control method and device and storage medium
CN113383311A (en) * 2019-04-12 2021-09-10 深圳市欢太科技有限公司 Application processing method and device, storage medium and electronic equipment
CN113725954A (en) * 2021-08-16 2021-11-30 北京小米移动软件有限公司 Charging method, device, equipment and storage medium
CN114461481A (en) * 2020-11-09 2022-05-10 哲库科技(上海)有限公司 Method and device for determining power consumption of electronic equipment, storage medium and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7383451B2 (en) * 2005-02-18 2008-06-03 Lenovo (Singapore) Pte. Ltd. Controlling power usage of computing device components in holistic manner
CN112701736A (en) * 2019-10-23 2021-04-23 北京小米移动软件有限公司 Charging method, charging device, electronic device and storage medium
CN111708427B (en) * 2020-05-29 2022-07-22 广州三星通信技术研究有限公司 Method for managing terminal and terminal

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016187842A1 (en) * 2015-05-27 2016-12-01 华为技术有限公司 Charging method and mobile terminal
CN107423199A (en) * 2017-07-14 2017-12-01 广东欧珀移动通信有限公司 Electronic equipment, temperature rise control method, control device and storage medium
CN107885545A (en) * 2017-10-31 2018-04-06 广东欧珀移动通信有限公司 application management method, device, storage medium and electronic equipment
CN108052196A (en) * 2017-12-29 2018-05-18 北京元心科技有限公司 Power consumption control method, device and terminal device
CN109960395A (en) * 2018-10-15 2019-07-02 华为技术有限公司 Resource regulating method and computer equipment
CN113383311A (en) * 2019-04-12 2021-09-10 深圳市欢太科技有限公司 Application processing method and device, storage medium and electronic equipment
CN111446753A (en) * 2020-03-31 2020-07-24 联想(北京)有限公司 Charging control method, device, equipment and storage medium
CN114461481A (en) * 2020-11-09 2022-05-10 哲库科技(上海)有限公司 Method and device for determining power consumption of electronic equipment, storage medium and electronic equipment
CN112737019A (en) * 2020-12-24 2021-04-30 联想(北京)有限公司 Charging control method and device
CN113224822A (en) * 2021-05-26 2021-08-06 北京小米移动软件有限公司 Charging control method and device and storage medium
CN113725954A (en) * 2021-08-16 2021-11-30 北京小米移动软件有限公司 Charging method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN116054297A (en) 2023-05-02

Similar Documents

Publication Publication Date Title
US20200336817A1 (en) Method of controlling charging level in audio device that is connectable to electronic device
US11070074B2 (en) Apparatus and method for charging battery based on temperature
EP3840104B1 (en) Optional terminal charging method, graphical user interface and electronic device
US10775872B2 (en) Method and apparatus for managing battery of electronic device
CN111132234A (en) Data transmission method and corresponding terminal
CN110333834B (en) Frame frequency adjusting method and device, display device and computer readable storage medium
EP3813221A1 (en) Battery charging method, battery charging apparatus and storage medium
CN113722030B (en) Display method, electronic equipment and computer storage medium
CN111182614A (en) Method and device for establishing network connection and electronic equipment
CN110401242B (en) Multi-battery parallel charging circuit and method and wearable device with circuit
CN112737028B (en) Charging conversion equipment and charging control method
CN112928787A (en) Charging circuit, electronic equipment, charging control method and device
EP4283826A1 (en) Charging circuit, charging control method and electronic device
CN112672053A (en) Photographing method, photographing device, terminal equipment and computer-readable storage medium
CN113224822A (en) Charging control method and device and storage medium
CN115425706A (en) Charging method and related electronic equipment
CN116054297B (en) Charging method and device and electronic equipment
CN113451669A (en) Charging method and device, electronic device and storage medium
CN114567055B (en) Charging method and related equipment
CN115173495A (en) Charging control method, charging control device and storage medium
CN111864858A (en) Charging control method, charging control device, power utilization equipment, charging system and medium
CN216489841U (en) Charging and discharging circuit and electronic equipment
CN112448039A (en) Lithium ion battery and lithium ion battery charging and discharging control method and device
WO2022022436A1 (en) Charging method and electronic device
CN111527663A (en) Charging loop management method and system

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