Battery detection circuit and communication device

By using a switching module in the battery detection circuit to control whether the battery is in place based on voltage changes, the system failure problem caused by battery abnormalities during charging is solved, and stable protection of the equipment is achieved.

CN224342924UActive Publication Date: 2026-06-09HYTERA COMM CORP

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
HYTERA COMM CORP
Filing Date
2025-05-23
Publication Date
2026-06-09

Smart Images

  • Figure CN224342924U_ABST
    Figure CN224342924U_ABST
Patent Text Reader

Abstract

This application provides a battery detection circuit and a communication device. The battery detection circuit includes a voltage input terminal, a first energy storage unit, a first switch module, a second switch module, and a signal output terminal. During battery charging: when the voltage at the control terminal of the first switch module is greater than the voltage at the first terminal, the first switch module is turned off and controls the second switch module to turn off, and the signal output terminal outputs a first enable signal; the first enable signal is used to control the communication device corresponding to the battery detection circuit to operate normally. When the battery is removed, when the voltage at the control terminal of the first switch module is less than the voltage at the first terminal, the first switch module is turned on and controls the second switch module to turn on, and the signal output terminal outputs a second enable signal; the second enable signal is used to control the communication device corresponding to the battery detection circuit to shut down. Through the above method, by utilizing the control of the switch modules, damage caused by changes in the output voltage of the charging IC due to battery removal during charging is avoided, thus protecting the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates primarily to the field of communication circuit technology, and in particular to battery detection circuits and communication equipment. Background Technology

[0002] All communication devices require batteries, such as walkie-talkies, mobile phones, and POS machines, and these batteries need to be charged using methods such as Type-C.

[0003] During the charging process, abnormal charging (e.g., the battery is not in the charging circuit) and abnormal system operation may occur due to the removable design of the battery or battery deformation. Utility Model Content

[0004] The main purpose of this application is to provide a battery detection circuit and communication device to solve the problem that changes in the charging output voltage may cause system abnormalities when the battery is not in place during the charging and battery insertion / removal process of the device, so as to protect the system, maintain the working stability of the device system, and avoid damage to the device.

[0005] To address the aforementioned issues, this application provides a battery detection circuit and a communication device. The battery detection circuit includes: a voltage input terminal for receiving an input voltage provided by a charging control unit; a first energy storage unit connected to the voltage input terminal; a first switch module with its control terminal connected to the voltage input terminal and its first terminal connected to the first energy storage unit; a second switch module with its control terminal connected to its second terminal and its first terminal connected to the voltage input terminal; and its second terminal grounded; and a signal output terminal connected to the first terminal of the second switch module. When the charging control unit connects to an external charger to charge the battery, the first switch module disconnects and controls the second switch module to disconnect, and the signal output terminal outputs a first enable signal. When the battery is removed, the first energy storage unit provides voltage to the first terminal of the first switch module, the first switch module is turned on, and controls the second switch module to turn on, and the signal output terminal outputs a second enable signal. The second enable signal is used to control the communication device corresponding to the battery detection circuit to shut down.

[0006] To address the aforementioned issues, this application also provides a communication device comprising: a battery; and a battery detection circuit for detecting whether the battery is present, wherein the battery detection circuit is the same as described in the above embodiments.

[0007] This application provides a battery detection circuit and a communication device. The battery detection circuit includes: a voltage input terminal, a first switch module, a second switch module, and a signal output terminal. When the battery is charging, the voltage at the control terminal of the first switch module is greater than the voltage at the first terminal, causing the first switch module to open and control the second switch module to open, thereby outputting a first enable signal from the signal output terminal. The first enable signal is used to control the communication device corresponding to the battery detection circuit to operate normally. When the battery is removed, the voltage at the control terminal of the first switch module is less than the voltage at the first terminal, causing the first switch module to turn on and control the second switch module to turn on, thereby outputting a second enable signal from the signal output terminal. The second enable signal is used to control the communication device corresponding to the battery detection circuit to shut down. Through the above method, the first and second switch modules implement different on / off control logics based on the voltage changes input at the voltage input terminal, corresponding to the output of different enable signals. This allows the communication device to control the system to shut down or maintain its operating state based on the enable signals, thus avoiding damage caused by changes in the output voltage of the charging IC due to battery abnormalities during charging (such as the battery not actually being in the charging circuit), thereby protecting the system. Attached Figure Description

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

