A voltage threshold configuration method, battery cell, system, and storage medium

By obtaining the in-situ detection voltage value of the battery when it is not connected to a load and power supply unit as a reference value and configuring an appropriate threshold range, the problem of inaccurate battery in-situ detection is solved, and the safety of battery charging and discharging is improved.

CN116207382BActive Publication Date: 2026-07-17ECOFLOW INC

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ECOFLOW INC
Filing Date
2023-03-16
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

In existing technologies, the battery in-situ detection voltage is inaccurate, which can cause the battery charge/discharge switch to open unexpectedly, increasing the risk of accidents.

Method used

By obtaining the in-situ detection voltage value when the battery is not connected to a load and power supply unit as a reference value, configuring an appropriate threshold range, and writing and verifying it in the storage location, the accuracy of battery in-situ detection is ensured.

Benefits of technology

This improves the accuracy of battery in-situ detection and reduces the likelihood of unexpected risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116207382B_ABST
    Figure CN116207382B_ABST
Patent Text Reader

Abstract

This application relates to the field of in-situ detection technology, providing a voltage threshold configuration method, a battery cell, a system, and a storage medium. The method includes: acquiring a first in-situ detection voltage value of the battery; if the first in-situ detection voltage value falls within the verification range of the in-situ detection voltage, then determining the first in-situ detection voltage value as a reference value for the in-situ detection voltage, wherein the verification range of the in-situ detection voltage is the voltage range of the battery when it is not connected to a load and a power supply unit; and configuring a threshold range for the in-situ detection voltage based on the determined reference value. This application uses the actually measured in-situ detection voltage value of the battery when it is not connected to a load and a power supply unit as a reference value to configure the threshold range of the in-situ detection voltage, which can configure a suitable threshold range for the in-situ detection voltage of the battery, thereby reducing the probability of unexpected risks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of in-situ detection technology, and particularly relates to a voltage threshold configuration method, a battery cell, a system, and a storage medium. Background Technology

[0002] With the increasing prevalence of electronic devices, many are equipped with batteries. Batteries store electrical energy supplied by an external power source and can power the device even when disconnected from the external power source. Before charging or discharging the battery, it is essential to ensure that the battery is present and then turn on the charging / discharging switch to reduce the likelihood of unexpected risks.

[0003] Currently, if the battery's presence detection voltage is outside the threshold range, it can be determined that the battery is connected to a load or a power supply unit (i.e., the battery is in place), and then the battery's charge / discharge switch can be turned on. However, inaccurate presence detection often occurs, for example, when the battery is not connected to a load or a power supply unit. Sometimes, the detected battery presence detection voltage is also outside the threshold range, causing the battery's charge / discharge switch to be turned on, increasing the probability of unexpected risks. Summary of the Invention

[0004] This application provides a voltage threshold configuration method, a battery cell, a system, and a storage medium, which can configure a suitable threshold range for the in-situ detection voltage of the battery, thereby reducing the probability of unexpected risks.

[0005] In a first aspect, this application provides a voltage threshold configuration method, including:

[0006] Obtain the first in-situ detection voltage value of the battery;

[0007] If the first in-situ detection voltage value falls within the verification range of the in-situ detection voltage, then the first in-situ detection voltage value is determined to be the reference value of the in-situ detection voltage, and the verification range of the in-situ detection voltage is the voltage range when the battery is not connected to the load and the power supply unit.

[0008] Based on the determined reference value of the in-situ detection voltage, the threshold range of the in-situ detection voltage is configured.

[0009] In this application, battery presence detection is used to determine whether the battery is connected to a device (i.e., a load) or a power supply unit, allowing charging and discharging to only proceed when the battery is connected to either a load or a power supply unit, thereby improving safety. Due to differences between components and variations in circuit board design, using a uniform threshold range as the threshold range for the presence detection voltage can lead to inaccuracies in battery presence detection. This application uses a first presence detection voltage value measured with a battery not connected to a load or power supply unit as a reference value to determine the threshold range for the presence detection voltage matched to that battery. Of course, in practical applications, a calibration range can be used to constrain the reference value used to determine the threshold range, making the determined threshold range more reasonable and accurate, thereby reducing the probability of unexpected events.

[0010] As another implementation of the first aspect, configuring the threshold range of the in-situ detection voltage based on the determined reference value of the in-situ detection voltage includes:

[0011] Based on the determined reference value of the in-situ detection voltage, a threshold range for the in-situ detection voltage is generated;

[0012] The threshold range of the generated in-situ detection voltage is written to the preset storage location.

[0013] In this application, the threshold range of the in-situ detection voltage generated based on the reference value can be written to a preset storage location (e.g., a storage page corresponding to a specific storage address in the memory). When the battery is subsequently detected in place, the measured second in-situ detection voltage value can be compared with the threshold range read from the preset storage location to determine whether the battery is in place.

[0014] As another implementation of the first aspect, after writing the generated threshold range of the in-situ detection voltage to a preset storage location, the method further includes:

[0015] The threshold range of the in-situ detection voltage is read from the preset storage location;

