Key input detection method, key device, battery module and battery management system

By detecting the action events of key input by timing and counting, the problem of single key function of the lithium battery management system is solved, and a single key triggers multi-task is realized, reducing the difficulty of operation and maintenance, and providing a flexible power management solution.

CN120492290APending Publication Date: 2025-08-15HANGZHOU WEIMU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510482169.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-17
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

The existing lithium battery management system has a relatively single and fixed button function, which causes users to rely on external tools when they need to perform more diverse tasks, increasing the difficulty of on-site operation and maintenance operations.

Method used

By obtaining the key action of the key, timing and counting, determining the action events input by the key based on the time and counting time and counting, realizing the detection of multiple action events, and only one key can trigger multiple tasks.

Benefits of technology

Reduces operational difficulty in operation and provides a more efficient and flexible power management solution, and users can programmatically expand key functions to trigger additional tasks without relying on external tools.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120492290A_ABST
    Figure CN120492290A_ABST
Patent Text Reader

Abstract

The invention discloses a key input detection method, a key device, a battery module and a battery management system, and relates to the technical field of key detection, and the key input detection method comprises the following steps: obtaining a key action of a key; starting first timing under the condition that the key action is pressing down, and stopping the first timing under the condition that the key action is loosening; when the key pressing action is loosening and the duration of the first timing is smaller than the first preset duration, first counting is started; determining an action event input by the key according to the duration of the first timing and / or the numerical value of the first count; the invention aims to solve the technical problem that the function corresponding to the key of the existing lithium battery management system is relatively single and fixed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of key detection, and in particular to a key input detection method, a key device, a battery module, and a battery management system. Background Art

[0002] In recent years, with the development of mobile internet and the popularization of the Internet of Things (IoT), the number of communication base stations has increased dramatically, and their energy consumption has become a major concern. Traditional lead-acid batteries, due to their low energy density, short lifespan, and environmental pollution, are gradually failing to meet the stable, efficient, and environmentally friendly requirements of modern communication base stations.

[0003] Therefore, the new generation of backup power sources based on lithium-ion technology, especially lithium iron phosphate batteries (LiFePO4), have attracted widespread attention due to their high safety, long cycle life, good temperature adaptability and environmental protection characteristics, and have gradually replaced the old energy storage solutions.

[0004] However, existing lithium battery management systems typically only have a limited number of buttons to perform basic functions, such as power on / off and mode switching, and each button can only correspond to a fixed function. When more diverse tasks need to be performed, since each button can only correspond to a fixed function, users need to rely on external tools to control the battery management system when they need to perform additional tasks, which increases the difficulty of on-site operation and maintenance. Summary of the Invention

[0005] The main purpose of this application is to provide a key input detection method, a key device, a battery module and a battery management system, aiming to solve the technical problem that the functions corresponding to the keys of the existing lithium battery management system are relatively single and fixed.

[0006] To achieve the above objectives, the present application proposes a key input detection method, comprising:

[0007] Obtaining the key action of the key;

[0008] When the key is pressed, the first timing is started, and when the key is released, the first timing is stopped;

[0009] When the button is released and the first timing duration is less than a first preset duration, starting a first count;

[0010] The action event of the key input is determined according to the duration of the first timing and / or the value of the first count.

[0011] In one embodiment, determining the action event of the key input according to the duration of the first timing and / or the value of the first count includes:

[0012] When the first timing duration is less than a first preset duration, determining that the action event of the key input is a short press input;

[0013] When the first timing duration is greater than or equal to a first preset duration, the action event of the key input is determined to be a long press input.

[0014] In one embodiment, when the first timing duration is less than a preset duration, determining that the action event of the key input is a short press input includes:

[0015] When the first timing duration is less than a first preset duration and the value of the first count is one, determining that the action event of the key input is a single-click input;

[0016] When the first timing duration is less than the first preset duration and the value of the first count is two, determining that the action event of the key input is a double-click input;

[0017] The value of the first count is cleared when it is determined that the action event of the key input is a single-click input or a double-click input.

[0018] In one embodiment, obtaining the key action of the key includes:

[0019] Obtaining the input action of the key every second preset time period;

[0020] When the input action of the key is obtained to be pressed, a second count is performed; when the input action of the key is obtained to be released, the value of the second count is cleared to zero;

[0021] When the input action of the key is obtained to be released, a third count is performed; when the input action of the key is obtained to be pressed, the value of the third count is cleared to zero;

[0022] When the value of the second count is a preset value, the key action is determined to be pressed; when the value of the second count is less than the preset value, the key action is determined to be released;

[0023] When the value of the third count is a preset value, the key action is determined to be releasing; when the value of the third count is less than the preset value, the key action is determined to be pressing.

[0024] In addition, to achieve the above purpose, the present application also proposes a key device, which includes: a state machine and a key circuit, the key circuit is electrically connected to the state machine; the state machine is used to execute any of the key input detection methods described above.

[0025] In one embodiment, the key circuit includes:

[0026] A current limiting resistor, a filter circuit, and a button, wherein a first end of the current limiting resistor is connected to a voltage source, a second end of the current limiting resistor is connected to an input end of the filter circuit, and an output end of the filter circuit is electrically connected to the state machine;

[0027] A first end of the button is connected to the input end of the filter circuit, and a second end of the button is grounded.

[0028] In one embodiment, the current limiting resistor is a first resistor, the filtering circuit includes a second resistor and a first capacitor, the first end of the first resistor is connected to a voltage source, the second end of the first resistor is respectively connected to the first end of the second resistor, the first end of the button and the first end of the first capacitor, the second end of the second resistor is electrically connected to the state machine, and the second end of the first capacitor is grounded.

[0029] In addition, to achieve the above-mentioned purpose, the present application also proposes a battery module, comprising a battery and any one of the above-mentioned key devices; the battery is electrically connected to the key device.

[0030] In addition, to achieve the above objectives, the present application also proposes a battery management system, including the battery module described above.

[0031] The key input detection method of the present application includes obtaining the key action of the key; when the key action is pressed, starting a first timer, and when the key action is released, stopping the first timer; when the key action is released and the duration of the first timer is less than a preset duration, starting a first count; and determining the action event of the key input according to the duration of the first timer and / or the value of the first count. With such a configuration, in actual application, when the key input detection method of the present application is applied, the battery management system only needs to be equipped with one key to determine multiple action events of the key input according to the duration and number of times the key is pressed. The multiple action events correspond to multiple tasks of the battery management system. The user can selectively control the duration and number of times the key is pressed according to actual needs so that the battery management system performs the corresponding tasks. In addition, when the user needs the battery management system to perform more tasks on site, it only needs to program the expanded key function (such as increasing the number of key presses or extending the duration) as a way to trigger additional tasks, without relying on external tools, thereby reducing the difficulty of operation at the operation and maintenance site and providing a more efficient and flexible power management solution for communication base stations. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0033] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0034] Figure 1 This is a flow chart of an embodiment of a key input detection method of the present application;

[0035] Figure 2 This is a flow chart of another embodiment of the key input detection method of the present application;

[0036] Figure 3 This is a schematic diagram of a module of an embodiment of the key device of the present application;

[0037] Figure 4 This is a schematic diagram of the circuit structure of an embodiment of the key device of the present application.

[0038] Description of Figure Numbers:

[0039] 10. State machine; 20. Button; 30. Current limiting resistor; 40. Filter circuit.

[0040] The purpose, features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0041] It should be understood that the specific embodiments described herein are merely used to explain the technical solutions of the present application and are not intended to limit the present application.

[0042] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0043] In recent years, with the development of mobile internet and the popularization of the Internet of Things (IoT), the number of communication base stations has increased dramatically, and their energy consumption has become a major concern. Traditional lead-acid batteries, due to their low energy density, short lifespan, and environmental pollution, are gradually failing to meet the stable, efficient, and environmentally friendly requirements of modern communication base stations.

[0044] Therefore, the new generation of backup power sources based on lithium-ion technology, especially lithium iron phosphate batteries (LiFePO4), have attracted widespread attention due to their high safety, long cycle life, good temperature adaptability and environmental protection characteristics, and have gradually replaced the old energy storage solutions.