[0009] Figure 1 This is a schematic diagram of the structure of the first embodiment of the battery detection circuit provided in this application;

[0010] Figure 2 This is a schematic diagram of the structure of the second embodiment of the battery detection circuit provided in this application;

[0011] Figure 3 This is a schematic diagram of the third embodiment of the battery detection circuit provided in this application;

[0012] Figure 4 This is a schematic diagram of the fourth embodiment of the battery detection circuit provided in this application;

[0013] Figure 5 This is a simulation diagram of the first embodiment of the output voltage provided in this application;

[0014] Figure 6 This is a simulation diagram of the output voltage in the second embodiment provided in this application;

[0015] Figure 7 This is a schematic diagram of the fifth embodiment of the battery detection circuit provided in this application;

[0016] Figure 8 This is a schematic diagram of the sixth embodiment of the battery detection circuit provided in this application;

[0017] Figure 9 This is a schematic diagram of the seventh embodiment of the battery detection circuit provided in this application;

[0018] Figure 10 This is a schematic diagram of the eighth embodiment of the battery detection circuit provided in this application;

[0019] Figure 11 This is a schematic diagram of the software control flow in one embodiment of the battery detection circuit provided in this application;

[0020] Figure 12 This is a schematic diagram of the structure of an embodiment of the communication device provided in this application.

[0021] Icon labels:

[0022] Battery detection circuit 100; voltage input terminal 10; first switch module 20; first transistor Q1; first energy storage unit 21; diode D1; first resistor R1; first capacitor C1; second switch module 30; second transistor Q2; second energy storage unit 31; second resistor R2; second capacitor C2; signal output terminal 40; voltage divider module 50; third resistor R3; fourth resistor R4; fifth resistor R5; third capacitor C3; sixth resistor R6; seventh resistor R7; communication device 200; main body 210; battery 220; third transistor Q3; 60; third switch module. Detailed Implementation

[0023] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It is understood that the specific embodiments described herein are only for explaining this application and not for limiting it. Furthermore, it should be noted that, for ease of description, only the parts related to this application are shown in the accompanying drawings, not all structures. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0024] The terms "first," "second," etc., used in this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0025] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0026] With the development and progress of the times, in order to meet the target requirements for carbon peaking, current electronic devices are gradually adopting the design of removable batteries. However, in the current removable battery design, the following problems may occur when charging with a data cable:

[0027] 1. If the battery is removed during charging, it will cause abnormalities in the charging process, which in turn will cause system malfunctions, resulting in equipment damage.

[0028] 2. Charging with a data cable when the battery is not plugged in can cause system malfunctions, resulting in device damage.

[0029] Therefore, for handheld products with removable batteries, battery insertion / removal identification is required. When the battery is removed, applications should be restricted and the device powered off, and the charging IC should be stopped to prevent system malfunctions. This application proposes a battery detection circuit and communication device that detects whether the battery is in the charging loop during charging using a circuit-based approach. This eliminates the need for additional mechanical structures or special battery treatment, and the circuit is relatively simple and reliable.

