Sampling circuit, battery management system, battery, vehicle, and voltage measurement method

WO2026200624A1PCT designated stage Publication Date: 2026-10-01BYD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2026/083956
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-03-28
Filing Date
2026-03-17
Publication Date
2026-10-01

Smart Images

  • Figure CN2026083956_01102026_PF_FP_ABST
    Figure CN2026083956_01102026_PF_FP_ABST
Patent Text Reader

Abstract

A sampling circuit, a battery management system, a battery, a vehicle, and a voltage measurement method. By means of a first sampling module (100) using a negative electrode of a battery end (10) as a reference ground and a second sampling module (200) using a negative electrode of any external end (20) as a reference ground, when main switches (30) are closed, the first sampling module (100) is used for sampling, and when the main switches (30) are open, the second sampling module (200) is used for sampling, so that the voltage of the any external end (20) can be measured under any working condition, and the first sampling module (100) is disabled when the main switches (30) are open, such that the battery end (10) can be isolated from a load end, thereby avoiding a sampling error caused by using an isolation operational amplifier, and achieving accurate sampling of each external end (20).
Need to check novelty before this filing date? Find Prior Art

Description

Sampling circuit, battery management system, battery, vehicle and voltage detection methods

[0001] This application claims priority to Chinese Patent Application No. 202510395087.5, filed on March 28, 2025, entitled “Sampling Circuit, System, Battery, Vehicle, Method, Apparatus, Medium and Product”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of batteries, and more particularly to a sampling circuit, a battery management system, a battery, a vehicle, and a voltage detection method. Background Technology

[0003] Vehicle batteries are the core energy storage devices in electric or hybrid vehicles, providing driving power and supporting the operation of onboard electronics. A battery system typically includes battery terminals directly connected to the positive and negative terminals, external terminals for connecting to external devices, such as load terminals for connecting to the vehicle's loads, and charging terminals for connecting to external charging equipment. In practical applications, to ensure system safety and reliability, it is necessary to monitor the voltage status of each port.

[0004] In related technologies, a high-voltage sampling chip is typically placed at the negative terminal of the battery, working in conjunction with sampling circuits at each port to sample the voltage at each port. The battery terminal is connected to other terminals via a main switch; when the main switch is off, it is impossible to sample the voltage at the external terminals. Summary of the Invention

[0005] This application provides a sampling circuit, a battery management system, a battery, a vehicle, and a voltage detection method to achieve accurate sampling of external terminals.

[0006] This application provides a sampling circuit (1), which includes a battery terminal (10) and an external terminal (20). The battery terminal (10) is used to connect a battery. The positive terminal of the battery terminal (10) is connected to the positive terminal of at least one external terminal (20) through a main positive switch (31), and the negative terminal of the battery terminal (10) is connected to the negative terminal of at least one external terminal (20) through a main negative switch (32). The sampling circuit (1) further includes a first sampling module (100) and a second sampling module (200). The first sampling module (100) uses the negative terminal of the battery terminal (10) as a reference ground, and the second sampling module (200) uses the negative terminal of the battery terminal (10) as a reference ground. With the negative terminal of any external terminal (20) as reference ground; the first sampling module (100) and the second sampling module (200) are both connected between the main positive switch (31) and the positive terminal of the first sampling terminal (21), and the first sampling terminal (21) is one of at least one external terminal (20); the first sampling module (100) is used to sample a first sampling signal when the main switch (30) is closed and to disconnect when the main switch (30) is open; the second sampling module (200) is used to sample a second sampling signal when the main switch (30) is open; the first sampling signal and the second sampling signal are used to detect the voltage of the first sampling terminal (21).

[0007] In one possible implementation, at least one external terminal (20) includes a load terminal and a charging terminal; the load terminal is used to connect an external load, and the charging terminal is used to connect a charging signal from an external battery terminal (10).

[0008] In one possible implementation, the first sampling module (100) includes: a first sampling network (110); a first end of the first sampling network (110) is connected between the main positive switch (31) and the positive terminal of the first sampling terminal (21), and a second end is connected to the negative terminal reference ground of the battery terminal (10); the first sampling network (110) is provided with a first sampling point (U), and the first sampling signal includes the sampling signal at the first sampling point (U).

[0009] In one possible implementation, the first sampling network (110) includes: a first voltage divider unit (111) and a first sampling unit (112); the first voltage divider unit (111) and the first sampling unit (112) are connected in series, and the connection point between the first voltage divider unit (111) and the first sampling unit (112) is used as the first sampling point (U).

[0010] In one possible implementation, the first voltage divider unit (111) and the first sampling unit (112) include an impedance element.

[0011] In one possible implementation, the first sampling module (100) further includes: a first control switch (120); the first sampling network (110) and the first control switch (120) are connected in series, and the first control switch (120) is configured to close when the main switch (30) is closed and open when the main switch (30) is open.

[0012] In one possible implementation, the first sampling module (100) further includes a first processing module (130); the first processing module (130) is connected to the first sampling network (110) and is used to process the signal provided by the first sampling point (U) to obtain the first sampling signal.

[0013] In one possible implementation, the first processing module (130) includes: a first sampling chip (131); a first end of the first sampling chip (131) is connected to a power supply, and a second end is connected to the negative reference ground of the battery terminal (10); a first input terminal of the first sampling chip (131) is connected to a first sampling point (U).

[0014] In one possible implementation, the second sampling module (200) includes: a second sampling network (210); a first end of the second sampling network (210) is connected between the main positive switch (31) and the positive terminal of the first sampling terminal (21), and a second end is connected to the reference ground of the second sampling module (200); the second sampling network (210) is provided with a second sampling point (V) and a third sampling point (W), and the second sampling signal includes the sampling signals at the second sampling point (V) and the third sampling point (W).

[0015] In one possible implementation, the second sampling network (210) includes: a first sub-sampling network (211) and a second sub-sampling network (212); the first end of the first sub-sampling network (211) is connected between the main positive switch (31) and the positive terminal of the first sampling terminal (21), and the second end is connected to the first end of the second sub-sampling network (212), the first sub-sampling network (211) is used to provide a second sampling point (V); the second end of the second sub-sampling network (212) is connected to the reference ground of the second sampling module (200), the second sub-sampling network (212) is used to provide a third sampling point (W).

[0016] In one possible implementation, the first sub-sampling network (211) includes: a second voltage divider unit (2111) and a second sampling unit (2112), the second voltage divider unit (2111) and the second sampling unit (2112) being connected, and the connection point of the second voltage divider unit (2111) and the second sampling unit (2112) being a second sampling point (V); and / or, the second sub-sampling network (212) includes: a third voltage divider unit (2121) and a third sampling unit (2122), the third voltage divider unit (2121) and the third sampling unit (2122) being connected, and the connection point of the third voltage divider unit (2121) and the third sampling unit (2122) being a third sampling point (W).

[0017] In one possible implementation, the second voltage divider unit (2111) and the second sampling unit (2112) include: impedance elements; and / or, the third voltage divider unit (2121) and the third sampling unit (2122) include: impedance elements.

[0018] In one possible implementation, the second sampling module (200) further includes: a second control switch (220); the second sampling network (210) is connected in series with the second control switch (220), and the second control switch (220) is configured to open when the main switch (30) is closed and close when the main switch (30) is open.

[0019] In one possible implementation, the second control switch (220) includes: a first control sub-switch (221) and a second control sub-switch (222); the first control sub-switch (221) is connected between the first sampling terminal (21) and the second sampling network (210); the second control sub-switch (222) is connected between the second sampling network (210) and the reference ground of the second sampling module (200).

[0020] In one possible implementation, the second sampling module (200) further includes a second processing module (230); the second processing module (230) is connected to the second sampling network (210) and is used to process the signals provided by the second sampling point (V) and the third sampling point (W) to obtain the second sampling signal.

[0021] In one possible implementation, the second end of the second sub-sampling network (212) is connected between the main negative switch (32) and the negative terminal of the first sampling terminal (21); the second processing module (230) includes: a second sampling chip (231); the first end of the second sampling chip (231) is connected to a power supply, the second end is connected to the connection point of the first sub-sampling network (211) and the second sub-sampling network (212), and the third end is connected to the negative reference ground of the second sampling terminal (22); the second sampling terminal (22) is any external terminal (20) other than the first sampling terminal (21); the first input terminal of the second sampling chip (231) is connected to the second sampling point (V), and the second input terminal is connected to the third sampling point (W).

[0022] In one possible implementation, the second sampling module (200) includes: a fourth voltage divider unit (241) and a fourth sampling unit (242), a first isolation operational amplifier (243), and a third control switch (244); wherein the fourth voltage divider unit (241) and the fourth sampling unit (242) include: impedance elements; the first end of the fourth voltage divider unit (241) is connected between the positive terminal of the first sampling terminal (21) and the main positive switch (31), and the second end is connected to the first end of the fourth sampling unit (242); the second end of the fourth sampling unit (242) is connected to the negative terminal reference ground of the first sampling terminal (21); the third control switch (244) is connected to the fourth voltage divider unit (241) and the fourth sampling unit (242). The sampling units (242) are connected in series, and the third control switch (244) is configured to close when the voltage of the first sampling terminal (21) is detected; the first terminal of the input side of the first isolation operational amplifier (243) is connected to the power supply, the second terminal of the input side is connected to the connection point of the fourth voltage divider unit (241) and the fourth sampling unit (242), and the third terminal of the input side is connected to the negative reference ground of the first sampling terminal (21); the first terminal of the output side of the first isolation operational amplifier (243) is connected to the power supply, the second terminal of the output side serves as the fourth sampling point (X), and the third terminal of the output side of the first isolation operational amplifier (243) is connected to the negative reference ground of the battery terminal (10); the second sampling signal includes the sampling signal at the fourth sampling point (X).

[0023] In one possible implementation, the fourth sampling point (X) is connected to the second input terminal of the first sampling chip (131).

[0024] In one possible implementation, the sampling circuit (1) further includes a third sampling module (300); the third sampling module (300) includes: a fifth voltage divider unit (311), a fifth sampling unit (312), and a fourth control switch (313); wherein the fifth voltage divider unit (311) and the fifth sampling unit (312) include: impedance elements; the first end of the fifth voltage divider unit (311) is connected between the positive terminal of the battery terminal (10) and the main positive switch (31), and the second end is connected to the first end of the fifth sampling unit (312); the fifth sampling unit (312) ... The second end of unit (312) is connected between the negative terminal of battery terminal (10) and the main negative switch (32). The connection point between the fifth voltage divider unit (311) and the fifth sampling unit (312) is used as the fifth sampling point (Y). The fifth sampling point (Y) is used to output the third sampling signal, which is used to detect the voltage of battery terminal (10). The fourth control switch (313) is connected in series with the fifth voltage divider unit (311) and the fifth sampling unit (312). The fourth control switch (313) is configured to close when the voltage of battery terminal (10) is detected.