[0045] However, existing lithium battery management systems typically only have a limited number of buttons to perform basic functions, such as power on / off and mode switching, and each button can only correspond to a fixed function. When more diverse tasks need to be performed, since each button can only correspond to a fixed function, users need to rely on external tools to control the battery management system when they need to perform additional tasks, which increases the difficulty of on-site operation and maintenance.

[0046] To this end, the present application provides a key input detection method, key device, battery module and battery management system, aiming to solve the technical problem that the functions corresponding to the keys of the existing lithium battery management system are relatively single and fixed. Figure 1 , the key input detection method includes:

[0047] Step S100: obtaining the key action of the key;

[0048] Step S200: when the key action is pressed, starting a first timing, and when the key action is released, stopping the first timing;

[0049] When the button is released and the duration of the first timing is less than the preset duration, starting the first counting;

[0050] Step S300: determining the action event of the key input according to the duration of the first timing and / or the value of the first count.

[0051] In this embodiment, the button is connected to the execution entity through the GPIO interface. The execution entity includes a state machine, an MCU (Microcontroller Unit), a DSP (Digital Signal Process), an FPGA (Field Programmable Gate Array), a SOC (System On Chip), etc. The execution entity obtains the button action of the button by detecting the pin level change of the button.

[0052] What needs to be considered is that the buttons physically have a "bouncing" phenomenon, which not only causes jitter when pressed, but also when released. If debounce processing is not performed, it may lead to misjudgment of the button status, thus affecting the stability and accuracy of the system. The existing solution is that after detecting a change in the button status, the program delays for a period of time (usually 10 to 20 milliseconds) to ensure that the jitter ends, and then reads the button status. However, during the delay period, the execution subject is fully occupied during the entire delay period and cannot perform other tasks, thereby wasting the resources of the execution subject.

[0053] In this regard, in one embodiment, reference is made to Figure 2 , the obtaining of the key action of the key includes:

[0054] Step S110: acquiring the input action of the key at every first preset time;

[0055] It should be noted that the key action of a key is the final action determined after debounce processing, and the input action is the original key state that has not been debounced and is directly read from the hardware interface. It may change frequently due to key jitter.

[0056] The input action is sampled once every first preset time (eg, 5 ms) to avoid wasting resources due to too frequent reading operations.

[0057] Step S120: when it is determined that the input action of the key is pressed, performing a first count; when it is determined that the input action of the key is released, clearing the value of the second count;

[0058] When the input action of the key is obtained to be released, a third count is performed; when the input action of the key is obtained to be pressed, the value of the third count is cleared to zero;

[0059] Step S130: When the value of the second count is a preset value, determining that the key action is pressed; when the value of the second count is less than the preset value, determining that the key action is released;

[0060] When the value of the third count is a preset value, the key action is determined to be releasing; when the value of the third count is less than the preset value, the key action is determined to be pressing.

[0061] It is understandable that in the case of key jitter, "pressed" and "released" signals may appear repeatedly in a short period of time. Only when the key state is stable for a period of time (such as multiple samples are consistent) can it be confirmed that it has been pressed.

[0062] The second count is used to determine whether the button is stably "pressed." When the second count reaches a preset value (e.g., three consecutive samples are "pressed"), the button is confirmed to be "pressed." If the second count does not reach the preset value, the button state is not continuously and stably "pressed," and the button is determined to be "released."

[0063] Similarly, the third count is used to determine whether the key is stably in the "released" state. When the value of the third count reaches a preset value (for example, three consecutive samples are "released"), the key action is determined to be "released." If the value of the third count does not reach the preset value, it indicates that the key state has not been stably "released" continuously, and in this case, the key action is determined to remain "pressed."

