CN114221403B - Charging method and charging device - Google Patents
Charging method and charging device Download PDFInfo
- Publication number
- CN114221403B CN114221403B CN202111383964.5A CN202111383964A CN114221403B CN 114221403 B CN114221403 B CN 114221403B CN 202111383964 A CN202111383964 A CN 202111383964A CN 114221403 B CN114221403 B CN 114221403B
- Authority
- CN
- China
- Prior art keywords
- charging
- battery
- characteristic value
- value
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/00032—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
- H02J7/00036—Charger exchanging data with battery
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01M—PROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
- H01M10/00—Secondary cells; Manufacture thereof
- H01M10/42—Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
- H01M10/44—Methods for charging or discharging
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01M—PROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
- H01M10/00—Secondary cells; Manufacture thereof
- H01M10/42—Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
- H01M10/44—Methods for charging or discharging
- H01M10/443—Methods for charging or discharging in response to temperature
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J50/00—Circuit arrangements or systems for wireless supply or distribution of electric power
- H02J50/10—Circuit arrangements or systems for wireless supply or distribution of electric power using inductive coupling
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0029—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/007—Regulation of charging or discharging current or voltage
- H02J7/00712—Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/007—Regulation of charging or discharging current or voltage
- H02J7/00712—Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
- H02J7/00714—Regulation 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
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/007—Regulation of charging or discharging current or voltage
- H02J7/00712—Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
- H02J7/007182—Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters in response to battery voltage
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/007—Regulation of charging or discharging current or voltage
- H02J7/007188—Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters
- H02J7/007192—Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters in response to temperature
- H02J7/007194—Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters in response to temperature of the battery
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy 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)
- Computer Networks & Wireless Communication (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The application relates to the field of terminals and provides a charging method and a charging device. The method comprises the following steps: the electronic equipment acquires a first charging characteristic value of the battery; the electronic equipment acquires a second charging characteristic value and an electrical characteristic value of the battery, wherein the second charging characteristic value is acquired after the first charging characteristic value is acquired; when the electrical characteristic value does not meet the safety requirement and when the first charging characteristic value is smaller than or equal to the second charging characteristic value, the electronic device determines that the charging characteristic value of the battery is a third charging characteristic value, and the third charging characteristic value is a value obtained by subtracting the first numerical value from the first charging characteristic value. The method can improve the safety of the battery in the charging process.
Description
Technical Field
The application relates to the field of terminals, in particular to a charging method and a charging device.
Background
The terminal device is generally an electronic device with good portability, and therefore, when a user carries and uses the terminal device with him/her, the terminal device needs to be powered by a battery. Batteries of some terminal devices are detachable batteries, and after the electric quantity of the batteries mounted on the terminal devices is exhausted, a user can replace a fully charged battery for the terminal devices, so that the terminal devices can be guaranteed to continuously work in a portable state.
The new battery replaced by the user for the terminal equipment may not be a battery produced by the same manufacturer as the original battery, and the terminal equipment cannot manage the charging process of the new battery according to the charging protection strategy of the original battery, so that the terminal equipment cannot ensure the safety of the non-original battery in the charging process. Furthermore, there is also a danger of controlling the charging in accordance with the charging protection strategy of the original battery when the charging protection strategy of the original battery fails. Therefore, how to improve the safety of the battery during the charging process is a problem to be solved currently.
Disclosure of Invention
Embodiments of the present application provide a charging method, a charging apparatus, a computer-readable storage medium, and a computer program product, which can improve the safety of a battery during charging.
In a first aspect, a charging method is provided, which is applied to an electronic device including a battery, and includes:
the electronic equipment acquires a first charging characteristic value of the battery;
the electronic equipment acquires a second charging characteristic value and an electrical characteristic value of the battery, wherein the second charging characteristic value is acquired after the first charging characteristic value is acquired;
when the electrical characteristic value does not meet the safety requirement and when the first charging characteristic value is smaller than or equal to the second charging characteristic value, the electronic device determines that the charging characteristic value of the battery is a third charging characteristic value, and the third charging characteristic value is a value obtained by subtracting the first numerical value from the first charging characteristic value.
The method may be performed by a power management module in the electronic device, and the power management module may be, for example, an Embedded Controller (EC), and after the battery is inserted into the electronic device, the EC may periodically obtain the charging characteristic value and the electrical characteristic value of the battery. When the electrical characteristic value does not meet the safety requirement, the battery is in a dangerous state; the first charging characteristic value and the second charging characteristic value are charging characteristic values acquired by EC two times, and when the first charging characteristic value is smaller than or equal to the second charging characteristic value, the charging protection strategy of the battery is invalid, or the battery does not have the charging protection strategy; at this moment, the EC can reduce the charging characteristic value of the battery, because the electrical characteristic value of the battery meets the safety requirement when the EC obtains the first charging characteristic value, the charging characteristic value is continuously reduced on the basis of the first charging characteristic value, so that the third charging characteristic value can be ensured to meet the safety requirement, and the safety of the battery in the charging process is improved.
In an alternative embodiment, the method further comprises:
when the electrical characteristic value does not meet the safety requirement and the first charging characteristic value is larger than the second charging characteristic value, the power supply management module determines whether the battery supports a charging protection strategy or not;
when the battery supports the charging protection strategy, the electronic equipment determines the difference value between the first charging characteristic value and the second charging characteristic value;
when the difference value is larger than the threshold value, the power supply management module determines that the charging characteristic value of the battery is a second charging characteristic value;
and when the difference value is smaller than or equal to the threshold value, the power supply management module determines that the charging characteristic value of the battery is a third charging characteristic value.
The first charging characteristic value being greater than the second charging characteristic value does not indicate that the charging protection policy for the battery is in effect, for example, when the electronic device is in a power saving mode, there is a possibility that the first charging characteristic value is greater than the second charging characteristic value, and therefore, in this case, the EC needs to confirm whether the battery supports the charging protection policy. When the battery supports the charging protection strategy, the EC further needs to determine whether the charging protection strategy is in effect, wherein when the difference is greater than the threshold, it indicates that the charging characteristic value is greatly reduced, and the EC confirms that the charging protection strategy of the battery is in effect and can continue to charge according to the second charging characteristic value; when the difference is greater than the threshold, it indicates that the charging characteristic value is reduced slightly, and the EC cannot determine whether the charging protection strategy of the battery is effective, and for the sake of insurance, the EC can reduce the charging characteristic value, so that the safety of the battery in the charging process is improved.
In an alternative embodiment, the method further comprises:
when the electrical characteristic value does not meet the safety requirement and the first charging characteristic value is larger than the second charging characteristic value, the power supply management module determines whether the battery supports a charging protection strategy;
when the battery does not support the charging protection strategy, the power supply management module determines that the charging characteristic value of the battery is a fourth charging characteristic, and the fourth charging characteristic value is obtained by subtracting the second numerical value from the second charging characteristic value.
The first charging characteristic value being greater than the second charging characteristic value does not indicate that the charging protection policy for the battery is in effect, for example, when the electronic device is in a power saving mode, there is a possibility that the first charging characteristic value is greater than the second charging characteristic value, and therefore, in this case, the EC needs to confirm whether the battery supports the charging protection policy. When the battery does not support the charging protection strategy, the EC can directly reduce the second charging characteristic value, thereby improving the safety of the battery in the charging process.
In an alternative embodiment, the second value is positively correlated to the second charging characteristic value.
In this embodiment, positive correlation means: the second value increases as the second charge characteristic value increases, or the second value decreases as the second charge characteristic value decreases. The second charging characteristic value is a reference quantity for reducing the charging characteristic value, and when the second charging characteristic value is larger, the second value is a larger value to meet the safety requirement.
In an alternative embodiment, the second value is positively correlated to the second charging characteristic value, and includes: the second value is obtained by multiplying the second charging characteristic value by a second coefficient, and the second coefficient is a value larger than 0 and smaller than 1.
In an alternative embodiment, the first value is positively correlated to the first charging characteristic value.
In this embodiment, positive correlation means that: the first value increases as the first charge characteristic value increases, or the first value decreases as the first charge characteristic value decreases. The first charging characteristic value is a reference amount for reducing the charging characteristic value, and when the first charging characteristic value is larger, the first value is a larger value to meet the safety requirement.
In an alternative embodiment, the first value is positively correlated to the first charging characteristic value, and includes: the first value is obtained by multiplying the first charging characteristic value by a first coefficient, and the first coefficient is a value larger than 0 and smaller than 1.
In an optional embodiment, the first charging characteristic value includes a first charging voltage value, the second charging characteristic value includes a second charging voltage value, the electrical characteristic value includes a voltage difference between any two battery cells in the battery, and the electrical characteristic value does not satisfy the safety requirement, including: the voltage difference is greater than a voltage difference threshold.
When the battery comprises a plurality of battery cores, the service life of the detachable battery is shortened due to the fact that the voltage difference between the two battery cores is too large, and potential safety hazards are brought.
In an alternative embodiment, the first charging characteristic value includes a first charging current value, the second charging characteristic value includes a second charging current value, the electrical characteristic value includes a current value of the battery, and the electrical characteristic value does not satisfy a safety requirement, including: the current value of the battery is greater than the current threshold.
The service life of the battery is reduced due to the fact that the current value of the battery is too large, and potential safety hazards are brought, therefore, the current value of the battery is used as an electrical characteristic value to judge whether a charging protection strategy needs to be started or not, the service life of the battery can be reduced, and the safety performance of the battery is improved.
In an optional implementation manner, before the electronic device obtains the first charging characteristic value of the battery, the method further includes: the electronic equipment reads a charger insertion AC _ IN signal and a battery insertion BAT _ IN signal; the electronic device determines whether the charger and the battery are inserted into the electronic device according to the levels of the AC _ IN signal and the BAT _ IN signal; the electronic equipment acquires a first charging characteristic value of a battery, and comprises the following steps: when the charger and the battery are inserted into the electronic equipment, the electronic equipment acquires a first charging characteristic value of the battery; the electronic device acquires a second charging characteristic value and an electrical characteristic value of the battery, and comprises: the electronic equipment acquires a second charging voltage, a second charging current and battery information of the battery, wherein the battery information comprises the cell voltage and the battery current of the current battery.
In an alternative embodiment, when the electrical characteristic does not satisfy the safety requirement, and when the first charging characteristic is less than or equal to the second charging characteristic, the electronic device determines the charging characteristic of the battery as a third charging characteristic, including:
when the difference value of the cell voltages is larger than the voltage difference threshold value, the electronic equipment determines whether the first charging voltage is larger than the second charging voltage; when the first charging voltage is less than or equal to the second charging voltage, the electronic equipment adjusts the charging voltage of the battery to a third charging voltage;
and/or the presence of a gas in the atmosphere,
when the battery current is greater than the current threshold, the electronic device determines whether the first charging current is greater than the second charging current; when the first charging current is less than or equal to the second charging current, the electronic device adjusts the charging current of the battery to a third charging current.
In an optional embodiment, the method further comprises: when the electronic equipment determines that the charging characteristic value of the battery is a third charging voltage and/or a third charging current, the electronic equipment controls the charging manager to charge the battery at the third charging voltage and/or the third charging current; when the electronic device determines that the charging characteristic value of the battery is a fourth charging voltage and/or a fourth charging current, the electronic device controls the charging manager to charge the battery at the fourth charging voltage and/or the fourth charging current.
In an optional implementation, the electronic device obtaining a first charging characteristic value of the battery includes: when the battery is not fully charged, the electronic device acquires a first charging voltage and a first charging current of the battery.
In an optional embodiment, the method further comprises: when the battery is fully charged, the electronic device controls the charging manager to stop charging the battery.
This embodiment can prevent damage to the battery caused by overcharging of the battery.
In a second aspect, there is provided a charging apparatus comprising means for performing any one of the methods of the first aspect. The device can be a terminal device and also can be a chip in the terminal device. The apparatus may include an input unit and a processing unit.
When the apparatus is a terminal device, the processing unit may be a processor, and the input unit may be a communication interface; the terminal device may further comprise a memory for storing computer program code which, when executed by the processor, causes the terminal device to perform any of the methods of the first aspect.
When the apparatus is a chip in a terminal device, the processing unit may be a logic processing unit inside the chip, and the input unit may be an output interface, a pin, a circuit, or the like; the chip may also include a memory, which may be a memory within the chip (e.g., registers, cache, etc.) or a memory external to the chip (e.g., read only memory, random access memory, etc.); the memory is adapted to store computer program code which, when executed by the processor, causes the chip to perform any of the methods of the first aspect.
In a third aspect, a computer-readable storage medium is provided, which stores computer program code, which, when executed by a charging apparatus, causes the apparatus to perform any of the methods of the first aspect.
In a fourth aspect, there is provided a computer program product comprising: computer program code which, when run by a charging apparatus, causes the apparatus to perform any of the methods of the first aspect.
Drawings
FIG. 1 is a schematic diagram of a hardware system suitable for use in the apparatus of the present application;
fig. 2 is a schematic diagram illustrating a charging process of a notebook computer provided in the present application;
fig. 3 is a schematic diagram of a method for initiating a charge protection strategy according to a cell voltage difference provided by the present application;
FIG. 4 is a schematic diagram illustrating a method for initiating a charge protection strategy based on battery current as provided herein;
fig. 5 is a schematic diagram of an embodiment of a charging method provided herein.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 shows a hardware system suitable for use in the apparatus of the present application.
The apparatus 100 may be a mobile phone, a smart screen, a tablet computer, a wearable electronic device, an in-vehicle electronic device, an Augmented Reality (AR) device, a Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), a projector, and the like, and the specific type of the apparatus 100 is not limited in this embodiment.
The device 100 may include a processor 110, an internal memory 121, a charging interface 130, a charging management module 140, a power management module 141, a battery 142, and the like.
The configuration shown in fig. 1 is not intended to specifically limit the apparatus 100. In other embodiments of the present application, the apparatus 100 may include more or fewer components than those shown in FIG. 1, or the apparatus 100 may include a combination of some of the components shown in FIG. 1, or the apparatus 100 may include sub-components of some of the components shown in FIG. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination of software and hardware.
A memory may also be provided in the 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 internal memory 121 may be used to store computer-executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. Wherein the storage program area may store an operating system, an application program required for at least one function (e.g., a power management function). The storage data area may store data created during use of the device 100 (e.g., power management policies).
In addition, the internal memory 121 may include a high-speed random access memory, and may also include a nonvolatile memory such as: at least one magnetic disk storage device, a flash memory device, and a universal flash memory (UFS), and the like. The processor 110 performs various processing methods of the apparatus 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The charging management module 140 is configured to receive power from the charging interface 130.
In some wired charging embodiments, the charging interface 130 is a Universal Serial Bus (USB) interface, and the charging management module 140 may receive current through the USB interface. The USB interface is an interface conforming to the USB standard specification, and may be, for example, a Mini (Mini) USB interface, a Micro (Micro) USB interface, or a USB Type C (USB Type C) interface. The USB interface may be used to connect a charger to charge the apparatus 100, to transmit data between the apparatus 100 and a peripheral device, and to connect an earphone to play audio through the earphone.
In some wireless charging embodiments, the charging interface 130 may be a wireless charging coil, and the charging management module 140 may receive electromagnetic waves through the wireless charging coil.
The charging management module 140 may also supply power to the device 100 through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and provides power to the processor 110 and the internal memory 121. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle number, and battery state of health (e.g., leakage, impedance). Alternatively, the power management module 141 may be disposed in the processor 110, or the power management module 141 and the charging management module 140 may be disposed in the same device.
The connection relationship between the modules shown in fig. 1 is merely illustrative and does not limit the connection relationship between the modules of the apparatus 100.
In an alternative embodiment, the apparatus 100 is a notebook computer, the power management module 141 is an EC on a motherboard of the notebook computer, the power management module 141 is a charging manager (charger) of the notebook computer, and the battery 142 is a detachable battery installed on the notebook computer.
The EC is usually a 16-bit single chip microcomputer for controlling the battery, fan, indicator light, etc. of the notebook computer, and is usually welded on the main board of the notebook computer.
The EC has its own firmware and memory called EC Random Access Memory (RAM). The EC RAM contains two address locations (0x62, 0x66) and two registers (EC _ SC and EC _ DATA). The correspondence between address locations and registers is shown in table 1.
TABLE 1
Register with a plurality of registers | Offset/port | R/W | Description of the invention |
EC_SC | 0x66 | R | EC status register |
EC_SC | 0x66 | W | EC command register |
EC_DATA | 0x62 | R/W | EC data register |
EC _ SC has both status register and command register functions, and EC _ DATA is used for storing DATA. Offset/port refers to a port address of a Low Pin Count (LPC) bus connected between EC and a Basic Input Output System (BIOS), where R indicates readable, W indicates writable, BIOS may read a value in EC _ SC through a 0x66 port, or may send a command to EC _ SC through a 0x66 port; similarly, the BIOS may read the values in the EC _ SC through the 0x62 port and may send the data to the EC _ SC through the 0x66 port.
The EC and the battery can communicate through a system management bus (SMBus), the communication mode of the SMBus is a master-slave mode, namely, two ends of the SMBus are respectively connected with a master device (master device) and a slave device (slave device), the master device sends a command to the slave device through the SMBus, and data can be acquired from the slave device through the SMBus.
For example, when the master device is an EC and the slave device is a battery, the EC may send a command to the battery through a clock line of the SMBus, and instruct the battery to report current state information (current battery voltage, battery current, battery temperature, and other information); the battery may then report current state information to the EC over the data line of the SMBus.
The charging process of the notebook computer is described below with reference to fig. 2.
S201, the EC judges whether the charger and the battery are inserted into the notebook computer.
When the charger is plugged into the notebook computer, the charger detects 5V voltage, the AC _ IN signal is pulled up, and the EC detects the AC _ IN signal with the level being pulled up, so that the charger is determined to be plugged into the notebook computer, and therefore the EC can judge whether the charger is plugged into the notebook computer according to the level of the AC _ IN signal. Illustratively, when the EC detects that the AC _ IN signal is a high level signal, the EC determines that the charger is plugged into the notebook computer; when the EC detects that the AC _ IN signal is a low level signal, the EC determines that the charger is not plugged into the notebook computer.
When the battery is inserted into the notebook computer, the battery pulls up the BAT _ IN signal, and the EC can detect the BAT _ IN signal with the level pulled up, so that the EC can judge whether the battery is inserted into the notebook computer according to the level of the BAT _ IN signal. Illustratively, when the EC detects that the BAT _ IN signal is a high level signal, the EC determines that the battery is plugged into the notebook computer; when the EC detects that the BAT _ IN signal is a low level signal, the EC determines that the battery is not inserted into the notebook computer.
Based on the battery and charger insertion, the EC may perform S202, S203 and S209 described below.
If the EC determines that the battery is plugged into the notebook computer and the charger is not plugged into the notebook computer, the EC may control the battery to discharge, i.e., the EC performs S202.
If the EC determines that the battery is not inserted into the notebook computer and the charger is inserted into the notebook computer, the EC may control the charger to supply power to the notebook computer and determine that the charging current is 0, i.e., the EC performs S209.
If the EC determines that the battery is plugged into the notebook computer and the charger is plugged into the notebook computer, the EC may perform S203.
S203, the EC reads the battery information.
The battery information includes information such as cell voltage, battery current, charging voltage, charging current, and battery temperature of the battery, and if the battery information is abnormal, the EC cannot guarantee the safety of the notebook computer, and therefore the EC needs to check whether the battery information is normal.
Illustratively, the EC may acquire the battery information through the SMBus address 0x16, and perform S204 and S205.
S204, the EC judges whether the battery voltage is normal.
When the voltage of the battery is too high, the battery is damaged due to charging in the normal charging mode, and therefore the EC needs to judge whether the voltage of the battery is normal.
Judging whether the voltage is normal or not can be carried out according to a voltage threshold (such as 12.9V), and when the battery voltage is greater than or equal to 12.9V, determining that the battery voltage is abnormal by the EC; when the battery voltage is less than 12.9V, the EC determines that the battery voltage is normal.
S205, the EC judges whether the battery current is normal.
When the battery current is too high, the battery is damaged due to the fact that the battery is charged according to the normal charging mode, and therefore the EC needs to judge whether the battery current is normal or not.
Judging whether the battery current is normal or not can be judged according to a current threshold, and when the battery current is greater than or equal to the current threshold, the EC determines that the battery current is abnormal; when the battery current is less than the current threshold, the EC determines that the battery current is normal.
It should be noted that the EC may first execute S204 and then execute S205, may also first execute S205 and then execute S204, and may also execute S204 and S205 simultaneously, and the execution sequence of S204 and S205 is not limited in the present application.
S206, the EC controls the charge manager (charger) to charge the battery with the adjusted charging voltage and/or charging current.
When any one of the battery current and the cell voltage is in an abnormal range, the EC needs to adjust the charging voltage and/or the charging current to avoid safety accidents in the charging process or avoid the battery from being damaged.
The EC may reduce the charging voltage and/or charging current, for example, and the method of reducing the charging voltage and/or charging current is described in detail below.
S207, the EC controls the charge manager (charger) to charge the battery with the charge current and the charge voltage read in S203.
When the battery current and the cell voltage are both within the normal range, the battery can be charged with the charging current (such as 2A) read in S203, so that the battery can be charged quickly on the premise of ensuring safety.
Alternatively, the EC may also determine whether the battery temperature is normal before executing S207.
When the temperature of the battery is too high or too low, the battery is charged according to a normal charging mode, which may cause damage to the battery and even explosion of the battery, so that the EC needs to determine whether the temperature of the battery is normal.
For example, the normal temperature range of the battery is [5 ℃,45 ℃), and if the current battery temperature is within [5 ℃,45 ℃), the EC determines that the current battery temperature is normal; if the current battery temperature is outside [5 ℃,45 ℃), the EC determines that the current battery temperature is abnormal.
Wherein the EC performs S209 when the battery temperature is outside [0 ℃,45 ℃; when the battery temperature is within 0 ℃,5 ℃ ], the EC confirms that the current battery temperature is low but not lower than the lower temperature limit (0 ℃), at which point the EC may perform S206, control the charge manager (charge) to charge the battery with a small current (e.g., 400 mA), and perform again from S203 after a period of time.
The current charging can cause the temperature of the battery to rise, and the EC controls the charging manager to charge the battery with low current, so that the temperature of the battery can gradually rise to a normal range, and the charging capability of the battery is recovered on the premise of ensuring safety.
S208, the EC determines whether the battery is fully charged.
When the battery is not fully charged, the state of the capacity full state bit (such as bit 5) is 0; when the battery is fully charged, the state of the capacity full state bit (e.g., bit 5) is 1. The EC may determine whether the battery is fully charged based on the capacity full status bit.
If the battery is fully charged, the EC may perform S209.
S209, EC controls the charger to stop charging.
After the battery is fully charged, the EC can control the charger to stop charging, and the charger supplies power to the notebook computer, and the charging current is 0 at the moment.
In the above, the charging process of the notebook computer is described in detail, when the battery is charged, the state of the battery changes continuously, and the EC needs to adjust the charging voltage and the charging current according to the current state of the battery to ensure that the battery can be charged safely.
For some batteries (e.g., primary batteries) in which a charge protection strategy exists, the EC may read parameters of the charge protection strategy from the batteries and control the charging voltage and charging current of the batteries according to the parameters. For some batteries without a charging protection strategy (e.g., non-original batteries) or some batteries with a failed charging protection strategy, the EC cannot obtain the charging protection strategy parameters of the batteries, which may cause the charging process to be dangerous.
The charging method provided by the present application is described below with reference to fig. 3 and 4, and the charging method can improve the safety of a battery without a charging protection strategy or a battery with a failed charging protection strategy during the charging process.
When the battery in the notebook computer is a multi-battery cell, the service life of the battery is reduced and potential safety hazards are brought due to overlarge voltage difference between two battery cells; too large a current value of the battery may also lead to a reduction in the life of the battery and may also lead to safety hazards. Therefore, the voltage difference between any two battery cores in the battery is used as the electrical characteristic value to judge whether the charging protection strategy needs to be started or not, and/or the current value of the battery is used as the electrical characteristic value to judge whether the charging protection strategy needs to be started or not, so that the reduction of the service life of the battery can be reduced, and the charging safety of the battery can be improved.
First, a method for starting a charge protection strategy according to a voltage difference between battery cells is described.
As shown in fig. 3, in the process of charging the battery, if the EC obtains that the voltage difference between the battery cells in the battery is greater than the first threshold, the EC determines that single-battery-cell overcharge protection needs to be performed on the battery.
For example, the battery includes 4 cells, the voltage values of the 4 cells read by the EC through the SMBus are 4.2V, 3.1V, 4.1V and 3.8V, the maximum voltage difference is 1.1V, the first threshold value is 0.9v, and the 1.1v is greater than 0.9V, which indicates that there is a great risk in the safety and reliability of the battery, and the battery needs to be charged under the control of the charging parameters with the charging protection function.
The EC may successively obtain two charging voltages, that is, a voltage a and a voltage B, where the voltage B is a charging voltage obtained when the cell voltage is read, and the voltage a is a charging voltage obtained before the voltage B is obtained.
In case 1, voltage a is less than or equal to voltage B.
If voltage a is less than or equal to voltage B, it indicates that the charging voltage of the battery has not dropped over a period of time and the battery is in a state of dangerous charge. EC may instruct charge to set the charging voltage to "voltage a-a% voltage a", i.e. to decrease the charging voltage on the basis of voltage a, where a is a natural number greater than 0.
For example, the voltage a is 20V, then EC may set the charging voltage to 20-20 x 10% =18V.
In case 2, voltage a is greater than voltage B.
If the voltage a is greater than the voltage B, it indicates that the charging voltage of the battery decreases after a certain period of time, and the battery may be in a safe charging state. The EC may further determine whether a charge protection strategy exists for the battery.
The EC may read American Standard Code for Information Interchange (ASCII) from the battery, which typically contains an Identifier (ID) of the battery manufacturer, such as the last two digits of ASCII. After the EC obtains the ID of the battery manufacturer from ASCII, it determines whether the battery has a charge protection policy according to table 2.
TABLE 2
Battery charging optimization management | Prevent single electric core overcharge | IR compensation | |
Battery manufacturer 1 | Support for | Do not support | Do not support |
Battery manufacturer 2 | Support for | Do not support | Support for |
Battery manufacturer 3 | Support for | Support for | Support for |
Table 2 is a table of the relationship between the battery manufacturer ID and the battery charge protection policy stored by the EC.
If the ASCII contains the vendor ID of battery vendor 1, the EC can determine from table 2 that the battery does not have a charge protection strategy that prevents single cell overcharge and does not have a charge protection strategy that is IR compensated.
If the ASCII contains a vendor ID that is the ID of battery vendor 2, the EC can determine from table 2 that the battery does not have a charge protection strategy that prevents single cell overcharge and that there is an IR compensated charge protection strategy.
If the ASCII contains the vendor ID for battery vendor 3, the EC can determine from table 2 that the battery has a charge protection strategy that prevents single cell overcharge and a charge protection strategy that has IR compensation.
Case 2.1, the battery does not have a charge protection strategy.
If the battery does not have a charge protection strategy, EC may instruct charge to set the charging voltage to "voltage B-a%. Voltage a", i.e., decrease the charging voltage based on voltage B.
For example, if voltage a is 20V and voltage B is 19V, then EC may set the charging voltage to 19-20 x 10% =17V.
Since the voltage B is smaller than the voltage a in case 2.1, lowering the charging voltage on the basis of the voltage B can further improve the charging safety of the battery.
Case 2.2, the battery has a charge protection strategy.
If the battery has a charge protection strategy, the EC may further determine whether the drop amplitude of the charge voltage is large enough, that is, determine whether the voltage a minus the voltage B is greater than a second threshold, where the second threshold may be a% × the voltage a.
If the voltage A minus the voltage B is larger than the second threshold, the reduction range of the charging voltage of the battery is larger, the battery can be safely charged under the current charging condition, and the EC determines that the voltage B does not need to be adjusted.
If the voltage a minus the voltage B is less than or equal to the second threshold, which indicates that the drop amplitude of the charging voltage of the battery is small, the battery is charged using the voltage B, and there is a safety risk, and the EC may instruct the charge, and set the charging voltage to "voltage a-a% voltage a", that is, lower the charging voltage based on the voltage a.
The method of initiating the charge protection strategy based on battery current is described below.
As shown in fig. 4, in the process of charging the battery, if the battery current value obtained by the EC is greater than the third threshold, the EC determines that IR current protection needs to be performed on the battery.
For example, if the battery current value obtained by EC is 10A, the first threshold value is 9.5A, and 10a is greater than 9.5A, this indicates that there is a great risk in the safety and reliability of the battery, and the battery needs to be charged under the control of the charging parameters having the charging protection function.
EC may obtain two charging currents, i.e., current a and current B, in sequence, where current B is the charging current obtained when the current value of the battery is obtained, and current a is the charging current obtained before obtaining current B.
In case 3, current A is less than or equal to current B.
If the current A is less than or equal to the current B, the charging current of the battery does not decrease after a period of time, and the battery is in a dangerous charging state. EC may instruct charge to set the charging current to "current a-a% current a", i.e. decrease the charging current on the basis of current a, where a is a natural number greater than 0.
For example, if current a is 8A, then EC may set the charging current to 8-8 x 10% =7.2A.
In case 4, current A is greater than current B.
If the current a is greater than the current B, it indicates that the charging current of the battery decreases after a period of time, and the battery may be in a safe charging state. The EC may further determine whether a charge protection strategy exists for the battery.
The EC may read American Standard Code for Information Interchange (ASCII) from the battery, which typically contains an Identifier (ID) of the battery manufacturer, such as the last two digits of ASCII. After the EC obtains the ID of the battery manufacturer from ASCII, it determines whether the battery has a charge protection policy according to table 2.
If the ASCII contains the vendor ID of battery vendor 1, the EC can determine from table 2 that the battery does not have a charge protection strategy that prevents single cell overcharge and does not have a charge protection strategy that is IR compensated.
If the ASCII contains a vendor ID that is the ID of battery vendor 2, the EC can determine from table 2 that the battery does not have a charge protection strategy that prevents single cell overcharge and that there is an IR compensated charge protection strategy.
If the ASCII contains the manufacturer ID as the battery manufacturer 3 ID, the EC can determine from table 2 that the battery has a charge protection strategy that prevents single cell overcharge and a charge protection strategy that has IR compensation.
Case 4.1, the battery does not have a charge protection strategy.
If the battery does not have a charge protection strategy, EC may instruct charge to set the charging current to "current B-a%. Current a", i.e., decrease the charging current based on current B.
For example, current a is 8V and current B is 7.5V, then EC may set the charging current to 7.5-8 x 10% =6.7A.
Since the current B is smaller than the current a in case 4.1, reducing the charging current on the basis of the current B can further improve the charging safety of the battery.
Case 4.2, the battery has a charge protection strategy.
If the battery has a charge protection strategy, the EC may further determine whether the drop amplitude of the charging current is large enough, that is, determine whether the current a minus the current B is greater than a fourth threshold, where the fourth threshold may be a%. The current a.
If the current A minus the current B is larger than the fourth threshold, the descending amplitude of the charging current of the battery is larger, the battery can be safely charged under the current charging condition, and the EC determines that the current B does not need to be adjusted.
If the current a minus the current B is less than or equal to the second threshold, which indicates that the decrease of the charging current of the battery is small, the battery is charged using the current B, and there is a safety risk, and the EC may instruct the charge, and set the charging current to "current a-a% current a", that is, decrease the charging current based on the current a.
It should be noted that the EC may execute the method shown in fig. 3 alone, may execute the method shown in fig. 4 alone, and may execute the methods shown in fig. 3 and fig. 4 simultaneously.
In summary, when the electrical characteristic value (the voltage difference of the battery cell, and/or the current of the battery) does not meet the safety requirement, it indicates that the battery is in a dangerous state; the first charging characteristic value and the second charging characteristic value are charging characteristic values acquired by EC two times, and when the first charging characteristic value is smaller than or equal to the second charging characteristic value, the charging protection strategy of the battery is invalid, or the battery does not have the charging protection strategy; at this time, the EC may reduce the charging characteristic value (charging voltage, and/or charging current) of the battery, thereby improving the safety of the battery during the charging process.
Another embodiment of the charging method provided by the present invention is described below with reference to fig. 5. This embodiment comprises the following steps.
S510, the electronic equipment acquires a first charging characteristic value of the battery.
The battery may be a non-removable battery or a removable battery.
IN an alternative embodiment, the battery is a removable battery, and the electronic device first reads the charger insertion AC _ IN signal and the battery insertion BAT _ IN signal before acquiring the first charging characteristic value of the battery; then, the electronic device determines whether a charger and a battery are inserted into the electronic device according to the levels of the AC _ IN signal and the BAT _ IN signal; when the charger and the battery are inserted into the electronic device, the electronic device acquires the first charging characteristic value of the battery again.
S520, the electronic device obtains a second charging characteristic value and an electrical characteristic value of the battery, where the second charging characteristic value is obtained after obtaining the first charging characteristic value.
And S530, when the electrical characteristic value does not meet the safety requirement and the first charging characteristic value is smaller than or equal to the second charging characteristic value, the electronic equipment determines that the charging characteristic value of the battery is a third charging characteristic value, and the third charging characteristic value is a value obtained by subtracting the first numerical value from the first charging characteristic value.
The method shown in fig. 5 may be performed by a power management module in the electronic device, and the power management module may be an EC, for example, and the EC may periodically acquire the charging characteristic value and the electrical characteristic value of the battery.
In an optional embodiment, the first charging characteristic value includes a first charging voltage value, the second charging characteristic value includes a second charging voltage value, the electrical characteristic value includes a voltage difference between any two battery cells in the battery, and the electrical characteristic value does not satisfy the safety requirement, including: the voltage difference is greater than a voltage difference threshold.
In another optional embodiment, the first charging characteristic value includes a first charging current value, the second charging characteristic value includes a second charging current value, the electrical characteristic value includes a current value of the battery, and the electrical characteristic value does not meet a safety requirement, including: the current value of the battery is greater than the current threshold value.
The EC may only determine whether the voltage difference meets the safety requirement, may also only determine whether the current value of the battery meets the safety requirement (for example, the battery only includes one electrical core), and may also determine whether the voltage difference and the current value of the battery meet the safety requirement at the same time.
When the electrical characteristic value does not meet the safety requirement, the battery is in a dangerous state; the first charging characteristic value and the second charging characteristic value are charging characteristic values acquired by EC two times, and when the first charging characteristic value is smaller than or equal to the second charging characteristic value, the charging protection strategy of the battery is invalid, or the battery does not have the charging protection strategy; at the moment, the EC can reduce the charging characteristic value of the battery, because when the EC obtains the first charging characteristic value, the electrical characteristic value of the battery meets the safety requirement, and the third charging characteristic value can be ensured to meet the safety requirement by continuously reducing the charging characteristic value on the basis of the first charging characteristic value, thereby improving the safety of the battery in the charging process.
In an alternative embodiment, the first value is positively correlated to the first charging characteristic value.
For example, the first value is a value obtained by multiplying the first charge characteristic value by a first coefficient, and the first coefficient is a value greater than 0 and smaller than 1.
In this embodiment, positive correlation means: the first value increases as the first charge characteristic value increases, or the first value decreases as the first charge characteristic value decreases. The first charging characteristic value is a reference quantity for reducing the charging characteristic value, and when the first charging characteristic value is larger, the first numerical value is a larger numerical value to meet the safety requirement.
In an alternative embodiment, the method shown in fig. 5 further comprises:
when the electrical characteristic value does not meet the safety requirement and the first charging characteristic value is larger than the second charging characteristic value, the power supply management module determines whether the battery supports a charging protection strategy;
when the battery supports the charging protection strategy, the power supply management module determines the difference value between the first charging characteristic value and the second charging characteristic value;
when the difference value is larger than the threshold value, the power supply management module determines that the charging characteristic value of the battery is a second charging characteristic value;
and when the difference value is smaller than or equal to the threshold value, the power supply management module determines that the charging characteristic value of the battery is a third charging characteristic value.
The first charging characteristic value being greater than the second charging characteristic value does not indicate that the charging protection strategy for the battery is in effect, for example, when the electronic device is in a power saving mode, there is a possibility that the first charging characteristic value is greater than the second charging characteristic value, and therefore, in this case, the EC needs to confirm whether the battery supports the charging protection strategy. When the battery supports the charging protection strategy, the EC needs to further determine whether the charging protection strategy is effective, wherein when the difference value is greater than the threshold value, the charging characteristic value is reduced greatly, the EC confirms that the charging protection strategy of the battery is effective, and the charging can be continued according to the second charging characteristic value; when the difference is greater than the threshold, it indicates that the charging characteristic value is reduced slightly, and the EC cannot determine whether the charging protection strategy of the battery is effective, and for the sake of insurance, the EC can reduce the charging characteristic value, so that the safety of the battery in the charging process is improved.
In an alternative embodiment, the method shown in fig. 5 further comprises:
when the electrical characteristic value does not meet the safety requirement and the first charging characteristic value is larger than the second charging characteristic value, the power supply management module determines whether the battery supports a charging protection strategy;
when the battery does not support the charging protection strategy, the power supply management module determines that the charging characteristic value of the battery is a fourth charging characteristic, and the fourth charging characteristic value is obtained by subtracting the second numerical value from the second charging characteristic value.
The first charging characteristic value being greater than the second charging characteristic value does not indicate that the charging protection strategy for the battery is in effect, for example, when the electronic device is in a power saving mode, there is a possibility that the first charging characteristic value is greater than the second charging characteristic value, and therefore, in this case, the EC needs to confirm whether the battery supports the charging protection strategy. When the battery does not support the charging protection strategy, the EC can directly reduce the second charging characteristic value, thereby improving the safety of the battery in the charging process.
In an alternative embodiment, the second value is positively correlated to the second charging characteristic value.
For example, the second value is a value obtained by multiplying the second charge characteristic value by a second coefficient, and the second coefficient is a value greater than 0 and smaller than 1.
In this embodiment, positive correlation means that: the second value increases as the second charge characteristic value increases, or the second value decreases as the second charge characteristic value decreases. The second charging characteristic value is a reference quantity for reducing the charging characteristic value, and when the second charging characteristic value is larger, the second value is a larger value to meet the safety requirement.
In an alternative embodiment, the method shown in fig. 5 further comprises: when the electronic equipment determines that the charging characteristic value of the battery is a third charging characteristic value, the electronic equipment controls the charging manager to charge the battery according to the third charging characteristic value; when the electronic device determines that the charging characteristic value of the battery is the fourth charging characteristic value, the electronic device controls the charging manager to charge the battery according to the fourth charging characteristic value.
In an optional embodiment, the method further comprises: when the battery is fully charged, the electronic device controls the charging manager to stop charging the battery.
This embodiment can prevent damage to the battery caused by overcharging of the battery.
The present application also provides a computer program product which, when executed by a processor, implements the method of any of the method embodiments of the present application.
The computer program product may be stored in a memory and eventually transformed into an executable object file that can be executed by a processor via preprocessing, compiling, assembling and linking.
The computer program product may also solidify the code in the chip. The present application is not intended to be limited to the particular form of the computer program product.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a computer, implements the method of any of the method embodiments of the present application. The computer program may be a high-level language program or an executable object program.
The computer readable storage medium may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate SDRAM, enhanced SDRAM, SLDRAM, synchronous Link DRAM (SLDRAM), and direct rambus RAM (DR RAM).
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes and the generated technical effects of the above-described apparatuses and devices may refer to the corresponding processes and technical effects in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the disclosed system, apparatus and method may be implemented in other ways. For example, some features of the method embodiments described above may be omitted, or not performed. The above-described device embodiments are merely illustrative, and the division of the unit is only one type of logical function division, and there may be another division manner in actual implementation, and a plurality of units or components may be combined or may be integrated into another system. In addition, the coupling between the units or the coupling between the components may be direct coupling or indirect coupling, and the coupling includes electrical, mechanical or other connections.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the processes do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the inherent logic thereof, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Additionally, the terms "system" and "network" are often used interchangeably herein. The term "and/or" herein is only one kind of association relationship describing the association object, and means that there may be three kinds of relationships, for example, a and/or B, and may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
In short, the above description is only a preferred embodiment of the present disclosure, and is not intended to limit the scope of the present disclosure. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (10)
1. A charging method applied to an electronic device, wherein the electronic device comprises a battery, the method comprising:
the electronic equipment acquires a first charging characteristic value of the battery;
the electronic equipment acquires a second charging characteristic value and an electrical characteristic value of the battery, wherein the second charging characteristic value is acquired after the first charging characteristic value is acquired;
when the electrical characteristic value does not meet a safety requirement, and when the first charging characteristic value is greater than the second charging characteristic value, the electronic device determines whether the battery supports a charging protection strategy;
when the battery supports a charge protection strategy, the electronic device determines a difference value between the first charge characteristic value and the second charge characteristic value;
when the difference value is larger than a threshold value, the electronic equipment determines that the charging characteristic value of the battery is the second charging characteristic value;
when the difference value is smaller than or equal to the threshold value, the electronic equipment determines that the charging characteristic value of the battery is a third charging characteristic value, and the third charging characteristic value is obtained by subtracting a first numerical value from the first charging characteristic value;
when the battery does not support the charging protection strategy, the electronic device determines that the charging characteristic value of the battery is a fourth charging characteristic value, and the fourth charging characteristic value is obtained by subtracting a second numerical value from the second charging characteristic value.
2. The method of claim 1, wherein the second value is positively correlated with the second charging characteristic value.
3. The method of claim 2, wherein the second value is positively correlated with the second charging characteristic value, comprising:
the second value is obtained by multiplying the second charging characteristic value by a second coefficient, and the second coefficient is a value larger than 0 and smaller than 1.
4. The method of any one of claims 1 to 3, wherein the first charging characteristic value comprises a first charging voltage value, the second charging characteristic value comprises a second charging voltage value, and the electrical characteristic value comprises a voltage difference between any two cells of the battery,
the electrical characteristic value does not meet safety requirements, including:
the voltage difference is greater than a voltage difference threshold.
5. The method of any one of claims 1 to 3, wherein the first charging characteristic value comprises a first charging current value, the second charging characteristic value comprises a second charging current value, the electrical characteristic value comprises a current value of the battery,
the electrical characteristic value does not meet safety requirements, including:
the current value of the battery is greater than a current threshold value.
6. The method according to any one of claims 1 to 3,
before the electronic device obtains the first charging characteristic value of the battery, the method further includes:
the electronic equipment reads a charger insertion AC _ IN signal and a battery insertion BAT _ IN signal;
the electronic equipment determines whether a charger and a battery are inserted into the electronic equipment according to the levels of the AC _ IN signal and the BAT _ IN signal;
the electronic equipment acquires a first charging characteristic value of the battery, and comprises the following steps:
when the charger and the battery are inserted into the electronic device, the electronic device acquires a first charging voltage and a first charging current of the battery;
the electronic device acquiring a second charging characteristic value and an electrical characteristic value of the battery, including:
the electronic equipment acquires a second charging voltage, a second charging current and battery information of the battery, wherein the battery information comprises the current cell voltage and the current of the battery.
7. The method according to any one of claims 1 to 3, wherein the electronic device obtaining a first charging characteristic value of the battery comprises:
when the battery is not fully charged, the electronic device obtains a first charging voltage and a first charging current of the battery.
8. The method of any of claims 1 to 3, further comprising:
when the battery is fully charged, the electronic device controls a charging manager to stop charging the battery.
9. A charging apparatus comprising a processor and a memory, the processor and the memory being coupled, the memory for storing a computer program that, when executed by the processor, causes the apparatus to perform the method of any of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to carry out the method of any one of claims 1 to 8.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2021111338929 | 2021-09-26 | ||
CN202111133892 | 2021-09-26 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114221403A CN114221403A (en) | 2022-03-22 |
CN114221403B true CN114221403B (en) | 2022-12-02 |
Family
ID=80697673
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111383964.5A Active CN114221403B (en) | 2021-09-26 | 2021-11-19 | Charging method and charging device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114221403B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116107411B (en) * | 2023-04-12 | 2023-08-29 | 荣耀终端有限公司 | Starting-up method and related device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101488591A (en) * | 2008-01-16 | 2009-07-22 | 仁宝电脑工业股份有限公司 | Method for multi-section charging cell module |
CN107706979A (en) * | 2017-10-24 | 2018-02-16 | 贝斯拓欧洲控股有限公司 | Charge protection method, device and electronic cigarette |
CN111293754A (en) * | 2020-03-20 | 2020-06-16 | Oppo广东移动通信有限公司 | Charging system, method, electronic device, and computer-readable storage medium |
CN113078711A (en) * | 2021-04-01 | 2021-07-06 | 安徽华菱汽车有限公司 | Charging control method, system and device for power battery |
CN113746151A (en) * | 2020-05-29 | 2021-12-03 | 华为技术有限公司 | Battery charging method, electronic device, storage medium and program product |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112152275B (en) * | 2019-06-28 | 2021-08-31 | Oppo广东移动通信有限公司 | Battery charging method and device, electronic equipment and computer readable storage medium |
TWI740404B (en) * | 2020-03-04 | 2021-09-21 | 華碩電腦股份有限公司 | Battery protection charging method and system thereof |
-
2021
- 2021-11-19 CN CN202111383964.5A patent/CN114221403B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101488591A (en) * | 2008-01-16 | 2009-07-22 | 仁宝电脑工业股份有限公司 | Method for multi-section charging cell module |
CN107706979A (en) * | 2017-10-24 | 2018-02-16 | 贝斯拓欧洲控股有限公司 | Charge protection method, device and electronic cigarette |
CN111293754A (en) * | 2020-03-20 | 2020-06-16 | Oppo广东移动通信有限公司 | Charging system, method, electronic device, and computer-readable storage medium |
CN113746151A (en) * | 2020-05-29 | 2021-12-03 | 华为技术有限公司 | Battery charging method, electronic device, storage medium and program product |
CN113078711A (en) * | 2021-04-01 | 2021-07-06 | 安徽华菱汽车有限公司 | Charging control method, system and device for power battery |
Also Published As
Publication number | Publication date |
---|---|
CN114221403A (en) | 2022-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111463842B (en) | Electronic equipment and communication method thereof | |
US20180366967A1 (en) | Charging device and charging method | |
CN203800642U (en) | Charging Po and charging system | |
JP2008211966A (en) | Circuit and method of operation for electrical power supply | |
US7757104B2 (en) | Integrated circuit and signal processing apparatus using the same | |
CN105449757B (en) | Prevent the method and device that adapter or portable power source disconnect in charging process | |
CN114221403B (en) | Charging method and charging device | |
TWI532293B (en) | Charging method and portable electronic apparatus using the same | |
CN116054301B (en) | Battery protection device, battery protection method and electronic equipment | |
TWI559125B (en) | Power bank apparatus and power control method thereof | |
US20170093181A1 (en) | Charging control method and apparatus, terminal and computer storage medium | |
WO2022061677A1 (en) | Charing control method and circuit, device, and storage medium | |
US10742057B2 (en) | Self-loop detection method and apparatus for charging device | |
CN112234683A (en) | Charging control method of electronic equipment and electronic equipment | |
CN106877452A (en) | A kind of charging method and charging device | |
CN113013935B (en) | Control method and system of power supply device, terminal equipment and storage medium | |
CN111969678B (en) | High-pass platform based terminal quick charging method, device, equipment and storage medium | |
CN110148992B (en) | Charging control method, terminal device and storage medium | |
TWI498718B (en) | Computer device | |
CN113872303A (en) | Charging control method and device, electronic equipment and storage medium | |
CN117096991B (en) | Charging method, electronic equipment and readable storage medium | |
CN114265492B (en) | Starting method and device and electronic equipment | |
CN116914894B (en) | Cut-off voltage adjusting method, electronic device and readable storage medium | |
CN111953030B (en) | Dual-battery control system and method and mobile terminal | |
CN107706473A (en) | A kind of BBU capacity restorative procedure, device, equipment 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 |