[0025] In one possible implementation, the fifth sampling point (Y) is connected to the third input terminal of the first sampling chip (131).

[0026] In one possible implementation, the sampling circuit (1) further includes a fourth sampling module (400); the fourth sampling module (400) includes: a sixth voltage divider unit (411), a sixth sampling unit (412), and a fifth control switch (413); wherein the sixth voltage divider unit (411) and the sixth sampling unit (412) include: impedance elements; the first end of the sixth voltage divider unit (411) is connected between the positive terminal of the second sampling terminal (22) and the main positive switch (31), and the second end is connected to the first end of the sixth sampling unit (412); the sixth sampling unit The second end of (412) is connected between the negative terminal of the second sampling terminal (22) and the main negative switch (32). The connection point between the sixth voltage divider unit (411) and the sixth sampling unit (412) is used as the sixth sampling point (Z). The sixth sampling point (Z) is used to output the fourth sampling signal. The fourth sampling signal is used to detect the voltage of the second sampling terminal (22). The fifth control switch (413) is connected in series with the sixth voltage divider unit (411) and the sixth sampling unit (412). The fifth control switch (413) is configured to close when detecting the voltage of the second sampling terminal (22).

[0027] In one possible implementation, the sixth sampling point (Z) is connected to the third input terminal of the second sampling chip (231).

[0028] In one possible implementation, the first sampling terminal (21) is the load terminal and the second sampling terminal (22) is the charging terminal; the sampling circuit (1) also includes a charging switch; the battery terminal (10) is connected to the charging terminal through the main switch (30) and the charging switch; the charging switch is used to disconnect when the first sampling module performs sampling.

[0029] This application provides a battery management system, which includes the sampling circuit described above.

[0030] This application provides a battery, which includes the sampling circuit or the battery management system described above.

[0031] This application provides a vehicle that includes the battery described above.

[0032] This application provides a voltage detection method based on the sampling circuit described above. The method includes: when the main switch is closed, acquiring a first sampling signal obtained by the first sampling module of the sampling circuit; and when the main switch is open, acquiring a second sampling signal obtained by the second sampling module of the sampling circuit; and obtaining the voltage of the first sampling terminal based on the first sampling signal or the second sampling signal.

[0033] In one possible implementation, when the main switch is closed, the first sampling signal obtained by the first sampling module of the sampling circuit is acquired, including: when the main switch is closed, controlling the first control switch in the first sampling module to close and controlling the second control switch in the second sampling module to open, so that the first sampling module performs sampling.

[0034] In one possible implementation, when the main switch is off, the second sampling signal obtained by the second sampling module of the sampling circuit is sampled includes: when the main switch is off, controlling the second control switch in the second sampling module to close and controlling the first control switch in the first sampling module to open, so that the second sampling module performs sampling.

[0035] In one possible implementation, controlling the second control switch to close includes controlling the first control sub-switch and the second control sub-switch to close.

[0036] This application provides a voltage detection device based on the above sampling circuit. The device includes: an acquisition module, configured to acquire a first sampling signal obtained by a first sampling module of the sampling circuit when the main switch is closed; and to acquire a second sampling signal obtained by a second sampling module of the sampling circuit when the main switch is open; and a calculation module, configured to obtain the voltage of the first sampling terminal based on the first sampling signal or the second sampling signal.

[0037] This application provides an electronic device, including: a memory and a processor;

[0038] The memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, causing the processor to perform the methods described above.

[0039] This application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method described above.

[0040] This application provides a computer program product, including a computer program that, when executed by a processor, implements the method described above.

[0041] The sampling circuit, battery management system, battery, vehicle, and voltage detection method provided in this application embodiment utilize a first sampling module with the negative terminal of the battery terminal as a reference to ground and a second sampling module with the negative terminal of any external terminal as a reference to ground. The first sampling module is used to sample when the main switch is closed, and the second sampling module is used to sample when the main switch is open. This allows the voltage of any external terminal to be detected under any operating condition. Furthermore, the first sampling module is disconnected when the main switch is open, which can isolate the battery terminal from the load terminal, avoid sampling errors caused by using isolation operational amplifiers, and achieve accurate sampling of external terminals. Attached Figure Description

[0042] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0043] Figure 1 is a schematic diagram of the battery system provided in this application;

[0044] Figure 2 is a schematic diagram of a sampling circuit provided in an embodiment of this application;

[0045] Figure 3 is a schematic diagram of a sampling circuit provided in an embodiment of this application;

[0046] Figure 4 is a schematic diagram of a sampling circuit provided in an embodiment of this application;

[0047] Figure 5 is a schematic diagram of a sampling circuit provided in an embodiment of this application;

[0048] Figure 6 is a schematic diagram of a sampling circuit provided in an embodiment of this application;

[0049] Figure 7 is a schematic diagram of a sampling circuit provided in an embodiment of this application;

[0050] Figure 8 is a schematic diagram of a sampling circuit provided in an embodiment of this application;

[0051] Figure 9 is a schematic diagram of a sampling circuit provided in an embodiment of this application;

[0052] Figure 10 is a schematic diagram of a sampling circuit provided in an embodiment of this application;

[0053] Figure 11 is a schematic diagram of a sampling circuit provided in an embodiment of this application;

[0054] Figure 12 is a schematic diagram of a sampling circuit provided in an embodiment of this application;

[0055] Figure 13 is a schematic diagram of a sampling circuit provided in an embodiment of this application;

[0056] Figure 14 is a schematic flowchart of a voltage sampling method provided in an embodiment of this application;

[0057] Figure 15 is a schematic diagram of a voltage detection device provided in an embodiment of this application;

[0058] Figure 16 is a schematic diagram of the structure of the electronic device provided in the embodiment of this application.

[0059] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0060] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0061] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning. The terms "comprising" and "having," and any variations thereof, in the specification, claims, and accompanying drawings of this application are intended to be omnipresent but not exclusive. For example, a product or device that comprises a series of components is not necessarily limited to those components that are explicitly listed, but may include other components that are not explicitly listed or that are inherent to such products or devices. The term "module" as used in this application refers to any known or subsequently developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code capable of performing the functions associated with that element.

[0062] Figure 1 is a schematic diagram of the battery system provided in this application. As shown in Figure 1, the positive and negative terminals of the battery system are directly connected to the positive and negative terminals of the battery. The battery terminals are connected to the load terminal and the charging terminal respectively through a main switch. The main switch includes a main positive switch and a main negative switch. The main positive switch is connected to the positive terminals of the load terminal and the charging terminal, and the main negative switch is connected to the negative terminals of the load terminal and the charging terminal. In related technologies, a high-voltage sampling chip is typically placed at the negative terminal of the battery, and sampling circuits are set at the battery, load, and charging terminals respectively, connected to the high-voltage sampling chip, to achieve voltage sampling of all three ports using a single high-voltage sampling chip. However, in this scheme, when the main switch is open, the sampling circuits at the load and charging terminals are in an open-circuit state with the high-voltage sampling chip, and the load and charging terminals are not grounded with the battery, making it impossible to sample the voltage at the load and charging terminals.

[0063] One related technical solution connects the load and battery terminals via an isolation operational amplifier. This allows for normal voltage sampling of the load terminal when the main switch is open, while also isolating the load and battery terminals when the main switch is open. However, due to internal input-to-output errors within the isolation operational amplifier and the susceptibility of analog signals during transmission to interference, the accuracy of voltage sampling at the load and battery terminals is relatively low.

[0064] Another related technology approach involves setting up a corresponding sampling circuit and high-voltage sampling chip for each port, enabling accurate sampling of the battery, load, and charging terminals when the main switch is open or closed. However, this approach uses multiple high-voltage chips, increasing hardware costs and demanding more communication resources from the processor.

[0065] The technical content provided in this application aims to solve the aforementioned technical problems in related technologies. The sampling circuit, battery management system, battery, vehicle, and voltage detection method provided in this application, through a first sampling module with the negative terminal of the battery terminal referenced to ground and a second sampling module with the negative terminal of any external terminal referenced to ground, perform sampling using the first sampling module when the main switch is closed and the second sampling module when the main switch is open. This allows for the detection of the voltage of any external terminal under any operating condition. Furthermore, the first sampling module is disconnected when the main switch is open, achieving isolation between the battery terminal and the load terminal, avoiding sampling errors caused by the use of isolation operational amplifiers, and achieving accurate sampling of the external terminal.

[0066] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0067] Figure 2 is a schematic diagram of a sampling circuit provided in an embodiment of this application. As shown in Figure 2, the battery terminal 10 is used to connect to a battery. The positive terminal of the battery terminal 10 is connected to the positive terminal of at least one external terminal 20 through a main positive switch 31, and the negative terminal of the battery terminal 10 is connected to the negative terminal of at least one external terminal 20 through a main negative switch 32.

[0068] The sampling circuit 1 further includes: a first sampling module 100 and a second sampling module 200; the first sampling module 100 is grounded with the negative terminal of the battery terminal 10 (G1 in FIG2), and the second sampling module 200 is grounded with the negative terminal of any external terminal 20 (G2 in FIG2); both the first sampling module 100 and the second sampling module 200 are connected between the main positive switch 31 and the positive terminal of the first sampling terminal 21, and the first sampling terminal 21 is one of at least one external terminal 20;

[0069] The first sampling module 100 is used to sample a first sampling signal when the main switch 30 is closed, and to disconnect when the main switch 30 is open; the second sampling module 200 is used to sample a second sampling signal when the main switch 30 is open; the first sampling signal and the second sampling signal are used to detect the voltage of the first sampling terminal 21.

[0070] In practical applications, the sampling circuit 1 in this example can work with an energy storage device to perform corresponding functions. The energy storage device is any component capable of storing electrical energy and releasing it when needed, such as a battery module. It should be understood that the sampling circuit 1 can be integrated with other structures within the energy storage device, or it can be implemented as a standalone device independently of other structures within the energy storage device.

[0071] For example, battery terminal 10 refers to the electrical connection point in sampling circuit 1 that is directly connected to the positive and negative terminals of the energy storage device. Optionally, battery terminal 10 can also be a physical interface such as a connector, terminal, or pad. Battery terminal 10 is connected to at least one external terminal 20 via a main switch 30. The main switch 30 can be a mechanical switch such as a relay or contactor, or a semiconductor switch. For example, external terminal 20 can be an interface for other circuits or devices connected to battery terminal 10. For example, external terminal 20 can be a connection point for a load, charger, or other external circuit. External terminal 20 can be a single port such as a charging terminal, load terminal, battery status detection terminal, voltage equalization terminal, or communication terminal, or it can be a combination of any number of the above ports.

