Keying circuit and battery management system

By designing a button circuit for a battery management system that includes a button control module, an interrupt module, and a reset module, the problem of unreliable system reset caused by software anomalies in the prior art is solved, and hardware-level system reset is achieved, thereby improving the stability and security of the system.

CN224538181UActive Publication Date: 2026-07-21EVE ENERGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
EVE ENERGY CO LTD
Filing Date
2025-09-03
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

Existing battery management systems cannot reliably reset the system through external operations when software malfunctions, resulting in cumbersome operation and potential safety hazards.

Method used

Design a button circuit including a button control module, an interrupt module, and a reset module. The circuit enables the wake-up, sleep, and reset functions of the battery management system through independent button signals. The button signals are processed by a cascaded structure of a delay unit, a comparison unit, and a charge/discharge unit, which enhances the system's anti-interference capability and reliability.

Benefits of technology

It enables hardware-level reset in the event of software malfunctions, improving system stability and reliability, simplifying user operations, and enhancing system maintenance convenience and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN224538181U_ABST
    Figure CN224538181U_ABST
Patent Text Reader

Abstract

The application discloses a kind of keying circuit and battery management system, it is related to battery management system technical field.The keying circuit includes key control module, interrupt module and reset module.Key control module is equipped with input, first output and second output, input receives power signal, and first and second key signal are output respectively.Interrupt module is connected between first output and the interrupt pin of battery management system, and first level signal for waking up / sleeping system is output according to first key signal.Reset module is connected between second output and the reset pin of system, and second level signal for resetting system is output according to second key signal.The application realizes keying wake up / sleeping and hardware reset function in battery management system by integrating key control module, interrupt module and reset module, reliable reset can be realized by external operation even in software exception, significantly improve the security and maintenance convenience of system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of battery management system technology, and in particular to a button circuit and a battery management system. Background Technology

[0002] Existing battery management systems (BMS) typically have functions such as button sleep / wake-up and button reset. In practical applications, BMS systems mostly implement button reset through software, that is, after detecting a button operation, the software controls the system to restart.

[0003] However, when the BMS system software freezes or crashes, the software reset function may fail, preventing the system from being effectively restored via external buttons. In such cases, users often have to resort to removing the battery pack or powering off and restarting the system to restore normal operation, which is cumbersome, inefficient, and prone to introducing safety hazards.

[0004] The information disclosed in this background section is included only to enhance the understanding of the context of this disclosure, and therefore may contain information that does not constitute relevant technology currently known to those skilled in the art. Utility Model Content

[0005] This application provides a button circuit and a battery management system to solve the problem that existing battery management systems cannot reliably reset the system through external operation when there is a software malfunction.

[0006] The technical solution adopted in this application is as follows.

[0007] In a first aspect, this application provides a button circuit, the circuit comprising:

[0008] The button control module includes an input terminal, a first output terminal, and a second output terminal. The input terminal is used to receive a power signal, the first output terminal is used to output a first button signal based on the power signal, and the second output terminal is used to output a second button signal based on the power signal.

[0009] The interrupt module has its input terminal connected to the first output terminal of the button control module and its output terminal connected to the interrupt pin of the battery management system. It is used to output a first level signal that can be recognized by the interrupt pin to the interrupt pin of the battery management system according to the first button signal, so as to serve as a signal to wake up or put the battery management system into sleep mode.

[0010] The reset module has its input terminal connected to the second output terminal of the button control module and its output terminal connected to the reset pin of the battery management system. It is used to output a second level signal that can be recognized by the reset pin to the reset pin of the battery management system according to the second button signal, so as to reset the battery management system.

[0011] This application, through the aforementioned structural design, achieves separate control of the interrupt and reset functions of the battery management system by the button control module. On one hand, the interrupt module can output a recognizable first-level signal to the interrupt pin of the battery management system based on the first button signal, thereby realizing the wake-up or sleep control of the system; on the other hand, the reset module can output a recognizable second-level signal to the reset pin of the battery management system based on the second button signal, thereby realizing a reliable reset of the system. This solution effectively avoids the problem of the system being unable to be reset through external operation due to software anomalies, improves the stability and reliability of the battery management system, simplifies user operation, and facilitates system maintenance and fault recovery.