[0030] See Figure 1 , Figure 1This is a schematic diagram of the structure of the first embodiment of the battery detection circuit provided in this application; wherein, the battery detection circuit 100 includes: a voltage input terminal 10, a first energy storage unit 21, a first switch module 20, a second switch module 30, and a signal output terminal 40; the specific relationships between the components are as follows: the voltage input terminal 10 receives the input voltage; the input voltage is provided by the charging control unit; the control terminal of the first switch module 20 is connected to the voltage input terminal 10, and the first terminal of the first switch module 20 is connected to the first energy storage unit 21; the control terminal of the second switch module 30 is connected to the second terminal of the first switch module 20; the first terminal of the second switch module 30 is connected to the voltage input terminal 10; the second terminal of the second switch module 30 is grounded; the signal output terminal 40... Output terminal 40 is connected to the first terminal of the second switch module 30. During the charging process of the external charger connecting the charging control unit to charge the battery: the first switch module 20 responds to the voltage at the control terminal being greater than the voltage at the first terminal, the first switch module 20 is disconnected, and controls the second switch module 30 to be disconnected, thereby outputting a first enable signal from the signal output terminal 40; the first enable signal is used to control the communication device corresponding to the battery detection circuit to operate normally; when the battery is removed, the voltage at the control terminal of the first switch module 20 is less than the voltage at the first terminal, the first switch module 20 is turned on, and controls the second switch module 30 to be turned on, thereby outputting a second enable signal from the signal output terminal 40; the second enable signal is used to control the communication device corresponding to the battery detection circuit to shut down.

[0031] In this scheme, by adjusting the voltage input at the voltage input terminal 10 according to different voltage changes, different on / off logic controls are implemented on the first switch module 20 and the second switch module 30. This results in different enable signals being output at the signal output terminal 40 under different input voltage states at the voltage input terminal 10. This allows for the determination of whether the battery is present and the completion of different control operations on the system. Furthermore, when the battery is detected to be absent during charging, the system is powered off to prevent malfunctions caused by changes in input voltage when the battery is disconnected while the data cable is connected for charging, or when the battery is disconnected but the data cable is still connected for charging. This protects the system and maintains its stable operating state.

[0032] Corresponding to the above embodiment, the first switch module 20 and the second switch module 30 are specifically configured in other embodiments as follows:

[0033] In one embodiment, such as Figure 2 , Figure 2This is a schematic diagram of the structure of the second embodiment of the battery detection circuit provided in this application; wherein, the first switch module 20 includes: a first transistor Q1, the control terminal of the first transistor Q1 is connected to the voltage input terminal 10, the second terminal of the first transistor Q1 is connected to the control terminal of the second switch module 30; the first terminal of the first transistor Q1 is connected to the first energy storage unit 21; wherein, when the battery is charging, the power input terminal 10 charges the first energy storage unit 21; when the battery is disconnected, the voltage at the control terminal of the first transistor Q1 decreases, and the first energy storage unit 21 provides voltage to the first terminal of the first transistor Q1, so that the voltage at the control terminal of the first transistor Q1 is less than the voltage at the first terminal of the first transistor Q1, and the first transistor Q1 is turned off.

[0034] In this embodiment, the switching function is achieved through the first transistor Q1. In one embodiment, the first transistor Q1 is a P-type MOS transistor, the control terminal of the first transistor Q1 is the gate terminal, the first terminal of the first transistor Q1 is the source terminal, and the second terminal of the first transistor Q1 is the drain terminal. It can be understood that the charging IC will have two extreme values ​​when the output voltage fluctuates. At the beginning, when the input voltage is the peak value VH, the voltage Vg at the control terminal of the first transistor Q1 is approximately equal to the peak voltage VH. Due to the first energy storage unit 21, the voltage at the voltage input terminal 10 will charge and store energy for the first energy storage unit 21. At this time, the voltage at the first terminal of the first transistor Q1 is Vs, and the voltage at the gate terminal of the first transistor Q1 is greater than the voltage at the source terminal, that is, Vg≥Vs. The first transistor Q1 is turned off, thereby pulling down the voltage at the control terminal of the second switching module 30, controlling the subsequent second switching module 30 to be turned off, and realizing the output of the first enable signal. When the battery is removed, the input voltage drops to VL, and the voltage Vg at the control terminal of the first transistor Q1 also drops to near VL. Due to the presence of the first energy storage unit 21, it can provide voltage to the first terminal of the first transistor Q1 so that the voltage at the control terminal of the first transistor Q1 is less than the voltage at the first terminal of the first transistor Q1, i.e., Vg≤Vs. The first transistor Q1 is turned on, thereby raising the voltage at the control terminal of the second switching module 30, controlling the subsequent second switching module 30 to turn on, and realizing the output of the second enable signal.