[0016] Compare the threshold range of the in-situ detection voltage read with the threshold range of the generated in-situ detection voltage;

[0017] If the comparison is inconsistent, the generated threshold range of the in-situ detection voltage will be rewritten in the preset storage location.

[0018] In this application, when writing the threshold range to the preset storage location, a write failure may occur, which will result in the failure to successfully configure the threshold range of the in-situ detection voltage. To avoid this situation, after writing the generated threshold range of the in-situ detection voltage to the preset storage location, the threshold range can be read from the same storage location. If the read threshold range is inconsistent with the generated threshold range, it indicates that the configuration has failed, and the generated threshold range of the in-situ detection voltage needs to be rewritten to the preset storage location until the read threshold range is consistent with the generated threshold range, indicating that the threshold range of the in-situ detection voltage has been successfully written.

[0019] As another implementation of the first aspect, after writing the generated threshold range of the in-situ detection voltage to a preset storage location, the method further includes:

[0020] The second in-situ detection voltage value of the battery is detected;

[0021] The threshold range of the in-situ detection voltage is read from the preset storage location;

[0022] If the second in-situ detection voltage value falls within the threshold range of the read in-situ detection voltage, it is determined that the battery is not connected to the load and the power supply unit.

[0023] If the second in-situ detection voltage value does not fall within the threshold range of the read in-situ detection voltage, then it is determined that the battery is connected to the load or the power supply unit.

[0024] In this application, with the threshold range of the battery's in-situ detection voltage configured, the battery's in-situ detection can be performed subsequently; the measured second in-situ detection voltage value can be compared with the threshold range of the in-situ detection voltage read from a preset storage location to determine whether the battery is connected to the load and the power supply unit.

[0025] As another implementation of the first aspect, generating the threshold range of the in-situ detection voltage based on the determined reference value of the in-situ detection voltage includes:

[0026] The threshold range of the in-situ detection voltage is generated by using the reference value of the in-situ detection voltage as the center value of the threshold range of the in-situ detection voltage.

[0027] In this application, by using the first in-situ detection voltage (i.e., the reference value) of the battery of the unconnected load and power supply unit as the center value, a threshold range with better range and accuracy can be obtained.

[0028] As another implementation of the first aspect, the length of the numerical interval of the threshold range of the in-situ detection voltage is less than or equal to the length of the numerical interval of the verification range of the in-situ detection voltage.

[0029] In this application, the verification range is used to determine whether the battery is connected to a load or power supply unit; the threshold range is also used to determine whether the battery is connected to a load or power supply unit. Therefore, theoretically, the numerical interval lengths of the verification range and the threshold range can be the same. Furthermore, since the center value of the threshold range is the first in-situ detection voltage value when the battery is not connected to a load or power supply unit, the center value of the threshold range may deviate from the center value of the verification range. To avoid the threshold range deviating from the range of the theoretical voltage value when the battery is connected to a load or power supply unit, the numerical interval length of the threshold range can be set relatively small. To ensure that the verification range covers more values ​​when the battery is not connected to a load or power supply unit, the numerical interval length of the verification range can be set larger; in this case, the numerical interval length of the verification range is greater than the numerical interval length of the threshold range.

[0030] As another implementation of the first aspect, after determining that the battery is connected to the load or the power supply unit, the method further includes:

[0031] Turn on the charge / discharge switch of the battery.

[0032] In this application, the determined threshold range of the in-situ detection voltage can more accurately determine whether the battery is in place. Therefore, when it is determined that the battery is in place, the battery's charging and discharging switch can be turned on, thereby reducing the probability of accidents.

[0033] In a second aspect, this application provides a battery cell including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method described in any one of the first aspects of this application.

[0034] Thirdly, this application provides a voltage threshold configuration system, including: the battery cell and the host computer provided in the second aspect of this application;

[0035] The host computer is used to send read commands to the battery unit;

[0036] The battery unit is configured to perform in-situ voltage detection on the battery after receiving the read command, obtain the first in-situ detection voltage value, and send the first in-situ detection voltage value to the host computer.

[0037] The host computer is used to send a write command to the battery cell after receiving the first in-situ detection voltage value.

[0038] The battery unit is configured to, upon receiving the write instruction, determine the first in-situ detection voltage value as a reference value of the in-situ detection voltage if the first in-situ detection voltage value falls within the verification range of the in-situ detection voltage, wherein the verification range of the in-situ detection voltage is the voltage range of the battery when it is not connected to a load and a power supply unit; configure the threshold range of the in-situ detection voltage based on the determined reference value of the in-situ detection voltage; and, upon successful configuration, send information to the host computer indicating successful writing.

[0039] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, it implements the multi-chip hot layout determination method described in any one of the first aspects above.

[0040] Fifthly, embodiments of this application provide a computer program product that, when run on an electronic device, causes the electronic device to execute the multi-chip hot layout determination method described in any of the first aspects above.

[0041] The beneficial effects of aspects two through five of this application can be referred to in the beneficial effects of aspect one of this application, and will not be repeated here. Attached Figure Description