[0072] For example, the first sampling module 100 and the second sampling module 200 may include devices such as voltage dividers, operational amplifiers, and analog-to-digital converters. It should be understood that the composition and circuit structure of the first sampling module 100 and the second sampling module 200 may be the same or different, and this example does not limit this. The first sampling signal obtained by the first sampling module 100 may be a portion of the voltage at battery terminal 10 or the voltage at the first sampling terminal 21, and the second sampling signal obtained by the second sampling module 200 may be a portion of the voltage at the first sampling terminal 21. For example, the first sampling module 100 or the second sampling module 200 can calculate the voltage at the first sampling terminal 21 based on the corresponding sampling signal through its internal processing unit. Optionally, the first sampling module 100 or the second sampling module 200 may also send the corresponding sampling signal to other circuits or components for signal processing to obtain the voltage at the first sampling terminal 21. For example, the voltage at the first sampling terminal 21 can be obtained based on the first sampling signal or the second sampling signal through calculation processes such as voltage divider calculation, voltage calibration, and compensation.

[0073] It should be understood that the first sampling terminal 21 is any one of the external terminals 20 connected to the battery terminal 10. The second sampling module 200 is grounded with the negative terminal of any external terminal 20 as a reference. Any external terminal 20 can be the first sampling terminal 21 or any other external terminal 20.

[0074] For example, the first sampling terminal 21 can be a single terminal, that is, the sampling signal is obtained and the voltage of the first sampling terminal A is detected by the first sampling module 100 and the second sampling module 200 corresponding to the first sampling terminal A in the sampling circuit 1. Optionally, the first sampling terminal can also be multiple terminals, that is, the sampling signal is obtained and the voltage of the first sampling terminal B and the voltage of the first sampling terminal C are detected by the first sampling module 100 and the second sampling module 200 corresponding to the first sampling terminal B and the first sampling terminal C, respectively, in the sampling circuit 1.

[0075] In this example, when the main switch 30 is closed, a first sampling signal is obtained through a first sampling module 100 with the negative terminal of battery terminal 10 as reference to ground. When the main switch 30 is open, a second sampling signal is obtained through a second sampling module 200 with the negative terminal of any external terminal 20 as reference to ground. This achieves sampling without the need for an isolation amplifier when the main switch 30 is open and the first sampling module 100 is disconnected and cannot sample. In practical applications, when the second sampling module 200 is sampling, the ground connection between the first sampling module 100 and the battery terminal 10 is disconnected, which can achieve high and low voltage isolation between the first sampling terminal 21 and the battery terminal 10, improving the safety of the sampling circuit 1.

[0076] In the sampling circuit 1 provided in this application embodiment, a first sampling module 100 with the negative terminal of the battery terminal 10 as reference ground and a second sampling module 200 with the negative terminal of any external terminal 20 as reference ground are used to sample when the main switch 30 is closed and to sample when the main switch 30 is open, so as to detect the voltage of any external terminal 20. This avoids the sampling error caused by the use of isolation operational amplifiers and achieves accurate sampling of the external terminal 20.

[0077] As yet another example, at least one external terminal 20 includes: a load terminal and a charging terminal;

[0078] The load end is used to connect an external load, and the charging end is used to connect the charging signal of the external battery 10.

[0079] The load end connects to an external load (such as a motor or electronic device) to supply power to the load when the battery is discharging; the charging end connects to an external charger to receive charging signals and charge the battery. In practical applications, the load end and charging end can share the same physical interface or be independent interfaces (such as separate charging and load interfaces). For example, the physical structure of the load end can be designed as a spring contact, a pluggable connector, etc.; the charging end can use a standard charging interface such as a DC socket or customized terminals. This example solution enables the charging and discharging of the energy storage device through the load end and charging end.

[0080] As yet another example, the first sampling terminal 21 is either a load terminal or a charging terminal.

[0081] The scheme in this example can sample the load end or the charging end separately through the first sampling module 100 and the second sampling module 200, which can reduce interference between different external terminals 20 and improve the stability and accuracy of sampling.

[0082] Figure 3 is a schematic diagram of a sampling circuit provided in an embodiment of this application. As shown in Figure 3, the first sampling module 100 includes: a first sampling network 110;

[0083] The first end of the first sampling network 110 is connected between the positive terminal of the main positive switch 31 and the positive terminal of the first sampling terminal 21, and the second end is connected to the negative terminal reference ground (G1) of the battery terminal 10; the first sampling network 110 is provided with a first sampling point U, and the first sampling signal includes the sampling signal at the first sampling point U.

[0084] The first sampling network 110 may include a resistor divider circuit, a current sampling resistor, or other signal conditioning circuitry. Exemplarily, the first sampling network 110 may consist of multiple electronic components, such as resistors, capacitors, and amplifiers. The combination and configuration of these components are used to achieve accurate sampling of the voltage at the first sampling terminal 21. Specifically, the first sampling network 110 may include a resistor divider to reduce the voltage to a level suitable for measurement, or an operational amplifier to enhance the stability and accuracy of the signal. Specifically, in the design of the resistor divider, the first sampling point U may be located at the connection node between the two resistors, which provides the divided voltage signal reflecting the voltage condition at the first sampling terminal 21. On the other hand, in the design of the operational amplifier, the first sampling point U may be located at the output of the amplifier to ensure that the acquired signal is properly amplified and filtered. Optionally, the first sampling network 110 may also include a capacitor for filtering out high-frequency noise in the voltage signal to ensure the stability of the sampled signal. Optionally, the first sampling network 110 may also include a diode for protecting the circuit from reverse voltage or for rectification. In this example, the first sampling signal can be obtained by sampling when the main switch 30 is closed through the first sampling network 110, so as to analyze the voltage of the first sampling terminal 21.

[0085] As yet another example, the first sampling network 110 includes: a first voltage divider unit 111 and a first sampling unit 112;

[0086] The first voltage divider unit 111 is connected in series with the first sampling unit 112, and the connection point between the first voltage divider unit 111 and the first sampling unit 112 is used as the first sampling point U.

[0087] In this example, the first voltage divider unit 111 and the first sampling unit 112 are connected in series. The first end of the first voltage divider unit 111 is connected to the positive terminal of the first sampling terminal 21, and the second end is connected to the first end of the first sampling unit 112. The second end of the first sampling unit 112 is connected to the reference ground of the first sampling module 100 (i.e., the reference ground G1 of the battery terminal 10). The connection point between the first voltage divider unit 111 and the first sampling unit 112 serves as the first sampling point U, used to output the first sampling signal.

[0088] The first voltage divider unit 111 or the first sampling unit 112 can be composed of resistors or resistor networks, used to divide the voltage at the first sampling terminal 21 into a voltage suitable for processing by the sampling circuit 1. Optionally, the first sampling unit 112 may include one or more combinations of resistors, capacitors, filter circuits, or signal conditioning circuits, used to sample, filter, or condition the divided signal to obtain a stable first sampled signal. In this example, the scheme, through the cooperation of the first voltage divider unit 111 and the first sampling unit 112, can achieve accurate sampling and signal processing of the voltage at the first sampling terminal 21.

[0089] As yet another example, the first voltage divider unit 111 and the first sampling unit 112 include an impedance element.

[0090] For example, the first voltage divider unit 111 typically consists of resistors, such as fixed or adjustable resistors, for voltage division; the first sampling unit 112 may include resistors, capacitors, or combinations thereof for sampling and signal conditioning. The impedance elements in the first voltage divider unit 111 are primarily used for voltage division, converting high voltage to a low voltage suitable for subsequent circuit processing; the impedance elements in the first sampling unit 112 are used for sampling and signal conditioning, for example, forming a low-pass filter with a capacitor to filter out high-frequency noise, or combining with an operational amplifier to amplify the signal. In this example, by properly configuring the impedance elements in the first voltage divider unit 111 and the first sampling unit 112, accurate sampling and reliable processing of the voltage at the first sampling terminal 21 can be achieved.

[0091] As yet another example, the first sampling module 100 also includes: a first control switch 120;

[0092] The first sampling network 110 and the first control switch 120 are connected in series. The first control switch 120 is configured to close when the main switch 30 is closed and open when the main switch 30 is open. The introduction of the first control switch 120 can achieve isolation between the battery terminal 10 and the load terminal, avoiding sampling errors and increased costs caused by using isolation operational amplifiers, while also achieving accurate sampling of the external terminal 20.

[0093] For example, the first end of the first sampling network 110 is connected to the positive terminal of the first sampling terminal 21, and the second end is connected to the first terminal of the first control switch 120. The second terminal of the first control switch 120 is connected to the reference ground of the first sampling module 100 (i.e., the reference ground G1 of the battery terminal 10). The control terminal of the first control switch 120 can be connected to a control circuit to control the working state of the first sampling module 100 according to the state (closed or open) of the main switch 30.

[0094] Specifically, the first control switch 120 can be a semiconductor switch (such as a MOSFET, BJT, etc.) to achieve fast response and low power consumption. Optionally, the first control switch 120 can also be a mechanical relay to achieve control in high-voltage or high-current scenarios. Optionally, the first control switch 120 can also be an optocoupler switch to achieve good electrical isolation. In this example, when the main switch 30 is closed, the first control switch 120 is closed, enabling the first sampling network 110 to sample the voltage of the first sampling terminal 21 to obtain the first sampling signal; when the main switch 30 is open, the first control switch 120 is open, and the first sampling module 100 stops working, thereby avoiding unnecessary power consumption or interference. For example, when the second sampling module 200 is working, the first sampling network is disconnected from the negative terminal of the battery terminal 10, thereby achieving voltage isolation between the first sampling terminal 21 and the battery terminal 10.

[0095] As yet another example, the first sampling module 100 also includes: a first processing module 130;

[0096] The first processing module 130 is connected to the first sampling network 110 and is used to process the signal provided by the first sampling point U to obtain the first sampling signal.

[0097] The first processing module 130 is connected to the first sampling network 110. Specifically, the input terminal of the first processing module 130 is connected to the first sampling point U to receive the signal provided by the first sampling point U.

[0098] For example, the first processing module 130 processes the signal, such as amplifying, filtering, analog-to-digital conversion, or signal conditioning, to obtain a first sampled signal. Specifically, the first processing module 130 may include one or more of the following circuits: an amplification circuit: using an operational amplifier to amplify the signal at the first sampling point U to increase the signal amplitude for easier subsequent processing or measurement; a filtering circuit: using an RC circuit, LC circuit, or active filter to filter out noise or interference in the signal; and a signal conditioning circuit: using a level shifting circuit, a linearization circuit, or other forms of conditioning to offset, linearize, or otherwise condition the signal to ensure its accuracy and stability. In this example, through the processing of the first processing module 130, the original signal at the first sampling point U can be converted into a first sampled signal suitable for use by subsequent circuits or systems, thereby improving the accuracy and reliability of the sampling circuit 1.

