CN112737019A - Charging control method and device - Google Patents

Charging control method and device Download PDF

Info

Publication number
CN112737019A
CN112737019A CN202011555520.0A CN202011555520A CN112737019A CN 112737019 A CN112737019 A CN 112737019A CN 202011555520 A CN202011555520 A CN 202011555520A CN 112737019 A CN112737019 A CN 112737019A
Authority
CN
China
Prior art keywords
charging mode
electronic equipment
charging
power consumption
system power
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.)
Pending
Application number
CN202011555520.0A
Other languages
Chinese (zh)
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202011555520.0A priority Critical patent/CN112737019A/en
Publication of CN112737019A publication Critical patent/CN112737019A/en
Pending legal-status Critical Current

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/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/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
    • H02J7/007184Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters in response to battery voltage in response to battery voltage gradient

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application discloses a charging control method and a charging control device, which are used for controlling a quick charging function when equipment is in a normal operation state, and further realizing the quick charging function on the basis of ensuring the normal operation of the equipment. The method comprises the following steps: acquiring a system power consumption parameter of the electronic equipment in the running process of the electronic equipment; and charging a battery in the electronic equipment in a first charging mode or a second charging mode at least based on the system power consumption parameter of the electronic equipment, wherein the charging power of the first charging mode is greater than that of the second charging mode. By adopting the scheme provided by the application, the switching between the fast charging and the slow charging can be carried out according to the specific condition of the system power consumption parameter of the electronic equipment, therefore, the fast charging function can be realized on the basis of ensuring the normal operation of the equipment.

Description