[0064] It should be noted that if the second count and the third count increase at the same time or are not cleared in time, it may cause the execution subject to judge that the key is both "pressed" and "released" at the same time, thereby causing a state conflict. Therefore, when the key input action is detected as "pressed", the third count (the count related to "released") is cleared, indicating that the execution subject is now focused on detecting the "pressed" state and no longer considers "released". Similarly, when the key input action is detected as "released", the second count (the count related to "pressed") is cleared, indicating that the execution subject is now focused on detecting the "released" state and no longer considers "pressed". By clearing the operation, it is ensured that the second count and the third count will not accumulate values at the same time, avoiding state conflicts, so that the execution subject will only focus on one state ("pressed" or "released") at the same time, thereby improving the clarity and reliability of the logic.

[0065] With this configuration, the debounce mechanism only requires a small amount of memory (such as a counter variable) and a timer (for the sampling interval), and the execution entity has very low occupancy. During the sampling interval, the execution entity can freely perform other tasks, thereby improving the overall efficiency of the execution entity.

[0066] In this embodiment, the first timer is used to determine the duration of a key press, and the first count is used to determine the number of times a key is pressed. This application can determine multiple action events of a key input based on the duration of the first timer. For example, determining the action event of the key input based on the duration of the first timer and / or the value of the first count includes:

[0067] Step S210: When the first timing duration is less than a first preset duration, determining that the action event of the key input is a short press input;

[0068] When the first timing duration is greater than or equal to a first preset duration, the action event of the key input is determined to be a long press input.

[0069] Among them, the first preset time length is the threshold time for distinguishing between short press and long press, and the length of the threshold time needs to be set according to the actual application scenario and user experience requirements.

[0070] With this setting, in actual application, short press input and long press input correspond to two different tasks of the battery management system respectively, so that the present application can control the battery management system to perform multiple tasks with only a single button, without the need to equip each task with a corresponding button.

[0071] In addition, when the user needs the power management system to perform additional tasks on site, the user can adjust the key input detection method of this application through programming, so that the power management system determines that the action event of the key input is an ultra-long press input when the first timing duration is greater than or equal to the second preset duration. The ultra-long press input is used to trigger the additional tasks that the power management system needs to perform, so that the user can control the power management system to perform additional tasks without relying on external tools, thereby reducing the operational difficulty at the operation and maintenance site, and providing a more efficient and flexible power management solution for communication base stations.

[0072] In this embodiment, the purpose of the first count is to detect continuous key click actions. The present application can determine the number of continuous key clicks based on the value of the first count to determine the action event of the key input. For example, based on the above step S210, when the duration of the first count is less than the first preset duration, determining that the action event of the key input is a short press input includes:

[0073] Step S211: when the first timing duration is less than a first preset duration and the value of the first count is 1, determining that the action event of the key input is a single-click input;

[0074] When the first timing duration is less than the first preset duration and the value of the first count is two, the action event of the key input is determined to be a double-click input.

[0075] With this setting, in actual application, single-click input and double-click input correspond to two different tasks of the battery management system, so that the present application can control the battery management system to perform multiple tasks with only a single button, without the need to equip each task with a corresponding button.

[0076] The value of the first count is cleared when the action event of the key input is determined to be a single-click input or a double-click input, ensuring that the execution subject is reset after determining the single-click input or the double-click input to avoid misjudgment.

[0077] In addition, when the user needs the power management system to perform additional tasks on site, the user can adjust the key input detection method of this application through programming, so that when the value of the first count is 3, 4, 5..., the power management system determines that the key input action event is a three-click, four-click, five-click and other input event. The three-click, four-click, five-click and other input events are used to trigger the additional tasks that the power management system needs to perform, so that the user can control the power management system to perform additional tasks without relying on external tools, thereby reducing the operational difficulty at the operation and maintenance site, and providing a more efficient and flexible power management solution for communication base stations.

[0078] The key input detection method of the present application includes obtaining a key press action of the key; starting a first timer when the key press action is a press, and stopping the first timer when the key release action is a release; starting a first count when the key release action is a release and the duration of the first timer is less than a preset duration; and determining an action event of the key input based on the duration of the first timer and / or the value of the first count. With such a configuration, in actual applications, when the key input detection method of the present application is applied, a battery management system only needs to be equipped with one key to determine multiple key input action events based on the duration and / or number of times the key is pressed. The multiple action events correspond to triggering multiple tasks of the battery management system. The user can selectively control the duration and number of times the key is pressed according to actual needs to cause the battery management system to perform the corresponding tasks.