[0035] In one embodiment, such as Figure 3 , Figure 3This is a schematic diagram of the third embodiment of the battery detection circuit provided in this application; wherein, the first energy storage unit 21 includes: a diode D1, a first resistor R1 and a first capacitor C1; specifically, the anode of the diode D1 is connected to the voltage input terminal 10; the first end of the first resistor R1 is connected to the cathode of the diode D1, and the second end of the first resistor R1 is connected to the first terminal of the first transistor Q1; the first end of the first capacitor C1 is connected to the second end of the first resistor R1, and the second end of the first capacitor C1 is grounded; wherein, when the battery is disconnected, the first capacitor C1 provides a voltage to the first terminal of the first transistor Q1, so that the voltage at the control terminal of the first transistor Q1 is less than the voltage at the first terminal of the first transistor Q1, and the first transistor Q1 is turned on.

[0036] Understandably, when the input voltage is at its valley value VL, the voltage at the control terminal of the first transistor Q1 will drop rapidly to VL. Due to the presence of diode D1 and first resistor R1, the reverse cutoff of diode D1 and the energy storage formed by first resistor R1 and first capacitor C1 allow the first terminal of the first transistor Q1 to maintain the peak voltage VH for a period of time. At this time, the voltage difference between the control terminal and the first terminal of the first transistor Q1 is greater than the switching threshold of the first transistor Q1. Therefore, the first transistor Q1 is turned on, which in turn controls the second switching module 30 to be turned on. The turn-on of the second switching module 30 will directly pull down the enable signal, that is, output the second enable signal, triggering the power-down operation of the system.

[0037] In the above manner, the first switch module 20 can realize on / off control according to different voltage values ​​input at the voltage input terminal 10, thereby outputting different enable signals to correspond to the two different voltage output situations when the battery is in place or not in place during the charging process.

[0038] In one embodiment, such as Figure 4 As shown, Figure 4 This is a schematic diagram of the fourth embodiment of the battery detection circuit provided in this application; the second switching module 30 includes: a second transistor Q2, the control terminal of the second transistor Q2 is connected to the second terminal of the first switching module 20, the first terminal of the second transistor Q2 is connected to the voltage input terminal 10, and the second terminal of the second transistor Q2 is grounded. In one embodiment, the second transistor Q2 is an N-type MOS transistor, the control terminal of the second transistor Q2 is the gate terminal, the first terminal of the second transistor Q2 is the source terminal, and the second terminal of the second transistor Q2 is the drain terminal.

[0039] For the charging IC, when the power cord (e.g., Type-C) is in place and connected to an external charger, but the battery is removed and not in place, the voltage output includes the following scenarios:

[0040] 1. The output voltage drops regularly:

[0041] like Figure 5 As shown, Figure 5 This is a simulation diagram of the first embodiment of the output voltage provided in this application. In this embodiment, when the power cord is connected but the battery is disconnected, the output voltage of the charging IC will drop. This phenomenon occurs because the charging IC triggers an overvoltage protection mechanism when the battery is de-energized, thus preventing damage to downstream components. When the output voltage rises again, it can cause system malfunctions, and in more serious cases, damage to the chip.

[0042] 2. The output voltage exhibits a triangular wave:

[0043] like Figure 6 As shown, Figure 6 This is a simulation diagram of the output voltage in the second embodiment provided in this application; similarly, when the power cord is connected in place but the battery is removed, the output voltage of the charging IC may also exhibit a triangular wave shape. This phenomenon occurs because a triangular wave needs to be generated to detect whether the battery will be reinserted. This method is to actively adjust the voltage to identify the current, but this method will cause voltage fluctuations. Voltage fluctuations will cause abnormal operation of the system, which may lead to chip damage.