[0012] In conjunction with the first aspect, in one possible implementation, the button control module includes a lockable button, which includes a first input pin, a first output pin corresponding to the first input pin, a second input pin, and a second output pin corresponding to the second input pin, wherein:

[0013] The connection node after connecting the first input pin and the second input pin of the lockless button serves as the input terminal of the button control module;

[0014] The first output pin of the unlocked button serves as the first output terminal of the button control module. It is used to connect with the first input pin when the unlocked button is pressed, thereby receiving the power signal transmitted by the first input pin and outputting the first button signal.

[0015] The second output pin of the unlocked button serves as the second output terminal of the button control module. It is used to connect with the second input pin when the unlocked button is pressed, thereby receiving the power signal transmitted by the second input pin and outputting the second button signal.

[0016] This application adopts a lockless button structure including first and second input pins and corresponding output pins, which realizes the connection between the input end of the button control module and the lockless button, and outputs independent first and second button signals when pressed, thereby realizing independent control of the wake-up / sleep and reset functions of the battery management system.

[0017] In conjunction with the first aspect, in one possible implementation, the reset module includes:

[0018] The delay unit has its input terminal connected to the second output terminal of the button control module, and is used to output the second button signal after delay processing;

[0019] The comparison unit, whose input is connected to the output of the delay unit, is used to compare the signal output by the delay unit with the reference signal and output the first charge / discharge control signal according to the comparison result.

[0020] The charging / discharging unit has its input terminal connected to the output terminal of the comparator unit and its output terminal connected to the reset pin. It is used to charge / discharge according to the first charging / discharging control signal to obtain a second level signal.

[0021] This application achieves delay processing, signal comparison, and charge / discharge control of the second button signal output from the second output terminal of the button control module by setting a cascaded structure of a delay unit, a comparison unit, and a charge / discharge unit in the reset module. This enables the output of an accurate second-level signal to the reset pin, thereby improving the reliability and anti-interference capability of the system reset operation.

[0022] In conjunction with the first aspect, in one possible implementation, the delay unit includes a delay resistor and a delay capacitor, which are connected in parallel and then in series between the second output terminal of the button control module and the ground terminal of the battery management system.

[0023] This application effectively suppresses key signal jitter by using a delay unit composed of a delay resistor and a delay capacitor in the key control circuit, thereby improving the system's anti-interference capability and operational stability.

[0024] In conjunction with the first aspect, in one possible implementation, the delay unit further includes a third filter resistor and a third filter capacitor, wherein:

[0025] The third filter resistor is connected in series between the second output terminal of the key control module and the input terminal of the comparison unit;

[0026] The third filter capacitor is connected in series between the input terminal of the comparator unit and the ground terminal of the battery management system.

[0027] This application filters the button signal by setting a third filter resistor and a third filter capacitor in the delay unit, which effectively suppresses false triggering of the signal caused by external interference and improves the anti-interference capability and operational stability of the system.

[0028] In conjunction with the first aspect, in one possible implementation, the comparison unit includes a comparator, a first voltage divider resistor, and a second voltage divider resistor, wherein:

[0029] The inverting input pin of the comparator serves as the input terminal of the comparison unit;

[0030] The non-inverting input pin of the comparator is connected to the ground terminal of the battery management system;

[0031] The comparator's output pin serves as the output terminal of the comparison unit;

[0032] The first voltage divider resistor and the second voltage divider resistor are connected in series between the power supply terminal and the ground terminal of the battery management system.

[0033] The series connection of the first voltage divider resistor and the second voltage divider resistor is connected to the non-inverting input pin of the comparator to provide the comparator with a reference voltage as a reference signal.

[0034] This application employs a combination of a comparator and voltage divider resistors, enabling the comparator to obtain a stable reference voltage as a reference signal and compare the input button signals in real time. This not only improves the accuracy of button signal detection but also enhances the system's ability to suppress power fluctuations and external interference, thereby effectively ensuring the reliable operation and safety of the battery management system.