[0079] In addition, when users need the battery management system to perform more tasks on site, they only need to program the expanded button functions (such as increasing the number of button presses or extending the duration) as a way to trigger additional tasks without relying on external tools, thereby reducing the difficulty of operation at the operation and maintenance site and providing a more efficient and flexible power management solution for communication base stations.

[0080] It should be noted that the execution entity of the present application may be a computing service device with data processing and program execution functions, such as a state machine, an MCU (Microcontroller Unit), a DSP (Digital Signal Process), an FPGA (Field Programmable Gate Array), or a SOC (System on Chip). The following describes steps 210 and 211 using a state machine as an example.

[0081] The state machine is used to detect whether the key action is pressed when the state bit is 0. If the key action is detected to be pressed, it generates a key pressing result and starts executing the first timing, and sets the state bit to 1; it resets when the key action is detected to be released.

[0082] The state machine is used to detect whether the key action is released when the state bit is 1. When the key action is detected to be released, it generates a key release result, sets the state bit to 2, and performs a first count (the value of the first count is 1 at this time) to enter the detection process of single-click input and double-click input;

[0083] When it is detected that the key action is pressed and the first timing duration is greater than the first preset duration, the status position is set to 4 to enter the long press input detection process.

[0084] The state machine is used to detect whether the key action is pressed again when the status bit is 2. When it is detected that the key action is pressed again, the first timing is re-executed to generate a key pressing result and set the status bit to 3; when it is detected that the key action is released, the action event of the key input is determined as a single-click input or a double-click input based on the value of the first count and reset.

[0085] The state machine is used to detect whether the key action is released when the status bit is 3. When it is detected that the key action is released and the duration of the first timing is less than the first preset duration, the first count is executed again (the value of the first count is 2 at this time) and the status position is set to 2; when it is detected that the key action is released and the duration of the first timing is greater than the first preset duration, it is reset.

[0086] The state machine is used to detect whether the key action is pressed when the state bit is 4. If the key action is not detected as pressed (that is, the key is released), the state position is set to 3 to reset the state machine; if the key action is detected as pressed, the action event of the key input is determined to be a long press input.

[0087] It should be noted that the state machine executes the corresponding detection process according to the value of the status bit and sets the status bit to 0 when reset.

[0088] The present application also provides a key device, which includes a state machine and a key circuit, wherein the key circuit is electrically connected to the state machine; the state machine is used to execute any of the key input detection methods described above.

[0089] The keypad device provided in this application, utilizing the key input detection method described in the aforementioned embodiments, can address the technical issue of the relatively single and fixed functions associated with keys in existing lithium battery management systems. Compared to the prior art, the keypad device provided in this application offers the same beneficial effects as the key input detection method described in the aforementioned embodiments. Other technical features of the keypad device are the same as those disclosed in the aforementioned embodiments and are not further elaborated here.

[0090] In one embodiment of the present application, reference Figure 3 , the key circuit includes:

[0091] A current limiting resistor 30, a filter circuit 40, and a button 20, wherein a first end of the current limiting resistor 30 is connected to a voltage source, a second end of the current limiting resistor 30 is connected to an input end of the filter circuit 40, and an output end of the filter circuit 40 is electrically connected to the state machine 10;

[0092] A first end of the button 20 is connected to the input end of the filter circuit 40 , and a second end of the button 20 is grounded.

[0093] In this embodiment, the current limiting resistor 30 is used to limit the current output from the voltage source to the state machine 10 , and the filter circuit 40 is used to smooth the level signal received by the state machine 10 to eliminate misjudgment caused by mechanical jitter.

[0094] The filter circuit 40 can be implemented by using an RC filter circuit, and the current limiting resistor 30 can be implemented by using a single resistor, for example, Figure 4 The current-limiting resistor 30 is a first resistor R1, and the filtering circuit 40 includes a second resistor R2 and a first capacitor C1. The first end of the first resistor R1 is connected to a voltage source, and the second end of the first resistor R1 is respectively connected to the first end of the second resistor R2, the first end of the button 20, and the first end of the first capacitor C1. The second end of the second resistor R2 is electrically connected to the state machine 10, and the second end of the first capacitor C1 is grounded.

