CN114614549A - Charging method and related electronic equipment - Google Patents

Charging method and related electronic equipment Download PDF

Info

Publication number
CN114614549A
CN114614549A CN202210458431.7A CN202210458431A CN114614549A CN 114614549 A CN114614549 A CN 114614549A CN 202210458431 A CN202210458431 A CN 202210458431A CN 114614549 A CN114614549 A CN 114614549A
Authority
CN
China
Prior art keywords
peripheral device
current
charging
battery
constant current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210458431.7A
Other languages
Chinese (zh)
Other versions
CN114614549B (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 CN202211031145.9A priority Critical patent/CN115425706B/en
Priority to CN202210458431.7A priority patent/CN114614549B/en
Publication of CN114614549A publication Critical patent/CN114614549A/en
Application granted granted Critical
Publication of CN114614549B publication Critical patent/CN114614549B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/00712Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
    • H02J7/007182Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters in response to battery voltage
    • 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
    • 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/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • H02J7/0048Detection of remaining charge capacity or state of charge [SOC]
    • 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/00712Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
    • H02J7/00714Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters in response to battery charging or discharging current
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • General Chemical & Material Sciences (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application provides a charging method and a related electronic device, wherein the charging method comprises the following steps: precharging the battery with a first constant current in response to a first operation; in the pre-charging process, the voltage of the battery is a first voltage, and the first voltage is smaller than a first voltage threshold value; charging the battery at a second constant current if the voltage of the battery is greater than or equal to the first voltage threshold; wherein the second constant current is greater than the first constant current; in the process of charging the battery at a second constant current, the voltage of the battery is gradually increased, and the voltage of the battery is greater than or equal to a first voltage threshold and less than or equal to a second voltage threshold; under the condition that the second constant current is smaller than the first current threshold value, adjusting the working mode of the target peripheral device; after the working mode of the target peripheral device is adjusted, the second constant current is increased, and the increased second constant current is smaller than or equal to a first current threshold value.

Description

Charging method and related electronic equipment
Technical Field
The present disclosure relates to the field of battery charging, and more particularly, to a charging method and a related electronic device.
Background
At present, a rechargeable lithium ion battery is generally used as a power supply for terminal equipment such as a mobile phone, and the lithium ion battery needs to be charged by a charger. At present, most of lithium battery chargers adopt various special control Integrated Circuits (ICs) and various sampling circuits. Most of the current universal lithium battery chargers adopt a bipolar operational amplifier (such as LM358) to control a discrete device PNP (such as S8550) to perform voltage-limiting charging on the lithium battery, and in the charging process, along with the rise of the voltage of a charged battery, the charging current of the battery is continuously reduced until the voltage of the charged battery reaches a set value (generally, the nominal value is 4.2V), and at the moment, the charging voltage keeps unchanged to maintain small current charging and discharging, so that the battery is balanced.
However, in some cases, the charging time of the terminal device becomes long due to the presence of a load on the electronic device or the lack of power of the charger. Therefore, poor product use experience is brought to users. How to increase the charging speed of the battery and shorten the charging time becomes a problem that technicians pay more attention to.
Disclosure of Invention
The embodiment of the application provides a charging method and related electronic equipment, and solves the problems that in a constant-current charging stage, the charging current of a battery cannot reach a set value, so that the charging speed of the battery is reduced, and the charging time is further prolonged.
In a first aspect, an embodiment of the present application provides a charging method, including: precharging the battery with a first constant current in response to a first operation; in the pre-charging process, the voltage of the battery is a first voltage, and the first voltage is smaller than a first voltage threshold value; charging the battery at a second constant current when the voltage of the battery is greater than or equal to the first voltage threshold; wherein the second constant current is greater than the first constant current; in the process of charging the battery at the second constant current, the voltage of the battery is gradually increased, and the voltage of the battery is greater than or equal to the first voltage threshold and less than or equal to the second voltage threshold; under the condition that the second constant current is smaller than the first current threshold, adjusting the working mode of the target peripheral device; and after the working mode of the target peripheral device is adjusted, the second constant current is increased, and the increased second constant current is smaller than or equal to the first current threshold.
In the above embodiment, the electronic device dynamically detects the magnitude of the charging current during the charging process, and in the constant-current charging stage, the working modes of some peripheral devices are adjusted under the condition that the charging current of the battery does not reach the preset value, so that the charging current flowing into the peripheral devices is reduced, the charging current flowing to the battery is increased, and the charging efficiency is improved.
With reference to the first aspect, in a possible implementation manner, before the adjusting the operation mode of the target peripheral device, the method further includes: calculating a difference Ix between the first current threshold and the second constant current; determining a target peripheral device in a power consumption information table based on Ix; the power consumption information table comprises power consumption information of the peripheral device which is currently running, and the power consumption information comprises current consumed by the peripheral device under normal operation and current consumed under a low power consumption mode.
With reference to the first aspect, in a possible implementation manner, the power consumption information table includes a first peripheral device and a second peripheral device; the first peripheral device is a peripheral device which is associated with the application program which is currently operated in the foreground, the second peripheral device is a peripheral device which is not associated with the application program which is currently operated in the foreground and is currently operated, and the target peripheral device does not comprise the first peripheral device.
With reference to the first aspect, in a possible implementation manner, the second peripheral devices in the power consumption information table are sorted according to priority from high to low, and the target peripheral device is determined in the second peripheral device according to priority based on the power consumption information; the priority is sorted according to the difference value of the current consumed by the second external device in the normal working mode and the current consumed by the second external device in the low power consumption mode, and the larger the difference value is, the larger the priority is; alternatively, the priority is ordered according to the number of running applications associated with the second peripheral device, with the greater the number, the lesser the priority.
With reference to the first aspect, in a possible implementation manner, determining a target peripheral device in a power consumption information table based on Ix specifically includes: selecting M second external devices with the priority ranking of M as the first external devices from the second external devices based on Ix; the sum of the difference values of the current consumed by the selected target peripheral device under the normal work and the current consumed after the work mode is adjusted is equal to Ix; or the sum of the difference values of the current consumed by the selected target peripheral device under the normal operation and the current consumed after the operation mode is adjusted is less than or closest to Ix. Thus, the charging current flowing to the target peripheral device can be reduced, and the charging current flowing to the battery can be increased, thereby shortening the charging time of the battery.
With reference to the first aspect, in a possible implementation manner, after the adjusting the operation mode of the target peripheral device, the method further includes: after detecting the first input operation, switching the first application program to foreground operation; adjusting the peripheral device associated with the first application program to a normal operating mode; calculating a difference Ix between the current second constant current and the first current threshold; determining L peripheral devices with the priority rank of the first L as the peripheral devices to be adjusted in the third peripheral device based on Ix; the third peripheral device is a peripheral device in a normal working mode in the second peripheral device; adjusting the working mode of the peripheral device to be adjusted; and after the working mode of the peripheral device to be regulated is regulated, the second constant current is increased, and the increased second constant current is smaller than and closest to the first current threshold. Thus, the charging current flowing to the target peripheral device can be reduced, and the charging current flowing to the battery can be increased, thereby shortening the charging time of the battery.
In a second aspect, an embodiment of the present application provides an electronic device, including:
a response unit for responding to the first operation;
the first charging unit is used for pre-charging the battery at a first constant current;
a second charging unit for charging the battery at a second constant current if the voltage of the battery is greater than or equal to the first voltage threshold;
and the first adjusting unit is used for adjusting the working mode of the target peripheral device under the condition that the second constant current is smaller than the first current threshold.
With reference to the second aspect, in one possible implementation manner, the charging device further includes:
the calculating unit is used for calculating a difference Ix between the first current threshold and the second constant current;
and the first determining unit is used for determining the target peripheral device in the power consumption information table based on Ix.
With reference to the second aspect, in a possible implementation manner, the determining the target peripheral device in the power consumption information table based on Ix specifically includes: selecting M second external devices with the priority ranking of M as the first external devices from the second external devices based on Ix; the sum of the difference values of the current consumed by the selected target peripheral device under the normal work and the current consumed after the work mode is adjusted is equal to Ix; or the sum of the difference values of the current consumed by the selected target peripheral device under the normal operation and the current consumed after the operation mode is adjusted is less than or closest to Ix.
With reference to the second aspect, in one possible implementation manner, the charging device further includes:
a detection unit configured to detect a first input operation;
the switching unit is used for switching the first application program to foreground operation;
the adjusting unit is used for adjusting the peripheral device associated with the first application program into a normal working mode;
the second determining unit is used for determining L peripheral devices with the priority ranking of the first L as the peripheral devices to be adjusted in the third peripheral device based on Ix;
and the second adjusting unit is used for adjusting the working mode of the peripheral device to be adjusted.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors and memory; the memory coupled with the one or more processors, the memory to store computer program code, the computer program code including computer instructions, the one or more processors to invoke the computer instructions to cause the electronic device to perform: precharging the battery with a first constant current in response to a first operation; in the pre-charging process, the voltage of the battery is a first voltage, and the first voltage is smaller than a first voltage threshold value; charging the battery at a second constant current when the voltage of the battery is greater than or equal to the first voltage threshold; wherein the second constant current is greater than the first constant current; in the process of charging the battery at the second constant current, the voltage of the battery is gradually increased, and the voltage of the battery is greater than or equal to the first voltage threshold and less than or equal to the second voltage threshold; under the condition that the second constant current is smaller than the first current threshold, adjusting the working mode of the target peripheral device; and after the working mode of the target peripheral device is adjusted, the second constant current is increased, and the increased second constant current is smaller than or equal to the first current threshold.
With reference to the third aspect, in one possible implementation manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: determining a target peripheral device in a power consumption information table based on Ix, specifically comprising: selecting M second external devices with the priority ranking of M as the first external devices from the second external devices based on Ix; the sum of the difference values of the current consumed by the selected target peripheral device under the normal work and the current consumed after the work mode is adjusted is equal to Ix; or the sum of the difference values of the current consumed by the selected target peripheral device under the normal operation and the current consumed after the operation mode is adjusted is less than or closest to Ix.
With reference to the third aspect, in one possible implementation manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: after detecting the first input operation, switching the first application program to foreground operation; adjusting the peripheral device associated with the first application program to a normal operating mode; calculating a difference Ix between the current second constant current and the first current threshold; determining L peripheral devices with the priority rank of the first L as the peripheral devices to be adjusted in the third peripheral device based on Ix; the third peripheral device is a peripheral device in a normal working mode in the second peripheral device; adjusting the working mode of the peripheral device to be adjusted; and after the working mode of the peripheral device to be regulated is regulated, the second constant current is increased, and the increased second constant current is smaller than and closest to the first current threshold.
In a fourth aspect, the present application provides a computer program product containing instructions, which when run on an electronic device, causes the electronic device to perform the method according to the first aspect or any one of the implementation manners of the first aspect.
In a fifth aspect, the present application provides a computer-readable storage medium, which includes instructions that, when executed on an electronic device, cause the electronic device to perform the method according to the first aspect or any one of the implementation manners of the first aspect.
Drawings
Fig. 1A is a schematic diagram of a charging stage of a lithium battery provided in an embodiment of the present application;
FIG. 1B is a schematic diagram of another lithium battery charging stage provided in the examples of the present application
Fig. 2A-fig. 2B are schematic diagrams illustrating a charging scenario of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a system architecture diagram of a charging method according to an embodiment of the present application;
fig. 4 is a flowchart of a charging method provided in an embodiment of the present application;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those skilled in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," and the like in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not necessarily for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process may comprise a sequence of steps or elements, or may alternatively comprise steps or elements not listed, or may alternatively comprise other steps or elements inherent to such process, method, article, or apparatus.
Only some, but not all, of the material relevant to the present application is shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
As used in this specification, the terms "component," "module," "system," "unit," and the like are intended to refer to a computer-related entity, either hardware, firmware, a combination of hardware and software, or software in execution. For example, a unit may be, but is not limited to being, a process running on a processor, an object, an executable, a thread of execution, a program, and/or a distribution between two or more computers. In addition, these units may execute from various computer readable media having various data structures stored thereon. The units may communicate by way of local and/or remote processes such as in accordance with a signal having one or more data packets (e.g., from a second unit of data interacting with another unit in a local system, distributed system, and/or across a network.
The charging process of the lithium ion battery is mainly divided into three stages: a pre-charging stage, a constant current charging stage and a constant voltage charging stage. The basic requirements of a lithium battery charger are a specific charging current and charging voltage in order to ensure safe charging of the battery. In addition, other charging auxiliary functions can be added to prolong the service life of the battery and simplify the operation of the charger. Wherein the auxiliary functions may include: low current charging for over-discharged batteries, battery voltage detection, input current limiting, shutting down the charger after charging is complete, automatic start of charging after partial discharge of the battery, etc.
The charging mode of the lithium battery is voltage-limiting constant current and is controlled by an IC chip, and the common charging mode is as follows: the voltage of the battery to be charged is detected, and if the voltage of the battery is lower than the pre-charging voltage threshold Vpre, pre-charging is performed first, and the pre-charging current Ipre can be set to be a constant charging current Iv. After the voltage of the battery rises to the pre-charge voltage threshold V1, the constant current charging phase is entered. The charging process in the constant current charging stage is as follows: and charging the battery by setting Iv, and entering a constant voltage charging stage when the battery voltage rises to a set voltage threshold value Vc to keep the charging voltage Vc. At this time, the charging current flowing in the battery gradually decreases, and when the current decreases to I1, the charging ends.
Next, three stages of the lithium battery will be described in detail with reference to fig. 1A.
And at the time t 1-t 2, the lithium battery is in a pre-charging stage. The charging phase is the restorative charging of the fully discharged battery cells. When the battery voltage is lower than the precharge voltage threshold V1, the battery is charged by the precharge current Ipre. Wherein Ipre may be determined based on the constant current Iv set for the constant current charging phase. For example, in the constant current charging phase, Iv is 1A, and Ipre may take one tenth of Iv, that is, in the pre-charging phase, the battery may be charged with a constant current of 100 mA. During the pre-charging phase, the charging voltage of the battery is increased continuously, and when the charging voltage of the battery is greater than or equal to the set V1, the constant current charging phase is entered.
And at the time t 2-t 3, the charging stage of the lithium battery is a constant current charging stage. In the constant current charging stage, the charging current of the battery is preset Iv, and the voltage of the battery is gradually increased along with the constant current charging process. The constant current charging stage is a main stage of increasing the electric quantity of the battery and is also a stage of fastest charging energy of the battery, and the current value of the charging current required by the battery is the largest in the constant current charging stage. When the voltage of the battery reaches a preset full-voltage Vc, entering a constant-voltage charging stage.
And at the time t 3-t 4, the charging stage of the lithium battery is a constant-voltage charging stage. In the constant voltage charging phase, the charging voltage of the battery is kept constant and is preset Vc. The charging current is based on the saturation degree of the battery cell, the charging current is slowly reduced from Iv as the charging process continues, and the charging is terminated when the current value of the charging current is reduced to I1.
However, the user can use the terminal device during the charging process of the electronic device to ensure the use requirement. Such as making a phone call, watching a video, messaging, etc. during charging. This makes it necessary to supply a part of the charging current to the peripheral device or Micro Control Unit (MCU) of the terminal device during the charging process to ensure the proper operation of these hardware. This means that, in the constant current charging phase, the charging current does not reach the preset Iv, and the charge of the battery increases slowly, thereby prolonging the charging time. As shown in fig. 1B, in the constant current charging phase, the charging current flowing to the battery is less than Iv, and the time of the constant current charging phase is prolonged to the time t5 (t 5 is greater than t 3), so that the charging time of the battery is prolonged.
In another case, the power of the power supply connected to the charger itself is insufficient, so that the charging current of the battery is difficult to reach the preset constant current in the constant current stage of charging the battery, thereby reducing the charging speed and prolonging the charging time. For example, as shown in fig. 2A-2B, there are two charging modes for smart watch 101. The first way is to connect the smart watch 101 to a power outlet through the charger 102 for charging. The second way is to connect the smart watch 101 to the USB interface 103 of the socket for charging. Since the power supply provided by the USB interface 103 of the receptacle is small, the charging time for the smart watch 101 in the second manner is longer than the charging time in the first manner.
The charging method aims to solve the problems that in the battery charging process, due to the fact that an application program of the electronic equipment and/or a related peripheral device runs, a charging current is partially shunted to the MCU and/or the peripheral device, and therefore in the constant current charging stage, the current value of the charging current flowing into the battery does not reach a preset value, the electric quantity of the battery is slowly increased, and the charging time is prolonged. The application provides a charging method: in the charging process, the electronic equipment dynamically detects the magnitude of the charging current, and in the constant-current charging stage, under the condition that the charging current of the battery does not reach a preset value, the working modes of partial peripheral devices are adjusted, so that the charging current flowing into the partial peripheral devices is reduced, the charging current flowing to the battery is increased, and the charging efficiency is improved.
Next, a system architecture of the charging method according to the embodiment of the present application is described with reference to fig. 3. Referring to fig. 3, fig. 3 is a system framework diagram of a charging method according to an embodiment of the present disclosure. As shown in fig. 3, the system framework includes a current management module, a battery, peripheral devices (only 5 peripheral devices are listed in fig. 3, and it is assumed that the peripheral devices 1 to 5 are all running peripheral devices), a power consumption adjustment module, and an MCU. The application programs 1 to 5 deployed on the MCU are running application programs, and the application programs 1 to 5 are respectively associated with the peripheral devices 1 to 5. When the application 1 is running, the peripheral device 1 is also running. When the application 2 is running, the peripheral device 2 is also running. When the application 3 is running, the peripheral device 3 is also running. When the application 4 is running, the peripheral device 4 is also running. When the application 5 is running, the peripheral device 5 is also running. The current management module is used for distributing the charging current Ig, and the power consumption adjusting module is used for reducing the power consumption of the peripheral device/MCU. During the charging process, the working process of the system is as follows:
the current management module distributes a part of current Is of the Ig to the MCU of the electronic equipment and the running peripheral devices so as to ensure that the peripheral devices and the MCU can work normally. The power management module distributes another portion of the charging current I2 to the battery for battery charging. During the charging process, the power consumption adjusting module periodically detects the charging current I2 flowing into the battery. In the constant current charging stage, after the power consumption adjusting module detects I2 flowing into the battery, the power consumption adjusting module compares I2 with a preset current Iv to determine whether I2 is greater than or equal to Iv. If I2 is greater than or equal to Iv, the power consumption adjusting module does not adjust the power consumption of the MCU and the related peripheral devices. If I2 is smaller than Iv, the power consumption adjusting module will reduce the power consumption of the related peripheral devices or MCU, so as to increase I2 and shorten the charging time.
The following describes a flow of a charging method provided in an embodiment of the present application in detail with reference to specific embodiments. Referring to fig. 4, fig. 4 is a flowchart of a charging method provided in the embodiment of the present application, and the specific flow is as follows:
step S401: precharging the battery with a first constant current in response to a first operation; during the pre-charging process, the battery voltage is a first voltage, and the first voltage is smaller than a first voltage threshold value.
Specifically, in the process of pre-charging the battery, the charging current of the battery is a constant current, and the current is a first constant current. Illustratively, the first constant current may be Ipre in the embodiment of fig. 1A described above. During the pre-charging process, the voltage of the battery continuously rises along with the increase of the charging time, but is always smaller than a voltage threshold value, and the voltage threshold value is a first voltage threshold value. The first voltage threshold may be obtained based on an empirical value, may also be obtained based on historical data, and may also be obtained based on experimental data, which is not limited in the embodiment of the present application. Illustratively, the first voltage threshold may be V1 in the embodiment of fig. 1A described above.
Step S402: and charging the battery at a second constant current when the voltage of the battery is greater than or equal to the first voltage threshold.
Specifically, in the pre-charging phase, the voltage of the battery is increased along with the increase of the charging time, and when the voltage of the battery is greater than or equal to the first voltage threshold, the battery enters the constant-current charging phase in the embodiment of fig. 1A. And the electronic equipment charges the battery at a second constant current, and the voltage of the battery is continuously increased but is smaller than a second voltage threshold value in the constant current charging stage. The second voltage threshold may be obtained based on an empirical value, historical data, or experimental data, and the embodiment of the present application is not limited. Illustratively, the second voltage threshold may be Vc in the embodiment of fig. 1A described above.
Step S403: and under the condition that the second constant current is smaller than the first current threshold, adjusting the working mode of the target peripheral device.
Specifically, the first current threshold may be obtained based on an empirical value, may also be obtained based on historical data, and may also be obtained based on experimental data, which is not limited in the embodiment of the present application. Illustratively, the first current threshold may be Iv in fig. 1A, described above. Adjusting the working mode of the target peripheral device can be understood as adjusting the target peripheral device from a normal working mode to a low power consumption mode; or, the current flowing to the target peripheral device is reduced, so that the current flowing to the target peripheral device is smaller than the current consumed in the normal working mode and larger than the current consumed in the low power consumption mode. In the charging process of the electronic device, the distribution of the charging current mainly has the following two conditions:
in the first case: the electronic equipment does not have any application program or peripheral device to operate in the charging process, namely: the peripheral devices and/or the MCU of the electronic device do not consume current. At this time, almost all of the charging current of the electronic device flows to the battery. The peripheral devices of the electronic device may be hardware devices such as a bluetooth chip, a chip for controlling a screen, and an image processor of the electronic device. Applications of the electronic device are deployed on the MUC, and the MCU needs to consume current when there is an application running.
In the second case: the electronic equipment has running application programs or peripheral devices in the charging process. The MCU of the electronic device and the associated peripheral devices then consume current. At this time, the charging current flowing into the electronic device Is mainly divided into two parts, the first part Is the current Is flowing into the peripheral device and/or the MCU, and Is used to maintain the normal operation of the peripheral device and/or the MCU. The second part is the current I2 flowing into the battery for increasing the charge of the battery to charge the battery.
Therefore, after the electronic device enters the constant current charging stage, the electronic device detects the magnitude of the second constant current and compares the magnitude of the second constant current with the magnitude of the first current threshold. If the second constant current is smaller than the first current threshold, the electronic device may adjust the operating mode of the target peripheral device according to a difference between the second constant current and the first current threshold, reduce the charging current flowing to the target peripheral device, and increase the charging current flowing to the battery, thereby shortening the charging time of the battery.
In some embodiments, the electronic device may determine the target peripheral device and adjust the operating mode of the target peripheral device through a built-in peripheral device power consumption information table. For example, the peripheral device power consumption information table may be as shown in table 1:
TABLE 1
Figure 619545DEST_PATH_IMAGE001
In table 1, the GPS chip, the PPG, the screen, and the bluetooth chip are peripheral devices of the electronic device, and in the normal operating mode, the power consumptions are respectively 15mA, 8mA, 35mA, and 10mA, and in the low power consumption mode, the power consumptions are respectively 10mA, 3mA, 28mA, and 5 mA. Where low power consumption may be understood as sacrificing some of the performance of the peripheral device such that the current consumed by the peripheral device is reduced. For example, reducing the power consumption of the screen may be understood as reducing the brightness, refresh rate, and the like of the screen, and reducing the power consumption of the bluetooth chip may be understood as reducing the operating frequency of the bluetooth chip, and the like. The electronic device may determine the target peripheral device based on the difference between I2 and the first current threshold and reduce the current consumed by the peripheral device, thereby bringing I2 close to the first current threshold and reducing the charging time of the battery.
For example, the electronic device detects that I2 is 85mA and the first current threshold Iv is 100 mA. Then the current difference between I2 and Iv is 15 mA. The electronic equipment can determine that the three peripheral devices including the GPS chip, the PPG sensor and the Bluetooth chip are target devices, and the working modes of the GPS chip, the PPG sensor and the Bluetooth chip are adjusted to be low-power-consumption modes, so that the working currents consumed by the Bluetooth chip, the GPS chip and the PPG sensor are reduced, and the reduced working currents flow to the battery. For example, after the electronic device adjusts the operating modes of the three peripheral devices, namely the GPS chip, the PPG sensor, and the bluetooth chip, to the low power consumption mode, the current consumption of the three peripheral devices, namely the GPS chip, the PPG sensor, and the bluetooth chip, is respectively changed from 15mA to 10mA, from 8mA to 3mA, and from 10mA to 5 mA. Thus, I2 was increased by 15mA to 100mA, which was the same as Iv. Thus, the charging time of the battery is greatly reduced in the constant current charging stage.
In a possible implementation manner, the electronic device may dynamically update the power consumption information table of the peripheral device, and then select M peripheral devices with the priority ranking of the top M as target peripheral devices according to the priority ranking in the power consumption information table of the peripheral device according to the difference Ix between the second constant current and the first current threshold, thereby adjusting the operating mode of the peripheral devices. And the sum of the difference values of the current consumed by the selected target peripheral device under the normal operation and the current consumed after the operation mode is adjusted is equal to Ix. Or the sum of the difference values of the current consumed by the selected target peripheral device under the normal operation and the current consumed after the operation mode is adjusted is smaller than and closest to Ix.
The first peripheral device and the second peripheral device may be included in the peripheral device power consumption information table. The first peripheral device is a peripheral device which is currently working and is associated with the application program running in the foreground, and the second peripheral device is a peripheral device which is currently running and is not associated with the application program running in the foreground. For example, the application programs running in the electronic equipment comprise applications 1 to 10, and the applications 1 to 10 are respectively associated with the devices 1 to 10. Suppose that the devices 1 to 10 are currently started peripheral devices, the application 1 is an application program running in the foreground, and the applications 2 to 10 are application programs running in the background. Then, the first peripheral device is the device 1, and the devices 2 to 10 are second peripheral devices. Because the first peripheral device is a peripheral device associated with the application program currently running in the foreground, the target peripheral device cannot be determined in the first peripheral device, and the target peripheral device cannot be determined in the second peripheral device, so that the use effect of the foreground application program is not influenced.
The electronic equipment can sort the priority of the peripheral devices in the second peripheral devices, so that the electronic equipment can select the peripheral device with high priority from the second peripheral devices as a target peripheral device according to the difference value between the second constant current and the first current threshold. The electronic device may prioritize the peripheral devices in the second peripheral device based on two methods:
in a first method, the electronic device may determine the priority of the peripheral device based on a difference between a current consumed by the peripheral device in the normal operating mode and a current consumed by the peripheral device in the low power consumption mode. The larger the difference, the more advanced the priority ranking of the peripheral device in the second peripheral device, the easier it is to determine the target peripheral device.
Referring to table 2, table 2 is an exemplary power consumption information table of the second peripheral device (device 2 to device 10), and table 2 is as follows:
TABLE 2
Figure 727178DEST_PATH_IMAGE002
As shown in table 2, the power consumptions of the devices 2 to 10 in the normal operation mode are 56, 79, 24, 33, 72, 44, 58, 61, and 22, respectively, and the power consumptions of the devices 2 to 10 in the low power consumption mode are 51, 68, 22, 27, 60, 40, 50, 54, and 21, respectively. Therefore, the difference between the current consumed by the devices 2 to 10 in the normal operation mode and the current consumed in the low power consumption mode is 5, 11, 2, 6, 12, 4, 8, 7 and 1, respectively. The devices 2-10 are sorted from front to back according to the priority as follows: device 6> device 3> device 8> device 9> device 5> device 2> device 7> device 4> device 10. Assuming that the second constant current currently charging the battery is 80mA, if the first current threshold Iv is 100mA, Ix is 20 mA. Then, the electronic apparatus may select the peripheral devices (device 6 and device 3) of the top priority 2 as the target peripheral devices, adjust the device 6 to the low power consumption mode, and adjust the current flowing to the device 3 to 71mA, so that the current decreasing to the device 6 and the device 3 coincides with Ix. By the mode, the number of the target peripheral devices determined by the electronic equipment is as small as possible, and the use experience of a user is improved. It should be noted that, after the electronic device adjusts the operation mode of the target peripheral device, the current flowing to the target peripheral device should be not less than the current value consumed in the low power consumption operation mode. For example, the device 6 is a target peripheral device, and when the electronic device adjusts the operating mode of the device 6, the current flowing into the device 6 should be ensured to be in the range of 60 mA-72 mA.
The second method comprises the following steps: the electronic device may prioritize the peripheral devices in the second peripheral device according to the number of currently running applications associated with the peripheral devices in the second peripheral device. The more peripheral devices associated with an application, the lower their priority, i.e.: the less easily it is determined to be the target peripheral device. The application program associated with the peripheral device may be understood as the peripheral device that the application program can use in the using process. For example, a piece of music software is associated with at least three peripheral devices, including a screen (display interface), a speaker, and a GPS chip (currently, most music applications have positioning functions). As shown in table 3, for another exemplary power consumption information table of the second external device provided in the embodiment of the present application, table 3 is as follows:
TABLE 3
Figure 669857DEST_PATH_IMAGE003
As shown in Table 3, the number of running applications associated with devices 2-10 are: 3. 5, 6, 2, 1, 7, 4, 5. The devices 2-10 are sorted from front to back according to the priority as follows: device 6> device 5> device 2> device 8, device 9> device 3, device 10> device 4> device 7. Assuming that the second constant current currently charging the battery is 80mA, if the first current threshold Iv is 100mA, Ix is 20 mA. Then, the electronic device may select the device 6, the device 5, and the device 2 with the top priority 3 as target peripheral devices, and adjust the operating modes of the 3 peripheral devices, so that the operating modes of the device 6 and the device 5 are low power consumption operating modes, and the current flowing into the device 2 is reduced to 54mA, so that the current reduced to the device 6, the device 5, and the device 2 is consistent with Ix. It should be noted that, after the electronic device adjusts the operation mode of the target peripheral device, the current flowing to the target peripheral device should be not less than the current value consumed in the low power consumption operation mode. For example, the device 6 is a target peripheral device, and when the electronic device adjusts the operating mode of the device 6, the current flowing into the device 6 should be ensured to be in the range of 60 mA-72 mA.
In some embodiments, after adjusting the operating mode of the target peripheral device, the electronic device may switch the application currently running in the foreground to the first application in response to a first input operation by the user. Then, the electronic equipment updates the power consumption information table of the peripheral device, and the specific mode is as follows: and determining the peripheral device associated with the first application program as a first peripheral device, determining the running peripheral device which is not associated with the first application program as a second peripheral device, and sequencing the peripheral devices in the second peripheral device according to the two methods. The electronic device then adjusts the operating mode of the peripheral device associated with the first application to a normal operating mode. Thus, the current flowing to the peripheral device is increased, so that the second constant current becomes smaller. Therefore, the electronic device may calculate a difference Ix between the current second constant current and the first current threshold, determine, according to Ix, the peripheral device with the priority level of the front L as the peripheral device to be adjusted in the second peripheral device, and adjust the working mode of the peripheral device to be adjusted to reduce the current flowing to the L peripheral devices, so that the reduced current is equal to Ix.
In some embodiments, the electronic device may determine the target application and the target peripheral device according to the application power consumption information table, and adjust the operating modes of the target application and the target peripheral device to the low power consumption mode, thereby implementing the increase I2. For example, the application power consumption information table may be as shown in table 4:
TABLE 4
Figure 953071DEST_PATH_IMAGE004
The electronic equipment can carry out priority classification on the application program running on the MCU, thereby carrying out targeted adjustment on the power consumption of the target application program or the target peripheral device. For example, the electronic device may set a power consumption adjustment whitelist, which is divided into a primary application, a secondary application, and a tertiary application. The first-level application program is an application program which runs in the background and has the duration less than or equal to a first time threshold, the second-level application program is an application program which runs in the background and has the duration greater than the first time threshold, and the third-level application program is an application program which runs in the foreground, wherein the priority order of the first-level application program, the second-level application program and the third-level application program is as follows: primary application > secondary application > tertiary application. The application programs in the application program power consumption information table include a first application program and a second application program. The first application program is an application program which does not start the peripheral device when running. And the second application program is an application program which starts the corresponding peripheral device when running. The current value consumed by the second application program in the normal working mode comprises the current value consumed by the peripheral device corresponding to the second application program in the normal working mode, and the current value consumed by the second application program in the low power consumption mode comprises the current value consumed by the peripheral device corresponding to the second application program in the low power consumption mode. For example, in table 4, application 1, application 3, and application 4 are the second application program, the power consumption of application 1 in the normal operation mode and the low power consumption mode is 30mA and 25mA, respectively, and the power consumption of device 1 is also included in 30mA and 25 mA.
In each level of application program, the priority is determined according to the difference between the current of the application program and the relevant peripheral device in the normal working mode and the current of the application program and the relevant peripheral device in the low power consumption mode, the application program with high difference and the peripheral device with high difference have high priority, and the application program with low difference and the relevant peripheral device with low difference have low priority. When the electronic device detects that I2 is less than or equal to the first current threshold Iv, the electronic device may adjust power consumption of an application in the primary application and an operating mode of a peripheral device corresponding to the application to reduce a charging current flowing to the MCU and the peripheral device. If the electronic equipment detects that the I2 is smaller than the Iv after the adjustment, the electronic equipment adjusts the application power consumption in the secondary application and the power consumption of the peripheral device corresponding to the application according to the priority, so as to increase the I2. Because the third-level application is an application program currently running in the foreground, the electronic device does not adjust the working mode of the application program in the third-level application and the working mode of the corresponding peripheral device. If the electronic device adjusts the operation modes of all the application programs in the secondary application and the primary application to the low power consumption mode, I2 is still less than Iv. Then the electronic device may start with the primary application, sequentially clean the application and close the peripheral devices associated with the application according to the priority until I2 is greater than or equal to Iv. If all the application programs and the related peripheral devices in the primary application and the secondary application are closed, I2 is still smaller than Iv, and the electronic device does not perform any processing any more.
The above process will be described with reference to table 4. In table 4 above, 10 applications of the electronic device are listed. Application 1, application 5, and application 6 are two-level applications with priorities of application 6> application 5> application 1. The application 2, the application 3, the application 4, the application 7, the application 8, the application 9, and the application 10 are first-level applications, and the priorities thereof are: application 4> application 9> application 7> application 2> application 8> application 3> application 10. Wherein, the total power consumption of the application 1 and the device 1 in the normal operation mode is 30mA, and the total power consumption in the low power consumption mode is 25 mA. The total power consumption of the application 3 and the device 2 in the normal operation mode is 8mA, and the total power consumption in the low power consumption mode is 6 mA. The total power consumption of the application 4 and the device 3 in the normal operation mode is 55mA, and the total power consumption in the low power consumption mode is 52 mA. The power consumption of the application 2, the application 5, the application 6, the application 7, the application 8, the application 9 and the application 10 in the normal operation mode is 15mA, 35mA, 40mA, 22mA, 11mA, 26mA and 8mA, respectively, and the power consumption in the low power consumption mode is 10mA, 33mA, 38mA, 20mA, 9mA, 22mA and 5 mA. Assuming that Iv is 150mA and the current I2 is 80mA, then I2 also requires 70mA to reach Iv. The electronic device may first adjust the operation modes of the application programs in the primary application in sequence according to the priorities. After the electronic device adjusts the operating modes of all the application programs in the primary application to the low power consumption mode, I2 is 101 mA. Since I2 is still less than Iv, the electronic device adjusts the operating mode of the application in the secondary application to the low power consumption mode in order of priority. At this time, I2 was 110mA, which was still less than Iv. The electronic equipment can sequentially close the application programs and the peripheral devices thereof in the first-level application according to the priority order, 52mA current flows to the battery after the electronic equipment closes the application 4 and the device 3, and the value of I2 is 162mA and is larger than Iv.
In some embodiments, after the electronic device adjusts the operating mode of the application program or turns off the application program and its peripheral devices, if I2 is greater than Iv, the electronic device may allocate a portion of the current, I2 exceeding Iv, to the application in the low power consumption mode, so that the application in the low power consumption operating mode may return to the normal operating mode. For example, in the above process, I2 is 162mA after the electronic device turns off application 4 and device 3. The current of the part I2 exceeding the Iv is 12mA, and the electronic device can distribute the current of 12mA to the application 1 and the device 1, the application 5, the application 6 and the application 10 in the low power consumption operation mode, so that the application and the peripheral device become the normal operation mode, thereby improving the use experience of the user. The electronic equipment can distribute the current exceeding the Iv part to the application program and the related peripheral devices in the low power consumption operation mode according to the priority. For example, the electronic device may now distribute current to the application program and its peripheral devices at low power consumption in the secondary application according to priority, so that it resumes the normal operating mode. If the distributable current exists after the current distribution to the application programs and the peripheral devices thereof in all the secondary applications is finished, the electronic equipment can distribute the remaining distributable current to the corresponding application programs and the peripheral devices thereof in the primary applications according to the priority order until the current distribution is finished.
Step S404: charging the battery at a third constant current.
Specifically, the third constant current is greater than the second constant current, and in the process of charging with the third constant current, the voltage of the battery is a third voltage, and the third voltage is greater than the second voltage.
In the embodiment of the application, the electronic device detects the charging current I2 flowing into the battery periodically during the charging process of the battery. In the constant current charging stage, the electronic device compares the current value I2 with a preset current value Iv after detecting I2 flowing into the battery. If I2 is greater than or equal to Iv, the electronic device does not adjust the power consumption of the MCU and the associated peripheral devices. If the I2 is smaller than Iv, the electronic device will adjust the operation mode of the relevant application program and the peripheral device thereof to a low power consumption mode, thereby increasing I2 and shortening the charging time.
Referring to fig. 5, fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure. The electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging 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, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification Module (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 light 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 is to be understood that the illustrated structure of the embodiment of the present invention does not limit the electronic device. In other embodiments of the present application, an electronic device may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components may be used. 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, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
The electronic device implements display functionality via the GPU, the display screen 194, and the application processor, among other things. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering.
The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device may include 1 or N display screens 194, with N being a positive integer greater than 1.
The electronic device may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device selects a frequency point, the digital signal processor is used for performing fourier transform and the like on the frequency point energy.
The NPU is a neural-network (NN) computing processor, which processes input information quickly by referring to a biological neural network structure, for example, by referring to a transfer mode between neurons of a human brain, and can also learn by itself continuously. The NPU can realize applications such as intelligent cognition of electronic equipment, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The internal memory 121 may be used to store computer-executable program code, which includes 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 internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The data storage area can store data (such as audio data, phone book and the like) created in the using process of the electronic device. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194.
The gyro sensor 180B may be used to determine the motion pose of the electronic device. In some embodiments, the angular velocity of the electronic device about three axes (i.e., x, y, and z axes) may be determined by the gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The ambient light sensor 180L is used to sense the ambient light level. The electronic device may adaptively adjust the brightness of the display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic equipment can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access to an application lock, fingerprint photographing, fingerprint incoming call answering and the like.
The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device at a different position than the display screen 194.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions described in accordance with the present application are generated, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.).
The center transmits. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk), among others.
One of ordinary skill in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the above method embodiments. And the aforementioned storage medium includes: various media capable of storing program codes, such as ROM or RAM, magnetic or optical disks, etc.
In short, the above description is only an example of the technical solution of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalents, improvements and the like made in accordance with the disclosure of the present invention are intended to be included within the scope of the present invention.

Claims (12)

1. A method of charging, comprising:
precharging the battery with a first constant current in response to a first operation; in the pre-charging process, the voltage of the battery is a first voltage, and the first voltage is smaller than a first voltage threshold value;
charging the battery at a second constant current if the voltage of the battery is greater than or equal to the first voltage threshold; wherein the second constant current is greater than the first constant current; in the process of charging the battery at the second constant current, the voltage of the battery is gradually increased, and the voltage of the battery is greater than or equal to the first voltage threshold and less than or equal to a second voltage threshold;
under the condition that the second constant current is smaller than the first current threshold value, adjusting the working mode of the target peripheral device; after the working mode of the target peripheral device is adjusted, the second constant current is increased, and the increased second constant current is smaller than or equal to the first current threshold.
2. The method of claim 1, wherein prior to adjusting the operating mode of the target peripheral device, further comprising:
calculating a difference Ix between the first current threshold and the second constant current;
determining the target peripheral device in a power consumption information table based on the Ix; the power consumption information table comprises power consumption information of the peripheral device which is currently running, and the power consumption information comprises current consumed by the peripheral device under normal operation and current consumed under a low power consumption mode.
3. The method of claim 2, wherein the power consumption information table includes a first peripheral device and a second peripheral device;
the first peripheral device is a peripheral device associated with an application program currently running in the foreground, the second peripheral device is a peripheral device which is not associated with the application program currently running in the foreground and is running, and the target peripheral device does not comprise the first peripheral device.
4. The method of claim 3, wherein the second peripheral device in the power consumption information table is sorted by priority from high to low, the target peripheral device being determined by priority in the second peripheral device based on the power consumption information;
the priority is sorted according to the difference value of the current consumed by the second external device in the normal working mode and the current consumed by the second external device in the low power consumption mode, and the larger the difference value is, the larger the priority is;
or, the priority is sorted according to the number of running applications associated with the second peripheral device, and the larger the number is, the smaller the priority is.
5. The method of claim 4, wherein the determining the target peripheral device in a power consumption information table based on the Ix specifically comprises:
selecting M second external devices with the priority ranking of M as target external devices from the second external devices based on the Ix;
the sum of the difference values of the current consumed by the selected target peripheral device under the normal work and the current consumed after the work mode is adjusted is equal to Ix;
or the sum of the difference values of the current consumed by the selected target peripheral device under the normal operation and the current consumed after the operation mode is adjusted is less than or closest to Ix.
6. The method of any of claims 3-5, wherein after adjusting the operating mode of the target peripheral device, further comprising:
after detecting the first input operation, switching the first application program to foreground operation;
adjusting the peripheral device associated with the first application program to a normal operating mode;
calculating a difference Ix between the current second constant current and the first current threshold;
determining L peripheral devices with the priority rank of front L as the peripheral devices to be adjusted in the third peripheral device based on the Ix; the third peripheral device is a peripheral device in a normal working mode in the second peripheral device;
adjusting the working mode of the peripheral device to be adjusted; and after the working mode of the peripheral device to be regulated is regulated, the second constant current is increased, and the increased second constant current is smaller than and closest to the first current threshold.
7. A charging device, comprising:
a response unit for responding to the first operation;
the first charging unit is used for pre-charging the battery at a first constant current;
a second charging unit for charging the battery at a second constant current if the voltage of the battery is greater than or equal to a first voltage threshold;
and the first adjusting unit is used for adjusting the working mode of the target peripheral device under the condition that the second constant current is smaller than the first current threshold.
8. The charging device of claim 7, further comprising:
the calculating unit is used for calculating a difference Ix between the first current threshold and the second constant current;
a first determining unit, configured to determine the target peripheral device in a power consumption information table based on the Ix.
9. The charging apparatus according to claim 8, wherein the determining the target peripheral device in a power consumption information table based on Ix specifically includes:
selecting M second external devices with the priority ranking of M as target external devices from the second external devices based on the Ix;
the sum of the difference values of the current consumed by the selected target peripheral device under the normal work and the current consumed after the work mode is adjusted is equal to Ix;
or the sum of the difference values of the current consumed by the selected target peripheral device under the normal operation and the current consumed after the operation mode is adjusted is less than or closest to Ix.
10. The charging device of claim 7, further comprising:
a detection unit configured to detect a first input operation;
the switching unit is used for switching the first application program to foreground operation;
the adjusting unit is used for adjusting the peripheral device associated with the first application program into a normal working mode;
the second determining unit is used for determining L peripheral devices with the priority sequence of front L as the peripheral devices to be regulated in the third peripheral device based on the difference Ix between the current second constant current and the first current threshold;
and the second adjusting unit is used for adjusting the working mode of the peripheral device to be adjusted.
11. An electronic device, comprising: a memory, a processor; wherein:
the memory for storing a computer program, the computer program comprising program instructions;
the processor is configured to invoke the program instructions to cause the electronic device to perform the method of any of claims 1-6.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the method according to any one of claims 1-6.
CN202210458431.7A 2022-04-28 2022-04-28 Charging method and related electronic equipment Active CN114614549B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211031145.9A CN115425706B (en) 2022-04-28 2022-04-28 Charging method and related electronic equipment
CN202210458431.7A CN114614549B (en) 2022-04-28 2022-04-28 Charging method and related electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210458431.7A CN114614549B (en) 2022-04-28 2022-04-28 Charging method and related electronic equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202211031145.9A Division CN115425706B (en) 2022-04-28 2022-04-28 Charging method and related electronic equipment

Publications (2)

Publication Number Publication Date
CN114614549A true CN114614549A (en) 2022-06-10
CN114614549B CN114614549B (en) 2022-09-30

Family

ID=81869521

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202211031145.9A Active CN115425706B (en) 2022-04-28 2022-04-28 Charging method and related electronic equipment
CN202210458431.7A Active CN114614549B (en) 2022-04-28 2022-04-28 Charging method and related electronic equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202211031145.9A Active CN115425706B (en) 2022-04-28 2022-04-28 Charging method and related electronic equipment

Country Status (1)

Country Link
CN (2) CN115425706B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116054303A (en) * 2022-07-08 2023-05-02 荣耀终端有限公司 Charging method and related electronic equipment
CN117411148A (en) * 2023-12-12 2024-01-16 荣耀终端有限公司 Charging method, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101099280A (en) * 2005-01-06 2008-01-02 日本电气株式会社 Mobile telephone terminal charging control device and charging control method
CN105098945A (en) * 2015-08-05 2015-11-25 青岛海信移动通信技术股份有限公司 Power adapter capable of direct charging
CN105556737A (en) * 2013-04-12 2016-05-04 希捷科技有限公司 Dynamic charging of a rechargeable battery
CN105573465A (en) * 2014-10-31 2016-05-11 三星电子株式会社 Electronic device and method for controlling power of electronic device
CN106340925A (en) * 2016-09-29 2017-01-18 广东欧珀移动通信有限公司 Charging control method, apparatus and terminal
CN108141056A (en) * 2015-10-07 2018-06-08 三星电子株式会社 Electronic equipment, charge control method and computer readable recording medium storing program for performing
CN207664646U (en) * 2016-11-18 2018-07-27 快捷半导体公司 Contact-type charging device
CN208707349U (en) * 2018-08-31 2019-04-05 上海艾为电子技术股份有限公司 A kind of switched charge chip and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SG11201406477UA (en) * 2012-04-10 2014-11-27 Tencent Tech Shenzhen Co Ltd Method for monitoring and manging battery charge level and apparatus for performing the same
CN104065125B (en) * 2014-06-28 2017-10-27 青岛歌尔声学科技有限公司 A kind of charging system of electronic product
CN106412343A (en) * 2015-07-28 2017-02-15 中兴通讯股份有限公司 Power consumption control method and device and mobile terminal
CN111446753B (en) * 2020-03-31 2022-08-19 联想(北京)有限公司 Charging control method, device, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101099280A (en) * 2005-01-06 2008-01-02 日本电气株式会社 Mobile telephone terminal charging control device and charging control method
CN105556737A (en) * 2013-04-12 2016-05-04 希捷科技有限公司 Dynamic charging of a rechargeable battery
CN105573465A (en) * 2014-10-31 2016-05-11 三星电子株式会社 Electronic device and method for controlling power of electronic device
CN105098945A (en) * 2015-08-05 2015-11-25 青岛海信移动通信技术股份有限公司 Power adapter capable of direct charging
CN108141056A (en) * 2015-10-07 2018-06-08 三星电子株式会社 Electronic equipment, charge control method and computer readable recording medium storing program for performing
CN106340925A (en) * 2016-09-29 2017-01-18 广东欧珀移动通信有限公司 Charging control method, apparatus and terminal
CN207664646U (en) * 2016-11-18 2018-07-27 快捷半导体公司 Contact-type charging device
CN208707349U (en) * 2018-08-31 2019-04-05 上海艾为电子技术股份有限公司 A kind of switched charge chip and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116054303A (en) * 2022-07-08 2023-05-02 荣耀终端有限公司 Charging method and related electronic equipment
CN116054303B (en) * 2022-07-08 2023-09-08 荣耀终端有限公司 Charging method and related electronic equipment
CN117411148A (en) * 2023-12-12 2024-01-16 荣耀终端有限公司 Charging method, electronic equipment and storage medium
CN117411148B (en) * 2023-12-12 2024-05-03 荣耀终端有限公司 Charging method, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114614549B (en) 2022-09-30
CN115425706B (en) 2023-08-25
CN115425706A (en) 2022-12-02

Similar Documents

Publication Publication Date Title
CN114614549B (en) Charging method and related electronic equipment
JP7252331B2 (en) Optional Terminal Charging Methods, Graphical User Interfaces, and Electronic Devices
EP4030422B1 (en) Voice interaction method and device
US8793520B2 (en) Power management of electronic devices based on charging location
KR102544462B1 (en) Electronic device comprising battery and method for controlling charging thereof
US9733688B2 (en) Virtual battery management in electronic device
CN113625860A (en) Mode switching method and device, electronic equipment and chip system
CN114977343A (en) Charging method, charging device, electronic equipment and storage medium
CN113224804A (en) Charging control method and electronic equipment
CN114567055B (en) Charging method and related equipment
CN106786959B (en) Charge control method, device and terminal
CN113451669A (en) Charging method and device, electronic device and storage medium
CN116054303B (en) Charging method and related electronic equipment
CN111343683A (en) Network switching method, device, storage medium and terminal
CN112701736A (en) Charging method, charging device, electronic device and storage medium
CN108512261B (en) Battery charging method and device
KR20230114667A (en) Electronic device for suppressing heat generation
CN113451670B (en) Battery charging method, device and medium
CN110549897A (en) charging scheduling method and device for self-walking equipment
CN116054297B (en) Charging method and device and electronic equipment
CN112928787B (en) Charging circuit, electronic device, charging control method and device
WO2023021709A1 (en) Mobile information terminal and method for controlling same
CN117713262A (en) Power management circuit and method, electronic equipment and storage medium
CN114744691A (en) Wireless charging method, device and system
CN117526470A (en) Wireless charging method and device, wearable device and storage medium

Legal Events

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