[0035] In conjunction with the first aspect, in one possible implementation, the charging / discharging unit includes a pull-up resistor and a reset capacitor, wherein:

[0036] A pull-up resistor is connected in series between the power supply terminal and the reset pin of the battery management system;

[0037] The reset capacitor is connected in series between the ground terminal of the battery management system and the reset pin to ensure that the reset pin is at a low level when the power is applied.

[0038] This application utilizes the RC delay principle by connecting a pull-up resistor in series between the reset pin and the power supply terminal, and a reset capacitor in series between the reset pin and the ground terminal. This allows the reset pin to remain at a low level initially upon power-up, automatically returning to a high level after a delay, thus achieving reliable system reset. This method not only simplifies the circuit structure but also effectively prevents malfunctions caused by power instability during power-up.

[0039] In conjunction with the first aspect, in one possible implementation, the button control module further includes a first filter resistor and a first filter capacitor, wherein:

[0040] The first filter resistor is connected in series between the power supply terminal of the battery management system and the connection node;

[0041] The first filter capacitor is connected in series between the ground terminal and the connection node of the battery management system.

[0042] This application forms an RC filter circuit by setting a first filter resistor and a first filter capacitor in the button control module, which enables the connection node to effectively suppress high-frequency noise and interference signals from the power supply end, thereby improving the stability and anti-interference capability of the button signal.

[0043] In conjunction with the first aspect, in one possible implementation, the interrupt module includes a second filter resistor, a second filter capacitor, and a pull-down resistor, wherein:

[0044] The second filter resistor is connected in series between the first output terminal and the interrupt pin of the button control module;

[0045] The second filter capacitor is connected in series between the ground terminal and the interrupt pin of the battery management system;

[0046] A pull-down resistor is connected in series between the first output terminal of the button control module and the ground terminal of the battery management system.

[0047] This application establishes an effective filtering and level control circuit by incorporating a second filter resistor, a second filter capacitor, and a pull-down resistor within the interrupt module. The second filter resistor and the second filter capacitor work together to form an RC filter circuit, effectively suppressing high-frequency interference signals transmitted from the first output terminal of the button control module to the interrupt pin, thus improving the stability of the interrupt signal. The pull-down resistor reliably pulls the first output terminal to a low level when there is no valid signal input, preventing the interrupt pin from being left floating or from being falsely triggered.

[0048] Secondly, this application also provides a battery management system. This battery management system includes the button circuitry found in the first aspect or any possible implementation of the first aspect.

[0049] For more detailed implementation information on the battery management system, please refer to the description of any of the implementation methods in the first aspect above.

[0050] The beneficial effects of the second aspect described above can be referred to in the first aspect or any possible implementation of the first aspect, and will not be elaborated here. Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations.

[0051] Other advantages, objectives and features of this application will be partly apparent from the description below, and partly understood by those skilled in the art through study and practice of this application. Attached Figure Description

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

[0053] Figure 1 This is a schematic diagram of an existing button circuit.

[0054] Figure 2 This is one of the schematic diagrams of the key circuit provided in the embodiments of this application;

[0055] Figure 3 This is a second schematic diagram of the key circuit provided in the embodiments of this application;

[0056] Figure 4 This is a schematic diagram of the battery management system provided in an embodiment of this application. Detailed Implementation

[0057] It should be noted that, in this application, the terms "exemplary" or "for example" are used to indicate that something is being described as an example, illustration, or illustration. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0058] The term "and / or" as used in this application includes any and all combinations of one or more of the associated listed items. In this application, "at least one" means one or more, and "more than one" means two or more. The terms "first," "second," and other ordinal terms used in this application may be used to describe various constituent elements, but these constituent elements are not limited by these terms. The purpose of using these terms is solely to distinguish one constituent element from others and should not be construed as indicating or implying relative importance. For example, without departing from the scope of this application, a first constituent element may be named a second constituent element, and similarly, a second constituent element may be named a first constituent element.