[0042] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0043] Figure 1 This is a schematic diagram showing the connection relationship between the battery cell and the entire device according to an embodiment of this application;

[0044] Figure 2 This is a schematic diagram of the internal circuit structure of a battery cell provided in an embodiment of this application;

[0045] Figure 3 This is a comparative schematic diagram of the in-situ detection voltage of a battery cell under three connection conditions provided in an embodiment of this application;

[0046] Figure 4 This is an interactive diagram illustrating the configuration of the threshold range of the in-situ detection voltage of a battery cell by a host computer according to an embodiment of this application.

[0047] Figure 5This is a flowchart illustrating the threshold range of the battery cell configuration for in-situ voltage detection according to an embodiment of this application.

[0048] Figure 6 This is a schematic diagram of a process for determining whether a battery is in place, provided in an embodiment of this application;

[0049] Figure 7 This is a schematic block diagram of the structure of a battery cell provided in an embodiment of this application.

[0050] Figure 8 This is a schematic diagram of the structure of a battery cell provided in an embodiment of this application. Detailed Implementation

[0051] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0052] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0053] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0054] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once [the described condition or event] is detected," or "in response to detection of [the described condition or event]."

[0055] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0056] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0057] Currently, many devices are equipped with battery packs, which can store electrical energy supplied by an external power source through charging, and then supply the stored electrical energy to the device through discharging.

[0058] See Figure 1 This is a schematic diagram illustrating the connection relationship between a battery cell and a device, provided in an embodiment of this application.

[0059] Understandably, in practice, the battery cell is installed in the electrical equipment when it is working normally. However, the battery cell can be removed from the equipment when it is not in use or when the battery cell has insufficient charge.

[0060] exist Figure 1 When the battery unit 100 supplies power to the equipment 200, the battery unit 100 is connected to the power supply unit 210 in the equipment 200. When the battery unit 100 is removed from the equipment 200, the battery unit 100 is disconnected from the power supply unit 210.

[0061] Due to the diversity of devices, the required power is also diverse. Therefore, the power supply unit 210 can convert the electrical energy stored in the battery unit 100 into electrical energy suitable for the load in the device 200.

[0062] The P+ and P- pins connecting the battery unit 100 and the power supply unit 210 are exposed. To avoid accidents, the voltage on the P+ and P- pins is usually turned off by default. The voltage on the P+ and P- pins can only be turned on if it is confirmed that the battery unit 100 is connected to the power supply unit 210.

[0063] Reference Figure 2 This is a schematic diagram of the internal circuit structure of the battery cell 100 provided in the embodiments of this application.

[0064] A charge / discharge switch is located between the B+ and P+ pins of the battery cell. When the battery cell is in a static state (neither charging nor discharging), the discharge MOSFET and the charge MOSFET are turned off, and the voltage between pins P+ and P- is 0. The discharge MOSFET and the charge MOSFET are only turned on when the battery cell is being charged or discharged. During the charging and discharging process, the voltage between pins P+ and P- is either the charging voltage or the discharging voltage.

[0065] In practical applications, the position of the charge / discharge switch is for illustrative purposes only. In actual applications, it can also be positioned between the B-pin and P-pin of the battery. This application does not limit this.

[0066] As mentioned earlier, to avoid accidents, it is necessary to ensure that the battery cell is connected to the power supply unit before allowing the charging / discharging switch to be turned on. In practice, this can be determined by measuring the battery's in-situ detection voltage.

[0067] The battery unit also includes a battery management system board, which has an in-situ detection pin. By measuring the voltage value of the in-situ detection pin, it can be determined whether the battery is connected to the power supply unit.

[0068] In practical applications, if the battery cell is connected to the power supply unit, and the power supply unit is connected to the load in the equipment, it means the battery cell is connected to the equipment (or the load). If the battery cell is connected to the power supply unit, but the power supply unit is not connected to the load in the equipment, it means the battery cell is connected to the power supply unit. When the battery cell is not connected to the power supply unit, it means the battery cell is neither connected to the power supply unit nor to a load.

[0069] Measurements revealed that the voltage of the in-situ detection pin differed depending on whether the battery cell was connected to the power supply unit, connected to the main equipment, or not connected to either the power supply unit or the main equipment.

[0070] See Figure 3 This is a schematic diagram showing a comparison of in-situ detection voltage values ​​in three scenarios: battery cell connected to a complete device, connected to a power supply unit, and not connected to either the complete device or the power supply unit, as provided in an embodiment of this application.

[0071] pass Figure 3It is understandable that when the battery cell is neither connected to the power supply unit nor to the entire device, the theoretical value of the battery cell's in-situ detection voltage is approximately 1.7V. When the battery cell is connected to the power supply unit (PD board), the theoretical value of the battery cell's in-situ detection voltage is 1V. When the battery cell is connected to the entire device, the theoretical value of the battery cell's in-situ detection voltage is 2.3V.