[0099] As yet another example, the first processing module 130 includes: a first sampling chip 131;

[0100] The first terminal of the first sampling chip 131 is connected to the power supply, and the second terminal is connected to the reference ground of the first sampling module 100;

[0101] The first input terminal of the first sampling chip 131 is connected to the first sampling point U; the first sampling chip 131 is used to convert the input signal into a digital signal.

[0102] The first terminal of the first sampling chip 131 is connected to a power supply to provide it with an operating voltage; the second terminal is connected to the reference ground of the first sampling module 100 (i.e., the negative reference ground of the battery terminal 10) to establish a reference potential. The first input terminal of the first sampling chip 131 is connected to the first sampling point U to receive the analog signal provided by the first sampling point U. The first sampling chip 131 is used to convert the input analog signal into a digital signal to obtain the first sampling signal.

[0103] Specifically, the first sampling chip 131 can be an analog-to-digital converter (ADC), which may include, but is not limited to, successive approximation, integrating, or flash memory types. The resolution, sampling rate, and input range of the first sampling chip 131 can be selected according to actual application requirements. For example, in scenarios requiring high precision, a high-resolution (e.g., 16-bit or 24-bit) ADC can be selected. Exemplarily, the ADC can be integrated into a microcontroller or used as a separate chip. In this example, the ADC function of the first sampling chip 131 converts the analog signal of the first sampling point U into a digital signal, facilitating further processing and analysis by subsequent digital systems (such as microcontrollers or processors).

[0104] Figure 4 is a schematic diagram of a sampling circuit provided in an embodiment of this application. As shown in Figure 4, the first sampling module 100 includes: a first voltage divider unit 111 (i.e., R1) and a first sampling unit 112 (i.e., R2) under the first sampling network 110, a first control switch 120 (i.e., S1), and a first sampling chip 131 (i.e., ADC1) under the first processing module 130. ADC1 is an analog-to-digital converter (ADC) powered by the voltage common collector (VCC).

[0105] Specifically, switch S1 controls the working state of the first sampling module 100. When S1 is closed, the voltage is divided from the positive terminal of the first sampling terminal 21 through the voltage divider resistor R1, and then passed through the sampling resistor R2 to the ground terminal (G1) of the negative terminal of the battery terminal 10, and through the first sampling point U to the analog-to-digital converter ADC1. The ADC1 converts the analog signal of the first sampling point U into a digital signal.

[0106] For example, ADC1 can also be connected to a microprocessor to send the first sampled signal to the microprocessor, so that the microprocessor can calculate the voltage of the first sampling terminal 21 according to the voltage division ratio. In this example, after the main switch 30 is closed, the voltage-divided signal of the first sampling terminal 21 can be acquired and the corresponding digital signal can be obtained.

[0107] It should be noted that the embodiments related to the first sampling module 100 described above can be used to detect and obtain the voltage of any external terminal 20, such as the load terminal or the charging terminal.

[0108] Figure 5 is a schematic diagram of a sampling circuit provided in an embodiment of this application. As shown in Figure 5, based on any example, the second sampling module 200 includes: a second sampling network 210;

[0109] The first end of the second sampling network 210 is connected between the positive terminal of the main positive switch 31 and the positive terminal of the first sampling terminal 21, and the second end is connected to the reference ground of the second sampling module 200 (G2 in Figure 5). The second sampling network 210 is provided with a second sampling point V and a third sampling point W. The second sampling signal includes the sampling signals at the second sampling point V and the third sampling point W.

[0110] In this example, the second sampling module 200 includes a second sampling network 210. A first end of the second sampling network 210 is connected to the positive terminal of the first sampling terminal 21, and a second end is connected to the reference ground of the second sampling module 200 (i.e., the negative terminal of any external terminal 20). It is understood that this example embodiment is applicable to both cases where the reference ground of the second sampling module 200 is the negative terminal of the first sampling terminal 21 and cases where it is not the negative terminal of the first sampling terminal 21.

[0111] Specifically, the second sampling network 210 may include one or more combinations of voltage divider circuits, filter circuits, or signal conditioning circuits. For example, the second sampling network 210 may be composed of a voltage divider circuit consisting of multiple resistors, used to divide the voltage at the first sampling terminal 21, thereby obtaining voltage signals of different proportions at the second sampling point V and the third sampling point W. The setting of the second sampling point V and the third sampling point W can be used to realize multi-level sampling or differential sampling to improve sampling accuracy or anti-interference capability.

[0112] On one hand, when the reference ground connected to the second sampling module 200 is the reference ground of the first sampling terminal 21, the reference potential of the second sampling network 210 is consistent with the reference ground potential of the first sampling terminal 21, and the sampling signal only reflects the voltage change of the first sampling terminal 21. Correspondingly, the sampling signals at the second sampling point V and the third sampling point W can be directly used for multi-level sampling of the voltage of the first sampling terminal 21 to improve sampling accuracy. On the other hand, when the reference ground connected to the second sampling module 200 is the reference ground of an external terminal 20 other than the first sampling terminal 21, the second sampling network 210 can be used to detect the voltage difference between the first sampling terminal 21 and the reference ground of the second sampling module 200. Correspondingly, the sampling signals at the second sampling point V and the third sampling point W can be used for differential sampling of the voltage of the first sampling terminal 21 to achieve common-mode noise suppression. Optionally, the sampling signals at the second sampling point V and the third sampling point W can also be used for voltage bias sampling. The scheme in this example, through the design of the second sampling network 210, can flexibly adapt to different reference ground configurations and improve the accuracy and reliability of voltage sampling.

[0113] As yet another example, the second sampling network 210 includes: a first sub-sampling network 211 and a second sub-sampling network 212;

[0114] The first end of the first sub-sampling network 211 is connected between the main positive switch 31 and the positive terminal of the first sampling terminal 21, and the second end is connected to the first end of the second sub-sampling network 212. The first sub-sampling network 211 is used to provide the second sampling point V. The second end of the second sub-sampling network 212 is connected to the reference ground of the second sampling module 200. The second sub-sampling network 212 is used to provide the third sampling point W.

[0115] For example, when the first sub-sampling network 211 or the second sub-sampling network 212 is used for voltage graded sampling, the sub-sampling network may include a voltage divider circuit composed of multiple resistors, wherein the second sampling point V and the third sampling point W are respectively connected to different nodes of the voltage divider circuit to obtain voltage signals of different proportions. For example, when the first sub-sampling network 211 or the second sub-sampling network 212 is used for differential sampling, the sub-sampling network may include a differential amplifier or a differential analog-to-digital converter to eliminate common-mode interference and improve sampling accuracy. The solution in this example can flexibly adapt to different sampling requirements by designing different first sub-sampling networks 211 and second sub-sampling networks 212.

[0116] As another example, the first sub-sampling network 211 includes: a second voltage divider unit 2111 and a second sampling unit 2112, the second voltage divider unit 2111 and the second sampling unit 2112 are connected, and the connection point of the second voltage divider unit 2111 and the second sampling unit 2112 is the second sampling point V;

[0117] And / or, the second sub-sampling network 212 includes: a third voltage divider unit 2121 and a third sampling unit 2122, the third voltage divider unit 2121 and the third sampling unit 2122 are connected, and the connection point of the third voltage divider unit 2121 and the third sampling unit 2122 is the third sampling point W.

[0118] In this example, the second voltage divider unit 2111 and the second sampling unit 2112 are connected in series. The first end of the second voltage divider unit 2111 is connected to the positive terminal of the first sampling terminal 21, and the second end is connected to the first end of the second sampling unit 2112. The second end of the second sampling unit 2112 is connected to the second sub-sampling network 212. The connection point between the second voltage divider unit 2111 and the second sampling unit 2112 serves as the second sampling point V, used to output the sampled signal.

[0119] In this example, the third voltage divider unit 2121 and the third sampling unit 2122 are connected in series. The first end of the third voltage divider unit 2121 is connected to the first sub-sampling network 211, and the second end is connected to the first end of the third sampling unit 2122. The second end of the third sampling unit 2122 is connected to the reference ground of the second sampling module 200. The connection point between the third voltage divider unit 2121 and the third sampling unit 2122 serves as the third sampling point W, used to output the sampled signal.

[0120] It is understandable that the first subsampling network 211 and the second subsampling network 212 can be implemented independently or simultaneously in practical applications.

[0121] The implementation methods and technical effects of the second voltage divider unit 2111, the second sampling unit 2112, the third voltage divider unit 2121, and the third sampling unit 2122 are similar to those of the first voltage divider unit 111 and the first sampling unit 112, and will not be elaborated further here.

[0122] As another example, the second voltage divider unit 2111 and the second sampling unit 2112 include: an impedance element; and / or, the third voltage divider unit 2121 and the third sampling unit 2122 include: an impedance element.

[0123] The implementation methods and technical effects of the second voltage divider unit 2111, the second sampling unit 2112, the third voltage divider unit 2121, and the third sampling unit 2122 are similar to those of the first voltage divider unit 111 and the first sampling unit 112, and will not be elaborated further here.

[0124] As yet another example, the second sampling module 200 also includes: a second control switch 220;

[0125] The second sampling network 210 and the second control switch 220 are connected in series. The second control switch 220 is configured to open when the main switch 30 is closed and close when the main switch 30 is open. The introduction of the second control switch 220 can achieve isolation between the positive and negative terminals of the load, avoiding sampling errors and increased costs caused by using isolation operational amplifiers, while also achieving accurate sampling of the external terminal 20.

[0126] For example, the first end of the second sampling network 210 is connected to the positive terminal of the first sampling terminal 21, and the second end is connected to the first end of the second control switch 220. The second end of the first control switch 220 is connected to the reference ground of the second sampling module 200. The control terminal of the second control switch 220 can be connected to a control circuit to control the operating state of the second sampling module 200 according to the state of the main switch 30.

[0127] In practical applications, the implementation of the second control switch 220 is similar to that of the first control switch 120, so we will not go into details here.

[0128] In this example, when the main switch 30 is open, controlling the second control switch 220 to close allows the second sampling module 200 to sample the voltage of the first sampling terminal 21. When the main switch 30 is closed, controlling the second control switch 220 to open causes the second sampling module 200 to stop working, thus avoiding unnecessary power consumption or interference. For example, when the ground terminal of the second sampling module 200 is not the negative terminal of the first sampling terminal 21 (but the negative terminal of the second sampling terminal 22), the second control switch 220 is opened, achieving voltage isolation between the first sampling terminal 21 and the connected ground terminal (i.e., between the second sampling terminal 22).

[0129] As yet another example, the second control switch 220 includes: a first control sub-switch 221 and a second control sub-switch 222;

[0130] The first control sub-switch 221 is connected between the first sampling terminal 21 and the second sampling network 210;

[0131] The second control sub-switch 222 is connected between the second sampling network 210 and the reference ground of the second sampling module 200.