[0059] Each circuit or other component may be described or referred to as "for" performing one or more tasks. In this context, "for" is used to imply a structure by indicating that the circuit / component includes a structure (e.g., a circuit system) that performs one or more tasks during operation. Therefore, even when the specified circuit / component is currently inoperable (e.g., not turned on), it can still be referred to as "for performing that task." Circuits / components used with the term "for" include hardware, such as circuits that perform operations.

[0060] Before introducing the embodiments of this application, the background technology involved in this application will be introduced first.

[0061] With the increasing prevalence of lithium-ion battery management systems (BMS) in various battery applications, the requirements for system safety, reliability, and human-machine interaction are rising. BMS systems generally need to have button-based sleep and wake-up functions, as well as a button-based reset function. For example, in sleep mode, the BMS can be woken up by pressing a button; in operating mode, the BMS can be put into sleep mode by pressing a button; furthermore, ideally, the system can be reset by pressing a button regardless of the BMS's state.

[0062] However, most BMS systems on the market currently use software reset for their button reset function. While software reset is easy to implement, it is essentially a software-level restart, not a true system hardware reset. If the software malfunctions (such as a program freezing or crashing), the software reset signal generated by the button may not be responded to, causing the BMS to fail to resume normal operation. In this case, it is often necessary to remove the battery pack and power on again to reset the system, which is inconvenient for maintenance and affects system reliability and user experience. In addition, existing solutions usually fail to simultaneously support button sleep / wake-up and hardware reset functions, resulting in incomplete system functionality and poor compatibility and robustness.

[0063] Therefore, how to achieve a highly reliable button circuit that is compatible with button sleep / wake-up functions and supports hardware-level system reset has become an urgent problem to be solved in current BMS system technology.

[0064] refer to Figure 1 , Figure 1 This is a schematic diagram of an existing button circuit.

[0065] like Figure 1 As shown, the existing key circuit mainly consists of a lockable key, a filter resistor and capacitor, and a signal output terminal. The power supply (+3.3V) is initially filtered by a series resistor and a filter capacitor before being sent to the input terminal of the lockable key. Different pins of the key switch signals by being on or off. When the key is not pressed, some pins are on, forming a loop; when the key is pressed, other pins are on, changing the circuit state. The key output terminal, after passing through a filter resistor and a parallel filter capacitor, outputs a stable key signal to the interrupt pin (MCU_IO) of the microcontroller (MCU) in the battery management system, used to implement the system's sleep and wake-up functions. This circuit structure is simple, mainly achieving stable key signal output, and functionally relies on software logic for sleep and wake-up, lacking hardware reset functionality.

[0066] In summary, the button circuits in related technologies can only implement basic functions such as sleep / wake-up, and system reset relies on software. This results in problems such as unreliable reset in the event of software malfunctions, leading to insufficient system reliability and security. Therefore, this application provides a button circuit and battery management system that combines sleep / wake-up and hardware-level reset functions.

[0067] refer to Figure 2 , Figure 2 This is one of the schematic diagrams of the button circuit provided in the embodiments of this application.

[0068] like Figure 2As shown, the button circuit includes a button control module 101, an interrupt module 102, and a reset module 103, wherein:

[0069] The button control module 101 includes an input terminal, a first output terminal and a second output terminal. The input terminal is used to receive a power signal, the first output terminal is used to output a first button signal based on the power signal, and the second output terminal is used to output a second button signal based on the power signal.

[0070] Interrupt module 102 has its input terminal connected to the first output terminal of button control module 101 and its output terminal connected to the interrupt pin MCU_IO of battery management system. It is used to output a first level signal that can be recognized by the interrupt pin MCU_IO of battery management system according to the first button signal, so as to serve as a signal to wake up or put the battery management system into sleep mode.

[0071] The reset module 103 has its input terminal connected to the second output terminal of the button control module 101 and its output terminal connected to the reset pin MCU_RST of the battery management system. It is used to output a second level signal that the reset pin MCU_RST can recognize to the reset pin MCU_RST of the battery management system according to the second button signal, so as to reset the battery management system.