[0044] 3. The output voltage is stable, but it cannot drive a large load:

[0045] When the power cord is connected but the battery is removed, the charging IC switches to a DC-DC-like operating mode, maintaining a relatively stable output voltage. However, this voltage cannot power a large load. Maintaining this voltage primarily ensures stable system operation, limiting high-power applications or triggering a shutdown mechanism. For better system protection, a shutdown mechanism is typically initiated.

[0046] Based on the regular drops in output voltage and the triangular wave pattern of the output voltage, this application proposes other solutions to meet the protection strategies under different conditions, as described below:

[0047] In one embodiment, such as Figure 7 As shown, Figure 7 This is a schematic diagram of the fifth embodiment of the battery detection circuit provided in this application; the second switch module 30 further includes: a second energy storage unit 31, the second energy storage unit 31 being connected to the control terminal of the second transistor Q2; wherein, after the first switch module 20 is turned on, the second energy storage unit 31 stores energy, and after the first switch module 20 is turned off, the second energy storage unit 31 provides voltage to the control terminal of the second transistor Q2 to maintain the conduction state of the second transistor Q2.

[0048] Understandably, the main function of the second energy storage unit 31 is to maintain the power-off state. At the instant the first switching module 20 is turned on, the second energy storage unit 31 is rapidly charged. This ensures that when the output of the charging IC is pulled high again (i.e., the first switching module is turned off), the second transistor Q2 remains on due to the presence of the second energy storage unit 31, causing the DC-DC enable signal to go low (i.e., outputting the second enable signal), thus keeping the host system in a power-off state. This method avoids regular fluctuations in the output voltage of the charging IC and prevents repeated system anomalies caused by triangular waves or other similar patterns.

[0049] In one embodiment, such as Figure 7 As shown, the second energy storage unit 31 includes: a second resistor R2 and a second capacitor C2; the first end of the second resistor R2 is connected to the control terminal of the second transistor Q2, and the second end of the second resistor R2 is grounded; the first end of the second capacitor C2 is connected to the control terminal of the second transistor Q2, and the second end of the second capacitor C2 is grounded; wherein, after the first switch module 20 is turned off, the second capacitor C2 provides voltage to the control terminal of the second transistor Q2 to maintain the conduction state of the second transistor Q2.

[0050] In the above-described scheme, when the output voltage of the charging IC experiences a regular drop, the charging IC will exhibit two voltage extremes: a high value VH and a low value VL. For example, in one embodiment, VH-VL ≥ 1.2V (generally the voltage difference between full charge and the activation threshold voltage point; 1.2V for a single-cell battery and 2.4V for a dual-cell battery). When the output voltage is at the high value VH (i.e., at voltage input terminal 10), the potential of the gate of the first transistor Q1 (i.e., the control terminal of the first transistor Q1) is Vg = 1000 / 1001*VH ≈ VH. The source of the first transistor Q1 (the first terminal of the first transistor Q1) is initially Vs = VH-VF, and then rises to VH after being fully charged by the first energy storage unit 21, i.e., Vg ≥ Vs. Therefore, the first transistor Q1 is turned off, the second transistor Q2 is turned off, and the DC-DCEN signal is high (i.e., the first enable signal is output). (Signal); When the voltage drops to VL, the gate voltage of the first transistor Q1 quickly drops to near VL. However, due to the reverse cutoff of diode D1 and the energy storage formed by the first resistor R1 and the first capacitor C1, the source of the first transistor Q1 can maintain a voltage close to VH for a period of time. At this time, Vg-Vs≤-0.7V, therefore the first transistor Q1 conducts. The gate voltage of the second transistor Q2 is greater than 0.7V, therefore the second transistor Q2 conducts. The conduction of the second transistor Q2 directly pulls down DC-DC EN, triggering the system to power down (i.e., outputting the second enable signal). Where Vs is the source voltage of the first transistor Q1, Vg is the gate voltage of the first transistor Q1, and VF is the voltage of diode D1.