[0132] For example, the first terminal of the first control sub-switch 221 is connected to the positive terminal of the first sampling terminal 21, and the second terminal is connected to the first terminal of the second sampling network 210; the first terminal of the second control sub-switch 222 is connected to the second terminal of the second sampling network 210, and the second terminal is connected to the reference ground of the second sampling module 200. In this example, the first control sub-switch 221 and the second control sub-switch 222 enable flexible control of the operating state of the second sampling network 210 and improve the reliability of the control.

[0133] As yet another example, the second sampling module 200 also includes: a second processing module 230;

[0134] The second processing module 230 is connected to the second sampling network 210 and is used to process the signals provided by the second sampling point V and the third sampling point W to obtain the second sampling signal.

[0135] In this example, the second processing module 230 is connected to the second sampling network 210. Specifically, the input terminal of the second processing module 230 is connected to the second sampling point V and the third sampling point W to receive the signals provided by the second sampling point V and the third sampling point W.

[0136] The implementation of the second processing module 230 is similar to that of the first processing module 130, and will not be elaborated further here.

[0137] The scheme in this example, through the processing of the second processing module 230, can convert the original signals of the second sampling point V and the third sampling point W into a second sampling signal suitable for use in subsequent circuits or systems, thereby improving the accuracy and reliability of the sampling circuit 1.

[0138] As another example, the second end of the second sub-sampling network 212 is connected between the main negative switch 32 and the negative terminal of the first sampling terminal 21 (G3); the second processing module 230 includes: a second sampling chip 231;

[0139] The first end of the second sampling chip 231 is connected to the power supply, the second end is connected to the connection point of the first sub-sampling network 211 and the second sub-sampling network 212, and the third end is connected to the negative reference ground (G4) of the second sampling terminal 22; the second sampling terminal 22 is any external terminal 20 other than the first sampling terminal 21 among at least one external terminal 20.

[0140] The first input terminal of the second sampling chip 231 is connected to the second sampling point V, and the second input terminal is connected to the third sampling point W; the second sampling chip 231 is used to convert the input signal into a digital signal.

[0141] It should be noted that G3 is the negative reference ground of the first sampling terminal 21, and G4 is the negative reference ground of the second sampling terminal 22; where the first sampling terminal 21 and the second sampling terminal 22 are both external terminals 20, so G3 and G4 are both possible cases of G2 (the negative reference ground of any external terminal 20).

[0142] The first terminal of the second sampling chip 231 is connected to a power supply to provide it with an operating voltage. The second terminal is connected to the junction (i.e., the bias voltage node) of the first sub-sampling network 211 and the second sub-sampling network 212 to establish a reference potential. The first input terminal of the second sampling chip 231 is connected to the second sampling point V, and the second input terminal is connected to the third sampling point W, for receiving analog signals provided by the second sampling point V and the third sampling point W. The second sampling chip 231 is used to convert the input analog signal into a digital signal to obtain the second sampled signal.

[0143] The implementation of the second sampling chip 231 is similar to that of the first sampling chip 131, and will not be elaborated on here.

[0144] In this example, the analog-to-digital conversion function of the second sampling chip 231 converts the analog signals of the second sampling point V and the third sampling point W into digital signals, facilitating further processing and analysis by subsequent digital systems (such as microcontrollers or processors). Furthermore, the second terminal of the second sub-sampling network 212 is connected to the negative terminal G3 (load terminal) between the main negative switch 32 and the negative terminal of the first sampling terminal 21, and the third terminal of the second sampling chip 231 is connected to the negative reference ground G4 (charging terminal) of the second sampling terminal 22. This allows for isolation between the load terminal and the charging terminal through the switching of the first control sub-switch 221 and the second control sub-switch 222, avoiding sampling errors and increased costs caused by using isolation operational amplifiers, while simultaneously achieving accurate sampling of the external terminal 20.

[0145] Figure 6 is a schematic diagram of a sampling circuit provided in an embodiment of this application. As shown in Figure 6, the second sampling module 200 includes: a first sub-sampling network 211 and a second sub-sampling network 212 under the second sampling network 210. The first sub-sampling network 211 includes a second voltage divider unit 2111 and a second sampling unit 2112 (i.e., R3 and R4). The second sub-sampling network 212 includes a third voltage divider unit 2121 and a third sampling unit 2122 (i.e., R5 and R6). The second control switch 220 includes a first control sub-switch 221 and a second control sub-switch 222 (i.e., S2 and S3). The second processing module 230 includes a second sampling chip 231 (i.e., ADC2).

[0146] Specifically, switches S2 and S3 control the operating state of the second sampling module 200. When S2 and S3 are closed, the voltage from the positive terminal of the first sampling terminal 21 is divided by voltage divider resistor R3, then passes through sampling resistor R4 to voltage divider resistor R5, and then through the second sampling point V to the first input terminal of the analog-to-digital converter ADC2. After being divided by R5, the voltage passes through sampling resistor R6 to the negative reference ground of the first sampling terminal 21 (shown as G3 in the diagram). The voltage after being divided by R5 also passes through the third sampling point W to the second input terminal of the analog-to-digital converter ADC2. ADC2 is also connected between R4 and R5 to receive the bias voltage, using the bias voltage as a reference to obtain the analog signals from the first and second input terminals and convert them into corresponding digital signals. In this example, after the main switch 30 is opened, the voltage signal of the first sampling terminal 21 can be acquired by biasing and the corresponding digital signal can be obtained.

[0147] It should be noted that the embodiments related to the second sampling module 200 described above can be used to detect and obtain the voltage of any external terminal 20, such as the load terminal or the charging terminal.

[0148] Figure 7 is a schematic diagram of a sampling circuit provided in an embodiment of this application. As shown in Figure 7, based on the example in Figure 3, the second sampling module 200 includes: a fourth voltage divider unit 241 and a fourth sampling unit 242 (i.e., R7 and R8), a first isolation operational amplifier 243, and a third control switch 244 (i.e., S4); wherein, the fourth voltage divider unit 241 and the fourth sampling unit 242 include: impedance elements;

[0149] The first end of the fourth voltage divider unit 241 is connected between the positive terminal of the first sampling terminal 21 and the main positive switch 31, and the second end is connected to the first end of the fourth sampling unit 242; the second end of the fourth sampling unit 242 is connected to the negative reference ground (G3) of the first sampling terminal 21; the third control switch 244 is connected in series with the fourth voltage divider unit 241 and the fourth sampling unit 242, and the third control switch 244 is configured to close when the voltage of the first sampling terminal 21 is detected;

[0150] The first terminal of the input side of the first isolation operational amplifier 243 is connected to the power supply, the second terminal of the input side is connected to the connection point of the fourth voltage divider unit 241 and the fourth sampling unit 242, and the third terminal of the input side is connected to the negative reference ground (G3) of the first sampling terminal 21.

[0151] The first terminal of the output side of the first isolation operational amplifier 243 is connected to the power supply, the second terminal of the output side serves as the fourth sampling point X, and the third terminal of the output side of the first isolation operational amplifier 243 is connected to the negative reference ground (G1) of the battery terminal 10; the second sampling signal includes the sampling signal at the fourth sampling point X.

[0152] It should be noted that the embodiment in this example applies to the case where the reference ground of the second sampling module 200 is the negative terminal of the first sampling terminal 21. The implementation of the fourth voltage divider unit 241 and the fourth sampling unit 242 is similar to that of the first voltage divider unit 111 and the first sampling unit 112, and will not be elaborated further here. In this example, the cooperation of the fourth voltage divider unit 241 and the fourth sampling unit 242 enables precise sampling and signal processing of the voltage at the first sampling terminal 21. The implementation of the third control switch 244 is similar to that of the first control switch 120, and will not be elaborated further here. In this example, the third control switch 244 controls the operating state of the second sampling module 200, enabling flexible sampling of the voltage at the first sampling terminal 21. In this example, the isolation operational amplifier can level-convert the signal at the connection point of the fourth voltage divider unit 241 and the fourth sampling unit 242 after voltage division at the first sampling terminal 21 to the reference ground of the first sampling module 100 (i.e., the negative terminal of the battery terminal 10), achieving unified processing of the sampled signal.

[0153] In this example, when the main switch 30 is closed, the first sampling module is used to measure the voltage of the first sampling terminal 21, while the second sampling module is not used for sampling. This avoids the sampling error caused by the isolation operational amplifier and improves the sampling accuracy. On the other hand, when the main switch 30 is open, the second sampling module can be used to sample the first sampling terminal 21 when the switch is open. At the same time, the isolation operational amplifier in the second sampling module can also achieve voltage isolation between the first sampling terminal 21 and the battery terminal 10.

[0154] Figure 8 is a schematic diagram of a sampling circuit provided in an embodiment of this application. Based on the example in Figure 7, the fourth sampling point X is connected to the second input terminal of the first sampling chip 131.

[0155] In this example, the first sampling signal at the first sampling point U and the second sampling signal at the fourth sampling point X can be processed simultaneously by the first sampling chip 131. By sharing a chip, the sampling circuit 1 is simplified and its cost is reduced.

[0156] Optionally, the above-described implementation of the second sampling module 200 can be used simultaneously for multiple external terminals 20. For example, the second sampling module 200 at the load terminal and the charging terminal can be connected to the first sampling chip 131 respectively, so that the first sampling chip 131 can process the second sampling signals of the load terminal and the charging terminal simultaneously.

[0157] Figure 9 is a schematic diagram of a sampling circuit provided in an embodiment of this application. As shown in Figure 9, based on the example in Figure 3, the sampling circuit 1 further includes: a third sampling module 300;

[0158] The third sampling module 300 includes: a fifth voltage divider unit 311 (i.e., R9), a fifth sampling unit 312 (i.e., R10), and a fourth control switch 313 (i.e., S5); wherein, the fifth voltage divider unit 311 and the fifth sampling unit 312 include: impedance elements;

[0159] The first end of the fifth voltage divider unit 311 is connected between the positive terminal of the battery terminal 10 and the main positive switch 31, and the second end is connected to the first end of the fifth sampling unit 312; the second end of the fifth sampling unit 312 is connected between the negative terminal of the battery terminal 10 and the main negative switch 32 (G1), and the connection point between the fifth voltage divider unit 311 and the fifth sampling unit 312 is used as the fifth sampling point Y; the fifth sampling point Y is used to output the third sampling signal, and the third sampling signal is used to detect the voltage of the battery terminal 10;

[0160] The fourth control switch 313 is connected in series with the fifth voltage divider unit 311 and the fifth sampling unit 312. The fourth control switch 313 is configured to close when the voltage at the battery terminal 10 is detected.

