Charging control method, medium and product
By collecting battery voltage at multiple time points after the charging path is turned off and comparing it with a preset threshold, capacitor interference is eliminated, battery status is accurately determined, the problem of charging misjudgment is solved, and the reliability of the device and user experience are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-09
- Publication Date
- 2026-04-14
AI Technical Summary
Existing battery charging management systems cannot effectively distinguish the cause of low voltage when the battery enters the over-discharge protection state, leading to charging misjudgments and a decline in user experience.
By collecting battery voltage at multiple predetermined time points after the charging path is closed and comparing it with a pre-determined voltage threshold sequence, residual capacitor voltage interference is eliminated, and battery status is accurately determined. A multi-level voltage sampling and threshold comparison strategy is adopted.
It enables intelligent and safe control of the charging process, improving device reliability and user experience.
Smart Images

Figure CN121863646A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power management for electronic devices, and more specifically, embodiments of this application relate to a method, medium, and product for controlling charging. Background Technology
[0002] With the widespread use of electronic devices, the management and maintenance of their built-in rechargeable batteries has become crucial. After prolonged periods of inactivity, the battery voltage may drop below the over-discharge protection threshold of its protection board due to self-discharge, triggering the over-discharge protection mechanism and entering a high-resistance, locked state. In this state, traditional charging management systems face significant challenges.
[0003] Currently, most mainstream battery charging management solutions rely on dedicated charging chips inside the device. When a charger is connected, this chip detects the battery voltage. If it detects an extremely low voltage, the chip typically attempts to initiate trickle charging to restore the battery. However, this method has an inherent flaw: the charging chip's own detection logic may not be able to effectively distinguish whether the battery's low voltage is due to normal power consumption or because a protection mechanism has been triggered, causing it to be in an abnormally high resistance state.
[0004] Therefore, existing technologies lack a detection mechanism that can effectively and accurately determine the true state of the battery in the early stages of charging. This directly leads to a decline in user experience (inability to charge and inability to know the exact reason) and potential system reliability issues. Summary of the Invention
[0005] The purpose of this application is to provide a method, medium, and product for controlling charging. This technical solution can accurately distinguish whether the battery has entered the over-discharge protection state by eliminating capacitor interference and adopting a multi-level voltage sampling and threshold comparison strategy, thereby realizing intelligent and safe control of the charging process and effectively improving the reliability of the device and the user experience.
[0006] In a first aspect, embodiments of this application provide a method for controlling charging, the method comprising: in response to the detection of an external charger connection, closing the charging path to stop supplying power to a battery to be identified; at multiple predetermined time points, acquiring the voltage of the battery to be identified and comparing it with at least a portion of voltage thresholds in a predetermined voltage threshold sequence to obtain a battery state determination result, wherein the voltage threshold sequence is determined by acquiring the voltage values of normal sample battery packs and abnormal sample battery packs when a trigger condition is met, the trigger condition being closing the charging path of the corresponding sample battery; and determining whether to restart the charging process for the battery to be identified based on the battery state determination result.
[0007] Some embodiments of this application collect battery voltage at multiple predetermined time points after the charging of the battery to be identified is turned off, and compare it with a set of voltage threshold sequences pre-calibrated based on battery degradation characteristics. This can effectively distinguish between residual capacitor voltage and the actual battery voltage, and accurately determine whether the battery is in an over-discharge protection state.
[0008] In some embodiments, the step of collecting the voltage of the battery to be identified at multiple predetermined time points and comparing it with at least a portion of voltage thresholds in a predetermined voltage threshold sequence to obtain a battery state determination result includes: collecting the battery to be identified at a first moment to obtain a first comparison voltage value, wherein the first moment is a moment determined by delaying the moment when the charging path is turned off by a first set time; confirming that the first comparison voltage value is greater than a first threshold of the voltage threshold sequence, and recording a first comparison result, wherein the first threshold is obtained based on the lower limit of the normal sample battery group and the upper limit of the abnormal sample battery group collected at a first sample sampling moment, and the first sample sampling moment is a moment corresponding to delaying the moment when the charging path of the corresponding sample battery is turned off by the first set time; collecting the battery to be identified at a second moment. A second voltage value to be compared is obtained, wherein the second time is a time determined by delaying the time when the charging path is closed by a second set time, and the second set time is longer than the first set time; if it is confirmed that the second voltage value to be compared is greater than the second threshold of the voltage threshold sequence and there is a recorded first comparison result, then the battery to be identified is determined to be normal and the battery state determination result is obtained, wherein the second threshold is obtained based on the lower limit of the normal sample battery group and the upper limit of the abnormal sample battery group collected at the second sample sampling time, and the second sample sampling time is a time corresponding to the time when the charging path of the corresponding sample battery is closed by the second set time; determining whether to restart the charging process of the battery to be identified based on the battery state determination result includes: starting the charging process of the battery to be identified.
[0009] Some embodiments of this application are based on the fact that the release of the residual voltage of the capacitor in the charging circuit after the charging is disconnected is a dynamic process that decays over time. The intensity of the interference gradually weakens over time. Correspondingly, three sampling times (e.g., t1=1s, t2=2s, t3=3s) are designed. The three sampling times correspond to the key stages of this decay process. The system actively detects the interference at different intensity stages, thereby improving the accuracy and efficiency of battery status determination.
[0010] In some embodiments, the step of collecting the voltage of the battery to be identified at multiple predetermined time points and comparing it with at least a portion of voltage thresholds in a predetermined voltage threshold sequence to obtain a battery state determination result includes: collecting the battery to be identified at a first moment to obtain a first comparison voltage value, wherein the first moment is a moment determined by delaying the moment when the charging path is turned off by a first set time; confirming that the first comparison voltage value is greater than a first threshold of the voltage threshold sequence, and recording a first comparison result, wherein the first threshold is obtained based on the lower limit of the normal sample battery group and the upper limit of the abnormal sample battery group collected at a first sample sampling moment, and the first sample sampling moment is a moment corresponding to the moment when the charging path of the corresponding sample battery is turned off by the first set time; collecting the battery to be identified at a second moment to obtain a second comparison voltage value, wherein the second moment is a moment determined by delaying the moment when the charging path is turned off by a second set time, and the second set time is greater than the first set time; confirming that the second comparison voltage value is lower than the voltage threshold sequence. The second threshold is obtained based on the lower limit of the normal sample battery pack and the upper limit of the abnormal sample battery pack collected at the second sample sampling time. The second sample sampling time is a time corresponding to the time when the charging path of the corresponding sample battery is turned off, delayed by the second set time. The battery to be identified is sampled at the third time to obtain a third comparison voltage value. The third time is a time determined by delaying the time when the charging path is turned off by the third set time, which is longer than the second set time. If the third comparison voltage value is confirmed to be less than the third threshold of the voltage threshold sequence, the battery to be identified is determined to be abnormal, and the battery status determination result is obtained. The third threshold is obtained based on the upper limit of the abnormal sample battery pack collected at the third sample sampling time. The third sample sampling time is a time corresponding to the time when the charging path of the corresponding sample battery is turned off, delayed by the third set time. Determining whether to start the charging process of the battery to be identified based on the battery status determination result includes: continuing to stop the charging process of the battery to be identified.
[0011] The embodiments of this application utilize the characteristics of capacitor discharge to ensure that the capacitor discharge ends after a sufficient delay (e.g., at the time corresponding to the third time). The voltage of the battery to be identified drops back to the low-voltage state that triggers over-discharge protection, and the abnormal state of the battery is finally determined based on this pattern, thereby improving the accuracy of abnormal state determination.
[0012] In some embodiments, the plurality of predetermined time points sequentially include a first time point, a second time point, and a third time point, wherein the sampling voltage at the first time point is in the strong recoil false voltage period, the sampling voltage at the second time point is in the recoil false voltage decay period, and the sampling voltage at the third time point is in the recoil false voltage critical state.
[0013] In some embodiments, the plurality of predetermined time points further include a fourth time point located after the third time point, and the sampling voltage at the fourth time point is in a state of recoil voltage dissipation.
[0014] The embodiments of this application obtain the state of the battery to be identified more accurately by introducing four sampling times, thereby enabling better charging control.
[0015] In some embodiments, the step of collecting the voltage of the battery to be identified at multiple predetermined time points and comparing it with at least a portion of voltage thresholds in a predetermined voltage threshold sequence to obtain a battery state determination result includes: collecting the battery to be identified at a first moment to obtain a first comparison voltage value, wherein the first moment is a moment determined by delaying the charging path by a first set time period relative to the moment when the charging path is turned off; confirming that the first comparison voltage value is greater than a first threshold of the voltage threshold sequence, and recording a first comparison result, wherein the first threshold is obtained based on the lower limit of the normal sample battery group and the upper limit of the abnormal sample battery group collected at a first sample sampling moment, and the first sample sampling moment is a moment corresponding to the moment when the charging path of the corresponding sample battery is turned off by the first set time period; collecting the battery to be identified at a second moment to obtain a second comparison voltage value, wherein the second moment is a moment determined by delaying the charging path by a second set time period relative to the moment when the charging path is turned off, and the second set time period is greater than the first set time period; confirming that the second comparison voltage value is lower than a second threshold of the voltage threshold sequence, wherein the second threshold is determined based on the lower limit of the normal sample battery group and the upper limit of the abnormal sample battery group collected at the second sample sampling moment. The upper limit of the sample battery pack is obtained. The second sample sampling time is the time corresponding to the time when the charging path of the corresponding sample battery is turned off, delayed by the second set time. At the third time, the battery to be identified is sampled to obtain a third comparison voltage value, wherein the third time is the time determined by delaying the time when the charging path is turned off by the third set time, and the third set time is longer than the second set time. It is confirmed that the third comparison voltage value is greater than the third threshold of the voltage threshold sequence, wherein the third threshold is obtained based on the upper limit of the abnormal sample battery pack sampled at the third sample sampling time, and the third sample sampling time is the time corresponding to the time when the charging path of the corresponding sample battery is turned off, delayed by the third set time. At the fourth time, the battery to be identified is sampled to obtain a fourth comparison voltage value, wherein the fourth time is the time determined by delaying the time when the charging path is turned off by the fourth set time, and the fourth set time is longer than the third set time. It is confirmed that the fourth comparison voltage value is greater than the third threshold, then the battery to be identified is confirmed to be normal. The step of determining whether to start the charging process of the battery to be identified based on the battery status determination result includes: continuing to charge the battery to be identified.
[0016] In some embodiments, before comparing with at least a portion of the voltage thresholds in a predetermined voltage threshold sequence, the method further includes: selecting a batch of batteries in known states, dividing them into two groups: the normal sample battery group and the abnormal sample battery group, wherein each sample battery in the normal sample battery group has not triggered over-discharge protection, and each sample battery in the abnormal sample battery group has triggered over-discharge protection; triggering the disconnection of the charging path of each sample battery in response to a charger operation inserted into each sample battery; and collecting the voltage of each sample battery at multiple sample sampling times after the charging function is turned off, and determining the voltage threshold sequence based on the sampled sample battery voltages.
[0017] Some embodiments of this application measure the voltage drop pattern of normal and abnormal battery samples after the charging path is turned off in batches, and then determine each voltage threshold in the voltage threshold sequence based on the pattern, thereby improving the accuracy of each voltage threshold and ultimately improving the accuracy of the battery status determination result.
[0018] In some embodiments, the step of collecting the voltage of each sample battery at multiple sample sampling times after the charging function is turned off and determining the voltage threshold sequence based on the sampled sample battery voltages includes: collecting the voltage of each sample battery at a first sample sampling time after the charging function is turned off, wherein the first sample sampling time is a time delayed by a first set time from the time when the charging path of the corresponding sample battery is turned off; recording the voltage of each sample battery in the normal sample battery group at the first sample sampling time to obtain a first normal voltage dataset; recording the voltage of each sample battery in all abnormal sample battery groups at the first sample sampling time to obtain a first abnormal voltage dataset; and determining the first threshold based on the lower limit of the first normal voltage dataset and the upper limit of the first abnormal voltage dataset.
[0019] Some embodiments of this application collect voltage values of normal and abnormal batteries after a first set time period of closing the charging path, and determine a first threshold accordingly, which can improve the accuracy of the obtained first threshold and ultimately improve the accuracy of battery status determination.
[0020] In some embodiments, the step of collecting the voltage of each sample battery at multiple sample sampling times after the charging function is turned off and determining the voltage threshold sequence based on the sampled sample battery voltages further includes: collecting the voltage of each sample battery at a second sample sampling time after the charging function is turned off, wherein the second sample sampling time is a time delayed by a second set duration compared to the time when the charging path of the corresponding sample battery is turned off, and the second set duration is greater than the first set duration; recording the voltage of each sample battery in the normal sample battery group at the second sample sampling time to obtain a second normal voltage dataset; recording the voltage of each sample battery in the abnormal sample battery group at the second sample sampling time to obtain a second abnormal voltage dataset; and determining the second threshold based on the lower limit of the second normal voltage dataset and the upper limit of the second abnormal voltage dataset.
[0021] The embodiments of this application obtain a threshold voltage based on the normal battery lower limit and the abnormal battery lower limit, which can improve the rationality of the threshold voltage and thus improve the accuracy of battery state determination.
[0022] In some embodiments, the step of collecting the voltage of each sample battery at multiple sample sampling times after the charging function is turned off and determining the voltage threshold sequence based on the sampled sample battery voltages further includes: collecting the voltage of each sample battery in the abnormal sample battery group at a third sample sampling time after the charging function is turned off, wherein the third sample sampling time is a time delayed by a third set time from the time when the charging path of the corresponding sample battery is turned off, and the third set time is greater than the second set time; recording the voltage of each sample battery in the abnormal sample battery group at the third sample sampling time to obtain a third abnormal voltage dataset; and determining the third threshold based on the upper limit of the third abnormal voltage dataset.
[0023] Some embodiments of this application can determine a threshold based on the voltage of the abnormal battery after the charging path has been closed for a sufficiently long time, and determine the state of the battery to be identified based on the threshold, which can improve the accuracy of battery state determination.
[0024] Secondly, some embodiments of this application provide a charging control device, the device comprising: a charging shutdown module configured to shut down the charging path and stop supplying power to the battery to be identified in response to the detection of an external charger connection; a battery status determination module configured to collect the voltage of the battery to be identified at multiple predetermined time points and compare it with at least a portion of voltage thresholds in a predetermined voltage threshold sequence to obtain a battery status determination result, wherein the voltage threshold sequence is determined by collecting the voltage values of normal sample battery packs and abnormal sample battery packs when a trigger condition is met, the trigger condition being shutting down the charging path of the corresponding sample battery; and a charging control module configured to determine whether to restart the charging process of the battery to be identified based on the battery status determination result.
[0025] Thirdly, some embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, can implement the method of controlling charging as described in any embodiment of the first aspect.
[0026] Fourthly, some embodiments of this application provide a computer program product, including computer program instructions, which, when read and executed by a processor, perform the method for controlling charging as described in any embodiment of the first aspect.
[0027] Fifthly, some embodiments of this application provide an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, can implement the method of controlling charging as described in any of the embodiments included in the first aspect. Attached Figure Description To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0028] Figure 1 This is a schematic diagram of the charging process of the charging system provided in the embodiments of this application; Figure 2 A flowchart of a method for controlling charging provided in an embodiment of this application; Figure 3 A block diagram of the charging control device provided in the embodiments of this application; Figure 4 This is a schematic diagram of the electronic device provided in the embodiments of this application. Detailed Implementation
[0029] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0030] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0031] The inventors of this application discovered in their research that capacitors (e.g., filter capacitors and energy storage capacitors) commonly found in the circuits of electronic devices to be charged are rapidly charged after the charger is connected. This causes the terminal voltage detected by the charging management chip to be a virtual voltage raised by the capacitor, rather than the actual voltage of the battery. This virtual voltage may be higher than the activation threshold of the charging chip, leading to misjudgment of the battery status and an attempt to charge the battery in a protected state, thereby affecting the charging effect.
[0032] At least to address these technical problems, some embodiments of this application collect battery voltage at multiple predetermined time points associated with the capacitor discharge sequence (e.g., the voltage sampling times such as the first time point and the second time point mentioned above) and compare it with multiple preset voltage thresholds to eliminate interference from residual capacitor voltage, thereby accurately determining the battery state.
[0033] It should be noted that the multiple predetermined time points correspond to the sampling times in the embodiments of this application, and the embodiments of this application do not limit the specific number of sampling times. The multiple predetermined time points in the embodiments of this application are associated with the capacitor discharge sequence, that is, in the embodiments of this application, multiple predetermined time points are determined based on the discharge duration of the capacitor after the charging path is turned off. The embodiments of this application adopt a fault-tolerant mechanism logic for over-discharge states, thereby improving the accuracy of abnormal state determination.
[0034] The purpose of this invention is to overcome the shortcomings of existing battery charging management schemes that are prone to misjudgment when the battery is in an over-discharge protection state, and to provide a battery state identification method and device. This method, by eliminating capacitor interference and employing a multi-level voltage sampling and threshold comparison strategy, can accurately distinguish whether the battery has entered an over-discharge protection state, thereby achieving intelligent and safe control of the charging process and effectively improving equipment reliability and user experience.
[0035] Please refer to Figure 1 , Figure 1 The charging system provided in some embodiments of this application includes an external charger and an electronic device to be charged, the electronic device to be charged including a charging management chip, a main controller, an ADC sampling circuit, a battery, and a display screen.
[0036] An external charger is used to provide power and is configured to convert electrical signals such as mains power into low-voltage DC power required by electronic devices to provide electrical energy to the electronic devices.
[0037] As an intelligent switch and execution unit, the charging management chip is an integrated circuit on the motherboard of electronic devices. It can receive instructions from the main controller MCU, and is responsible for precisely controlling the opening and closing of the charging path to the battery, and managing the charging current / voltage mode (such as trickle, constant current, constant voltage).
[0038] The main controller (MCU) acts as the decision center, running the main operating system or embedded software of the electronic device and executing the charging control method provided in the embodiments of this application. The main controller is at least configured to issue control commands, trigger sampling, process data, and determine the battery status or control human-machine interaction.
[0039] The ADC sampling circuit can be integrated into the main controller or used as a separate peripheral. It is responsible for converting the analog voltage signal of the battery positive terminal into a digital value for the main controller MCU to read.
[0040] The battery, as the object of detection in this application embodiment, has its current state (normal / over-discharge protection) as the target that needs to be identified in the entire process.
[0041] As a human-computer interaction output interface, the display screen can intuitively show the current system status (such as "charging" or "battery malfunction") to the user according to the instructions of the MCU.
[0042] The following is combined Figure 1 The charging process of an embodiment of this application is illustrated by way of example.
[0043] Step 1: Start-up Phase S101 is connected to the power supply.
[0044] S102, notification of charging event.
[0045] When an external charger is plugged in, the charging management chip detects the power input and then notifies the main controller that "the charger has been connected" through hardware interrupts or status register changes.
[0046] The S103 displays that it is charging.
[0047] After receiving the notification, the MCU will first control the display screen to show initial information such as "Charging" before completing the battery status determination, providing the user with immediate feedback.
[0048] Step 2: Preprocessing Stage S104, the main controller sends a charging shutdown command to the charging management chip.
[0049] For example, the MCU sends a "disable charging" command to the charging management chip through communication buses such as I2C and SPI, which is a prerequisite for eliminating capacitor interference.
[0050] S105, disconnect the charging circuit (or charging path).
[0051] Upon receiving a command to prohibit charging, the charging management chip immediately turns off its internal power MOSFET switch, physically disconnecting the charging path from the external charger to the battery.
[0052] Step 3: Sampling and Judgment Loop S106, trigger sampling.
[0053] When the timer inside the MCU reaches the preset sampling time (such as the 1st second), the MCU sends a start sampling command to the ADC sampling circuit.
[0054] S107, collects battery voltage.
[0055] The ADC sampling circuit samples the voltage at the positive terminal of the battery and converts the obtained analog signal into a digital value.
[0056] S108 returns the voltage value.
[0057] S109 returns the ADC value.
[0058] The MCU reads the acquired digital voltage value from the ADC's data register.
[0059] S110, compare the acquired voltage value with the corresponding value in the voltage threshold sequence.
[0060] S111, make a decision based on the battery status determination result.
[0061] The MCU reads the collected voltage value and compares it with the corresponding voltage threshold. This comparison logic integrates a fault-tolerant mechanism (it only makes a judgment if the threshold is exceeded multiple times consecutively).
[0062] It should be noted that, in the embodiments of this application, the MCU can update the display screen's prompt information based on the comparison result (e.g., changing from "Charging" to "Detecting" or "Battery Abnormal"). In some embodiments of this application, the loop corresponding to S110 is repeated according to a preset number of samplings (e.g., 3 or 5 times) and rhythm (e.g., once per second).
[0063] Step 4: Result Execution Phase S112, normal status.
[0064] After completing all the preset sampling and judgments, the MCU makes a final decision based on the final result.
[0065] S113, send a command to start charging.
[0066] S114, connect the charging circuit.
[0067] S115, showing charging in progress.
[0068] In other words, if the battery is determined to be normal, the MCU sends an "enable charging" command to the charging management chip. The charging management chip then reconnects the charging path, and the electronic device begins charging normally. The display screen refreshes to show the "charging" status.
[0069] S116, abnormal status.
[0070] S117, keep charging off.
[0071] S118 indicates a battery malfunction.
[0072] In other words, if a battery malfunction is detected, the MCU will cease sending any commands and maintain the charging management chip in a switched-off state. Simultaneously, the control display will continuously show a "Battery Malfunction" warning, informing the user of the exact cause.
[0073] It should be noted that the embodiments of this application do not limit the sampling voltage or the number of comparisons. Figure 1 As an exemplary architecture of the charging system of this application, those skilled in the art can adopt different approaches. Figure 1 The architecture implements the controlled charging method of the embodiments of this application.
[0074] The following is combined Figure 2 This application provides an exemplary embodiment of a method for controlling charging, which is executed by an electronic device to be charged. For example, the electronic device to be charged includes, for example, […]. Figure 1 The relevant units are shown.
[0075] like Figure 2 As shown, an embodiment of this application provides a method for controlling charging, the method comprising: S210, in response to the detected external charger connection, closes the charging path and stops supplying power to the battery to be identified.
[0076] In some embodiments of this application, the charging management chip in the electronic device being charged notifies the main controller of a charging event, and then the main controller sends a charging shutdown command to the charging management chip, which then cuts off the charging path of the battery.
[0077] S220, at multiple predetermined time points, the voltage of the battery to be identified is collected and compared with at least some of the voltage thresholds in a predetermined voltage threshold sequence to obtain the battery status determination result.
[0078] In some embodiments of this application, battery voltage is collected at multiple predetermined time points associated with capacitor discharge timing (e.g., the sampling times such as the first time point and the second time point mentioned above), and the collected voltage values are compared with multiple preset voltage thresholds to eliminate interference from residual capacitor voltage, thereby accurately determining the battery status.
[0079] For example, if the capacitor discharge time is confirmed to be 3 seconds after the charging path is closed, in some embodiments of this application, a preset time point can be set every 0.5 seconds after the charging path is closed, until the last preset time point is set when the 3rd second is reached; in some embodiments of this application, a preset time point can be set every 1 second after the charging path is closed, until the last preset time point is set when the 3rd second is reached.
[0080] For example, in some embodiments of this application, the plurality of predetermined time points sequentially include a first time point, a second time point, and a third time point, wherein the sampling voltage at the first time point is in a strong recoil false voltage period, the sampling voltage at the second time point is in a recoil false voltage decay period, and the sampling voltage at the third time point is in a recoil false voltage critical state. In some embodiments of this application, the plurality of predetermined time points sequentially include a first time point, a second time point, a third time point, and a fourth time point. For example, in some embodiments of this application, the sampling voltage at the first time point is in a strong recoil false voltage period, the sampling voltage at the second time point is in a recoil false voltage decay period, the sampling voltage at the third time point is in a recoil false voltage critical state, and the sampling voltage at the fourth time point is in a recoil false voltage dissipation state.
[0081] It is understood that in some embodiments of this application, the first and second moments correspond to the stage where the residual capacitor voltage significantly interferes with ADC acquisition; the third moment corresponds to the stage where the residual capacitor voltage has decayed to a critical level, and its interference with ADC acquisition has been significantly reduced but not necessarily completely eliminated; the fourth moment corresponds to the stage where the residual capacitor voltage has sufficiently decayed, and its interference with ADC acquisition can be basically ignored.
[0082] It should be noted that, in the embodiments of this application, the strong recoil false voltage period is the initial stage of capacitor discharge, where the recoil false voltage reaches or is close to its peak value. The recoil false voltage decay period is the middle stage of capacitor discharge, where the recoil false voltage has significantly decayed from its peak value, but its absolute value is still relatively high, constituting a major interference to the ADC acquisition results. The true state of the battery begins to affect the total voltage, but it is still confused by the false voltage. The recoil false voltage critical state is the later stage of capacitor discharge, where the recoil false voltage has decayed to a critical level, and its value is negligible compared to the true voltage of a normal battery, but may still be on the same order of magnitude or slightly higher than the extremely low true voltage of an abnormal battery. At this time, the true voltage of a normal battery is fully revealed, while the voltage of an abnormal battery may still be subject to the final interference of the residual false voltage. The recoil false voltage dissipation state is the end stage of capacitor discharge, where the recoil false voltage has fully dissipated, and its value has dropped to a level that has no substantial impact on the measurement results. The voltage at the acquisition point objectively and stably reflects the true state of the battery, providing an interference-free sampling point for the final fault-tolerant decision.
[0083] In the embodiments of this application, when the charging function is turned off, the charge stored in the capacitors in the circuit maintains an instantaneous voltage higher than the battery's true voltage at the terminals of the battery to be identified through its release circuit. This voltage is referred to here as the recoil voltage. The capacitors in the circuit refer to the sum of all capacitive components and parasitic parameters in the charging circuit and battery power supply circuit whose residual charge release process after the charging function is turned off causes continuous interference to the potential of the battery voltage acquisition point (ADC sampling point). For example, this type of capacitor includes filter capacitors, voltage regulator capacitors, as well as unintentional wiring parasitic capacitance, distributed capacitance of chip pins, etc.
[0084] It should be noted that the voltage threshold sequence is determined by collecting the voltage values of normal and abnormal sample battery packs when the triggering condition is met. The triggering condition is to shut down the charging path of the corresponding sample battery.
[0085] S230, determine whether to restart the charging process for the battery to be identified based on the battery status determination result.
[0086] In some embodiments of this application, if the battery is identified as normal, charging continues; if the battery is identified as being in an overvoltage protection state, the charging process is stopped.
[0087] Some embodiments of this application collect battery voltage at multiple predetermined time points after the charging of the battery to be identified is turned off, and compare it with a set of voltage threshold sequences pre-calibrated based on battery degradation characteristics. This can effectively distinguish between residual capacitor voltage and the actual battery voltage, and accurately determine whether the battery is in an over-discharge protection state.
[0088] The following example, using three predetermined time points, illustrates the implementation process of the relevant steps.
[0089] In some embodiments of this application, S220 includes, for example: The first step is to acquire the battery to be identified at the first moment to obtain the first voltage value to be compared.
[0090] It should be noted that the first moment in this embodiment is a moment determined by delaying the moment the charging path is closed by a first set duration. It can be understood that the first set duration is determined based on the total discharge time of the capacitor after the charging path is closed; for example, if the total discharge time is 3 seconds, the first set duration can be set to 1 second or 0.5 seconds.
[0091] The second step is to confirm that the first voltage value to be compared is greater than the first threshold of the voltage threshold sequence, and then record the first comparison result.
[0092] It should be noted that, in some embodiments of this application, the first threshold is obtained based on the lower limit of the normal sample battery pack and the upper limit of the abnormal sample battery pack collected at the first sample sampling time. For example, a voltage value that is lower than the lower limit of the normal sample battery pack collected at the first sample sampling time and greater than the upper limit of the abnormal sample battery pack is determined as the first threshold. The first sample sampling time is obtained by delaying the charging path closing time of the corresponding sample battery by the first set duration. As described in the first step, the first set duration is determined based on the total discharge time of the capacitor after closing the charging path. For example, if the total discharge time is 3 seconds, the first set duration can be set to 1 second or 0.5 seconds.
[0093] The third step is to acquire the battery to be identified at the second time point to obtain the second voltage value to be compared.
[0094] It should be noted that the second time is a time determined by delaying the charging path by a second set duration relative to the time when the charging path is closed, and the second set duration is longer than the first set duration. It can be understood that the second set duration is determined based on the total capacitor discharge time after the charging path is closed. For example, if the total discharge time is 3 seconds, the first set duration is 1 second, and the second set duration is 2 seconds; or if the total discharge time is 3 seconds, the first set duration is 0.5 seconds, and the second set duration is 1 second.
[0095] The fourth step is to confirm that the second voltage value to be compared is greater than the second threshold of the voltage threshold sequence, and then determine that the battery to be identified is normal and obtain the battery status determination result.
[0096] It should be noted that the second threshold is obtained based on the lower limit of the normal sample battery pack and the upper limit of the abnormal sample battery pack collected at the second sample sampling time. For example, a voltage value that is lower than the lower limit of the normal sample battery pack collected at the second sample sampling time and higher than the upper limit of the abnormal sample battery pack is determined as the second threshold.
[0097] S130, which determines whether to restart the charging process for the battery to be identified based on the battery status determination result, includes, for example, starting the charging process for the battery to be identified.
[0098] Some embodiments of this application are based on the fact that the release of the residual voltage of the capacitor in the charging circuit after the charging is disconnected is a dynamic process that decays over time. The intensity of the interference gradually weakens over time. Correspondingly, three sampling times (e.g., t1=1s, t2=2s, t3=3s) are designed. The three sampling times correspond to the key stages of this decay process. The system actively detects the interference at different intensity stages, thereby improving the accuracy and efficiency of battery status determination.
[0099] The following example, using three predetermined time points, illustrates the implementation process of the relevant steps.
[0100] In some embodiments of this application, S220 includes, for example: The first step is to acquire the battery to be identified at the first moment to obtain the first voltage value to be compared.
[0101] It should be noted that the first moment in this embodiment is a moment determined by delaying the moment the charging path is closed by a first set duration. It can be understood that the first set duration is determined based on the total discharge time of the capacitor after the charging path is closed; for example, if the total discharge time is 3 seconds, the first set duration can be set to 1 second or 0.5 seconds.
[0102] The second step is to confirm that the first voltage value to be compared is greater than the first threshold of the voltage threshold sequence, and then record the first comparison result.
[0103] It should be noted that, in some embodiments of this application, the first threshold is obtained based on the lower limit of the normal sample battery pack and the upper limit of the abnormal sample battery pack collected at the first sample sampling time. For example, a voltage value that is lower than the lower limit of the normal sample battery pack collected at the first sample sampling time and greater than the upper limit of the abnormal sample battery pack is determined as the first threshold. The first sample sampling time is obtained by delaying the charging path closing time of the corresponding sample battery by the first set duration. As described in the first step, the first set duration is determined based on the total discharge time of the capacitor after closing the charging path. For example, if the total discharge time is 3 seconds, the first set duration can be set to 1 second or 0.5 seconds.
[0104] The third step is to acquire the battery to be identified at the second time point to obtain the second voltage value to be compared.
[0105] It should be noted that the second time is a time determined by delaying the charging path by a second set duration relative to the time when the charging path is closed, and the second set duration is longer than the first set duration. It can be understood that the second set duration is determined based on the total capacitor discharge time after the charging path is closed. For example, if the total discharge time is 3 seconds, the first set duration is 1 second, and the second set duration is 2 seconds; or if the total discharge time is 3 seconds, the first set duration is 0.5 seconds, and the second set duration is 1 second.
[0106] The fourth step is to confirm that the second voltage value to be compared is lower than the second threshold of the voltage threshold sequence.
[0107] It should be noted that the second threshold is obtained based on the lower limit of the normal sample battery pack and the upper limit of the abnormal sample battery pack collected at the second sample sampling time. For example, a voltage value that is lower than the lower limit of the normal sample battery pack collected at the second sample sampling time and higher than the upper limit of the abnormal sample battery pack is determined as the second threshold.
[0108] Fifth, at the third moment, the battery to be identified is collected to obtain the third voltage value to be compared.
[0109] It should be noted that the third time is a time determined by delaying the charging path from the time it is closed by a third set duration. The third set duration is longer than the second set duration and close to the discharge duration of the capacitor after the charging path is closed. In other words, the third set duration is determined based on the total discharge duration of the capacitor after the charging path is closed. For example, if the total discharge duration is 3 seconds, the first set duration is 1 second, the second set duration is 2 seconds, and the third set duration is 3 seconds.
[0110] Step 6: If the third voltage value to be compared is less than the third threshold of the voltage threshold sequence, then the battery to be identified is determined to be abnormal, and the battery status determination result is obtained.
[0111] It should be noted that the third threshold is obtained based on the upper limit of the abnormal sample battery pack collected at the third sample sampling time. For example, a value slightly smaller than the upper limit of the abnormal sample battery pack collected at the third sample sampling time is used as the third threshold. The third sample sampling time is the time corresponding to the third set duration after delaying the time when the charging path of the corresponding sample battery is turned off.
[0112] The corresponding step S130, which determines whether to start the charging process for the battery to be identified based on the battery status determination result, includes, for example, continuing to suspend the charging process for the battery to be identified.
[0113] The embodiments of this application utilize the characteristics of capacitor discharge to ensure that the capacitor discharge ends after a sufficient delay (e.g., at the time corresponding to the third time). The voltage of the battery to be identified drops back to the low voltage state that triggers over-discharge protection, and the abnormal state of the battery (i.e., in the over-discharge protection state) is finally determined based on this pattern, thereby improving the accuracy of abnormal state determination.
[0114] The following example, using four sampling times, illustrates the implementation process of the relevant steps.
[0115] In some embodiments of this application, the step of collecting the voltage of the battery to be identified at multiple predetermined time points and comparing it with at least a portion of voltage thresholds in a predetermined voltage threshold sequence to obtain a battery state determination result includes: collecting the battery to be identified at a first moment to obtain a first comparison voltage value, wherein the first moment is a moment determined by delaying the charging path by a first set time period relative to the moment when the charging path is turned off; confirming that the first comparison voltage value is greater than a first threshold of the voltage threshold sequence, and recording a first comparison result, wherein the first threshold is obtained based on the lower limit of the normal sample battery group and the upper limit of the abnormal sample battery group collected at a first sample sampling moment, and the first sample sampling moment is a moment corresponding to the moment when the charging path of the corresponding sample battery is turned off by the first set time period; collecting the battery to be identified at a second moment to obtain a second comparison voltage value, wherein the second moment is a moment determined by delaying the charging path by a second set time period relative to the moment when the charging path is turned off, and the second set time period is greater than the first set time period; confirming that the second comparison voltage value is lower than a second threshold of the voltage threshold sequence, wherein the second threshold is determined based on the lower limit of the normal sample battery group collected at the second sample sampling moment and the upper limit of the abnormal sample battery group. The upper limit of the abnormal sample battery pack is obtained. The second sample sampling time is the time corresponding to the time when the charging path of the corresponding sample battery is turned off, delayed by the second set time. At the third time, the battery to be identified is sampled to obtain a third comparison voltage value, wherein the third time is the time determined by delaying the time when the charging path is turned off by the third set time, and the third set time is longer than the second set time. It is confirmed that the third comparison voltage value is greater than the third threshold of the voltage threshold sequence, wherein the third threshold is obtained based on the upper limit of the abnormal sample battery pack sampled at the third sample sampling time, and the third sample sampling time is the time corresponding to the time when the charging path of the corresponding sample battery is turned off, delayed by the third set time. At the fourth time, the battery to be identified is sampled to obtain a fourth comparison voltage value, wherein the fourth time is the time determined by delaying the time when the charging path is turned off by the fourth set time, and the fourth set time is longer than the third set time. It is confirmed that the fourth comparison voltage value is greater than the third threshold, then the battery to be identified is confirmed to be normal. The step of determining whether to start the charging process of the battery to be identified based on the battery status determination result includes: continuing to charge the battery to be identified.
[0116] It should be noted that some embodiments of this application also provide strategies for obtaining each voltage threshold in the voltage threshold sequence.
[0117] For example, in some embodiments of this application, before the comparison with at least a portion of the voltage thresholds in a predetermined voltage threshold sequence, the method further includes: The first step is to select a batch of batteries in known states and divide them into normal sample battery groups and abnormal sample battery groups. In the normal sample battery groups, each sample battery has not triggered over-discharge protection, while in the abnormal sample battery groups, each sample battery has triggered over-discharge protection.
[0118] The second step involves triggering the disconnection of the charging path for each sample battery in response to the charging operation of the charger inserted into each sample battery.
[0119] The third step involves collecting the voltage of each sample battery at multiple sampling times after the charging function is turned off, and determining the voltage threshold sequence based on the sampled sample battery voltages.
[0120] The implementation process of the third step is illustrated by taking a voltage threshold sequence that includes three voltage thresholds as an example.
[0121] For example, in some embodiments of this application, the third step of collecting the voltage of each sample battery at multiple sample sampling times after the charging function is turned off and determining the voltage threshold sequence based on the sampled sample battery voltage includes: collecting the voltage of each sample battery at a first sample sampling time after the charging function is turned off; recording the voltage of each sample battery in the normal sample battery group at the first sample sampling time to obtain a first normal voltage dataset; recording the voltage of each sample battery in all abnormal sample battery groups at the first sample sampling time to obtain a first abnormal voltage dataset; and determining the first threshold based on the lower limit of the first normal voltage dataset and the upper limit of the first abnormal voltage dataset.
[0122] Some embodiments of this application collect voltage values of normal and abnormal batteries after a first set time period of closing the charging path, and determine a first threshold accordingly, which can improve the accuracy of the obtained first threshold and ultimately improve the accuracy of battery status determination.
[0123] For example, in some embodiments of this application, the step of collecting the voltage of each sample battery at multiple sample sampling times after the charging function is turned off and determining the voltage threshold sequence based on the sampled sample battery voltages further includes: collecting the voltage of each sample battery at a second sample sampling time after the charging function is turned off; recording the voltage of each sample battery in the normal sample battery group at the second sample sampling time to obtain a second normal voltage dataset; recording the voltage of each sample battery in the abnormal sample battery group at the second sample sampling time to obtain a second abnormal voltage dataset; and determining the second threshold based on the lower limit of the second normal voltage dataset and the upper limit of the second abnormal voltage dataset.
[0124] The embodiments of this application obtain a threshold voltage based on the normal battery lower limit and the abnormal battery lower limit, which can improve the rationality of the threshold voltage and thus improve the accuracy of battery state determination.
[0125] For example, in some embodiments of this application, the step of collecting the voltage of each sample battery at multiple sample sampling times after the charging function is turned off and determining the voltage threshold sequence based on the sampled sample battery voltages further includes: collecting the voltage of each sample battery in the abnormal sample battery group at a third sample sampling time after the charging function is turned off; recording the voltage of each sample battery in the abnormal sample battery group at the third sample sampling time to obtain a third abnormal voltage dataset; and determining the third threshold based on the upper limit of the third abnormal voltage dataset.
[0126] Some embodiments of this application determine a threshold based on the voltage of the abnormal battery after the charging path has been closed for a sufficiently long time, and then determine the state of the battery to be identified based on this threshold, thereby improving the accuracy of battery state determination. Some embodiments of this application measure the voltage drop pattern of normal and abnormal battery samples after the charging path has been closed in batches, and then determine each voltage threshold in the voltage threshold sequence based on this pattern, improving the accuracy of each voltage threshold and ultimately improving the accuracy of the battery state determination result.
[0127] The following uses three voltage thresholds as examples to illustrate the voltage threshold sequence acquisition process and charging control method provided in some embodiments of this application.
[0128] Some embodiments of this application provide a method for controlling charging. This method controls the charging process based on whether the battery is in an over-discharge protection state, aiming to solve the problem of misjudgment caused by interference from residual capacitor voltage. The charging control method of some embodiments of this application includes two stages: a threshold calibration stage and a state judgment stage.
[0129] The first stage is threshold calibration. The purpose of this stage is to establish a voltage threshold sequence through experiments for subsequent judgments.
[0130] 1. Prepare sample batteries: Select a batch of batteries in a known state and divide them into two groups: Normal sample battery pack: The battery did not trigger the protection board and is in a normal working state.
[0131] Abnormal sample battery pack: The battery has triggered its built-in over-discharge protection board and is in a protected state.
[0132] 2. Simulation test procedure: Connect the two sets of batteries to the device respectively, and perform the following operations: Plug in the charger.
[0133] The main controller controls the charging management chip to disable the charging function.
[0134] The battery voltage is collected via the ADC channel at multiple predetermined time points, such as the 1st second, 2nd second, and 3rd second after the charging function is turned off.
[0135] 3. Data recording and analysis: Record the voltage of all normal sample batteries at each time point (t1, t2, t3) to obtain a voltage dataset.
[0136] Record the voltage of all abnormal sample batteries at the same time point to obtain another voltage dataset.
[0137] 4. Set the threshold sequence: First threshold (V_th1): Based on the lower limit of the normal sample battery voltage distribution and the upper limit of the abnormal sample battery voltage distribution at time t1, a value is set as the first threshold.
[0138] The second threshold (V_th2): Based on the lower limit of the voltage distribution of normal sample batteries and the upper limit of the voltage distribution of abnormal sample batteries at time t2, a value is set as the second threshold for secondary screening. The secondary screening process can screen out normal batteries with a high probability and then start the charging process of these normal batteries in time.
[0139] The third threshold (V_th3): Based on the upper limit of the abnormal sample battery voltage distribution at time t3, a value is set as the third threshold. Since the capacitance interference has largely subsided by this time, the voltage of the normal sample battery is much higher than that of the abnormal sample battery. This threshold can be used as the final criterion for judging battery abnormality.
[0140] The second stage is state determination. This stage uses the voltage threshold sequence calibrated in the first stage to determine the state of the battery.
[0141] 1. Activation condition: The electronic device detects that the charger is plugged in.
[0142] 2. Disable charging function: The main controller first disables the charging output of the charging management chip to eliminate interference from the external charging voltage on the ADC acquisition.
[0143] 3. First data collection and judgment (t1): After a first set delay (e.g., 1 second), the ADC voltage value (V1) is acquired.
[0144] Comparison: If V1 > V_th1, then no judgment is made for now, charging remains off, and "Detecting" can be displayed. The current judgment status is recorded, and the next judgment is performed.
[0145] Comparison: If V1 <= V_th1, then no judgment is made for now, charging is kept off, and you can optionally display "Detecting" or a preliminary warning before proceeding to the next judgment.
[0146] 4. Second data collection and judgment (t2): After a second set delay (e.g., 2 seconds), the voltage value (V2) is collected.
[0147] Comparison: If V2 > V_th2, and the judgment status was recorded in the previous step, then the battery is determined to be normal, the charging function is enabled and the charging status is displayed. If the judgment status was not recorded in the previous step, then the judgment status is recorded and the final judgment is performed.
[0148] Comparison: If V2 <= V_th2, then keep charging off, display a battery abnormality warning, and proceed to the final judgment.
[0149] 5. Third data collection and judgment (t3): After a delay of the third set time (e.g., 3 seconds), the voltage value (V3) is collected.
[0150] Comparison: If V3 > V_th3, and the judgment status was recorded in the previous step, then the battery is determined to be normal, the charging function is enabled, and the charging status is displayed.
[0151] Comparison: If V3 <= V_th3, then the battery is finally confirmed to be in an abnormal protection state, charging is kept off, and a battery abnormality warning is continuously displayed.
[0152] It should be noted that, in some embodiments of this application, for batteries with special voltage curves, a fourth judgment or the logic of "being judged as normal only after two consecutive times exceeding the threshold" can be introduced to further improve the reliability of the judgment.
[0153] It is not difficult to understand that the charging control method in some embodiments of this application includes, for example,: 1. When charging the device, first turn off the charging function to eliminate the interference of the charging voltage on the ADC channel acquisition voltage.
[0154] 2. Because most charging or power supply circuits contain capacitors, voltage interference can persist for a period after the charging module is turned off, causing ADC acquisition anomalies. First, the ADC acquisition value for the first second is obtained. Through multiple adjustments, the normal and abnormal battery voltage ranges at the current time point are determined. Based on these two voltage scenarios, a first threshold value (greater than the abnormal battery voltage but less than the normal battery voltage) is set and compared with the ADC acquisition value. If the value exceeds this threshold, it is recorded for further analysis.
[0155] 3. Acquire the ADC value in the second second. Through multiple adjustments, acquire the normal battery voltage range and the abnormal battery voltage range at the current time point. Based on the voltage thresholds for the two cases, set a second threshold that is greater than the abnormal battery voltage and less than the normal battery voltage and compare it with the ADC value. If it is higher than the threshold and was recorded in the previous step, the battery is considered normal and the charging process begins. If it is higher than the threshold and was not recorded, record it and proceed to the next step of judgment.
[0156] 4. Acquire the ADC value at the third second. Under normal circumstances, the capacitor's backpressure voltage will be mostly discharged in about three seconds. At this time, the voltage value of a normal battery is much higher than that of an abnormal battery. At this time, it is only necessary to acquire the voltage range of the abnormal battery. Set a third threshold that is greater than the voltage value of the abnormal battery and compare it with the ADC value. If it is higher than the threshold and has been recorded in the previous step, the battery is considered normal and the charging process begins. If it is lower than the threshold, the battery abnormality prompt will be displayed continuously and no further comparison will be performed.
[0157] 5. During this process, the screen initially displays the charging status. When the first judgment requires a second judgment, a battery abnormality warning is displayed. If the battery level exceeds the threshold in any two of the three judgments, the charging status is displayed again.
[0158] It should be noted that some embodiments of this application introduce a fault-tolerance mechanism for certain lithium battery voltage fluctuations or discharge curves that are relatively special. Specifically, the threshold value of the ADC acquisition value at the fourth second (as an example of the fourth moment) is obtained and compared. At the same time, during the measurement process, if the value exceeds the threshold for the first time, it is retained and the charging process is not directly entered. The charging status display is also not changed. The next judgment is made until the value exceeds the threshold for the second time. Only then does the normal charging process begin. Otherwise, the battery is displayed as abnormal.
[0159] It is easy to understand that some embodiments of this application employ a "dynamic multi-threshold timing judgment" method to actively eliminate interference from residual capacitor voltage, thereby achieving accurate identification of the battery over-discharge protection state. The technical advantages include: First, a shift from "static single-time-point judgment" to "dynamic multi-time-point judgment." Existing technologies typically perform a voltage acquisition at a fixed time point after charging is turned off and compare it with a fixed threshold. This method is easily deceived by residual capacitor voltage. Embodiments of this application propose performing sequential voltage acquisition at multiple pre-calibrated time points (e.g., t1, t2, t3) and comparing each with a set of decreasing voltage threshold sequences (V_th1, V_th2, V_th3) corresponding to different time points. Second, the "voltage threshold sequence" in the embodiments of this application is not arbitrarily set, but scientifically calibrated based on a large number of battery samples in known states, under an environment where charging interference is eliminated, by analyzing the voltage decay curves of normal and abnormal batteries over time. Each threshold plays a different filtering role at each time point (rapid filtering, precise filtering, final judgment), forming a complete decision chain. Thirdly, the technical solution of this application actively avoids interference rather than passively accepting it. That is, the inventors of this application recognize that capacitor discharge is a dynamic process that decays over time, not a static problem. By setting timing judgment logic that matches this decay process, the system no longer passively waits for the interference to disappear (which may take a long time), but actively eliminates the interference at different stages of its existence, utilizing known voltage-time relationship characteristics, and ultimately extracts the true battery state signal. Fourthly, this application introduces a fault-tolerant judgment process for special batteries (such as a fourth judgment or continuous confirmation mechanism), enabling the solution to handle not only typical batteries but also complex situations with batteries having non-standard discharge curves, enhancing the robustness and application scope of the solution.
[0160] Please refer to Figure 3 , Figure 3 This application illustrates a charging control device according to an embodiment of the present application. It should be understood that this device is similar to the one described above. Figure 2 Corresponding to the method embodiments, it can execute the various steps involved in the above method embodiments. The specific functions of the device can be found in the description above. To avoid repetition, detailed descriptions are appropriately omitted here. The device includes at least one software function module that can be stored in the memory or embedded in the device's operating system in the form of software or firmware. The charging control device includes: a charging shutdown module 310, a battery status determination module 320, and a charging control module 330.
[0161] The charging shutdown module is configured to shut down the charging path and stop supplying power to the battery to be identified in response to the detection of an external charger connection.
[0162] A battery status determination module is configured to collect the voltage of the battery to be identified at multiple predetermined time points and compare it with at least a portion of the voltage thresholds in a predetermined voltage threshold sequence to obtain a battery status determination result. The voltage threshold sequence is determined by collecting the voltage values of normal sample battery packs and abnormal sample battery packs when a trigger condition is met. The trigger condition is to shut down the charging path of the corresponding sample battery.
[0163] The charging control module is configured to determine whether to restart the charging process for the battery to be identified based on the battery status determination result.
[0164] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the device described above can be referred to the corresponding process in the aforementioned method, and will not be elaborated further here.
[0165] Some embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, can implement the above-described method for controlling charging, including the method described in any one of the embodiments.
[0166] Some embodiments of this application provide a computer program product, including computer program instructions, which, when read and executed by a processor, perform an embodiment of the above-described method for controlling charging.
[0167] like Figure 4 As shown, some embodiments of this application provide an electronic device 400, which includes a memory 410, a processor 420, and a computer program stored in the memory 410 and executable on the processor 420. When the processor 420 reads and executes the program via a bus 430, it can implement any of the embodiments of the above-described method for controlling charging.
[0168] Processor 420 can process digital signals and may include various computing architectures. For example, it may be a complex instruction set computer architecture, a reduced instruction set computer architecture, or an architecture that implements multiple instruction set combinations. In some examples, processor 420 may be a microprocessor.
[0169] Memory 410 can be used to store instructions executed by processor 420 or data related to the execution of instructions. These instructions and / or data may include code used to implement some or all of the functions of one or more modules described in the embodiments of this application. The processor 420 of the embodiments of this disclosure can be used to execute the instructions in memory 410 to implement… Figure 2The method is shown. Memory 410 includes dynamic random access memory, static random access memory, flash memory, optical memory, or other memories well known to those skilled in the art.
[0170] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0171] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0172] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0173] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application. It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0174] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0175] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
Claims
1. A method for controlling charging, characterized in that, The method includes: In response to the detection of an external charger connection, the charging path is closed and power supply to the battery to be identified is stopped; At multiple predetermined time points, the voltage of the battery to be identified is collected and compared with at least some voltage thresholds in a predetermined voltage threshold sequence to obtain a battery status determination result. The voltage threshold sequence is determined by collecting the voltage values of normal sample battery packs and abnormal sample battery packs when a trigger condition is met. The trigger condition is to shut down the charging path of the corresponding sample battery. Based on the battery status determination result, determine whether to restart the charging process for the battery to be identified.
2. The method as described in claim 1, characterized in that, The step involves collecting the voltage of the battery to be identified at multiple predetermined time points and comparing it with at least a portion of voltage thresholds in a pre-determined voltage threshold sequence to obtain a battery state determination result, including: The battery to be identified is acquired at a first moment to obtain a first comparison voltage value, wherein the first moment is a moment determined by delaying the charging path by a first set time relative to the moment when the charging path is turned off; If it is confirmed that the first voltage value to be compared is greater than the first threshold of the voltage threshold sequence, then the first comparison result is recorded. The first threshold is obtained based on the lower limit of the normal sample battery pack and the upper limit of the abnormal sample battery pack collected at the first sample sampling time. The first sample sampling time is the time corresponding to the first set duration after delaying the time when the charging path of the corresponding sample battery is turned off. The battery to be identified is acquired at a second time to obtain a second voltage value to be compared. The second time is a time determined by delaying the charging path by a second set time relative to the time when the charging path is turned off. The second set time is longer than the first set time. If the second voltage value to be compared is confirmed to be greater than the second threshold of the voltage threshold sequence, then the battery to be identified is determined to be normal and the battery state determination result is obtained. The second threshold is obtained based on the lower limit of the normal sample battery pack and the upper limit of the abnormal sample battery pack collected at the second sample sampling time. The second sample sampling time is the time corresponding to the second set time delay of the time when the charging path of the corresponding sample battery is turned off. The step of determining whether to restart the charging process for the battery to be identified based on the battery status determination result includes: Initiate the charging process for the battery to be identified.
3. The method as described in claim 1, characterized in that, The step of collecting the voltage of the battery to be identified at multiple predetermined time points and comparing it with at least a portion of the voltage thresholds in a predetermined voltage threshold sequence to obtain a battery state determination result includes: The battery to be identified is acquired at a first moment to obtain a first comparison voltage value, wherein the first moment is a moment determined by delaying the charging path by a first set time relative to the moment when the charging path is turned off; If it is confirmed that the first voltage value to be compared is greater than the first threshold of the voltage threshold sequence, then the first comparison result is recorded. The first threshold is obtained based on the lower limit of the normal sample battery pack and the upper limit of the abnormal sample battery pack collected at the first sample sampling time. The first sample sampling time is the time corresponding to the time when the charging path of the corresponding sample battery is turned off by the first set time. The battery to be identified is acquired at a second time to obtain a second voltage value to be compared. The second time is a time determined by delaying the charging path by a second set time relative to the time when the charging path is turned off. The second set time is longer than the first set time. Confirm that the second voltage value to be compared is lower than the second threshold of the voltage threshold sequence, wherein the second threshold is obtained based on the lower limit of the normal sample battery pack and the upper limit of the abnormal sample battery pack collected at the second sample sampling time, and the second sample sampling time is the time corresponding to the second set time delay of the time when the charging path of the corresponding sample battery is turned off; The battery to be identified is collected at a third time to obtain a third voltage value to be compared. The third time is a time determined by delaying the charging path by a third set time relative to the time when the charging path is turned off. The third set time is longer than the second set time. If the third voltage value to be compared is confirmed to be less than the third threshold of the voltage threshold sequence, then the battery to be identified is determined to be abnormal and the battery status determination result is obtained. The third threshold is obtained based on the upper limit of the abnormal sample battery pack collected at the third sample sampling time. The third sample sampling time is the time corresponding to the third set time delay of the charging path time of the corresponding sample battery being turned off. The step of determining whether to start the charging process for the battery to be identified based on the battery status determination result includes: Continue to suspend the charging process of the battery to be identified.
4. The method as described in claim 1, characterized in that, The multiple predetermined time points sequentially include a first time point, a second time point, and a third time point, wherein the sampling voltage at the first time point is in the strong recoil false voltage period, the sampling voltage at the second time point is in the recoil false voltage decay period, and the sampling voltage at the third time point is in the recoil false voltage critical state.
5. The method as described in claim 4, characterized in that, The plurality of predetermined time points also includes a fourth time point located after the third time point, and the sampling voltage at the fourth time point is in a state of recoil voltage dissipation.
6. The method as described in claim 5, characterized in that, The step of collecting the voltage of the battery to be identified at multiple predetermined time points and comparing it with at least a portion of the voltage thresholds in a predetermined voltage threshold sequence to obtain a battery state determination result includes: The battery to be identified is acquired at a first moment to obtain a first comparison voltage value, wherein the first moment is a moment determined by delaying the charging path by a first set time relative to the moment when the charging path is turned off; If it is confirmed that the first voltage value to be compared is greater than the first threshold of the voltage threshold sequence, then the first comparison result is recorded. The first threshold is obtained based on the lower limit of the normal sample battery pack and the upper limit of the abnormal sample battery pack collected at the first sample sampling time. The first sample sampling time is the time corresponding to the time when the charging path of the corresponding sample battery is turned off by the first set time. The battery to be identified is acquired at a second time to obtain a second voltage value to be compared. The second time is a time determined by delaying the charging path by a second set time relative to the time when the charging path is turned off. The second set time is longer than the first set time. Confirm that the second voltage value to be compared is lower than the second threshold of the voltage threshold sequence, wherein the second threshold is obtained based on the lower limit of the normal sample battery pack and the upper limit of the abnormal sample battery pack collected at the second sample sampling time, and the second sample sampling time is the time corresponding to the second set time delay of the time when the charging path of the corresponding sample battery is turned off; The battery to be identified is collected at a third time to obtain a third voltage value to be compared. The third time is a time determined by delaying the charging path by a third set time relative to the time when the charging path is turned off. The third set time is longer than the second set time. Confirm that the third voltage value to be compared is greater than the third threshold of the voltage threshold sequence, wherein the third threshold is obtained based on the upper limit of the abnormal sample battery pack collected at the third sample sampling time, and the third sample sampling time is the time corresponding to the time when the charging path of the corresponding sample battery is turned off by the third set time. The battery to be identified is acquired at the fourth time point to obtain a fourth voltage value to be compared. The fourth time point is a time determined by delaying the charging path by a fourth set time period relative to the time when the charging path is turned off. The fourth set time period is longer than the third set time period. If the fourth voltage value to be compared is confirmed to be greater than the third threshold, then the battery to be identified is confirmed to be normal. The step of determining whether to start the charging process for the battery to be identified based on the battery status determination result includes: Continue charging the battery to be identified.
7. The method as described in claim 1, characterized in that, Prior to the comparison with at least a portion of the voltage thresholds in a predetermined voltage threshold sequence, the method further includes: A batch of batteries in known states are selected and divided into normal sample battery groups and abnormal sample battery groups. In the normal sample battery groups, none of the sample batteries have triggered over-discharge protection, while in the abnormal sample battery groups, all sample batteries have triggered over-discharge protection. In response to the charging operation of the charger being inserted into each sample battery, the charging path of each sample battery is cut off. The voltage of each sample battery is collected at multiple sampling times after the charging function is turned off, and the voltage threshold sequence is determined based on the voltage of the sampled sample batteries.
8. The method as described in claim 7, characterized in that, The step of collecting the voltage of each sample battery at multiple sampling times after the charging function is turned off and determining the voltage threshold sequence based on the sampled sample battery voltages includes: The voltage of each sample battery is collected at the first sample sampling time after the charging function is turned off, wherein the first sample sampling time is delayed by a first set time compared to the time when the charging path of the corresponding sample battery is turned off; Record the voltage of each sample battery in the normal sample battery pack at the first sample sampling time to obtain the first normal voltage dataset; Record the voltage of each sample battery in all abnormal sample battery packs at the sampling time of the first sample to obtain the first abnormal voltage dataset; The first threshold is determined based on the lower limit of the first normal voltage dataset and the upper limit of the first abnormal voltage dataset.
9. The method as described in claim 8, characterized in that, The step of collecting the voltage of each sample battery at multiple sampling times after the charging function is turned off and determining the voltage threshold sequence based on the sampled sample battery voltages further includes: The voltage of each sample battery is collected at a second sample sampling time after the charging function is turned off. The second sample sampling time is a time delayed by a second set time from the time when the charging path of the corresponding sample battery is turned off. The second set time is longer than the first set time. Record the voltage of each sample battery in the normal sample battery pack at the second sample sampling time to obtain the second normal voltage dataset; Record the voltage of each sample battery in the abnormal sample battery pack at the second sample sampling time to obtain the second abnormal voltage dataset; The second threshold is determined based on the lower limit of the second normal voltage dataset and the upper limit of the second abnormal voltage dataset.
10. The method as described in claim 9, characterized in that, The step of collecting the voltage of each sample battery at multiple sampling times after the charging function is turned off and determining the voltage threshold sequence based on the sampled sample battery voltages further includes: The voltage of each sample battery is collected at the third sample sampling time after the charging function is turned off. The third sample sampling time is a time delayed by a third set time from the time when the charging path of the corresponding sample battery is turned off. The third set time is longer than the second set time. Record the voltage of each sample battery in the abnormal sample battery pack at the third sample sampling time to obtain the third abnormal voltage dataset; The third threshold is determined based on the upper limit of the third abnormal voltage dataset.
11. A device for controlling charging, characterized in that, The device includes: The charging shutdown module is configured to shut down the charging path and stop supplying power to the battery to be identified in response to the detection of an external charger connection. A battery status determination module is configured to collect the voltage of the battery to be identified at multiple predetermined time points and compare it with at least a portion of the voltage thresholds in a predetermined voltage threshold sequence to obtain a battery status determination result. The voltage threshold sequence is determined by collecting the voltage values of normal sample battery packs and abnormal sample battery packs when a trigger condition is met. The trigger condition is to shut down the charging path of the corresponding sample battery. The charging control module is configured to determine whether to restart the charging process for the battery to be identified based on the battery status determination result.
12. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by a processor, can implement the method for detecting false alarm information as described in any one of claims 1-10.
13. A computer program product, characterized in that, It includes computer program instructions, which, when read and executed by a processor, perform the method for detecting false alarm information as described in any one of claims 1-10.
14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein, When the processor executes the program, it can implement the method for detecting false alarm information as described in any one of claims 1-10.