[0051] In one embodiment, such as Figure 8 As shown, Figure 8 This is a schematic diagram of the sixth embodiment of the battery detection circuit provided in this application; the battery detection circuit 100 also includes: a voltage divider module 50, the first end of the voltage divider module 50 is connected to the voltage input terminal 10, and the second end of the voltage divider module 50 is connected to the control terminal of the first switch module 20.

[0052] Among them, the voltage divider module 50 is used to adjust the voltage difference of the start-up protection. This is mainly because some cells have a relatively large voltage difference when transmitting at low temperature and low voltage (generally 6.8V, and can reach 1.2V when transmitting at high power at -20℃). The voltage divider module 50 can play an adjustment role to avoid triggering power-down during low temperature and low voltage transmission.

[0053] In one embodiment, such as Figure 8As shown, the voltage divider module 50 includes a sixth resistor R6 and a seventh resistor R7; the first end of the sixth resistor R6 is configured to be the output voltage of the input system charging terminal, and the second end of the sixth resistor R6 is connected to the control terminal of the first switch module 20; the first end of the seventh resistor R7 is connected to the control terminal of the first switch module 20, and the second end of the seventh resistor R7 is grounded.

[0054] Understandably, the voltage divider module 50 can avoid the impact of voltage drops in the transmitting battery under low temperature and low pressure by reasonably adjusting the different resistance values ​​of the sixth resistor R6 and the seventh resistor R7. The resistance value allocation can be implemented according to the actual scheme.

[0055] In one embodiment, such as Figure 9 As shown, Figure 9 This is a schematic diagram of the seventh embodiment of the battery detection circuit provided in this application; the battery detection circuit 100 further includes: a third resistor R3, a fourth resistor R4, a fifth resistor R5, and a third capacitor C3; the first end of the third resistor R3 is connected to the voltage input terminal 10, and the second end of the third resistor R3 is connected to the first end of the second switch module 30; the first end of the fourth resistor R4 is connected to the second end of the third resistor R3 and the signal output terminal; the first end of the fifth resistor R5 is connected to the second end of the fourth resistor R4, and the second end of the fifth resistor R5 is grounded; the first end of the third capacitor C3 is connected to the first end of the fifth resistor R5, and the second end of the third capacitor C3 is grounded.

[0056] In the above embodiments, the different resistors added are actual adjustments made according to the voltage distribution of the scheme in this application, in order to solve the circuit requirements in different actual schemes.

[0057] In one embodiment, such as Figure 10 As shown, Figure 10 This is a schematic diagram of the eighth embodiment of the battery detection circuit provided in this application. The battery detection circuit 100 also includes a third switch module 60. The first end of the third switch module 60 is connected to the control end of the second switch module 30, and the second end of the third switch module 60 is grounded. When the communication device is in a low temperature and low pressure environment and is in the transmission state, the third switch module 60 is turned on, the second switch module 30 is turned off, and the signal output terminal outputs a first enable signal, which can avoid the impact of the voltage drop of the transmitting battery under low temperature and low pressure.

[0058] The third switch module 60 includes a third transistor Q3, the first end of which is connected to the control terminal of the second switch module 30, and the second end of which is grounded. When the communication device is in a low-temperature and low-pressure environment and is in the transmission state, the third transistor Q3 is turned on, pulling down the voltage of the control terminal of the second switch module, the second switch module is turned off, and the signal output terminal outputs a first enable signal.

[0059] To address the aforementioned issue of stable output voltage but inability to drive large loads, this application also provides a software control solution, such as... Figure 11 As shown, Figure 11 This is a schematic diagram of the software control flow in one embodiment of the battery detection circuit provided in this application; the flow includes the following steps:

[0060] Step S10: Read battery information (read voltage information or power information).

[0061] Step S20: Has the battery been restored?

[0062] When the battery responds with feedback, step S30 is executed: the battery is in place, and the system continues to operate normally. When the battery does not respond with feedback, step S40 is executed: the battery is not in place, and the shutdown process is initiated. Finally, the process ends after either step S30 or step S40 is completed.