[0072] Specifically, after receiving a power signal (i.e., being connected to the +3.3V power supply), the button control module 101 can determine the type of operation performed by the user. For example, when the user performs a short press, the button control module 101 outputs a first button signal through the first output terminal; while when the user performs a long press, it outputs a second button signal through the second output terminal. In this way, the button circuit can realize multiple functions (such as wake-up / sleep and reset functions) with a single physical button, greatly improving the convenience of user operation and the integration of the circuit.

[0073] After receiving the first button signal, the interrupt module 102 outputs a first level signal that matches the level and timing requirements of the interrupt pin MCU_IO of the battery management system, thereby triggering the system to wake up or go into sleep mode.

[0074] The reset module 103 processes the second button signal and converts it into a second-level signal that can be recognized by the system's reset pin MCU_RST. When the system malfunctions or needs to be restarted, the user can reset the system by pressing and holding the button, but not limited to this method, without needing to power off the system, thus improving maintenance efficiency.

[0075] In summary, this application, through the reasonable configuration of the button control module 101, interrupt module 102, and reset module 103, enables a single button to control multiple functions of the battery management system, including system wake-up, hibernation, and reset. This simplifies the hardware structure and enhances the system's practicality and user experience. Compared with existing technologies, this solution can achieve hardware-level reset without disassembling the battery pack when software anomalies occur (such as program freezes or crashes), significantly improving the system's maintenance convenience and reliability.

[0076] In some embodiments, reference Figure 3 , Figure 3 This is a second schematic diagram of the key circuit provided in the embodiments of this application. For example... Figure 3 As shown, the button control module 101 can use a lockless button K1 (i.e., a non-locking button). The lockless button K1 has four pins, namely a first input pin (pin 2), a second input pin (pin 5), and a corresponding first output pin (pin 1) and a second output pin (pin 4).

[0077] It should be noted that the first input pin (pin 2) and the second input pin (pin 5) are connected together as the input terminals of the entire button control module 101. That is to say, no matter which input pin receives a power signal, it will be introduced into the entire button control module 101.

[0078] Meanwhile, the first output pin (pin 1) serves as the first output terminal of the button control module 101, used to output the first button signal; the second output pin (pin 4) serves as the second output terminal, used to output the second button signal.

[0079] For example, when a button is pressed, the first input pin (pin 2) is connected to the first output pin (pin 1), and the second input pin (pin 5) is connected to the second output pin (pin 4). In this way, the power signal received by the input pin is transmitted to the corresponding output pin and output as the first button signal and the second button signal.

[0080] In some embodiments, the reset module 103 includes a delay unit, a comparison unit, and a charge / discharge unit.

[0081] Specifically, the input of the delay unit is connected to the second output of the key control module 101, meaning it receives the second key signal from the unlocked key K1. The function of the delay unit is to delay this key signal, that is, after receiving the signal, it outputs it after a set time delay. This avoids misoperation caused by key bounce or accidental triggering, and enhances the stability and anti-interference capability of the system.

[0082] The input of the comparator unit is connected to the output of the delay unit, receiving the signal after delay processing. The comparator unit also receives a preset reference signal, which is used to compare the signal output by the delay unit with the reference signal. Based on the comparison result, the comparator unit outputs a first charge / discharge control signal. This signal determines the operating state of subsequent charge / discharge units, i.e., whether to perform charging or discharging operations.

[0083] The input of the charging / discharging unit is connected to the output of the comparator unit, receiving the first charging / discharging control signal from the comparator unit. Based on this control signal, the charging / discharging unit performs charging or discharging operations. Its output is connected to the reset pin MCU_RST. When the charging / discharging unit performs charging or discharging, it generates a specific level signal (i.e., the second level signal) on the reset pin MCU_RST, thereby achieving system reset control.

[0084] For example, when a user presses the unlocked button K1, the button signal is delayed by the delay unit, compared with the reference signal by the comparison unit, and a charging / discharging control signal is generated. Finally, the charging / discharging unit outputs the level signal required for reset (such as a low-level signal), thereby realizing the hardware-level reset function and effectively avoiding false triggering, thus improving the reliability and safety of the reset operation.