[0072] Therefore, in practical applications, a range between 1V and 2.3V (e.g., between 1.2V and 2.2V) can be set as the numerical range for detecting whether the battery cell is in place. When the measured in-place detection voltage value is not within this range, it indicates that the battery cell is connected to the power supply unit or the entire device. In this case, it means the battery is in place, and the battery cell's charge / discharge switch can be turned on, making the charge / discharge switch in the ON state.

[0073] certainly, Figure 3 The example shown represents the ideal in-situ detection voltage data for this battery cell under three different conditions. In practical applications, differences exist between various hardware components. For instance, even with the same battery model and the same battery management system board, the tested in-situ detection voltage data may vary.

[0074] As an example, for the same type of battery cell (same type of battery and same type of battery management system board), the theoretical value of the in-situ detection voltage obtained from simulation when not connected to the power supply unit and the whole device is 1700mV. However, in actual applications, this in-situ detection voltage value may have a deviation of 3mV. According to the commonly used deviation standard in the market, it is probably less than 1%, so the theoretical maximum deviation is 17mV.

[0075] In addition, due to design reasons, there may be deviations on the battery management system board. For example, there may be a deviation of about 8mV.

[0076] Furthermore, some extreme environments may also affect the in-situ detection voltage. For example, the in-situ detection voltage obtained by the same type of battery and the same type of battery management system board may deviate under high temperature and low temperature environments.

[0077] As a schematic diagram illustrating the effect of ambient temperature on in-situ detection voltage, the threshold range of the in-situ detection voltage for a battery cell in its initial environment (with a baseline value of 1715mV) might be 1715±300mV, or 1415mV to 2015mV. When the ambient temperature around the battery cell changes or its placement environment is altered, the baseline value of the in-situ detection voltage might change to 1685mV. In this environment, the threshold range of the in-situ detection voltage might then be 1685mV±300mV, or 1385mV to 1985mV. Therefore, in practical applications, when configuring the threshold range of the in-situ detection voltage, the operating environment of the device in which the battery cell might be used can be simulated, resulting in a more accurate threshold range.

[0078] For the reasons mentioned above, although the theoretical value of the in-situ detection voltage calculated by simulation is 1700mV, the voltage at this pin may already have a deviation of ±25mV. Therefore, the actual voltage on the battery management system board of the battery cell may have a deviation of 1700±25mV, which could affect the threshold determination. Therefore, it is necessary to calibrate the voltage reference value of the in-situ detection pin of the battery cell and then reconfigure the threshold range of the in-situ detection voltage based on this reference value.

[0079] In this application embodiment, the scenarios in which the threshold range of the in-situ detection voltage of the battery cell is configured include, but are not limited to, the following scenarios:

[0080] Before assembling the battery cells onto the equipment, the equipment manufacturer configures the threshold range of the battery's in-situ detection voltage. After successful configuration, the threshold range of the in-situ detection voltage is written into the storage space of the battery cells, and the in-situ detection of the battery cells on the equipment is subsequently based on this threshold range.

[0081] Before shipping the equipment equipped with battery units, the equipment manufacturer disconnects the battery units from the battery supply unit and configures the threshold range of the battery's in-situ detection voltage. After successful configuration, the threshold range of the in-situ detection voltage is written into the storage space of the battery unit, and the in-situ detection of the battery units on the equipment is subsequently based on this threshold range.

[0082] After repairing the returned equipment, the equipment manufacturer disconnects the battery unit and the battery supply unit and configures the threshold range of the battery's in-situ detection voltage. Once the configuration is successful, the threshold range of the in-situ detection voltage will be written into the storage space of the battery unit. Subsequent in-situ detection of the battery unit on the equipment will be based on this threshold range.

[0083] After the battery cell is removed from the device, the threshold range of the battery's in-situ detection voltage is configured. Once the configuration is successful, the threshold range of the in-situ detection voltage will be written into the storage space of the battery cell. Subsequent in-situ detection of the battery cell on the device will be based on this threshold range.

[0084] Of course, the above-mentioned scenario of configuring the threshold range of the in-situ detection voltage is only an example. In practical applications, the threshold range of the in-situ detection voltage can also be configured in other scenarios, which will not be listed in this application.

[0085] See Figure 4 This is a schematic diagram illustrating the process of configuring the threshold range of the presence detection voltage of the presence detection pin on the battery management system board in the battery cell in a factory, as provided in an embodiment of this application.

[0086] S101, the host computer sends a read command to the battery unit.

[0087] In this embodiment, the battery cell itself does not have configuration functions, so it is necessary to use a host computer to configure the threshold range of the in-situ detection voltage.

[0088] The host computer can be a device with configuration capabilities that can communicate with the battery cell (the battery management system in it). The host computer and the battery cell together form a system for configuring the threshold range of the in-situ detection voltage of the battery cell.

[0089] This read instruction is used to instruct the battery cell to detect the voltage value on the in-situ pins (not P+ or P- pins) on the battery management system board.

[0090] S102, after receiving the read command sent by the host computer, the battery unit detects the first presence detection voltage value on the presence pin.

[0091] In this embodiment, the first in-situ detection voltage value is used to characterize whether the battery cell is connected to the power supply unit, or to characterize whether the battery cell is installed in the complete device.