[0063] Since the charging IC can maintain a stable voltage, it can ensure the normal operation of the system (generally, the charging IC can handle a load of 500mA, while the system is within 200mA). At this time, the system can process the battery detection business normally. By using the voltage or power information pre-stored by the anti-counterfeiting or smart battery, it can determine whether the battery is still in place. If the battery information cannot be read, it is assumed that the battery has been removed. At this time, the shutdown process needs to be initiated, and the hardware is ultimately controlled to shut down. If the battery information can be read normally, it is assumed that the battery is still there, and normal business continues.

[0064] For this type of charging IC, additional protection strategies can be implemented through software to ensure a unified power-on / off strategy for the walkie-talkie after the battery is removed, while also providing protection in cases where the charging IC cannot handle large loads.

[0065] To address the aforementioned problems, this application also provides a communication device 200, see reference. Figure 12 , Figure 12 This is a schematic diagram of the structure of an embodiment of the communication device provided in this application; the communication device 200 includes: a main body 210, a battery 220 and a battery detection circuit 100; wherein, the battery 220 is detachably disposed on the main body 210; the battery detection circuit 100 is disposed on the main body 210, and the battery 220 is detected by the battery detection circuit 100, which is the battery detection circuit 100 described in any of the above embodiments.

[0066] It is understood that the above-described embodiments offer the following advantages: no additional mechanical structural components are required. No additional identification resistors or other components need to be added to the battery; existing anti-counterfeiting designs or smart battery designs suffice. Battery insertion / removal detection can be achieved by cleverly combining the output characteristics of the charging chip with simple circuit identification and software judgment. This solution addresses the issue of battery insertion / removal during charging, preventing system crashes and even damage to the system chip, thus protecting the stability of the host operation. Furthermore, a unified shutdown strategy is implemented for displaying battery insertion / removal.

[0067] This application provides a battery detection circuit 100 and a communication device. The battery detection circuit 100 includes: a voltage input terminal 10 for receiving an input voltage, provided by a charging control unit; a first switch module 20, with its control terminal connected to the voltage input terminal 10 and its first terminal connected to the voltage input terminal 10; a second switch module 30, with its control terminal connected to the second terminal of the first switch module 20; its first terminal connected to the voltage input terminal 10; and its second terminal grounded; and a signal output terminal 40 connected to the first terminal of the second switch module 30. During battery charging: When the voltage at the control terminal is greater than the voltage at the first terminal, the first switch module 20 turns off and controls the second switch module 30 to turn off, thereby outputting a first enable signal from the signal output terminal 40; the first enable signal indicates that the communication device corresponding to the battery should be in normal working condition. When the voltage at the control terminal is less than the voltage at the first terminal, the first switch module 20 turns on and controls the second switch module 30 to turn on, thereby outputting a second enable signal from the signal output terminal 40; the second enable signal indicates that the communication device corresponding to the battery should be in a powered-off state.

[0068] By utilizing the first and second switch modules, different on / off control logics are implemented based on different voltages input to the voltage input terminal, corresponding to different enable signals output. Furthermore, the presence of the battery is determined by different input voltages and different enable signals output, and the control system is either powered off or maintains its operating state. This is to prevent damage caused by changes in the output voltage of the charging IC due to the battery being removed during charging, thus protecting the system.

[0069] The embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A battery detection circuit, characterized in that, The battery detection circuit includes: The voltage input terminal receives the input voltage, which is provided by the charging control unit. The first energy storage unit is connected to the voltage input terminal; A first switching module, wherein the control terminal of the first switching module is connected to the voltage input terminal, and the first terminal of the first switching module is connected to the first energy storage unit; A second switch module is connected to the second terminal of the first switch module; the first terminal of the second switch module is connected to the voltage input terminal; and the second terminal of the second switch module is grounded. The signal output terminal is connected to the first terminal of the second switch module; When the charging control unit is connected to an external charger to charge the battery, the first switch module is turned off, and the second switch module is controlled to turn off, and the signal output terminal outputs a first enable signal; When the battery is removed, the first energy storage unit provides voltage to the first terminal of the first switching module, the first switching module is turned on, and controls the second switching module to be turned on. The signal output terminal outputs a second enable signal; the second enable signal is used to control the communication device corresponding to the battery detection circuit to be turned off.