[0085] In some embodiments, the delay unit includes a delay resistor R12 and a delay capacitor C4. The delay resistor R12 and the delay capacitor C4 are connected in parallel and then in series between the second output terminal of the button control module 101 and the ground terminal of the battery management system. This allows for delay processing of the signal output from the button control module 101 to the reset module 103, ensuring that the signal is recognized or executed by the battery management system only after a certain delay. This avoids malfunctions caused by signal jitter or transient interference, enhancing the system's stability and anti-interference capability.

[0086] In some embodiments, the delay unit further includes a third filter resistor R5 and a third filter capacitor C3. The third filter resistor R5 is connected in series between the second output terminal of the button control module 101 and the input terminal of the comparison unit, and the third filter capacitor C3 is connected between the input terminal of the comparison unit and the ground terminal of the battery management system. The RC filter circuit formed in this way can effectively suppress interference and jitter in the button signal, thereby improving the stability and reliability of the input signal of the comparison unit.

[0087] In some embodiments, the comparison unit includes a comparator U1, a first voltage divider resistor R4, and a second voltage divider resistor R6, wherein: the inverting input pin (pin 3) of the comparator U1 serves as the input terminal of the comparison unit; the non-inverting input pin (pin 1) of the comparator U1 is connected to the connection node of the first voltage divider resistor R4 and the second voltage divider resistor R6, which is formed by connecting the first voltage divider resistor R4 and the second voltage divider resistor R6 in series between the power supply terminal (i.e., power supply +3.3V) and the ground terminal of the battery management system, and is used to provide a reference voltage for the comparator U1 as a reference signal; the output pin (pin 4) of the comparator U1 serves as the output terminal of the comparison unit; the positive power supply pin (pin 5) of the comparator U1 is connected to the power supply terminal of the system; and the negative power supply pin (pin 2) of the comparator U1 is connected to the ground terminal of the system.

[0088] This embodiment provides a stable reference voltage for comparator U1 through a voltage divider resistor network, which helps to achieve accurate comparison and judgment of input signals and improves the detection reliability of the system.

[0089] In some embodiments, the charging / discharging unit controls the level of the reset pin MCU_RST of the battery management system by setting a pull-up resistor R8 and a reset capacitor C5. The pull-up resistor R8 is connected in series between the power supply terminal of the battery management system and the reset pin MCU_RST, and the reset capacitor C5 is connected in series between the ground terminal and the reset pin MCU_RST.

[0090] For example, when the system is powered on, the reset capacitor C5 can quickly pull the MCU_RST reset pin low, so that it is in a low-level state in time, thereby realizing the effective reset of the battery management system and improving the system's startup reliability.

[0091] In some embodiments, the button control module 101 filters the input signal by setting a first filter resistor R1 and a first filter capacitor C1. The first filter resistor R1 is connected in series between the power supply terminal of the battery management system and the connection node, which is the connection node formed by connecting the first input pin (pin 2) and the second input pin (pin 5) of the unlocked button K1. The first filter capacitor C1 is connected in series between the ground terminal and this connection node. This structure can effectively filter out high-frequency interference in the power supply input signal, ensuring the stability and reliability of the button control signal.

[0092] In some embodiments, the interrupt module 102 filters and controls the level of the interrupt pin MCU_IO signal by setting a second filter resistor R2, a second filter capacitor C2, and a pull-down resistor R3. The second filter resistor R2 is connected in series between the first output terminal of the button control module 101 and the interrupt pin MCU_IO, while the second filter capacitor C2 is connected between the ground terminal of the battery management system and the interrupt pin MCU_IO to suppress high-frequency interference and stabilize the interrupt signal. The pull-down resistor R3 is connected in series between the first output terminal of the button control module 101 and the ground terminal to ensure that the interrupt pin MCU_IO remains at a low level when there is no button signal input, preventing accidental interrupt triggering.

[0093] In general, when the BMS is in sleep mode, the system's interrupt pin MCU_IO is low by default. When the unlock button K1 is pressed, the first input pin (pin 2) and the first output pin (pin 1) of the unlock button K1 are connected, the interrupt pin MCU_IO changes from low to high, and the system software starts timing. If the button is detected to be released within a short period of time (e.g., within 3-6 seconds), the BMS will be woken up and powered on.