[0092] In a practical implementation, detecting the first presence detection voltage value on the presence pin can be achieved using a presence detection circuit. For example, the battery management system board is equipped with a presence detection circuit that can detect the voltage value on the presence pin. S103, the battery cell sends the detected first presence detection voltage value to the host computer.

[0093] S104, after receiving the first in-situ detection voltage value, the host computer sends a write command for the first in-situ detection voltage value to the battery unit.

[0094] In this embodiment, the write instruction is used to instruct the battery cell to write a threshold range of the in-situ detection voltage based on the first in-situ detection voltage value. The write instruction may carry the first in-situ detection voltage value.

[0095] S105, after receiving the write command, the battery cell verifies whether the first in-situ detection voltage value carried in the write command is within the verification range. If it is within the verification range, the first in-situ detection voltage value is written as a reference value to a preset storage location or the threshold range corresponding to the reference value is written to a preset storage location.

[0096] In this embodiment of the application, as analyzed above, the reason why the threshold range of the in-situ detection voltage is inaccurate is mainly because the in-situ detection voltage value (reference value) when the battery cell is not connected to the power supply unit and the whole device has a deviation. Therefore, in practical applications, the first in-situ detection voltage value when the battery cell is not connected to the power supply unit and the whole device needs to be used as the reference value.

[0097] Since the reference value needs to be the in-situ detection voltage value when the battery cell is not connected to the power supply unit and the whole equipment, it is necessary to confirm through the calibration range that the first in-situ detection voltage value measured at present is the value obtained when the battery cell is not connected to the power supply unit and the whole equipment.

[0098] In practical applications, the preset storage location can store the reference value and the deviation amplitude (e.g., 300mV). Then the threshold range is the range between the difference between the reference value and the deviation amplitude and the sum of the reference value and the deviation amplitude.

[0099] As another embodiment of this application, the preset storage location can also store the threshold range itself, that is, store the difference between the reference value and the deviation amplitude, and the sum of the reference value and the deviation amplitude.

[0100] S106 After the battery cell writes the baseline value or threshold range to the preset storage location, it sends a successful write command to the host computer.

[0101] pass Figure 4 The method shown allows the battery cell to be configured with the threshold range of in-situ detection voltage before leaving the factory.

[0102] In practical applications, if the configuration fails, a write failure command can be sent to the host computer to prompt the operator to control the host computer to resend a write command.

[0103] Of course, during the subsequent operation of the device configured with this battery unit, the second presence detection voltage value on the presence detection pin can be measured. The second presence detection voltage value is compared with the threshold range. If the second presence detection voltage value is less than or equal to the sum of the reference value and the deviation amplitude, and greater than or equal to the difference between the reference value and the deviation amplitude, it indicates that the battery is not in place (not connected to the power supply unit and the device). If the second presence detection voltage value is greater than the sum of the reference value and the deviation amplitude, or less than the difference between the reference value and the deviation amplitude, it indicates that the battery unit is in place (connected to the power supply unit or the device). The charging and discharging switch can be turned on. This can ensure the original deviation amplitude (e.g., 300mV) and avoid deviations caused by the hardware itself and the design circuit.

[0104] The following will be through Figure 5 Detailed description Figure 4 A detailed flowchart of step S105 in the embodiment is shown below. This embodiment describes the battery management system in the battery cell as the execution subject. In practical applications, the steps in this embodiment can also be implemented by a host computer. When configuring the threshold range of the in-situ detection voltage, the generated threshold range is sent to the battery management system in the battery cell, and the battery management system writes it to the corresponding storage location in the battery management system.

[0105] S201, Obtain the first in-situ detection voltage value of the battery.

[0106] In any scenario where the threshold range of the battery's in-situ detection voltage needs to be configured, the first in-situ detection voltage value of the battery is first obtained.

[0107] In practical applications, the battery management system board, as a device, cannot obtain the current connection of the battery cell, the power supply unit, and the entire device. Therefore, the first in-situ detection voltage value may be the in-situ detection voltage value when the battery cell is connected to the power supply unit, or it may be the in-situ detection voltage value when the battery cell is connected to the entire device, or it may be the in-situ detection voltage value when the battery cell is neither connected to the power supply unit nor to the entire device.

[0108] The presence detection circuit on the battery management system board in the battery cell may differ, and the embodiments of this application can be applied to different forms of presence detection circuits. That is, the embodiments of this application do not limit the specific circuit form of the presence detection circuit.

[0109] S202, if the first in-situ detection voltage value falls within the verification range of the in-situ detection voltage, then the first in-situ detection voltage value is determined to be the reference value of the in-situ detection voltage, and the verification range of the in-situ detection voltage is the voltage range when the battery is not connected to the load and the power supply unit.

[0110] In this embodiment of the application, in order to eliminate or reduce the error of the reference value of the in-situ detection voltage, the in-situ detection voltage value on the pin set on the battery management system board of the battery cell can be measured for each battery cell when the battery cell is not connected to the load and power supply unit, and the voltage value can be used as the reference value of the in-situ detection voltage of the current battery cell.

