Terminal
By adding a hardware detection circuit of a voltage detection unit and a metal sheet to the terminal, the battery status is directly detected, and the problem of poor battery status detection reliability in the prior art is solved, real-time reliable monitoring of the battery status is realized to ensure the safe operation of the terminal.
Patent Information
- Application Number
- CN202421750020.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2034-07-23
AI Technical Summary
In the prior art, the reliability of battery status detection is poor, and the current status of the battery cannot be feedback in real time, which poses a safety hazard.
The voltage detection unit and a hardware detection circuit of the metal sheet are added to the terminal, and the battery state is directly detected by detecting the change in the gap between the voltage detection unit and the metal sheet, and the controller is used to identify the level changes of the general input and output pins to realize real-time monitoring of the battery state.
Improve the reliability and real-time performance of battery status detection, ensure that the terminal operates in a safe and reliable environment, and reduce the risk caused by battery abnormalities.
Smart Images

Figure CN223193081U_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of battery technology, and in particular to a terminal. Background Art
[0002] Lithium-ion batteries are increasingly being used in devices. To meet user demands for long battery life, batteries are being designed with ever-increasing capacities, higher energy densities, and higher charging currents. To meet these demands, battery designs utilize higher energy density materials and higher voltages, as well as thinner separators and higher charging wattages. This, in turn, increases the risk of battery failure, leading to a growing number of battery quality incidents such as swelling and combustion. Therefore, battery status monitoring is essential to protect user safety.
[0003] In related technologies, battery status detection methods typically measure the battery's physical parameters, such as operating temperature, charge-discharge cycles, and changes in internal resistance. These parameters are then converted into corresponding changes to determine the battery's current status. Alternatively, changes in battery size can be indirectly detected by measuring the terminal's external dimensions to infer the battery's current status.
[0004] However, the above method is an indirect detection process and has poor reliability. Utility Model Content
[0005] In an exemplary embodiment of the present application, a terminal is provided to improve the reliability of battery status detection.
[0006] According to a first aspect of an exemplary embodiment, there is provided a terminal including at least one voltage detection unit, at least one metal sheet, a detection device, a controller, and a battery;
[0007] The number of the metal sheets is the same as the number of the voltage detection units; the positions of the metal sheets correspond to the positions of the detection units one by one; and the metal sheets are arranged at the set positions of the batteries;
[0008] A gap of a set width is formed between the voltage detection unit and the corresponding metal sheet; wherein the voltage detection unit is conductive; and the voltage detection unit is connected to at least one universal input / output pin of the detection device via at least one signal line;
[0009] The controller is used to:
[0010] The level of at least one general-purpose input / output pin is identified by the detection device.
[0011] In the terminal provided in the embodiment of the present application, a hardware detection circuit consisting of at least one voltage detection unit and at least one metal sheet is added. Since the voltage detection unit is conductive, there is a gap of a set width between it and the corresponding metal sheet, which can prevent detection errors caused by contact during the assembly process. When the battery swells, the battery thickness gradually increases, causing the distance between the voltage detection unit and the corresponding metal sheet to gradually decrease. When the battery thickness reaches a certain thickness, a short circuit occurs between the voltage detection unit on the battery and the metal sheet. The voltage detection unit is connected to at least one universal input and output pin of the detection device through at least one signal line. Therefore, after the short circuit, the controller recognizes that the level of at least one universal input and output pin has changed through the detection device. In this way, the voltage state can be detected, and the detection result is more reliable. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0013] Figure 1 The following is an exemplary diagram of a terminal system provided by an embodiment of the present application;
[0014] Figure 2 A schematic diagram exemplarily shows the positional relationship between a metal sheet and a battery provided in an embodiment of the present application;
[0015] Figure 3 A schematic diagram exemplarily shows the positional relationship between a metal sheet and a voltage detection unit provided in an embodiment of the present application;
[0016] Figure 4a A schematic diagram of a battery before swelling provided by an embodiment of the present application is exemplarily shown;
[0017] Figure 4b A schematic diagram of a battery after swelling provided by an embodiment of the present application is exemplarily shown;
[0018] Figure 5 A schematic diagram illustrating the connection between a voltage detection unit and a detection device provided in an embodiment of the present application is exemplified;
[0019] Figure 6 A schematic diagram of a detection circuit provided in an embodiment of the present application is exemplarily shown;
[0020] Figure 7 A schematic diagram of another detection circuit provided by an embodiment of the present application is exemplarily shown;
[0021] Figure 8 The following is a schematic diagram showing the structure of a terminal provided in an embodiment of the present application;
[0022] Figure 9 The flowchart of a battery status detection method provided by an embodiment of the present application is exemplified. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0024] In order to make the description of this application clearer, the following nouns are explained:
[0025] (1) Imax: The maximum battery charging current set by the terminal.
[0026] (2) C: Typical capacity of the battery when it leaves the factory.
[0027] (3) Vmax: The full-charge voltage allowed by the battery.
[0028] (4) Application permissions: determine whether different power-consuming applications in the system can be run and used.
[0029] (5) n, m, and k are customizable reduction coefficients, all less than 1. When the battery status is abnormal, the maximum values of the terminal's current, capacity, and voltage parameters can be used to limit the battery.
[0030] (6) VDD: The power domain corresponding to the general input and output pins of the system.
[0031] (7) General-purpose input / output (GPIO): The pins can be freely used by the user through program control. The pins can be used as general-purpose input, general-purpose output, or general-purpose input and output according to practical considerations. In the embodiment of the present application, GPIO represents the general-purpose input / output pins of the detection module, and the specific function of the pins is input, output, or input and output.
[0032] Related technologies, when testing battery status, can establish a relationship between internal resistance, partial discharge capacity, and charge and discharge cycles and the battery's original capacity, thereby predicting the battery's current condition. This approach requires long data collection and complex modeling, and not only does it not provide real-time feedback on the battery's current status, it also has relatively poor reliability.
[0033] In addition, related technologies indirectly detect battery size changes by detecting the terminal's external dimensions, and indirectly infer the current battery status. This approach is limited in scope and cannot provide real-time battery status detection for all users.
[0034] Therefore, both of the above methods are indirect ways to infer the current status of the battery, which is relatively unreliable. To this end, the embodiments of the present application simplify the detection mechanism in the related art and design a simple and reliable hardware detection circuit to directly detect the battery status, and control the battery and other modules accordingly through software.
[0035] To further illustrate the technical solutions provided by the embodiments of the present application, the following is a detailed description of the technical solutions in conjunction with the accompanying drawings and specific implementation methods. Although the embodiments of the present application provide the method operation steps as shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or no creative work. In steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided in the embodiments of the present application.
[0036] Figure 1 This is a system block diagram of a terminal provided in an embodiment of the present application. The terminal includes a controller 11, a detection device 12, a battery 13, at least one voltage detection unit 14, and at least one metal sheet 15. The number of voltage detection units 11 and metal sheets 15 is for illustration only and does not constitute a specific limitation. Figure 1 The figure only illustrates the components included in the terminal and does not limit the positional relationship of the components. For example, the metal sheet 15 is disposed on the battery 13, but the two are not contained in a relationship. For another example, each voltage detection unit 11 and the corresponding metal sheet 15 are stacked with a certain gap between them.
[0037] The number of metal sheets 15 is the same as the number of voltage detection units 14. For example, if there are four voltage detection units 14, there are also four metal sheets 15. The positions of the metal sheets 15 correspond one-to-one with the positions of the voltage detection units 14. The metal sheets 15 are arranged at predetermined positions on the battery 13. For example, the metal sheets 15 are arranged on the battery 13 in the form of a patch. Figure 2 A schematic diagram of the positional relationship between a metal sheet and a battery is provided in an embodiment of the present application, wherein the four metal sheets 15 are represented by metal sheet 1, metal sheet 2, metal sheet 3 and metal sheet 4 respectively. In actual application, the material and size of the four metal sheets can be the same or different.
[0038] There is a gap of a set width between the voltage detection unit 14 and the corresponding metal sheet 15. The set width here is greater than a set threshold. The design of the set threshold can be set based on the volume change of the battery 13 after swelling under normal circumstances and the space size of the battery compartment to ensure that the voltage detection unit 14 and the corresponding metal sheet 15 can contact each other after the battery 13 swells. Figure 3 A schematic diagram of the positional relationship between a metal sheet and a voltage detection unit provided in an embodiment of the present application.
[0039] For example, the battery 13 is arranged on a first side of the battery compartment of the terminal, and the voltage detection unit 14 is arranged on a second side of the battery compartment opposite to the second side. In this way, when the battery 13 swells, the voltage detection unit 14 contacts the metal sheet 15. Figure 4a This is a schematic diagram of a battery before swelling provided in an embodiment of the present application. Figure 4b A schematic diagram of a battery after swelling provided by an embodiment of the present application, wherein 161 is a first side surface of the battery compartment, and 162 is a second side surface of the battery compartment. Figure 4a In the embodiment, before expansion, there is a gap of a set width between the voltage detection unit 14 and the metal sheet 15, that is, a certain space is left, which can prevent detection errors caused by contact during the assembly process. Figure 4b After swelling, the thickness of the battery 13 gradually increases, causing the distance between the voltage detection unit 14 and the metal sheet 15 to gradually decrease. When the thickness of the battery 13 reaches a certain thickness, a short circuit will occur between the metal sheet 15 on the battery 13 and the voltage detection unit 14.
[0040] See also Figure 1 The voltage detection unit 14 is connected to at least one GPIO pin of the detection device 12 via at least one signal line. The controller 11 is configured to identify the voltage level of the at least one GPIO pin through the detection device 12, and further determine the current state of the battery 13 based on the number of GPIO pins detected with a high voltage level. Each voltage detection unit 14 can serve as a detection point and has the same structure, but is connected to different GPIO pins.
[0041] Taking four voltage detection units 14 (respectively referred to as the first voltage detection unit, the second voltage detection unit, the third voltage detection unit and the fourth voltage detection unit) as an example, in one case, one voltage detection unit 14 is connected to one general input / output pin; in another case, one voltage detection unit 14 is connected to at least two general input / output pins.
[0042] Among them, when a voltage detection unit 14 is connected to a general input and output pin, the first voltage detection unit can be connected to the first general input and output pin GPIO1; the second voltage detection unit can be connected to the second general input and output pin GPIO2; the third voltage detection unit can be connected to the third general input and output pin GPIO3; and the fourth voltage detection unit can be connected to the fourth general input and output pin GPIO4.
[0043] Alternatively, when a voltage detection unit 14 is connected to two general-purpose input / output pins, the first voltage detection unit can be connected to the first general-purpose input / output pin GPIO1 and the second general-purpose input / output pin GPIO2 of the detection device 12; the second voltage detection unit is connected to the first general-purpose input / output pin GPIO1 and the third general-purpose input / output pin GPIO3 of the detection device 12; the third voltage detection unit is connected to the second general-purpose input / output pin GPIO2 and the fourth general-purpose input / output pin GPIO4 of the detection device 12; and the fourth voltage detection unit is connected to the third general-purpose input / output pin GPIO3 and the fourth general-purpose input / output pin GPIO4 of the detection device 12. Figure 5 Schematic diagram of the connection between a voltage detection unit and a detection device 12 in an embodiment of the present application.
[0044] When a voltage detection unit 14 is connected to three or more general input and output pins, the general input and output pins connected to each voltage detection unit 14 can be ensured to be different based on the number of voltage detection units 14 and the number of general input and output pins, so as to complete the detection of the battery status. This will not be repeated here.
[0045] In an embodiment of the present application, a detection circuit for detecting the battery status is deployed in the terminal to directly detect the battery status. A simple peripheral detection circuit is added to the original hardware of the terminal to achieve real-time detection of the battery status, and corresponding application parameters of other modules of the terminal are set according to the detected battery status, thereby assisting other modules to operate in a more reliable and secure environment. Therefore, using the detection structure provided in an embodiment of the present application to detect the battery 13 is more cost-effective and reliable, and can also be generalized to other types of devices.
[0046] Next, the battery status detection mechanism is explained through different situations.
[0047] In the first case, each voltage detection unit 14 includes one port.
[0048] In this case, one port of each voltage detection unit 14 is connected to a universal input / output pin of the detection device 12 via a signal line; any two voltage detection units 14 are connected to different universal input / output pins of the detection device 12 .
[0049] This situation is further divided into the following situations:
[0050] A1. The number of the voltage detection unit 14 is 1.
[0051] Taking the first voltage detection unit as an example, the first voltage detection unit includes a detection chip and a power chip. The port of the detection chip is connected to the first general-purpose input / output pin of the detection device 12, and the first general-purpose input / output pin is grounded through a first resistor. The power chip is connected to the power supply terminal of the detection device 12 through a second resistor. The detection chip can serve as the port of the first voltage detection unit.
[0052] A2. The number of voltage detection units 14 is 2 or more.
[0053] The structure and connection relationship of each voltage detection unit 14 may refer to the first voltage detection unit.
[0054] Figure 6 This is a schematic diagram of a detection circuit provided in an embodiment of the present application, where the number of voltage detection units 14 is four.
[0055] Taking the first voltage detection unit as an example, when the battery status is normal, the detection piece and the power piece are not in contact, the voltage of the power piece is at a high level (the voltage is VDD), and the voltage detected by the controller 11 through the GPIO1 pin of the detection device 12 is 0V; when the battery 13 swells to a certain extent, the detection piece and the power piece are in contact, and the detection piece and the power piece are short-circuited with each other through the metal piece 15 on the battery 13. Since the power piece is pulled up to VDD through R1, and the first general input and output pin GPIO1 is pulled down to ground through R2. Therefore, after the short circuit, the voltage of GPIO1 is no longer 0V, but VDD*R2 / (R2+R1). In this way, the detection module detects the change of the state of GPIO1 from low to high, thereby determining that an abnormality has occurred in the first voltage detection unit. The working principles of the remaining voltage detection units are the same as those of the first voltage detection unit and will not be repeated here.
[0056] Based on the principle of general-purpose input / output pins, when the voltage is less than V1, it is determined to be a low level; when the voltage is greater than V2, it is determined to be a high level. V1 and V2 are related to the pin characteristics. The values of R1 and R2 can be set so that VDD*R2 / (R2+R1) is greater than or equal to V2.
[0057] In the second case, each voltage detection unit 14 includes at least two ports.
[0058] In this case, at least two ports of each voltage detection unit 14 are connected to at least two different general input / output pins; any two voltage detection units 14 are connected to different general input / output pins of the detection device 12 .
[0059] This situation is further divided into the following situations:
[0060] B1: The number of the voltage detection unit 14 is one.
[0061] Taking the first voltage detection unit as an example, the first voltage detection unit includes a first detection chip, a second detection chip, and a power chip. The port of the first detection chip is connected to the first general-purpose input / output pin of the detection device 12. The first general-purpose input / output pin is grounded via a first resistor. The port of the second detection chip is connected to the second general-purpose input / output pin of the detection device 12. The second general-purpose input / output pin is grounded via a first resistor. Both the first detection chip and the second detection chip can serve as the ports of the first voltage detection unit.
[0062] B2. The number of voltage detection units 14 is 2 or more.
[0063] The structure and connection relationship of each voltage detection unit 14 can be referred to the first voltage detection unit
[0064] Figure 7 This is a schematic diagram of a detection circuit provided in an embodiment of the present application, where the number of voltage detection units 14 is four.
[0065] Taking the first voltage detection unit as an example, when the battery is in normal condition, the detection chip is not in contact with the power chip, and the voltage of the power chip is high (VDD). The voltage detected by the controller 11 through the GPIO1 and GPIO3 pins of the detection device 12 is 0V. When the battery 13 swells to a certain extent, the first detection chip contacts the power chip, and the first detection chip and the power chip are short-circuited to each other through the metal plate 15 on the battery 13. Because the power chip is pulled up to VDD through R1, and the first general-purpose input / output pin GPIO1 is pulled down to ground through R2, after the short circuit, the voltage of GPIO1 is no longer 0V, but VDD*R2 / (R2+R1). In addition, the second detection chip contacts the power chip, so after the short circuit, the voltage of GPIO3 is also VDD*R2 / (R2+R1). In this way, the detection module detects the change in the status of GPIO1 and GPIO3 from low to high, thereby determining that an abnormality has occurred in the first voltage detection unit. The operating principles of the remaining voltage detection units 14 are the same as those of the first voltage detection unit and are not further described here.
[0066] In an embodiment of the present application, the four general input and output pins of the detection module are respectively connected to the four voltage detection units 14 through four signal detection lines, wherein the signal detection lines connected to GPIO1 and GPIO2 are horizontal detection lines, and the signal detection lines connected to GPIO3 and GPIO4 are vertical detection lines.
[0067] Next, the battery status detection principle is described through steps C1-C4, which are executed by the controller 11:
[0068] C1: Identifies the general input / output pin whose output level is high.
[0069] C2: Determine the number of abnormal voltage detection units 14 based on the general-purpose input / output pins whose output levels are high.
[0070] The number of abnormal voltage detection units 14 can be determined by referring to the aforementioned logic for determining whether the voltage detection unit 14 is abnormal.
[0071] C3: Compare the quantity with the preset configuration rules to determine the working state of the battery 13 and the parameter value of the application parameter corresponding to the working state.
[0072] The application parameters include the maximum charging current, available capacity, full-charge voltage, and some or all of the application permission level of the battery 13. Table 1 is a corresponding table of battery status and application parameters provided in an embodiment of the present application.
[0073] Table 1 Correspondence between battery status and application parameters
[0074]
[0075]
[0076] C4: Configure the parameter values of the application parameters to the corresponding modules.
[0077] With reference to Table 1, different battery states are described with examples.
[0078] The detection module continuously detects the status of each voltage detection unit 14 through four signal lines. When the detection module does not detect an abnormal voltage detection unit 14, the controller 11 considers that the battery status is excellent at this time. After the controller 11 confirms that the battery status is excellent, it searches Table 1 stored in the storage module, confirms the application parameters that should be set at this time, and configures the corresponding application parameters to the power supply and application module and the charging module. When the battery 13 is excellent, there is no restriction on the charging current, full-charge voltage and application permissions, and the maximum value and highest permission set by the system are used (charging current 1*Imax, available capacity 1*C, full-charge voltage Vmax, application permissions are available for all applications).
[0079] In order to avoid false detection, each time the detection module detects an abnormality in a detection unit, it can wait for a certain delay time. In this way, it can be ensured that the abnormality detected this time is reasonable, rather than a short-term abnormality caused by falling or battery 13 movement.
[0080] When an abnormality is detected in one voltage detection unit 14 and the other three voltage detection units 14 are normal, the detection module reports this information to the controller 11. The controller 11 determines that the battery status is good at this time, confirms it by searching Table 1 in the storage module, and sets different application parameters for the corresponding modules. The charging module limits the maximum charging current to n*Imax, the full-charge voltage of the battery 13 is Vmax-0.1V, and the available battery capacity of the battery 13 module is n*C. The application permission is to limit the use of applications with high current consumption (such as games). At this time, it is necessary to inform the user through the display module and / or audio module.
[0081] When two voltage detection units 14 are detected to be abnormal and the other two voltage detection units 14 are normal, the detection module reports this information to the controller 11. The controller 11 determines that the battery status is medium at this time, and confirms it by searching Table 1 in the storage module and sets different application parameters for the corresponding modules. The charging module limits the maximum charging current to m*Imax, the full-charge voltage of the battery 13 is Vmax-0.25V, and the available battery capacity of the battery 13 module is m*C. The application permission is to limit the use of applications with high current consumption (such as games). At this time, it is necessary to inform the user through the display module and / or audio module.
[0082] When it is detected that three voltage detection units 14 are abnormal and the remaining one voltage detection unit 14 is normal, the detection module reports this information to the controller 11. The controller 11 determines that the battery status is poor at this time, and confirms it by searching Table 1 in the storage module and sets different application parameters for the corresponding modules. The charging module limits the maximum charging current to k*Imax, the full-charge voltage of the battery 13 is Vmax-0.4V, and the available battery capacity of the battery 13 module is k*C. The application permissions are to retain only basic functions (such as calls and text messages, etc.), and other applications are no longer allowed to be used. At this time, the battery status is already very poor, and the user needs to be informed through the display module and / or audio module to ensure that the user can receive the information in the first time.
[0083] When an abnormality is detected in the four voltage detection units 14, the detection module reports this information to the controller 11. The controller 11 determines that the battery status is dangerous and the battery 13 has been seriously deformed. In this case, it is necessary to inform the user through the display module and / or audio module. After the user confirms, the terminal is shut down and the user replaces the battery 13.
[0084] In summary, in the embodiment of the present application, the detection device 12 of the terminal extends to the battery 13 through four signal lines, and determines the current status of the battery 13 through the status of the four voltage detection units 14. If the battery 13 is abnormal, the general input and output pins connected to the detection module of the voltage detection unit 14 will change from low level to high level, and the change will be acquired by the detection device 12. The detection device 12 transmits this information to the controller 11, and the controller 11 determines the number of abnormal voltage detection units 14, confirms the battery status by table lookup and other methods, and sets corresponding application parameters for other modules (such as charging module, power supply and application module, etc.). The user can receive battery status information through the display module and voice module.
[0085] Figure 8 This is a schematic diagram of the structure of a terminal provided in an embodiment of the present application. The controller 11, serving as the terminal's central processing unit, aggregates the detection module's test results and determines the current state of the battery 13 using a software algorithm configured with internal resistance. Based on the battery status, the controller searches the storage module for the corresponding state, configures application parameters for the corresponding peripheral modules, and notifies the user via the display and voice modules.
[0086] The storage module stores the battery status and corresponding application parameters required by the software algorithm (e.g., the various application parameters mentioned in Table 1). The display module is used for human-computer interaction, for example, it can display information about changes to the battery status and application parameters, and is also the user interface for operating the terminal and various applications. The voice module is also used for human-computer interaction, and can provide alarm communication when an abnormality in the battery 13 is detected, and also provide audio services for users when using applications and other functions.
[0087] See also Figure 8 , using 4 signal detection lines, continuously and in real time detect the current status of battery 13, the power supply and application module provides power supply for the terminal, and provides various applications for users to use. This module is powered by battery 13, and can set application parameters such as the operating voltage range, power range, discharge current threshold, and application permissions of battery 13. The charging module is used to charge battery 13, and can set application parameters such as charging power and full-charge voltage. Battery 13 can be in the form of a battery 13 group, which can provide an energy supply module for the terminal. The battery 13 group is mainly a lithium-ion battery, which can be in the form of a single cell or a multi-cell combination.
[0088] like Figure 9 As shown, based on the same utility model concept, an embodiment of the present application provides a battery status detection method, which can be applied to the terminal of the above embodiment. More specifically, the method can be applied to the controller in the terminal of the above embodiment. The method includes at least the following steps:
[0089] S901: Identify the general input / output pins whose output level is high.
[0090] The implementation of this step can be found in step C1 and will not be described in detail here.
[0091] S902: Determine the number of abnormal voltage detection units according to the general input / output pins whose output levels are high.
[0092] The implementation of this step can be found in step C2 and will not be described in detail here.
[0093] S903: Compare the quantity with a preset configuration rule to determine the working state of the battery and the parameter value of the application parameter corresponding to the working state.
[0094] The implementation of this step can be found in step C3 and will not be described in detail here.
[0095] S904: Configure the parameter values of the application parameters to the corresponding modules.
[0096] The application parameters include the maximum charging current, available capacity, full-charge voltage of the battery, and part or all of the application permission level.
[0097] The implementation of this step can be found in step C4 and will not be described in detail here.
[0098] Obviously, those skilled in the art may make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include these modifications and variations.
Claims
1. A terminal, characterized in that: The device comprises at least one voltage detection unit, at least one metal sheet, a detection device, a controller and a battery; The number of the metal sheets is the same as the number of the voltage detection units; the positions of the metal sheets correspond to the positions of the detection units in a one-to-one manner; and the metal sheets are arranged at set positions of the batteries; There is a gap of a set width between the voltage detection unit and the corresponding metal sheet; wherein the voltage detection unit is conductive; The voltage detection unit is connected to at least one general input / output pin of the detection device via at least one signal line; The controller is used to: The level of the at least one general purpose input / output pin is identified by the detection device.
2. The terminal according to claim 1, wherein Each voltage detection unit includes a port; One port of each voltage detection unit is connected to a general input / output pin of the detection device via a signal line; Any two voltage detection units are connected to different general input and output pins of the detection device.
3. The terminal according to claim 2, characterized in that The at least one voltage detection unit includes a first voltage detection unit; The first voltage detection unit includes a detection piece and a power supply piece; The port of the detection piece is connected to a first general input / output pin of the detection device, and the first general input / output pin is grounded via a first resistor; The power supply chip is connected to the power supply terminal of the detection device through a second resistor. The terminal according to claim 1 , wherein: Each voltage detection unit includes at least two ports; At least two ports of each voltage detection unit are connected to different general input and output pins; Any two voltage detection units are connected to different general input and output pins of the detection device. The terminal according to claim 4 , wherein: The at least one voltage detection unit includes a first voltage detection unit; The first voltage detection unit includes a first detection piece, a second detection piece and a power supply piece; The port of the first detection chip is connected to the first general input / output pin of the detection device; the first general input / output pin is grounded through a first resistor; The port of the second detection piece is connected to the second general input / output pin of the detection device; the second general input / output pin is grounded through the first resistor. The terminal according to claim 1 , wherein: The at least one voltage detection unit includes a first voltage detection unit, a second voltage detection unit, a third voltage detection unit and a fourth voltage detection unit; The first voltage detection unit is connected to the first general purpose input / output pin and the second general purpose input / output pin of the detection device; The second voltage detection unit is connected to the first general purpose input / output pin and the third general purpose input / output pin of the detection device; The third voltage detection unit is connected to the second general input and output pin and the fourth general input and output pin of the detection device; The fourth voltage detection unit is connected to the third general purpose input / output pin and the fourth general purpose input / output pin of the detection device.
7. The terminal according to claim 1, characterized in that The controller is also used for: Identify the general-purpose input / output pins whose output level is high; Determine the number of abnormal voltage detection units according to the general input / output pins whose output levels are high; Comparing the number with a preset configuration rule to determine the working state of the battery and the parameter value of the application parameter corresponding to the working state; Configuring the parameter values of the application parameters to the corresponding modules; The application parameters include part or all of the maximum charging current, available capacity, full-charge voltage, and application permission level of the battery. The terminal according to claim 7 , wherein: The corresponding charging module includes part or all of the power supply and application module, the charging module, and the storage module.
9. The terminal according to claim 1, wherein: The set width is greater than a set threshold.
10. The terminal according to any one of claims 1 to 9, characterized in that: The battery is arranged on a first side of the battery compartment of the terminal; The voltage detection unit is disposed on a second side surface of the battery compartment opposite to the first side surface.