[0095] The second resistor R2 and the first capacitor C1 form an RC filter circuit to smooth the level signal received by the state machine 10 and eliminate misjudgment caused by mechanical jitter.

[0096] The present application also provides a battery module, comprising a battery and any one of the above-mentioned key devices, wherein the key device is electrically connected to the battery.

[0097] It is worth noting that since the battery module of the present application is based on the above-mentioned key device, the embodiments of the battery module of the present application include all technical solutions of all embodiments of the above-mentioned key device, and the technical effects achieved are also exactly the same, which will not be repeated here.

[0098] The present application also provides a battery management system, including the above-mentioned battery module.

[0099] It is worth noting that since the battery management system of the present application is based on the above-mentioned battery module, the embodiments of the battery management system of the present application include all technical solutions of all embodiments of the above-mentioned battery module, and the technical effects achieved are also exactly the same, which will not be repeated here.

[0100] The above description is only part of the embodiments of the present application and does not limit the patent scope of the present application. All equivalent structural transformations made by using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for detecting key input, characterized in that: include: Obtaining the key action of the key; When the key is pressed, the first timing is started, and when the key is released, the first timing is stopped; When the button is released and the first timing duration is less than a first preset duration, starting a first count; The action event of the key input is determined according to the duration of the first timing and / or the value of the first count.

2. The key input detection method according to claim 1, wherein: The step of determining the action event of the key input according to the duration of the first timing and / or the value of the first count includes: When the first timing duration is less than a first preset duration, determining that the action event of the key input is a short press input; When the first timing duration is greater than or equal to a first preset duration, the action event of the key input is determined to be a long press input.

3. The key input detection method according to claim 2, wherein: When the first timing duration is less than a preset duration, determining that the action event of the key input is a short press input includes: When the first timing duration is less than a first preset duration and the value of the first count is one, determining that the action event of the key input is a single-click input; When the first timing duration is less than the first preset duration and the value of the first count is two, determining that the action event of the key input is a double-click input; The value of the first count is cleared when it is determined that the action event of the key input is a single-click input or a double-click input.

4. The key input detection method according to any one of claims 1 to 3, characterized in that: The acquiring of the key action of the key includes: Obtaining the input action of the key every second preset time period; When the input action of the key is obtained to be pressed, a second count is performed; when the input action of the key is obtained to be released, the value of the second count is cleared; When the input action of the key is obtained to be released, a third count is performed; when the input action of the key is obtained to be pressed, the value of the third count is cleared to zero; When the value of the second count is a preset value, the key action is determined to be pressed; when the value of the second count is less than the preset value, the key action is determined to be released; When the value of the third count is a preset value, the key action is determined to be releasing; when the value of the third count is less than the preset value, the key action is determined to be pressing.

5. A key device, characterized in that: The key device includes a state machine and a key circuit, and the key circuit is electrically connected to the state machine; the state machine is used to execute the key input detection method according to any one of claims 1 to 4.

6. The key device according to claim 5, wherein: The key circuit includes: A current limiting resistor, a filter circuit, and a button, wherein a first end of the current limiting resistor is connected to a voltage source, a second end of the current limiting resistor is connected to an input end of the filter circuit, and an output end of the filter circuit is electrically connected to the state machine; A first end of the button is connected to the input end of the filter circuit, and a second end of the button is grounded.

7. The key device according to claim 6, wherein: The current limiting resistor is a first resistor, and the filtering circuit includes a second resistor and a first capacitor. The first end of the first resistor is connected to a voltage source, and the second end of the first resistor is respectively connected to the first end of the second resistor, the first end of the button, and the first end of the first capacitor. The second end of the second resistor is electrically connected to the state machine, and the second end of the first capacitor is grounded.

8. A battery module, characterized in that: The invention comprises a battery and the key device according to any one of claims 5 to 7; the battery is electrically connected to the key device.

9. A battery management system, characterized in that: Comprising the battery module as claimed in claim 8.