[0094] When the BMS is in operation, the system's interrupt pin MCU_IO is also low by default. When the unlock button K1 is pressed, the first input pin (pin 2) and the first output pin (pin 1) of the unlock button K1 are connected, the interrupt pin MCU_IO changes from low to high, and the system software starts timing. If the button is detected to be released within a short time (e.g., within 3-6 seconds), the BMS will go into sleep mode and power down.

[0095] Regardless of whether the BMS is in sleep or working state, when the unlock button K1 is pressed, the second input pin (pin 5) and the second output pin (pin 4) of the unlock button K1 are connected, the reset capacitor C5 (i.e., the electrolytic capacitor) begins to charge, and the voltage of the inverting input pin (pin 3) of comparator U1 gradually rises. When the unlock button K1 is pressed continuously for a relatively long time (e.g., more than 10 seconds), the voltage of the non-inverting input pin (pin 1) of comparator U1 is lower than the voltage of the inverting input pin (pin 3), and the output pin (pin 4) of comparator U1 outputs a low-level signal, which causes the reset capacitor C5 to discharge. The level of the reset pin MCU_RST changes from high to low, triggering a system reset. When the unlock button K1 is released, the voltage of the non-inverting input pin (pin 1) of comparator U1 is higher than the voltage of the inverting input pin (pin 3), the output pin (pin 4) of comparator U1 outputs a high-level signal, the voltage of the reset capacitor C5 slowly rises to a high level, and the level of the reset pin MCU_RST returns to a high level, completing the reset.

[0096] It should be noted that those skilled in the art can adjust the pressing duration of the aforementioned unlocked button K1 according to actual needs. When the unlocked button K1 is released, its first output pin (pin 2) is connected to pin 3, and its second output pin (pin 5) is connected to pin 6. However, since pin 3 and pin 6 are floating, there is no signal output at the actual output terminal.

[0097] In addition, in this circuit design, the pull-up resistor R8 is used to ensure that the level of the reset pin MCU_RST can always remain high when the unlock button K1 is not pressed, to prevent malfunctions caused by floating.

[0098] In summary, the above button circuit design not only enables sleep and wake-up control of the BMS, but also allows for reliable reset at the hardware level when necessary, greatly improving the system's security and reliability.

[0099] Based on the same technical concept, embodiments of this application also provide a battery management system. (See references) Figure 4 , Figure 4 This is a schematic diagram of the battery management system provided in an embodiment of this application. Figure 4 As shown, the battery management system includes the button circuit 201 provided in any of the above embodiments. The button circuit 201 includes a button control module 101, an interrupt module 102, and a reset module 103. It can not only effectively control the interrupt pin of the battery management system to realize system wake-up and hibernation, but also control the reset pin of the battery management system through the hardware-level reset module 103 to reliably reset the system in the event of software abnormalities, thereby significantly improving the reliability and safety of the battery management system and meeting the functional requirements of the system in different working states such as wake-up, hibernation, and reset.

[0100] It should be noted that the order of description of the embodiments in this application is not intended to limit the priority of the embodiments.

[0101] Unless otherwise defined, all technical and scientific terms used in this application have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in this application and in its specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.

[0102] It should be noted that, unless otherwise specified, the term "connected" or "linked" in this application includes not only directly connecting two entities, but also indirectly connecting them through other entities that have beneficial improvement effects.

[0103] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many forms under the guidance of this application without departing from the spirit and scope of protection of the claims. All equivalent transformations made under the inventive concept of this application using the content of this application's specification and drawings, or direct / indirect applications in other related technical fields, are included within the patent protection scope of this application.

Claims

1. A button circuit, applied in a battery management system, characterized in that, The button circuit includes: A button control module includes an input terminal, a first output terminal, and a second output terminal. The input terminal is used to receive a power signal, the first output terminal is used to output a first button signal based on the power signal, and the second output terminal is used to output a second button signal based on the power signal. An interrupt module, whose input terminal is connected to the first output terminal of the button control module and whose output terminal is connected to the interrupt pin of the battery management system, is used to output a first level signal recognizable by the interrupt pin to the interrupt pin of the battery management system according to the first button signal, so as a signal to wake up or put the battery management system into sleep mode. The reset module has its input terminal connected to the second output terminal of the button control module and its output terminal connected to the reset pin of the battery management system. It is used to output a second level signal that can be recognized by the reset pin to the reset pin of the battery management system according to the second button signal, so as to reset the battery management system.