[0161] In practical applications, the third sampling module 300 can also send the sampling signal to other circuits or components so that they can perform signal processing to obtain the voltage of the battery terminal 10. For example, the voltage of the battery terminal 10 can be obtained based on the third sampling signal through calculations such as voltage divider calculation, voltage calibration, and compensation. This example solution, based on any embodiment, can sample the voltage of the battery terminal 10 through the third sampling module 300, thereby improving the data acquisition efficiency and sampling flexibility of the sampling circuit 1.

[0162] In this example, the implementation of the fifth voltage divider unit 311 and the fifth sampling unit 312 is similar to that of the first voltage divider unit 111 and the first sampling unit 112, and will not be elaborated further here. The scheme in this example, through the cooperation of the fifth voltage divider unit 311 and the fifth sampling unit 312, can achieve accurate sampling and signal processing of the voltage at the battery terminal 10. In practical applications, by properly configuring the impedance elements in the fifth voltage divider unit 311 and the fifth sampling unit 312, accurate sampling and reliable processing of the voltage at the battery terminal 10 can be achieved.

[0163] The control terminal of the fourth control switch 313 can be connected to the control circuit to control the operating state of the third sampling module 300 according to the voltage detection requirements of the battery terminal 10. The implementation of the fourth control switch 313 is similar to that of the first control switch 120, and will not be elaborated further here. In this example, by controlling the operating state of the third sampling module 300 through the fourth control switch, flexible sampling of the voltage at the battery terminal 10 can be achieved.

[0164] Figure 10 is a schematic diagram of a sampling circuit provided in an embodiment of this application. Based on the example in Figure 9, the fifth sampling point Y is connected to the third input terminal of the first sampling chip 131.

[0165] It is understood that the ground terminal of the first sampling chip 131 is the negative terminal of the battery terminal 10, and the third sampling module 300 is also connected to the negative terminal of the battery terminal 10. Therefore, in this example, the fifth sampling point Y can be directly connected to the first sampling chip 131. In this example, the first sampling signal at the first sampling point U and the third sampling signal at the fifth sampling point Y can be processed simultaneously through the first sampling chip 131. By sharing a chip, the sampling circuit 1 is simplified and the cost of the sampling circuit is reduced.

[0166] Figure 11 is a schematic diagram of a sampling circuit provided in an embodiment of this application. As shown in Figure 11, based on the example in Figure 5, the sampling circuit 1 further includes: a fourth sampling module 400;

[0167] The fourth sampling module 400 includes: a sixth voltage divider unit 411 (i.e., R11), a sixth sampling unit 412 (i.e., R12), and a fifth control switch 413 (i.e., S6); wherein, the sixth voltage divider unit 411 and the sixth sampling unit 412 include: impedance elements;

[0168] The first end of the sixth voltage divider unit 411 is connected between the positive terminal of the second sampling terminal 22 and the main positive switch 31, and the second end is connected to the first end of the sixth sampling unit 412; the second end of the sixth sampling unit 412 is connected between the negative terminal of the second sampling terminal 22 and the main negative switch 32 (G4 in G2). The connection point between the sixth voltage divider unit 411 and the sixth sampling unit 412 is used as the sixth sampling point Z. The sixth sampling point Z is used to output the fourth sampling signal, and the fourth sampling signal is used to detect the voltage of the second sampling terminal 22.

[0169] The fifth control switch 413 is connected in series with the sixth voltage divider unit 411 and the sixth sampling unit 412. The fifth control switch 413 is configured to close when the voltage of the second sampling terminal 22 is detected.

[0170] In this example, the implementation of the sixth voltage divider unit 411 and the sixth sampling unit 412 is similar to that of the first voltage divider unit 111 and the first sampling unit 112, and will not be elaborated further here. The scheme in this example, through the cooperation of the sixth voltage divider unit 411 and the sixth sampling unit 412, can achieve accurate sampling and signal processing of the voltage at the second sampling terminal 22. In practical applications, by properly configuring the impedance elements in the sixth voltage divider unit 411 and the sixth sampling unit 412, accurate sampling and reliable processing of the voltage at the battery terminal 10 can be achieved.

[0171] For example, the control terminal of the fifth control switch 413 can be connected to a control circuit to control the operating state of the fourth sampling module 400 according to the voltage detection requirements of the second sampling terminal 22. The implementation of the fifth control switch 420 is similar to that of the first control switch 120, and will not be elaborated further here. In this example, by controlling the operating state of the fourth sampling module 400 through the fifth control switch 413, flexible sampling of the voltage at the second sampling terminal 22 can be achieved.

[0172] Figure 12 is a schematic diagram of a sampling circuit provided in an embodiment of this application. As shown in Figure 12, based on the example in Figure 11, the sixth sampling point Z is connected to the third input terminal of the second sampling chip 231.

[0173] It should be noted that when the reference ground of the second sampling chip 231 is the second sampling terminal 22, the sixth sampling point Z of the fifth sampling network 410 in this example can be directly connected to the second sampling chip 231. In this example, the second sampling signal at the second sampling point V and the third sampling point W, and the fourth sampling signal at the sixth sampling point Z can be processed simultaneously through the second sampling chip. This simplifies the sampling circuit 1 and reduces its cost by sharing a chip.

[0174] As another example, the first sampling terminal 21 is the load terminal, and the second sampling terminal 22 is the charging terminal; the sampling circuit 1 also includes a charging switch;

[0175] The battery terminal 10 is connected to the charging terminal via the main switch 30 and the charging switch; the charging switch is used to disconnect when the first sampling module performs sampling.

[0176] The charging switch is used to disconnect when the first sampling module 100 is sampling.

[0177] For example, the charging switch can be a contactor or a relay. In this example, when the first sampling module 100 samples the voltage of the first sampling terminal 21, the charging switch is turned off, which can achieve voltage isolation between the first sampling terminal 21 and the second sampling terminal 22, i.e., the load terminal and the charging terminal, thereby improving the safety and accuracy of voltage sampling.

[0178] Figure 13 is a schematic diagram of a sampling circuit provided in an embodiment of this application. As shown in Figure 13, voltage division sampling of the load terminal voltage can be achieved through R1 and R2 and the first sampling point U, where S1 controls the sampling circuit 1; voltage division sampling of the battery terminal voltage can be achieved through R9 and R10 and the fifth sampling point Y, where S5 controls the sampling circuit 1; furthermore, the ground terminals of both sampling circuits 1 are G1, and analog-to-digital conversion of the voltage signals of the first sampling point U and the fifth sampling point Y can be achieved by sharing ADC1, while reducing hardware costs;

[0179] By providing bias voltage to ADC2 through R3 and R4, the second sampling point V, R5 and R6, the third sampling point W, and the connection point between R4 and R5, bias sampling of the load terminal voltage can be achieved. S2 and S3 control this sampling circuit 1. By using R11 and R12 and the sixth sampling point Z, voltage division sampling of the charging terminal voltage can be achieved. S6 controls this sampling circuit 1. By sharing ADC2, analog-to-digital conversion of the voltage signals of the second sampling point V, the third sampling point W, and the sixth sampling point Z can be achieved, while reducing hardware costs.

[0180] When the main switch 30 is closed, reference grounds G1 and G3 are connected. Closing S1 allows for voltage sampling at the load terminal. Simultaneously, opening the charging switch and disconnecting S2 and S3 isolates the voltage between the charging terminal and the load terminal. When the main switch 30 is open, closing S2 and S3 allows for voltage sampling at the load terminal. Simultaneously, closing S1 isolates the load terminal from the charging terminal and the battery terminal 10. Furthermore, when sampling at the battery terminal 10 or the charging terminal is required, closing S5 or S6 can achieve this, improving sampling flexibility.

[0181] In the sampling circuit provided in this application embodiment, a first sampling module with the negative terminal of the battery terminal as a reference to ground and a second sampling module with the negative terminal of any external terminal 20 as a reference to ground are used. The first sampling module is used to sample when the main switch 30 is closed and the second sampling module is used to sample when the main switch 30 is open. This allows the voltage of any external terminal 20 to be detected under any operating condition. Furthermore, the first sampling module is disconnected when the main switch 30 is open, which can isolate the battery terminal from the load terminal, avoid sampling errors caused by using isolation operational amplifiers, and achieve accurate sampling of the external terminal 20.

[0182] This application also provides a battery management system, which includes the sampling circuit as described in any of the above embodiments.

[0183] This application also provides a battery, which includes the sampling circuit as described in any of the above embodiments or the battery management system as described in any of the above embodiments.

[0184] This application also provides a vehicle that includes the battery as described in any of the above embodiments.

[0185] Figure 14 is a schematic flowchart of a voltage sampling method provided in an embodiment of this application. As shown in Figure 14, the method includes:

[0186] Step 101: When the main switch is closed, acquire the first sampling signal obtained by the first sampling module of the sampling circuit; and when the main switch is open, acquire the second sampling signal obtained by the second sampling module of the sampling circuit.

[0187] Step 102: Obtain the voltage at the first sampling terminal based on the first sampling signal or the second sampling signal.

[0188] In practical applications, the execution entity of this method can be a voltage sampling device, which can be implemented in various ways. For example, it can be implemented through a computer program, such as application software; or it can be implemented as a medium storing the relevant computer program, such as a USB flash drive or cloud storage; or it can be implemented through a physical device that integrates or installs the relevant computer program, such as a chip. Optionally, the execution entity of this method can also be the microprocessor of a battery management system.

[0189] It should be noted that the second sampling module can only operate and obtain the second sampling signal when the main switch is open. When the ground terminal and the negative terminal of the second sampling module are the same, the second sampling module can also operate and obtain the second sampling signal when the main switch is closed.

[0190] For example, the voltage at the first sampling terminal can be calculated based on the voltage division ratio of the voltage divider circuits in the first and second sampling modules. Optionally, the obtained first and second sampling signals can also be calibrated and compensated to obtain the voltage at the first sampling terminal.

[0191] In the voltage sampling method provided in this application embodiment, a first sampling module with the negative terminal of the battery terminal as a reference ground and a second sampling module with the negative terminal of any external terminal as a reference ground are used. The first sampling module is used to sample when the main switch is closed and the second sampling module is used to sample when the main switch is open. This allows the voltage of any external terminal to be detected under any operating condition. Furthermore, the first sampling module is disconnected when the main switch is open, which can isolate the battery terminal from the load terminal and avoid sampling errors caused by using isolation operational amplifiers, thus achieving accurate sampling of the external terminal.

[0192] In one example, when the main switch is closed, the first sampling signal obtained by the first sampling module of the sampling circuit is obtained by: when the main switch is closed, controlling the first control switch in the first sampling module to close and the second control switch in the second sampling module to open, so that the first sampling module can perform sampling.

[0193] In one example, the voltage of the first sampling terminal is obtained based on the first sampling signal, specifically by obtaining the voltage of the first sampling terminal based on the sampling signal at the first sampling point using a voltage divider detection method.