[0111] Since the premise of using the first in-situ detection voltage value as the reference value is that the test scenario of the first in-situ detection voltage value is a scenario in which the battery unit is not connected to the power supply unit and not connected to the whole device, it is necessary to determine whether the test scenario of the first in-situ detection voltage value is a scenario in which the battery unit is not connected to the power supply unit and not connected to the whole device through the verification range.

[0112] The principle for setting this verification range includes: when the measured in-situ detection voltage falls within this verification range, the battery cell is neither connected to a load nor to a power supply unit. Therefore, this verification range can be used to determine that the first measured in-situ detection voltage can serve as a reference value for the threshold range. As an example of the verification range, this range could be 1700 ± 500 mV, i.e. Figure 3 In the illustrated embodiment, the range L1 is defined.

[0113] When the first in-situ detection voltage value falls within the verification range, that is, when the first in-situ detection voltage value is greater than or equal to 1200mV and less than or equal to 2200mV, it indicates that the battery unit is not connected to the power supply unit or the equipment.

[0114] When the first in-situ detection voltage value does not fall within the verification range, i.e., the first in-situ detection voltage value is less than 1200mV or greater than 2200mV, it indicates that the battery unit is connected to the power supply unit or equipment.

[0115] S203, based on the determined reference value of the in-situ detection voltage, configure the threshold range of the in-situ detection voltage.

[0116] In this embodiment of the application, when determining the threshold range, the reference value of the in-situ detection voltage can be used as the center value of the threshold range of the in-situ detection voltage to generate the threshold range of the in-situ detection voltage.

[0117] For example, if the first in-situ detection voltage value is 1.75V, then the center value of the threshold range is 1.75V. The threshold range is 1.75 ± 0.3V.

[0118] In another embodiment of this application, the reference value plus the first value can be used as the maximum value of the threshold range of the in-situ detection voltage, and the reference value minus the second value can be used as the minimum value of the threshold range of the in-situ detection voltage. The first and second values ​​are related to the operating environment of the device where the battery cell is located.

[0119] For example, the future operating environment of the device where the battery cell is located may differ from the environment in which it is currently configured. This difference in environment may cause the reference value measured in the current environment to drift. In this case, if it drifts towards a higher value, the first value will be greater than the second value; if it drifts towards a lower value, the first value will be less than the second value.

[0120] In practical applications, the verification range can be set as the theoretical value plus or minus a first deviation range. The threshold range can be set as the benchmark value plus or minus a second deviation range. In practice, the first and second deviation ranges can be the same or different. For example, the first deviation range of the verification range (e.g., 500mV) can be greater than the second deviation range of the benchmark value (e.g., 300mV). The first deviation range of the verification range (e.g., 300mV) can be equal to the second deviation range of the threshold range (e.g., 300mV); the first deviation range of the verification range (e.g., 200mV) can also be less than the second deviation range of the threshold range (e.g., 300mV).

[0121] In another embodiment of this application, the verification range is used to determine whether the first in-situ detection voltage value can be used as a reference value for the threshold range. Therefore, an in-situ detection voltage value within the verification range indicates that the battery cell is not connected to a device or a power supply unit. An in-situ detection voltage value outside the verification range indicates that the battery cell may be connected to a load, or it may be connected to a power supply unit, or it may not be connected to either a load or a power supply unit. Therefore, in practical applications, the deviation range of this verification range can also be set relatively small. That is, the first deviation range of the verification range in the above example (e.g., 200mV) can also be smaller than the second deviation range of the threshold range (e.g., 300mV).

[0122] Based on the above description, the length of the numerical interval of the threshold range of the in-situ detection voltage (maximum value minus minimum value) can be less than (or greater than, or equal to) the length of the numerical interval of the verification range of the in-situ detection voltage (maximum value minus minimum value).

[0123] As another embodiment of this application, configuring the threshold range of the in-situ detection voltage based on the determined reference value of the in-situ detection voltage includes:

[0124] Based on the determined reference value of the in-situ detection voltage, a threshold range for the in-situ detection voltage is generated;

[0125] The threshold range of the generated in-situ detection voltage is written to the preset storage location.

[0126] In this embodiment, since the measured in-situ detection voltage needs to be compared with the obtained threshold range after subsequent measurement of the in-situ detection voltage, the generated threshold range of the in-situ detection voltage needs to be written to a preset storage location for subsequent comparison. As mentioned above, the reference value and deviation range can also be written to the preset storage location.

[0127] The preset storage location can be a storage location in the memory inside the battery cell, and the storage address of the storage location can be used as an index for subsequent retrieval of the threshold range stored in that storage location.

[0128] Of course, in practical applications, this storage location can also be the location where a parameter in the in-situ detection program segment is assigned a value. In the subsequent in-situ detection process, the detected second in-situ detection voltage value is directly compared with the assigned value of this parameter, and this application embodiment does not impose any restrictions on this.

[0129] As another embodiment of this application, after writing the generated threshold range of the in-situ detection voltage to a preset storage location, the method further includes:

[0130] The threshold range of the in-situ detection voltage is read from the preset storage location;

[0131] Compare the threshold range of the in-situ detection voltage read with the threshold range of the generated in-situ detection voltage;

[0132] If the comparison is inconsistent, the generated threshold range of the in-situ detection voltage will be rewritten in the preset storage location.

[0133] In this embodiment, since the write operation is performed by the device, write failures may occur. To avoid configuration failures due to write failures, the generated threshold range of the in-situ detection voltage can be written to a preset storage location, and then the threshold range of the in-situ detection voltage can be read from the preset storage location. The read threshold range of the in-situ detection voltage is compared with the generated threshold range of the in-situ detection voltage. If the comparison is inconsistent, it indicates that the write operation was unsuccessful, and the generated threshold range of the in-situ detection voltage needs to be rewritten to the preset storage location; if the comparison is consistent, it indicates that the write operation was successful.

[0134] In practice, a comparison can be performed after each write operation. Only if the comparison matches after a certain write operation can the configuration be considered successful.

[0135] As another embodiment of this application, after writing the generated threshold range of the in-situ detection voltage to a preset storage location, the method for in-situ detection is further included, which can be referred to in detail. Figure 6 The flowchart shown is a schematic diagram of an in-situ detection method, which further includes:

[0136] S301, detects the second in-situ detection voltage value of the battery.

[0137] In this embodiment of the application, after the threshold range is configured, the measured in-situ detection voltage value can be recorded as the second in-situ detection voltage value.

[0138] The scenarios for detecting the second in-situ detection voltage value differ from those for detecting the first in-situ detection voltage value:

[0139] The purpose of detecting the second in-situ detection voltage value is to check whether the battery is in place in order to avoid accidental risks. Therefore, in-situ detection can be performed before charging and discharging, or at intervals, or after the battery has been removed from the device. This application does not limit the implementation of this method.

[0140] S302, read the threshold range of the in-situ detection voltage from the preset storage location.

[0141] In this embodiment of the application, as described above, the threshold range of the in-situ detection voltage has been successfully stored in a preset storage location. Therefore, the threshold range of the in-situ detection voltage can be read from the preset storage location.

[0142] S303, if the second in-situ detection voltage value falls within the threshold range of the read in-situ detection voltage, then it is determined that the battery is not connected to the load and the power supply unit.

[0143] In this embodiment of the application, the threshold range can be an interval range, for example, from 1.45V to 2.05V. If the second in-situ detection voltage value falls within this range, it means that the second in-situ detection voltage value is greater than or equal to 1.45V and less than or equal to 2.05V.

[0144] S304, if the second in-situ detection voltage value does not fall within the threshold range of the read in-situ detection voltage, then it is determined that the battery is connected to the load or the power supply unit.

[0145] If the second in-situ detection voltage value does not fall within this range, it means that the second in-situ detection voltage value is less than 1.45V or greater than 2.05V.

[0146] In this embodiment of the application, when it is determined that the battery is connected to the load or the power supply unit, the switching transistor on the battery cell can be turned on to charge and discharge the battery cell.

[0147] The voltage threshold configuration method provided in this application provides an accurate reference value for the in-situ detection voltage, thereby obtaining a relatively accurate threshold range for the in-situ detection voltage. This allows for accurate determination of whether the battery cell is in place. When the battery cell is accurately determined to be in place, the charging and discharging switch of the battery cell can be turned on, reducing the probability of accidents.

[0148] It should be understood that the sequence number of each step in the voltage threshold configuration method in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0149] Corresponding to the voltage threshold configuration method described in the above embodiments, Figure 7 The battery cell provided in the embodiments of this application is shown. For ease of explanation, only the parts related to the embodiments of this application are shown.

[0150] The battery cell includes:

[0151] The first acquisition module 71 is used to acquire the first in-situ detection voltage value of the battery;

[0152] The reference value determination module 72 is used to determine the first in-situ detection voltage value as a reference value of the in-situ detection voltage if the first in-situ detection voltage value falls within the verification range of the in-situ detection voltage. The verification range of the in-situ detection voltage is the voltage range of the battery when it is not connected to the load and the power supply unit.

[0153] Threshold range configuration module 73: for configuring the threshold range of the in-situ detection voltage based on the determined reference value of the in-situ detection voltage.

[0154] The modules described above can also implement other steps in the above method embodiments to configure the voltage threshold.

[0155] It should be noted that the information interaction and execution process between the battery units / modules mentioned above are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.

[0156] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional modules is merely an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the battery unit can be divided into different functional modules to complete all or part of the functions described above. The functional modules in the embodiments can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of each module in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0157] This application also provides a battery cell, see [link to relevant documentation] Figure 8 The battery unit 8 may include: at least one processor 81, a memory 82, and a computer program stored in the memory 82 and executable on the at least one processor 81. When the processor 81 executes the computer program, it implements the steps in any of the above method embodiments, for example... Figure 5 Steps S201 to S203 in the illustrated embodiment. Alternatively, when the processor 81 executes the computer program, it implements the functions of each module in the above-described device embodiments, for example... Figure 7 The functions of modules 71 to 73 are shown.