Charging control method and device
Technical Field
The present disclosure relates to the field of electronic device charging, and in particular, to a charging control method and apparatus.
Background
Under the condition that the computer equipment is connected with a power supply, the adapter simultaneously supplies power to the system and the storage battery. The system power requirements increase as the load on the computer increases, and the adapter will then allocate more power to the system to maintain proper operation of the device. When the power distributed to the system by the adapter is large, the residual power cannot meet the requirement of quick charging of the battery.
Therefore, it is an urgent technical problem to be solved how to select an appropriate time for fast charging under the condition of ensuring the normal operation of the system.
Disclosure of Invention
An object of the embodiments of the present application is to provide a charging control method and apparatus, which are used to control a fast charging function when a device is in a normal operation state, so as to implement the fast charging function on the basis of ensuring normal operation of the device.
In order to solve the technical problem, the embodiment of the application adopts the following technical scheme: a charging control method is applied to an electronic device, the electronic device comprises an electronic system and a battery, and the battery can supply power to the electronic system, and the method comprises the following steps:
acquiring a system power consumption parameter of the electronic equipment in the running process of the electronic equipment;
and charging a battery in the electronic equipment in a first charging mode or a second charging mode at least based on the system power consumption parameter of the electronic equipment, wherein the charging power of the first charging mode is greater than that of the second charging mode.
The beneficial effect of this application lies in: in the operation process of the electronic equipment, system power consumption parameters of the electronic equipment can be acquired; at least based on electronic equipment's system consumption parameter, do battery among the electronic equipment carries out the charging of first mode of charging or second mode of charging, wherein, the charging power of first mode of charging is greater than the charging power of second mode of charging to can be in the switching of different modes of charging under the normal operating condition at equipment, because the charging power of two kinds of modes of charging is different, be equivalent to fast and fill the function slowly, consequently, can carry out the switching of fast filling and slowly filling according to electronic equipment's system consumption parameter's particular case through above-mentioned mode, consequently, this application can realize the function of fast filling on the basis of guaranteeing equipment normal operating.
In one embodiment, the charging a battery in the electronic device in a first charging mode or a second charging mode based on at least a system power consumption parameter of the electronic device includes:
starting the first charging mode under the condition that the system power consumption value of the electronic equipment is in a first range;
starting the second charging mode under the condition that the system power consumption value of the electronic equipment is in a second range; the maximum value in the first range is less than or equal to the minimum value in the second range, the first charging mode is a fast charging mode, and the second charging mode is a normal charging mode.
In one embodiment, the obtaining the system power consumption parameter of the electronic device includes:
acquiring a voltage value of a processor in the electronic equipment;
and calculating a system power consumption value of the electronic equipment according to the voltage value of the processor.
In one embodiment, the obtaining the voltage value of the processor in the electronic device includes:
and reading the voltage value of the processor according to a power reading chip connected to the processor.
In one embodiment, said calculating said system power consumption value from said processor voltage value comprises:
after the power reading chip reads the voltage value of the processor, the voltage value is sent to an embedded controller, so that the embedded controller calculates the system power consumption value of the electronic equipment according to the voltage value.
In one embodiment, the obtaining the system power consumption parameter of the electronic device includes:
acquiring an application program currently running by the electronic equipment;
and determining a system power consumption parameter of the electronic equipment according to the application program currently running by the electronic equipment.
In one embodiment, the acquiring the application currently running on the electronic device includes:
acquiring process information in an application management interface of the electronic equipment;
and determining the currently running application program according to the process information in the application management interface.
In one embodiment, the turning on the first charging mode in the case that the system power consumption value of the electronic device is in a first range includes:
and controlling the electronic equipment to start the first charging mode after the waiting period is over under the condition that the system power consumption value of the electronic equipment is in a first range.
In one embodiment, further comprising:
acquiring the electric quantity of the battery of the electronic equipment through an embedded controller;
and exiting the first charging mode under the condition that the electric quantity of the battery of the electronic equipment is greater than a specific value and the current charging mode is the first charging mode.
The application also provides a charge control device, is applied to electronic equipment, electronic equipment includes electronic system and battery, the battery can be for the electronic system power supply, the device includes:
the acquisition module is used for acquiring system power consumption parameters of the electronic equipment in the running process of the electronic equipment;
the charging control module is used for charging a battery in the electronic equipment in a first charging mode or a second charging mode at least based on a system power consumption parameter of the electronic equipment, wherein the charging power of the first charging mode is greater than that of the second charging mode.
In one embodiment, the charging control module includes:
the first starting submodule is used for starting the first charging mode under the condition that the system power consumption value of the electronic equipment is in a first range;
the second starting submodule is used for starting the second charging mode under the condition that the system power consumption value of the electronic equipment is in a second range; the maximum value in the first range is less than or equal to the minimum value in the second range, the first charging mode is a fast charging mode, and the second charging mode is a normal charging mode.
In one embodiment, the obtaining module includes:
the first obtaining submodule is used for obtaining a voltage value of a processor in the electronic equipment;
and the calculating submodule is used for calculating the system power consumption value of the electronic equipment according to the voltage value of the processor.
In an embodiment, the first obtaining sub-module is specifically configured to:
and reading the voltage value of the processor according to a power reading chip connected to the processor.
In one embodiment, the computation submodule includes:
after the power reading chip reads the voltage value of the processor, the voltage value is sent to an embedded controller, so that the embedded controller calculates the system power consumption value of the electronic equipment according to the voltage value.
In one embodiment, the obtaining module includes:
the second obtaining submodule is used for obtaining the application program currently running by the electronic equipment;
and the determining submodule is used for determining the system power consumption parameter of the electronic equipment according to the application program currently running by the electronic equipment.
In an embodiment, the second obtaining sub-module is specifically configured to:
acquiring process information in an application management interface of the electronic equipment;
and determining the currently running application program according to the process information in the application management interface.
In one embodiment, the first opening submodule is specifically configured to:
and controlling the electronic equipment to start the first charging mode after the waiting period is over under the condition that the system power consumption value of the electronic equipment is in a first range.
In one embodiment, further comprising:
the electric quantity acquisition module is used for acquiring the electric quantity of the battery of the electronic equipment through the embedded controller;
and the exit module is used for exiting the first charging mode under the condition that the electric quantity of the electronic equipment battery is greater than the specific value and the current charging mode is the first charging mode.
Drawings
Fig. 1 is a flowchart of a charging control method according to an embodiment of the present application;
fig. 2 is a flowchart of a charging control method according to another embodiment of the present application;
fig. 3 is a flowchart of a charging control method according to another embodiment of the present application;
FIG. 4 is a schematic diagram illustrating signal interaction among a processor, a power reading chip, an embedded controller, a temperature sensor, a charging control module, and a battery according to an embodiment of the present disclosure;
fig. 5 is a block diagram of a charging control apparatus according to an embodiment of the present application;
fig. 6 is a block diagram of a charging control apparatus according to another embodiment of the present application.
Detailed Description
Various aspects and features of the present application are described herein with reference to the drawings.
It will be understood that various modifications may be made to the embodiments of the present application. Accordingly, the foregoing description should not be construed as limiting, but merely as exemplifications of embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the application.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of preferred forms of embodiment, given as non-limiting examples, with reference to the attached drawings.
It is also to be understood that although the present application has been described with reference to some specific examples, those skilled in the art are able to ascertain many other equivalents to the practice of the present application.
The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application of unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the application.
Fig. 1 is a flowchart of a charging control method according to an embodiment of the present application, where the method is applicable to an electronic device, the electronic device includes an electronic system and a battery, and the battery is capable of supplying power to the electronic system, and the method can be implemented as the following steps including steps S11-S12:
in step S11, in the operation process of the electronic device, a system power consumption parameter of the electronic device is obtained;
in step S12, a battery in the electronic device is charged in a first charging mode or a second charging mode based on at least a system power consumption parameter of the electronic device, wherein a charging power of the first charging mode is greater than a charging power of the second charging mode.
Taking a computer device as an example, when the electronic device in this embodiment is a computer device, the electronic device is operated, which means that the computer device is in the S0 state. For computer equipment, the current high-end models are divided into S0, S3/MS, S4 and S5, which are working states, wherein the S0 state generally refers to a normal running state of the equipment, and the power consumption of the equipment is gradually reduced in the rest working states. In general, in the operating state (S0 state), the device cannot support the fast charging scheme, mainly because: in the normal operation process of the System, a high load may be possibly generated, for example, when the System operates in a game mode, and for example, in the process of generating codes, the average power consumption of the System-on-Chip can reach 30-40W, an adapter of the System 65W cannot be removed to supply power to the System-on-Chip, and the rest cannot meet the requirement of quick battery charging.
However, because the computer may not always be in a high load state, and the average power consumption of the system is low when the computer is in a low load state, the adapter has enough remaining power to support the demand of battery fast charging, based on the above characteristics. The applicant finds that it is possible to determine whether a device is in a high-load state or a low-load state through monitoring of system power, and enable a fast charging mode in a case where the device is in the low-load state, and therefore, in this embodiment, there is provided a charging control method including: acquiring a system power consumption parameter of the electronic equipment in the operation process of the electronic equipment; and charging the battery in the electronic equipment in a first charging mode or a second charging mode at least based on the system power consumption parameter of the electronic equipment, wherein the charging power of the first charging mode is greater than that of the second charging mode.
For example, the electronic device may be a computer device, and when the electronic device is in the S0 state, the current system power consumption parameter of the electronic device may be obtained, specifically, the current system power consumption parameter of the device may be obtained in the following two ways:
in a first mode
Reading the voltage value of the processor according to a power reading chip connected to the processor; after the power reading chip reads the voltage value of the processor, the voltage value is sent to the embedded controller, so that the embedded controller can calculate the system power consumption value of the electronic equipment according to the voltage value.
Mode two
Acquiring process information in an application management interface of the electronic equipment;
determining the currently running application program according to the process information in the application management interface;
and determining a system power consumption parameter of the electronic equipment according to the application program currently running by the electronic equipment.
After the system power consumption parameter of the electronic device is obtained, charging of a battery in the electronic device in a first charging mode or a second charging mode is performed at least based on the system power consumption parameter of the electronic device, wherein the charging power of the first charging mode is larger than that of the second charging mode. The first charging mode may be referred to as a fast charging mode, and the second charging mode may be referred to as a normal charging mode.
The fast charge mode is commonly referred to as fast charge mode, the ordinary charge mode is also referred to as slow charge mode, and the fast charge and slow charge in the fast charge mode and the slow charge mode are two opposite concepts, for example, the industry currently provides fast charge mode as one that can make the charge of the storage battery reach or approach to a full charge state from a lower value within a specified time (for example, within 1 h). The essence of the fast charging mode is to provide a large current value for the battery, and charge the battery with a relatively large current, so that the charging speed is increased, and the current value needs to be within the battery bearing range. It is expected that as technology advances and hardware technology develops, the battery will have a higher capacity, and can bear a higher current, so that the specified time may be shortened, and the meaning of the fast charge mode and the slow charge mode may be redefined.
The normal charging mode generally indicates other charging modes besides fast charging, such as a constant current-constant voltage (CC-CV) charging mode; a pulse charging mode; constant current charging modes (classified into trickle charging and general constant current charging).
The beneficial effect of this application lies in: in the operation process of the electronic equipment, system power consumption parameters of the electronic equipment can be acquired; at least based on the system power consumption parameter of the electronic equipment, the battery in the electronic equipment is charged in a first charging mode or a second charging mode, wherein the charging power of the first charging mode is larger than the charging power of the second charging mode, so that the switching of different charging modes can be carried out when the equipment is in a normal operation state.
In one embodiment, as shown in FIG. 2, the above step S12 can be implemented as the following steps S21-S22:
in step S21, in a case where the system power consumption value of the electronic device is in a first range, turning on a first charging mode;
in step S22, in a case where the system power consumption value of the electronic device is in the second range, turning on a second charging mode; the maximum value in the first range is less than or equal to the minimum value in the second range, the first charging mode is a fast charging mode, and the second charging mode is a normal charging mode.
The essence of the fast charge mode (i.e., fast charge mode) is that the battery is charged with a relatively large current, for example, 1A (ampere), and the battery is charged for 5 hours when fully charged, or one hour when the battery is charged with 5A current. In general, since the voltage is fixed, the larger the current flowing to the battery, the larger the power consumption of the battery. The power of the adapter is fixed, part of the power of the adapter needs to meet the power consumption of the system, and the residual power consumption after meeting the power consumption of the system can be used for meeting the power consumption needed by charging the battery. Whether the residual power of the adapter can meet the requirement of the fast charging mode or not is determined by monitoring the system power consumption value of the electronic equipment, if so, the fast charging mode is started, and if not, the slow charging mode (namely, the common charging mode) is started. Therefore, in this embodiment, the first charging mode is turned on when the system power consumption value of the electronic device is in the first range; starting a second charging mode under the condition that the system power consumption value of the electronic equipment is in a second range; the maximum value in the first range is less than or equal to the minimum value in the second range, the first charging mode is a fast charging mode, and the second charging mode is a normal charging mode.
For a notebook computer, a charging mode capable of making a current flowing to a storage battery reach 6A-8A is a fast charging mode, so, taking the notebook computer as an example, a first range and a second range can be calculated, and assuming that the notebook computer is maintained at a standard voltage of +5V, a power consumption value required by the storage battery to reach the fast charging mode of 6A-8A is 30-40W, that is, under the standard voltage, a maximum value of 40W can meet a current range set by the fast charging mode, and if a maximum power of an adapter is 65W, as long as a system power consumption does not exceed 25W, 40W of power can be left, and a remaining power can meet the current range set by the fast charging mode, so the first range can be set to [0W, 25W ] or [0W, 25W ]; the second range is set to (25W, 65W) or [25W, 65W ]. of course, the above calculation of the first range and the second range is only an example, and in the practical application process, a person skilled in the art can set the corresponding range value by himself or herself, and can also make flexible adjustment based on the specific voltage value.
It should be noted that most of current circuit boards and battery cells can only bear current of 8A at most, and according to joule's law, the current is larger, and the heat is larger, so that if the current is larger than 8A, the component itself can be damaged, and 6-8A can ensure that the electric quantity of the computer equipment is fully charged within one hour, so as to meet the regulations and requirements for quick charging in the industry. However, since the industry regulations are generally established in consideration of the conditions of most devices, the definition of the rapid charging is also changed when the popularity of components capable of withstanding higher heat reaches a certain level with the development of electronic technology, and the current applied to the battery during the rapid charging may be adjusted based on new industry regulations, for example, the current value of the current applied to the battery is made larger than 8A.
In one embodiment, as shown in FIG. 3, the above step S11 can be implemented as the following steps S31-S32:
in step S31, a voltage value of a processor in the electronic device is acquired;
in step S32, a system power consumption value of the electronic device is calculated from the voltage value of the processor.
Wherein, the step S21 can be implemented as the following steps: and reading the voltage value of the processor according to a power reading chip connected to the processor. The above step S22 can be implemented as the following steps: after the power reading chip reads the voltage value of the processor, the voltage value is sent to the embedded controller, so that the embedded controller can calculate the system power consumption value of the electronic equipment according to the voltage value.
Fig. 4 is a schematic diagram of signal interaction among the processor, the power reading chip, the embedded controller, the temperature sensor, the charging control module and the battery according to the above embodiment, as shown in fig. 4, the power reading chip is connected to the processor for reading a voltage value of the processor, and then, the embedded controller is respectively connected to the power reading chip, the charging control module and the temperature sensor.
For example, the embedded controller may be connected to the power read chip via an I2C bus for receiving power of the processor read by the power read chip. I2C bus connection. The I2C bus is a simple, bidirectional two-wire synchronous serial bus. The bus-connected device can transmit information between devices connected to the bus by only two wires, and has low implementation difficulty and good usability. The embedded controller can also be connected with the temperature sensor through an SMBUS (System Management Bus), and the embedded controller can also be connected with the charging control module through the SMBUS.
As shown in fig. 4, the voltage value of the processor is read according to the power reading chip connected to the processor, and then after the voltage value of the processor is read by the power reading chip, the voltage value can be sent to the embedded controller, so that the embedded controller calculates the system power consumption value of the electronic device according to the voltage value. After the power of the electronic equipment is calculated, whether the system power consumption value of the electronic equipment is in a first range or a second range is determined, and different control signals are sent to the charging control module according to different ranges in which the system power consumption value is located so as to control the charging control module to switch between the first charging mode and the second charging mode. In addition, the embedded controller can also receive temperature information in the electronic equipment sent by the temperature sensor. At this time, for the switching of the first charging mode and the second charging mode, the temperature information may be considered while considering the system power consumption, for example, in the case where the system power consumption is in the first range, it is determined whether or not the average temperature in the latest period within the device exceeds the temperature threshold, the first charging mode is turned on if the temperature threshold is not exceeded, and the second charging mode is turned on if the temperature threshold is exceeded.
In one embodiment, the above step S11 can be implemented as the following steps B1-B2:
in step B1, acquiring an application currently running by the electronic device;
in step B2, a system power consumption parameter of the electronic device is determined according to an application currently running by the electronic device.
In one embodiment, the above step B1 may be implemented as the following steps C1-C2:
in step C1, acquiring process information in the application management interface of the electronic device;
in step C2, the currently running application program is determined according to the process information in the application management interface.
The steps B1-B2 and C1-C1 are used to introduce a manner of determining a system power consumption parameter of the electronic device through an application currently running in the electronic device, in which process information in an application management interface of the electronic device is acquired; determining the currently running application program according to the process information in the application management interface; and determining a system power consumption parameter of the electronic equipment according to the application program currently running by the electronic equipment.
For example, the system power consumption value required by each application program fluctuates in an approximate interval, and the application mainly wants to judge whether the system power consumption value is in a first range or a second range, so that the system power consumption value does not need to be calculated particularly accurately, and only needs to judge whether the system power consumption value is in the first range or the second range through the currently running application program, for example, the system power consumption value required by most text editing software (such as word and txt) is very small, and if only one text editing program is run in the electronic device, the system power consumption value of the electronic device is considered to be in the first range; there are some office software (such as solidwords), players playing streaming media, network games, large stand-alone games, and other programs, and as long as any one of them is in an operating state, the power consumption value of the system will fall into the second range.
In one embodiment, the step a1 can be implemented as the following steps:
and controlling the electronic equipment to start the first charging mode after the waiting period is over under the condition that the system power consumption value of the electronic equipment is in the first range.
Similarly, after the program is shut down, the power is slowly ramped down. However, there is theoretically a case where the power fluctuates around the critical values of the first range and the second range, and therefore, a waiting period may be set, and in a case where the system power consumption value of the electronic device is in the first range, the electronic device is controlled to turn on the first charging mode after the waiting period elapses.
In addition, in the case of acquiring the system power consumption value in the second manner, after the electronic device starts to run a program, the power slowly rises due to the slow rise of the current, the power consumption value required by the program stops rising when the power consumption value rises, and the system power consumption value can be kept to be quickly charged for a certain time before rising to the critical value. That is, if the manner of acquiring the system power consumption value is the second manner described above, a waiting period may also be set when switching from the first charging mode to the second charging mode.
In one embodiment, the method may also be implemented as the following steps D1-D2:
in step D1, acquiring the power of the battery of the electronic device through the embedded controller;
in step D2, in the case that the amount of power of the battery of the electronic device is greater than the specific value and the current charging mode is the first charging mode, the first charging mode is exited.
In this embodiment, as shown in fig. 4, the electric quantity of the battery of the electronic device may be obtained through the embedded controller; and if the electric quantity of the battery of the electronic equipment is larger than the specific value and the current charging mode is the first charging mode, exiting the first charging mode.
Specifically, the specific value may be set based on different requirements, for example, the specific value may be set to 95% of the total power amount, at this time, since the storage battery is already close to the full charge state, it is not necessary to perform charging through the fast charging mode, and therefore, if the current charging mode is the first charging mode (i.e., the fast charging mode), the first charging mode is exited. In addition, when the amount of electricity reaches 99%, overshoot is liable to occur when the rapid charge is resumed or the normal charge is continued, and in some storage batteries having poor overcharge resistance, the storage battery is damaged by overcharge, and therefore, when a specific value is set to be large, the trickle charge mode may be entered after the first charge mode is exited. So as to avoid damage to the storage battery.
Fig. 5 is a block diagram of a charging control apparatus according to an embodiment of the present application, where the apparatus is applicable to an electronic device, the electronic device includes an electronic system and a battery, and the battery is capable of supplying power to the electronic system, and the apparatus includes the following modules:
an obtaining module 51, configured to obtain a system power consumption parameter of the electronic device in an operation process of the electronic device;
and a charging control module 52, configured to perform charging in a first charging mode or a second charging mode for a battery in the electronic device based on at least a system power consumption parameter of the electronic device, where a charging power in the first charging mode is greater than a charging power in the second charging mode.
In one embodiment, as shown in fig. 6, the charging control module 52 includes:
the first starting submodule 61 is used for starting the first charging mode under the condition that the system power consumption value of the electronic equipment is in a first range;
the second starting submodule 62 is configured to start the second charging mode when the system power consumption value of the electronic device is in the second range; the maximum value in the first range is less than or equal to the minimum value in the second range, the first charging mode is a fast charging mode, and the second charging mode is a normal charging mode.
In one embodiment, the obtaining module includes:
the first obtaining submodule is used for obtaining a voltage value of a processor in the electronic equipment;
and the calculating submodule is used for calculating the system power consumption value of the electronic equipment according to the voltage value of the processor.
In an embodiment, the first obtaining sub-module is specifically configured to:
and reading the voltage value of the processor according to a power reading chip connected to the processor.
In one embodiment, a computation submodule includes:
after the power reading chip reads the voltage value of the processor, the voltage value is sent to the embedded controller, so that the embedded controller can calculate the system power consumption value of the electronic equipment according to the voltage value.
In one embodiment, the obtaining module includes:
the second obtaining submodule is used for obtaining the application program currently running by the electronic equipment;
and the determining submodule is used for determining the system power consumption parameter of the electronic equipment according to the application program currently running by the electronic equipment.
In an embodiment, the second obtaining sub-module is specifically configured to:
acquiring process information in an application management interface of the electronic equipment;
and determining the currently running application program according to the process information in the application management interface.
In one embodiment, the first enabling submodule is specifically configured to:
and controlling the electronic equipment to start the first charging mode after the waiting period is over under the condition that the system power consumption value of the electronic equipment is in the first range.
In one embodiment, further comprising:
the electric quantity acquisition module is used for acquiring the electric quantity of the battery of the electronic equipment through the embedded controller;
and the exit module is used for exiting the first charging mode under the condition that the electric quantity of the battery of the electronic equipment is greater than the specific value and the current charging mode is the first charging mode.
The above embodiments are only exemplary embodiments of the present application, and are not intended to limit the present application, and the protection scope of the present application is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present application and such modifications and equivalents should also be considered to be within the scope of the present application.