[0194] The scheme in this example, based on a voltage divider detection method, can improve the accuracy of voltage calculation at the first sampling terminal.

[0195] In one example, based on the sampling signal at the first sampling point, the voltage of the first sampling terminal is obtained using a voltage divider detection method, including: calculating the sum of the resistance of the first voltage divider unit and the resistance of the first sampling unit, the ratio of the sum to the resistance of the first sampling unit, and multiplying the sampling signal at the first sampling point by the ratio to obtain the voltage of the first sampling terminal.

[0196] For example, the formula for calculating the voltage at the first sampling terminal is:

[0197] Where R1 is the resistance of the first voltage divider unit, R2 is the resistance of the first sampling unit, and V1 is the sampling signal at the first sampling point. The scheme in this example improves the accuracy of voltage calculation at the first sampling terminal by using the voltage calculation formula at the first sampling terminal.

[0198] In one example, when the main switch is off, the second sampling signal obtained by the second sampling module of the sampling circuit is sampled, including: when the main switch is off, controlling the second control switch in the second sampling module to close and controlling the first control switch in the first sampling module to open, so that the second sampling module can perform sampling.

[0199] In one example, controlling the second control switch to close includes controlling the first control sub-switch and the second control sub-switch to close.

[0200] The scheme in this example improves the flexibility and reliability of sampling by the second sampling module through the first and second control sub-switches.

[0201] In one example, obtaining the voltage of the first sampling terminal based on the second sampling signal includes: obtaining the voltage of the first sampling terminal based on the sampling signals at the second and third sampling points using a paranoid detection method.

[0202] The scheme in this example, based on a voltage divider detection method, can improve the accuracy of voltage calculation at the first sampling terminal.

[0203] In one example, based on the sampled signals at the second and third sampling points, the voltage at the first sampling terminal is obtained using a biased detection method. This includes: calculating the sum of the resistance values ​​of the second voltage divider unit and the second sampling unit, and the ratio of the sum to the resistance value of the second sampling unit; calculating the difference between the sampled signal at the second sampling point and the signal at the third sampling point, and multiplying the difference by the ratio to obtain the voltage at the first sampling terminal.

[0204] For example, the formula for calculating the voltage at the first sampling terminal is:

[0205] Where R3 is the resistance of the second voltage divider unit, R4 is the resistance of the second sampling unit, V2 is the sampling signal at the second sampling point, and V3 is the sampling signal at the third sampling point. The scheme in this example improves the accuracy of voltage calculation at the first sampling terminal by using the voltage calculation formula at the first sampling terminal.

[0206] In one example, when the main switch is open, the second sampling signal obtained by the second sampling module of the sampling circuit is sampled, including: when the main switch is open, controlling the third control switch to close so that the second sampling module can perform sampling.

[0207] The scheme in this example, based on a voltage divider detection method, can improve the accuracy of voltage calculation at the first sampling terminal.

[0208] In one example, based on the sampling signal at the fourth sampling point, the voltage of the first sampling terminal is obtained using a voltage divider detection method. This includes: calculating the sum of the resistance of the fourth voltage divider unit and the resistance of the fourth sampling unit, the ratio of the sum to the resistance of the fourth sampling unit, and multiplying the sampling signal at the fourth sampling point by this ratio to obtain the voltage of the first sampling terminal.

[0209] For example, the formula for calculating the voltage at the first sampling terminal is:

[0210] Where R7 is the resistance of the fourth voltage divider unit, R8 is the resistance of the fourth sampling unit, and V4 is the sampling signal at the fourth sampling point. The scheme in this example improves the accuracy of voltage calculation at the first sampling terminal by using the voltage calculation formula at the first sampling terminal.

[0211] In one example, the method further includes: controlling the fourth control switch to close so that the third sampling module can sample and obtain a third sampling signal; and obtaining the voltage at the battery terminal based on the third sampling signal.

[0212] In this example, the fourth control switch can improve the sampling accuracy of the third sampling module. Based on the third sampling signal obtained by the third module, the voltage at the battery terminal can be calculated on any exemplary basis.

[0213] In one example, the voltage at the battery terminal is obtained based on the third sampling signal, including: obtaining the voltage at the battery terminal based on the sampling signal at the fifth sampling point using a voltage divider detection method.

[0214] The solution in this example, based on a voltage divider detection method, can improve the accuracy of voltage calculation at the battery terminals.

[0215] In one example, based on the sampling signal at the fifth sampling point, the voltage at the battery terminal is obtained using a voltage divider detection method. This includes: calculating the sum of the resistance of the fifth voltage divider unit and the resistance of the fifth sampling unit, the ratio of the sum to the resistance of the fifth sampling unit, and multiplying the sampling signal at the fifth sampling point by this ratio to obtain the voltage at the battery terminal.

[0216] For example, the formula for calculating the voltage at the battery terminal is:

[0217] In this example, R9 is the resistance of the fifth voltage divider unit, R2 is the resistance of the fifth sampling unit, and V5 is the sampling signal at the fifth sampling point. This scheme improves the accuracy of battery voltage calculation by using the battery terminal voltage calculation formula.

[0218] In one example, the method further includes: controlling the fifth control switch to close so that the fourth sampling module can sample and obtain a fourth sampling signal; and obtaining the voltage of the second sampling terminal based on the fourth sampling signal.

[0219] In this example, the fifth control switch can improve the sampling accuracy of the fourth sampling module. Based on the fourth sampling signal obtained by the fourth module, the voltage of the second sampling terminal can be calculated on any exemplary basis.

[0220] In one example, the fourth sampled signal includes the sampled signal at the sixth sample point.

[0221] The scheme in this example can accurately calculate the voltage at the second sampling terminal by using the sampling signal at the sixth sampling point.

[0222] In one example, obtaining the voltage at the second sampling terminal based on the fourth sampling signal includes: obtaining the voltage at the second sampling terminal based on the sampling signal at the sixth sampling point using a voltage divider detection method.

[0223] The scheme in this example, based on a voltage divider detection method, can improve the accuracy of voltage calculation at the second sampling terminal.

[0224] In one example, based on the sampling signal at the sixth sampling point, the voltage at the second sampling terminal is obtained using a voltage divider detection method. This includes: calculating the sum of the resistance of the sixth voltage divider unit and the resistance of the sixth sampling unit, the ratio of the sum to the resistance of the sixth sampling unit, and multiplying the sampling signal at the sixth sampling point by this ratio to obtain the voltage at the second sampling terminal.

[0225] For example, the formula for calculating the voltage at the second sampling terminal is:

[0226] Among them, R 11 R is the resistance value of the sixth voltage divider unit. 12V6 represents the resistance value of the sixth sampling unit, and V6 is the sampling signal at the sixth sampling point. In this example, the voltage calculation formula at the second sampling terminal improves the accuracy of the voltage calculation.

[0227] In the voltage sampling method provided in this application embodiment, a first sampling module with the negative terminal of the battery terminal as a reference ground and a second sampling module with the negative terminal of any external terminal as a reference ground are used. The first sampling module is used to sample when the main switch is closed and the second sampling module is used to sample when the main switch is open. This allows the voltage of any external terminal to be detected under any operating condition. Furthermore, the first sampling module is disconnected when the main switch is open, which can isolate the battery terminal from the load terminal and avoid sampling errors caused by using isolation operational amplifiers, thus achieving accurate sampling of the external terminal.

[0228] Figure 15 is a schematic diagram of a voltage detection device provided in an embodiment of this application. As shown in Figure 15, the voltage detection device includes:

[0229] The acquisition module 91 is used to acquire the first sampling signal obtained by the first sampling module of the sampling circuit when the main switch is closed; and to acquire the second sampling signal obtained by the second sampling module of the sampling circuit when the main switch is open.

[0230] The calculation module 92 is used to obtain the voltage of the first sampling terminal based on the first sampling signal or the second sampling signal.

[0231] The voltage detection device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0232] Figure 16 is a schematic diagram of the electronic device provided in an embodiment of this application. As shown in Figure 16, the electronic device provided in this embodiment includes a processor 291 and a memory 292; it may also include a communication interface 293 and a bus 294. The processor 291, memory 292, and communication interface 293 can communicate with each other via the bus 294. The communication interface 293 can be used for information transmission. The processor 291 can call logical instructions in the memory 292 to execute the method described above.

[0233] Furthermore, the logic instructions in the aforementioned memory 292 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.

[0234] The memory 292, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of this application. The processor 291 executes functional applications and data processing by running the software programs, instructions, and modules stored in the memory 292, that is, it implements the methods in the above method examples.

[0235] The memory 292 may include a program storage area and a data storage area. The program storage area may store the operating system and application programs required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 292 may include high-speed random access memory and may also include non-volatile memory.

[0236] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the methods described in the above embodiments.

[0237] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the method described in the above embodiments.

[0238] Finally, it should be noted that other embodiments of this application will readily conceive of by those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and alterations may be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. A sampling circuit (1), wherein, The sampling circuit (1) includes a battery terminal (10) and an external terminal (20). The battery terminal (10) is used to connect a battery. The positive terminal of the battery terminal (10) is connected to the positive terminal of at least one of the external terminals (20) through a main positive switch (31), and the negative terminal of the battery terminal (10) is connected to the negative terminal of at least one of the external terminals (20) through a main negative switch (32). The sampling circuit (1) further includes: a first sampling module (100) and a second sampling module (200); the first sampling module (100) is grounded with the negative terminal of the battery terminal (10), and the second sampling module (200) is grounded with the negative terminal of any external terminal (20); both the first sampling module (100) and the second sampling module (200) are connected between the main positive switch (31) and the positive terminal of the first sampling terminal (21), and the first sampling terminal (21) is one of the at least one external terminal (20); The first sampling module (100) is used to sample a first sampling signal when the main switch (30) is closed and to disconnect when the main switch (30) is open; the second sampling module (200) is used to sample a second sampling signal when the main switch (30) is open; the first sampling signal and the second sampling signal are used to detect the voltage of the first sampling terminal (21).

2. The sampling circuit (1) according to claim 1, wherein, The at least one external terminal (20) includes a load terminal and a charging terminal; the load terminal is used to connect an external load, and the charging terminal is used to connect the charging signal of the battery terminal (10).

3. The sampling circuit (1) according to any one of claims 1 to 2, wherein, The first sampling module (100) includes: a first sampling network (110); The first end of the first sampling network (110) is connected between the positive terminal of the main positive switch (31) and the positive terminal of the first sampling terminal (21), and the second end is connected to the negative terminal reference ground of the battery terminal (10); the first sampling network (110) is provided with a first sampling point (U), and the first sampling signal includes the sampling signal at the first sampling point (U).

4. The sampling circuit (1) according to claim 3, wherein, The first sampling network (110) includes: a first voltage divider unit (111) and a first sampling unit (112); The first voltage divider unit (111) is connected in series with the first sampling unit (112), and the connection point between the first voltage divider unit (111) and the first sampling unit (112) is used as the first sampling point (U).