[0158] For example, a computer program may be divided into one or more modules / units, one or more of which are stored in memory 82 and executed by processor 81 to complete this application. The one or more modules / units may be a series of computer program segments capable of performing specific functions, which describe the execution process of the computer program in battery cell 8.

[0159] Those skilled in the art will understand that Figure 8 This is merely an example of a battery cell and does not constitute a limitation on the battery cell. It may include more or fewer components than shown, or combine certain components, or different components, such as input / output devices, network access devices, buses, etc.

[0160] The processor 81 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0161] The memory 82 can be an internal storage unit of the battery cell or an external storage device of the battery cell, such as a plug-in hard drive, a smart media card (SMC), a secure digital card (SD), or a flash card. The memory 82 is used to store the computer program and other programs and data required by the battery cell. The memory 82 can also be used to temporarily store data that has been output or will be output.

[0162] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0163] This application also provides a voltage threshold configuration system, which may include a host computer and a battery cell provided in this application.

[0164] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps described in the various method embodiments above.

[0165] This application provides a computer program product that, when run on an electronic device, enables the electronic device to perform the steps described in the various method embodiments above.

[0166] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a photographic device / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.

[0167] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0168] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0169] In the embodiments provided in this application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings or direct couplings or communication connections may be through some interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.

[0170] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0171] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A voltage threshold configuration method, characterized in that, The method includes: Obtain the first in-situ detection voltage value of the battery; If the first in-situ detection voltage value falls within the verification range of the in-situ detection voltage, then the first in-situ detection voltage value is determined to be the reference value of the in-situ detection voltage. The verification range of the in-situ detection voltage is the voltage range when the battery is not connected to a load and a power supply unit. The verification range of the in-situ detection voltage is used to determine whether the test scenario of the first in-situ detection voltage value is the scenario when the battery is not connected to a load and a power supply unit. Based on the determined reference value of the in-situ detection voltage, the threshold range of the in-situ detection voltage is configured.

2. The method as described in claim 1, characterized in that, The step of configuring the threshold range of the in-situ detection voltage based on the determined reference value of the in-situ detection voltage includes: Based on the determined reference value of the in-situ detection voltage, a threshold range for the in-situ detection voltage is generated; The threshold range of the generated in-situ detection voltage is written to the preset storage location.

3. The method as described in claim 2, characterized in that, After writing the generated threshold range of the in-situ detection voltage to a preset storage location, the method further includes: The threshold range of the in-situ detection voltage is read from the preset storage location; Compare the threshold range of the read in-situ detection voltage with the threshold range of the generated in-situ detection voltage; If the comparison is inconsistent, the generated threshold range of the in-situ detection voltage will be rewritten in the preset storage location.

4. The method as described in claim 2, characterized in that, After writing the generated threshold range of the in-situ detection voltage to a preset storage location, the method further includes: The second in-situ detection voltage value of the battery is detected; The threshold range of the in-situ detection voltage is read from the preset storage location; If the second in-situ detection voltage value falls within the threshold range of the read in-situ detection voltage, it is determined that the battery is not connected to the load and the power supply unit. If the second in-situ detection voltage value does not fall within the threshold range of the read in-situ detection voltage, then it is determined that the battery is connected to the load or the power supply unit.

5. The method as described in claim 2, characterized in that, The step of generating the threshold range of the in-situ detection voltage based on the determined reference value of the in-situ detection voltage includes: The threshold range of the in-situ detection voltage is generated by using the reference value of the in-situ detection voltage as the center value of the threshold range of the in-situ detection voltage.

6. The method as described in claim 5, characterized in that, The length of the numerical interval of the threshold range of the in-situ detection voltage is less than or equal to the length of the numerical interval of the verification range of the in-situ detection voltage.

7. The method as described in claim 4, characterized in that, After determining that the battery is connected to the load or the power supply unit, the method further includes: Turn on the charge / discharge switch of the battery.

8. A battery cell, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1 to 7.

9. A voltage threshold configuration system, characterized in that, The voltage threshold configuration system includes a host computer and a battery unit; The host computer is used to send read commands to the battery unit; The battery cell is used to perform in-situ voltage detection on the battery after receiving the read command, and obtain the first in-situ detection voltage value. Send the first in-situ detection voltage value to the host computer; The host computer is used to send a write command to the battery cell after receiving the first in-situ detection voltage value. The battery unit, upon receiving the write instruction, determines the first in-situ detection voltage value as a reference value for the in-situ detection voltage if the first in-situ detection voltage value falls within the verification range of the in-situ detection voltage. The verification range of the in-situ detection voltage is the voltage range when the battery is not connected to a load or power supply unit. It then determines whether the test scenario for the first in-situ detection voltage value is the scenario when the battery is not connected to a load or power supply unit based on the verification range of the in-situ detection voltage. Based on the determined reference value of the in-situ detection voltage, it configures a threshold range for the in-situ detection voltage. After successful configuration, it sends a message to the host computer indicating successful writing.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 7.