2. The button circuit according to claim 1, characterized in that, The button control module includes a lockable button, which includes a first input pin, a first output pin corresponding to the first input pin, a second input pin, and a second output pin corresponding to the second input pin, wherein: The connection node after the first input pin and the second input pin of the unlocked button are connected serves as the input terminal of the button control module. The first output pin of the unlocked button serves as the first output terminal of the button control module. It is used to connect with the first input pin when the unlocked button is pressed, thereby receiving the power signal transmitted by the first input pin and outputting the first button signal. The second output pin of the unlocked button serves as the second output terminal of the button control module. It is used to connect with the second input pin when the unlocked button is pressed, thereby receiving the power signal transmitted by the second input pin and outputting the second button signal.

3. The button circuit according to claim 1, characterized in that, The reset module includes: The delay unit has its input terminal connected to the second output terminal of the button control module, and is used to delay the second button signal before outputting it. A comparison unit, whose input terminal is connected to the output terminal of the delay unit, is used to compare the signal output by the delay unit with a reference signal, and output a first charge / discharge control signal based on the comparison result; The charging / discharging unit has its input terminal connected to the output terminal of the comparison unit and its output terminal connected to the reset pin. It is used to charge / discharge according to the first charging / discharging control signal to obtain the second level signal.

4. The button circuit according to claim 3, characterized in that, The delay unit includes a delay resistor and a delay capacitor. The delay resistor and the delay capacitor are connected in parallel and then in series between the second output terminal of the button control module and the ground terminal of the battery management system.

5. The button circuit according to claim 3, characterized in that, The delay unit further includes a third filter resistor and a third filter capacitor, wherein: The third filter resistor is connected in series between the second output terminal of the button control module and the input terminal of the comparison unit; The third filter capacitor is connected in series between the input terminal of the comparator unit and the ground terminal of the battery management system.

6. The button circuit according to claim 3, characterized in that, The comparison unit includes a comparator, a first voltage divider resistor, and a second voltage divider resistor, wherein: The inverting input pin of the comparator serves as the input terminal of the comparator unit; The non-inverting input pin of the comparator is connected to the ground terminal of the battery management system; The output pin of the comparator serves as the output terminal of the comparison unit. The first voltage divider resistor and the second voltage divider resistor are connected in series between the power supply terminal and the ground terminal of the battery management system; The series connection node of the first voltage divider resistor and the second voltage divider resistor is connected to the non-inverting input pin of the comparator to provide the comparator with a reference voltage as the reference signal.

7. The button circuit according to claim 3, characterized in that, The charging / discharging unit includes a pull-up resistor and a reset capacitor, wherein: The pull-up resistor is connected in series between the power supply terminal of the battery management system and the reset pin; The reset capacitor is connected in series between the ground terminal of the battery management system and the reset pin, and is used to ensure that the reset pin is at a low level in a timely manner when the power is on.

8. The button circuit according to claim 2, characterized in that, The button control module further includes a first filter resistor and a first filter capacitor, wherein: The first filter resistor is connected in series between the power supply terminal of the battery management system and the connection node; The first filter capacitor is connected in series between the ground terminal of the battery management system and the connection node.

9. The button circuit according to any one of claims 1-8, characterized in that, The interrupt module includes a second filter resistor, a second filter capacitor, and a pull-down resistor, wherein: The second filter resistor is connected in series between the first output terminal of the button control module and the interrupt pin; The second filter capacitor is connected in series between the ground terminal of the battery management system and the interrupt pin; The pull-down resistor is connected in series between the first output terminal of the button control module and the ground terminal of the battery management system.

10. A battery management system, characterized in that, Includes the button circuit as described in any one of claims 1-9.