Claims (10)

1. A charging control method is applied to an electronic device, the electronic device comprises an electronic system and a battery, and the battery can supply power to the electronic system, and the method comprises the following steps:
acquiring a system power consumption parameter of the electronic equipment in the running process of the electronic equipment;
and charging a battery in the electronic equipment in a first charging mode or a second charging mode at least based on the system power consumption parameter of the electronic equipment, wherein the charging power of the first charging mode is greater than that of the second charging mode.
2. The method of claim 1, the charging a battery in the electronic device in a first charging mode or a second charging mode based at least on a system power consumption parameter of the electronic device, comprising:
starting the first charging mode under the condition that the system power consumption value of the electronic equipment is in a first range;
starting the second charging mode under the condition that the system power consumption value of the electronic equipment is in a second range; the maximum value in the first range is less than or equal to the minimum value in the second range, the first charging mode is a fast charging mode, and the second charging mode is a normal charging mode.
3. The method of claim 1, the obtaining system power consumption parameters for the electronic device, comprising:
acquiring a voltage value of a processor in the electronic equipment;
and calculating a system power consumption value of the electronic equipment according to the voltage value of the processor.
4. The method of claim 3, the obtaining a voltage value of a processor in the electronic device, comprising:
and reading the voltage value of the processor according to a power reading chip connected to the processor.
5. The method of claim 4, the calculating the system power consumption value from the voltage value of the processor, comprising:
after the power reading chip reads the voltage value of the processor, the voltage value is sent to an embedded controller, so that the embedded controller calculates the system power consumption value of the electronic equipment according to the voltage value.
6. The method of claim 1, the obtaining system power consumption parameters for the electronic device, comprising:
acquiring an application program currently running by the electronic equipment;
and determining a system power consumption parameter of the electronic equipment according to the application program currently running by the electronic equipment.
7. The method of claim 6, wherein the obtaining the application currently running on the electronic device comprises:
acquiring process information in an application management interface of the electronic equipment;
and determining the currently running application program according to the process information in the application management interface.
8. The method of claim 2, the turning on the first charging mode in the case that the system power consumption value of the electronic device is in a first range, comprising:
and controlling the electronic equipment to start the first charging mode after the waiting period is over under the condition that the system power consumption value of the electronic equipment is in a first range.
9. The method of any of claims 1-8, further comprising:
acquiring the electric quantity of the battery of the electronic equipment through an embedded controller;
and exiting the first charging mode under the condition that the electric quantity of the battery of the electronic equipment is greater than a specific value and the current charging mode is the first charging mode.
10. A charging control apparatus for an electronic device, the electronic device including an electronic system and a battery capable of supplying power to the electronic system, the apparatus comprising:
the acquisition module is used for acquiring system power consumption parameters of the electronic equipment in the running process of the electronic equipment;
the charging control module is used for charging a battery in the electronic equipment in a first charging mode or a second charging mode at least based on a system power consumption parameter of the electronic equipment, wherein the charging power of the first charging mode is greater than that of the second charging mode.
CN202011555520.0A 2020-12-24 2020-12-24 Charging control method and device Pending CN112737019A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011555520.0A CN112737019A (en) 2020-12-24 2020-12-24 Charging control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011555520.0A CN112737019A (en) 2020-12-24 2020-12-24 Charging control method and device