5. The sampling circuit (1) according to claim 4, wherein, The first voltage divider unit (111) and the first sampling unit (112) include: impedance elements.

6. The sampling circuit (1) according to claim 3, wherein, The first sampling module (100) further includes: a first control switch (120); The first sampling network (110) and the first control switch (120) are connected in series. The first control switch (120) is configured to close when the main switch (30) is closed and open when the main switch (30) is open.

7. The sampling circuit (1) according to claim 3, wherein, The first sampling module (100) further includes: a first processing module (130); The first processing module (130) is connected to the first sampling network (110) and is used to process the signal provided by the first sampling point (U) to obtain the first sampling signal.

8. The sampling circuit (1) according to claim 7, wherein, The first processing module (130) includes: a first sampling chip (131); The first end of the first sampling chip (131) is connected to the power supply, and the second end is connected to the negative reference ground of the battery terminal (10); the first input terminal of the first sampling chip (131) is connected to the first sampling point (U).

9. The sampling circuit (1) according to any one of claims 1 to 8, wherein, The second sampling module (200) includes: a second sampling network (210); The first end of the second sampling network (210) is connected between the main positive switch (31) and the positive terminal of the first sampling terminal (21), and the second end is connected to the reference ground of the second sampling module (200); the second sampling network (210) is provided with a second sampling point (V) and a third sampling point (W), and the second sampling signal includes the sampling signals at the second sampling point (V) and the third sampling point (W).

10. The sampling circuit (1) according to claim 9, wherein, The second sampling network (210) includes: a first sub-sampling network (211) and a second sub-sampling network (212); The first end of the first sub-sampling network (211) is connected between the main positive switch (31) and the positive terminal of the first sampling terminal (21), and the second end is connected to the first end of the second sub-sampling network (212). The first sub-sampling network (211) is used to provide the second sampling point (V). The second end of the second sub-sampling network (212) is connected to the reference ground of the second sampling module (200). The second sub-sampling network (212) is used to provide the third sampling point (W).

11. The sampling circuit (1) according to claim 10, wherein, The first sub-sampling network (211) includes: a second voltage divider unit (2111) and a second sampling unit (2112), the second voltage divider unit (2111) and the second sampling unit (2112) are connected, and the connection point of the second voltage divider unit (2111) and the second sampling unit (2112) is the second sampling point (V); And / or, the second sub-sampling network (212) includes: a third voltage divider unit (2121) and a third sampling unit (2122), the third voltage divider unit (2121) and the third sampling unit (2122) being connected, and the connection point of the third voltage divider unit (2121) and the third sampling unit (2122) being the third sampling point (W).

12. The sampling circuit (1) according to claim 11, wherein, The second voltage divider unit (2111) and the second sampling unit (2112) include: impedance elements; And / or, the third voltage divider unit (2121) and the third sampling unit (2122) include: impedance elements.

13. The sampling circuit (1) according to claim 9, wherein, The second sampling module (200) further includes: a second control switch (220); The second sampling network (210) and the second control switch (220) are connected in series. The second control switch (220) is configured to open when the main switch (30) is closed and close when the main switch (30) is open.

14. The sampling circuit (1) according to claim 13, wherein, The second control switch (220) includes: a first control sub-switch (221) and a second control sub-switch (222); The first control sub-switch (221) is connected between the first sampling terminal (21) and the second sampling network (210); The second control sub-switch (222) is connected between the second sampling network (210) and the reference ground of the second sampling module (200).

15. The sampling circuit (1) according to claim 10, wherein, The second sampling module (200) further includes: a second processing module (230); The second processing module (230) is connected to the second sampling network (210) and is used to process the signals provided by the second sampling point (V) and the third sampling point (W) to obtain the second sampling signal.

16. The sampling circuit (1) according to claim 15, wherein, The second end of the second sub-sampling network (212) is connected between the main negative switch (32) and the negative terminal of the first sampling terminal (21); the second processing module (230) includes: a second sampling chip (231); The first end of the second sampling chip (231) is connected to the power supply, the second end is connected to the connection point of the first sub-sampling network (211) and the second sub-sampling network (212), and the third end is connected to the negative reference ground of the second sampling terminal (22); the second sampling terminal (22) is any external terminal (20) other than the first sampling terminal (21) among the at least one external terminal (20); The first input terminal of the second sampling chip (231) is connected to the second sampling point (V), and the second input terminal is connected to the third sampling point (W).

17. The sampling circuit (1) according to claim 8, wherein, The second sampling module (200) includes: a fourth voltage divider unit (241) and a fourth sampling unit (242), a first isolation operational amplifier (243), and a third control switch (244); wherein the fourth voltage divider unit (241) and the fourth sampling unit (242) include: impedance elements; The first end of the fourth voltage divider unit (241) is connected between the positive terminal of the first sampling terminal (21) and the main positive switch (31), and the second end is connected to the first end of the fourth sampling unit (242); the second end of the fourth sampling unit (242) is connected to the negative reference ground of the first sampling terminal (21); the third control switch (244) is connected in series with the fourth voltage divider unit (241) and the fourth sampling unit (242), and the third control switch (244) is configured to close when the voltage of the first sampling terminal (21) is detected; The first terminal of the input side of the first isolation operational amplifier (243) is connected to the power supply, the second terminal of the input side is connected to the connection point of the fourth voltage divider unit (241) and the fourth sampling unit (242), and the third terminal of the input side is connected to the negative reference ground of the first sampling terminal (21). The first terminal of the output side of the first isolation operational amplifier (243) is connected to the power supply, the second terminal of the output side serves as the fourth sampling point (X), and the third terminal of the output side of the first isolation operational amplifier (243) is connected to the negative reference ground of the battery terminal (10); the second sampling signal includes the sampling signal at the fourth sampling point (X).

18. The circuit according to claim 17, wherein, The fourth sampling point (X) is connected to the second input terminal of the first sampling chip (131).

19. The sampling circuit (1) according to claim 8, wherein, The sampling circuit (1) further includes a third sampling module (300); the third sampling module (300) includes: a fifth voltage divider unit (311), a fifth sampling unit (312), and a fourth control switch (313); wherein the fifth voltage divider unit (311) and the fifth sampling unit (312) include: impedance elements; The first end of the fifth voltage divider unit (311) is connected between the positive terminal of the battery terminal (10) and the main positive switch (31), and the second end is connected to the first end of the fifth sampling unit (312); the second end of the fifth sampling unit (312) is connected between the negative terminal of the battery terminal (10) and the main negative switch (32), and the connection point between the fifth voltage divider unit (311) and the fifth sampling unit (312) is used as the fifth sampling point (Y); the fifth sampling point (Y) is used to output a third sampling signal, and the third sampling signal is used to detect the voltage of the battery terminal (10); The fourth control switch (313) is connected in series with the fifth voltage divider unit (311) and the fifth sampling unit (312), and the fourth control switch (313) is configured to close when the voltage of the battery terminal (10) is detected.

20. The sampling circuit (1) according to claim 19, wherein, The fifth sampling point (Y) is connected to the third input terminal of the first sampling chip (131).

21. The sampling circuit (1) according to claim 16, wherein, The sampling circuit (1) further includes a fourth sampling module (400); the fourth sampling module (400) includes: a sixth voltage divider unit (411), a sixth sampling unit (412), and a fifth control switch (413); wherein the sixth voltage divider unit (411) and the sixth sampling unit (412) include: impedance elements; The first end of the sixth voltage divider unit (411) is connected between the positive terminal of the second sampling terminal (22) and the main positive switch (31), and the second end is connected to the first end of the sixth sampling unit (412); the second end of the sixth sampling unit (412) is connected between the negative terminal of the second sampling terminal (22) and the main negative switch (32). The connection point between the sixth voltage divider unit (411) and the sixth sampling unit (412) is used as the sixth sampling point (Z). The sixth sampling point (Z) is used to output the fourth sampling signal. The fourth sampling signal is used to detect the voltage of the second sampling terminal (22). The fifth control switch (413) is connected in series with the sixth voltage divider unit (411) and the sixth sampling unit (412), and the fifth control switch (413) is configured to close when the voltage of the second sampling terminal (22) is detected.

22. The sampling circuit (1) according to claim 21, wherein, The sixth sampling point (Z) is connected to the third input terminal of the second sampling chip (231).

23. The sampling circuit (1) according to claim 22, wherein, The first sampling terminal (21) is a load terminal, and the second sampling terminal (22) is a charging terminal; the sampling circuit (1) also includes a charging switch; The battery terminal (10) is connected to the charging terminal via the main switch (30) and the charging switch; The charging switch is used to disconnect when the first sampling module is sampling.

24. A battery management system, wherein, The battery management system includes a sampling circuit as described in any one of claims 1 to 23.

25. A battery, wherein, The battery includes a sampling circuit as described in any one of claims 1 to 23 or a battery management system as described in claim 24.

26. A vehicle, wherein, The vehicle includes the battery as described in claim 25.

27. A voltage detection method, wherein, Based on the sampling circuit according to any one of claims 1 to 23, the method includes: When the main switch is closed, the first sampling signal obtained by the first sampling module of the sampling circuit is acquired; and when the main switch is open, the second sampling signal obtained by the second sampling module of the sampling circuit is acquired. The voltage at the first sampling terminal is obtained based on either the first sampling signal or the second sampling signal.

28. The method according to claim 27, wherein, When the main switch is closed, acquiring the first sampling signal obtained by the first sampling module of the sampling circuit includes: When the main switch is closed, the first control switch in the first sampling module is closed and the second control switch in the second sampling module is opened, so that the first sampling module can perform sampling.

29. The method according to any one of claims 27 to 28, wherein, When the main switch is turned off, the acquisition of the second sampling signal obtained by the second sampling module of the sampling circuit includes: When the main switch is turned off, the second control switch in the second sampling module is closed and the first control switch in the first sampling module is turned off, so that the second sampling module can perform sampling.

30. The method according to claim 29, wherein, The control of closing the second control switch includes: Control the closure of the first control sub-switch and the second control sub-switch.

31. A voltage detection device, wherein, Based on the sampling circuit according to any one of claims 1 to 23, the device comprises: The acquisition module is configured to acquire a first sampling signal obtained by the first sampling module of the sampling circuit when the main switch is closed; and to acquire a second sampling signal obtained by the second sampling module of the sampling circuit when the main switch is open. The calculation module is used to obtain the voltage of the first sampling terminal based on the first sampling signal or the second sampling signal.

32. An electronic device, wherein, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 27 to 30.

33. A computer-readable storage medium, wherein, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 27 to 30.

34. A computer program product, wherein, Includes a computer program that, when executed by a processor, implements the method as described in any one of claims 27 to 30.