2. The battery detection circuit according to claim 1, characterized in that, The first switch module includes: A first transistor, the control terminal of the first transistor is connected to the voltage input terminal, the second terminal of the first transistor is connected to the control terminal of the second switching module, and the first terminal of the first transistor is connected to the first energy storage unit; When the battery is disconnected, the first energy storage unit provides a voltage to the first terminal of the first transistor, so that the voltage at the control terminal of the first transistor is less than the voltage at the first terminal of the first transistor, and the first transistor is turned on.

3. The battery detection circuit according to claim 2, characterized in that, The first energy storage unit includes: A diode, wherein the anode of the diode is connected to the voltage input terminal; A first resistor, the first end of which is connected to the cathode of the diode, and the second end of which is connected to the first end of the first transistor; A first capacitor, the first terminal of which is connected to the second terminal of the first resistor, and the second terminal of which is grounded; When the battery is removed, the first capacitor provides a voltage to the first terminal of the first transistor, so that the voltage at the control terminal of the first transistor is less than the voltage at the first terminal of the first transistor, and the first transistor is turned on.

4. The battery detection circuit according to claim 1, characterized in that, The second switch module includes: The second transistor has its control terminal connected to the second terminal of the first switching module, its first terminal connected to the voltage input terminal, and its second terminal grounded.

5. The battery detection circuit according to claim 4, characterized in that, The second switch module also includes: The second energy storage unit is connected to the control terminal of the second transistor; Specifically, after the first switch module is turned on, the second energy storage unit stores energy, and after the first switch module is turned off, the second energy storage unit provides voltage to the control terminal of the second transistor to maintain the conduction state of the second transistor.

6. The battery detection circuit according to claim 5, characterized in that, The second energy storage unit includes: The second resistor has its first end connected to the control terminal of the second transistor and its second end grounded. The second capacitor has its first terminal connected to the control terminal of the second transistor and its second terminal grounded. When the first switch module is turned off, the second capacitor provides voltage to the control terminal of the second transistor to maintain the conduction state of the second transistor.

7. The battery detection circuit according to claim 1, characterized in that, The battery detection circuit also includes: The third resistor has its first end connected to the voltage input terminal and its second end connected to the first terminal of the second switching module. A fourth resistor, the first end of which is connected to the second end of the third resistor and the signal output terminal; The fifth resistor has its first end connected to the second end of the fourth resistor, and its second end is grounded. The third capacitor has its first terminal connected to the first terminal of the fifth resistor, and its second terminal grounded. And / or, a voltage divider module, wherein the first end of the voltage divider module is connected to the voltage input terminal, and the second end of the voltage divider module is connected to the control terminal of the first switch module.

8. The battery detection circuit according to claim 7, characterized in that, The voltage divider module includes: The sixth resistor has its first terminal configured to input the output voltage of the charging terminal of the input system, and its second terminal connected to the control terminal of the first switching module. The seventh resistor has its first end connected to the control terminal of the first switch module and its second end grounded.

9. The battery detection circuit according to claim 1, characterized in that, The battery detection circuit also includes: The third switch module has its first end connected to the control terminal of the second switch module and its second end grounded. When the communication device is in a low-temperature and low-pressure environment and is in a transmitting state, the third switch module is turned on, the second switch module is turned off, and the signal output terminal outputs a first enable signal.

10. A communication device, characterized in that, The communication device includes: Battery; A battery detection circuit is used to detect whether the battery is in place, wherein the battery detection circuit is the battery detection circuit as described in any one of claims 1-9.