Publications (1)

Publication Number Publication Date
CN112737019A true CN112737019A (en) 2021-04-30

Family

ID=75615515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011555520.0A Pending CN112737019A (en) 2020-12-24 2020-12-24 Charging control method and device

Country Status (1)

Country Link
CN (1) CN112737019A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116054297A (en) * 2022-05-30 2023-05-02 荣耀终端有限公司 Charging method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1638231A (en) * 2003-11-12 2005-07-13 日本电气株式会社 Charging and feeding control method and device
CN1801571A (en) * 2004-09-15 2006-07-12 贝尔金公司 Power supply system comprising rechargeable battery pack and attachment apparatus
CN104810879A (en) * 2014-01-28 2015-07-29 广东欧珀移动通信有限公司 Quick charge method and system
CN110429684A (en) * 2019-08-20 2019-11-08 Oppo(重庆)智能科技有限公司 Charge control method and device, electronic equipment, computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1638231A (en) * 2003-11-12 2005-07-13 日本电气株式会社 Charging and feeding control method and device
CN1801571A (en) * 2004-09-15 2006-07-12 贝尔金公司 Power supply system comprising rechargeable battery pack and attachment apparatus
CN104810879A (en) * 2014-01-28 2015-07-29 广东欧珀移动通信有限公司 Quick charge method and system
CN110429684A (en) * 2019-08-20 2019-11-08 Oppo(重庆)智能科技有限公司 Charge control method and device, electronic equipment, computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116054297A (en) * 2022-05-30 2023-05-02 荣耀终端有限公司 Charging method and device and electronic equipment
CN116054297B (en) * 2022-05-30 2024-03-29 荣耀终端有限公司 Charging method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN103107569B (en) The method of executive system power management and device
EP0794480B1 (en) Circuit for selecting and designating a master battery pack in a computer system
US8248032B2 (en) Charging system for prioritizing load consumption in a notebook computer
US7973515B2 (en) Power management systems with controllable adapter output
CN102376991B (en) Battery pack and overcurrent detection method
US20050046391A1 (en) Circuit and method of operation for an adaptive charge rate power supply
JP4691140B2 (en) Charge / discharge system and portable computer
US20110309681A1 (en) Secondary battery controller and method for controlling secondary battery, and electronic apparatus
JP2008211966A (en) Circuit and method of operation for electrical power supply
TW201315090A (en) Controllers, systems and methods for controlling battery management systems
CN112737019A (en) Charging control method and device
CN103246336A (en) Electronic apparatus and driving control method thereof
CN113741674A (en) Power consumption control method, system, terminal and storage medium for notebook computer
US20240039316A1 (en) Information processing apparatus and control method
CN101312296B (en) Charging method of battery module
CN113508509A (en) Charging control method, circuit, device and storage medium
US20150137765A1 (en) Moderating a charging
CN111064263B (en) Voltage control method, photovoltaic power supply device and system
CN110768359B (en) Voltage control method and photovoltaic power supply device and system
JP2809661B2 (en) Battery driven information processing device, battery power supply system, and battery management device
CN110707679B (en) Voltage control method and photovoltaic power supply device and system
CN217159359U (en) Sensor power management system
CN114465321B (en) Distributed dynamic regulation charging method
CN115425720A (en) Power supply loop and electronic equipment
CN111009943B (en) Battery charging method and device, storage medium and terminal

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