Patent Description:
A battery of an electronic device is primarily designed in a detachable mode and a non-detachable mode. For a non-detachable battery designed in the related art, the battery is not freely detachable from an electronic product. However, a problem existent in the related art is that, because an internal connection structure of the non-detachable battery is relatively fragile and a battery structure is of relatively low strength, the battery is very likely to damage, a connector is very likely to be shortcircuited, and other similar problems are likely to occur during detachment if the detachment is not performed by a professional after-sales person. Therefore, the battery is at risk of being damaged during detachment. This impairs safety of the battery and the electronic device in use. <CIT> teaches a charger that can prevent electric power theft and reduce time loss arising from recharging when a power supply unit and a vehicle are changed from a connected state into a non-connected state. The charger is configured such that a power supply unit is connected to the vehicle equipped with a power storage unit; and charging is carried out by supplying power from the power supply unit to the vehicle. The charger includes a notification unit. When it is detected that the vehicle and the power supply unit have changed from the connected state into the non-connected state, the notification unit notifies a user of the vehicle or a manager of the charger that the vehicle and the power supply unit have changed into non-connected state. <CIT> discloses a communication terminal, which includes a communication unit and a controller. The communication unit is provided in a supply apparatus that supplies electric power from a power source to an electric device through a feeding line, and is configured to communicate with a destination terminal provided in the electric device. The controller is configured to control a switch to switch turning on and off of the switch electrically connected to the feeding line. The feeding line includes a first line that electrically connects between the power source and the switch, and a second line that electrically connects between the switch and the electric device. At least one of the communication unit and the destination terminal is located away via a space from a conductive member included in the feeding line as to be electrically connected to an electrode coupled via electric field to the conductive member. The communication unit is configured to communicate with the destination terminal by using a signal transmitted via a conductive member included in the second line of the conductive member as a medium. The controller is configured to turn off the switch for a communication period for which the communication unit communicates with the destination terminal.

This application aims to solve one of the technical problems in the related art at least to some extent.

Therefore, the purpose of this application is to disclose a battery detection system to identify detachment of a battery and ensure safety of the battery and an electronic device in use.

The second purpose of this application is to disclose a battery assembly.

Further described but not part of the present invention is an electronic device.

Further described but not part of the present invention is a battery detection method.

To fulfill the foregoing purposes, a first aspect of this application discloses a battery detection system.

In the battery detection system according to the present invention, when the first connector is connected to the second connector, the detection module outputs the first identification information to the electronic device through the first connector. When the second connector receives the first identification information, the control module confirms that the battery assembly is in a connected state. After the first connector is disconnected from the second connector, the detection module generates and outputs the second identification information. When the information received by the second connector changes from the first identification information to the second identification information, the control module confirms that the battery assembly is disconnected. Therefore, the battery detection system of the present invention can detect connection status of the battery assembly and the electronic device, and identify detachment of a battery and ensure safety of the battery and the electronic device in use.

According to the present invention, the detection module is disposed in the first connector in a packaging manner.

To fulfill the foregoing purposes, a second aspect of this application discloses a battery assembly. The battery assembly is defined as described above.

In the electronic device not falling under the claimed scope, when the second connector receives the first identification information output by the battery assembly, the control module confirms that the battery assembly is in a connected state. After the information received by the second connector changes from the first identification information to the second identification information, the control module confirms that the battery assembly is disconnected. Therefore, the electronic device can detect connection status of the battery assembly and the electronic device, and identify detachment of a battery and ensure safety of the battery and the electronic device in use.

Additional aspects and advantages of this application will be partly given in the following description, and a part thereof will become evident in the following description or will be learned in the practice of this application.

The following describes embodiments of this application in detail. Examples of the embodiments are shown in the drawings, in which always identical or similar reference numerals indicate identical or similar components or the components that serve identical or similar functions. The embodiments described below with reference to the drawings are exemplary, and are intended to construe this application but not to limit this application.

The following describes a battery assembly and a battery detection system according to the present invention and method not falling under the scope of the claimed invention with reference to the drawings.

<FIG> is a schematic block diagram of a battery detection system according to an embodiment of this application. As shown in <FIG>, the battery detection system <NUM> includes: a battery assembly <NUM> and an electronic device <NUM>. The battery assembly <NUM> includes a first connector <NUM> and a detection module <NUM> connected to the first connector <NUM>. The electronic device <NUM> includes a second connector <NUM> and a control module <NUM> connected to the second connector <NUM>.

The first connector <NUM> fits with the second connector <NUM> to implement connection. The detection module <NUM> is configured to detect whether the first connector <NUM> is connected to the second connector <NUM>.

In addition, according to the present invention, the detection module <NUM> is disposed in the first connector <NUM> in a packaging manner to protect an internal structure of the detection module <NUM> and enhance system reliability.

Understandably, after the first connector <NUM> fits with and is connected to the second connector <NUM>, the battery assembly <NUM> may supply power to the electronic device <NUM>.

When the first connector <NUM> is connected to the second connector <NUM>, the detection module <NUM> outputs the first identification information to the electronic device <NUM> through the first connector <NUM>. When the second connector <NUM> receives the first identification information, the control module <NUM> confirms that the battery assembly <NUM> is in a connected state. After the first connector <NUM> is disconnected from the second connector <NUM>, the detection module <NUM> generates and outputs the second identification information. When the information received by the second connector <NUM> changes from the first identification information to the second identification information, the control module <NUM> confirms that the battery assembly <NUM> is disconnected.

It needs to be noted that the first identification information and the second identification information received by the second connector <NUM> may be directly output to the control module <NUM>, or may be processed by a processing unit and then output to the control module <NUM>. For example, the first identification information and the second identification information received by the second connector <NUM> may be processed by a phase inverter and then output to the control module <NUM>. Then the control module <NUM> confirms connection status of the battery assembly <NUM> based on the received information.

Further, according to an embodiment of this application, before the detection module <NUM> outputs the first identification information to the electronic device <NUM> through the first connector <NUM>, the control module <NUM> further outputs a control signal to the battery assembly <NUM> through the second connector <NUM>. The detection module <NUM> further receives the control signal through the first connector <NUM>, and outputs and locks the first identification information based on the control signal.

Understandably, the battery assembly <NUM> maintains an initial state at delivery from the manufacturer. The detection module <NUM> outputs the second identification information. After the battery assembly <NUM> is connected onto the electronic device <NUM>, that is, after the first connector <NUM> is connected to the second connector <NUM>, if the electronic device <NUM> detects that its anti-detachment function is disabled, the control module <NUM> outputs a control signal to the battery assembly <NUM> through the second connector <NUM> before the detection module <NUM> outputs the first identification information to the electronic device <NUM> through the first connector <NUM>. The detection module <NUM> receives the control signal through the first connector <NUM>, and outputs and locks the first identification information based on the control signal. When the second connector <NUM> receives the first identification information output by the detection module <NUM>, the control module <NUM> confirms that the battery assembly <NUM> is in the connected state, and then enables the anti-detachment function. Thereafter, if the first connector <NUM> is disconnected from the second connector <NUM>, the detection module <NUM> generates and outputs the second identification information. In this case, when the information received by the second connector <NUM> changes from the first identification information to the second identification information, the control module <NUM> confirms that the battery assembly <NUM> is disconnected, and further confirms that the battery assembly <NUM> is detached.

It needs to be noted that the control module <NUM> may determine, by detecting its own anti-detachment function flag bit, whether the anti-detachment function is enabled. For example, when the anti-detachment function flag bit is "<NUM>", it is determined that the anti-detachment function is disabled. After the anti-detachment function is enabled, the control module <NUM> may set the anti-detachment function flag bit to " <NUM>" and write the value into a memory such as a flash memory.

Therefore, the battery detection system according to the embodiments of this application can detect connection status of the battery assembly and the electronic device, and identify detachment of a battery and ensure safety of the battery and the electronic device in use.

Specifically, according to an embodiment of this application, the detection module <NUM> includes at least one detection unit. Each detection unit possesses a first input end, a second input end, and an output end. Before the detection module <NUM> outputs the first identification information to the electronic device <NUM> through the first connector <NUM>, the control module <NUM> correspondingly outputs at least one first control signal and at least one second control signal to the battery assembly <NUM> through the second connector <NUM>. The first input end of each detection unit receives a corresponding first control signal. The second input end of each detection unit receives a corresponding second control signal. Each detection unit further generates a first identification signal based on the first control signal and the second control signal and outputs the first identification signal through the output end of each detection unit.

Further, according to an embodiment of this application, the control module <NUM> is further configured to: when each detection unit outputs the first identification signal, change a corresponding second control signal into a third control signal and output the third control signal through the second connector <NUM>. The second input end of each detection unit receives the third control signal, and locks the first identification signal based on the third control signal so that the output end of each detection unit keeps outputting the first identification signal.

Further, according to an embodiment of this application, when the first connector <NUM> is disconnected from the second connector <NUM>, a signal of the second input end of each detection unit changes from the third control signal to the second control signal, and a signal of the first input end of each detection unit changes from the first control signal to a fourth control signal. Each detection unit further generates a second identification signal based on the second control signal and the fourth control signal.

According to an embodiment of this application, the detection module <NUM> outputs at least one first identification signal to the electronic device <NUM> as the first identification information, where the at least one first identification signal is output by the output end of at least one detection unit. Alternatively, the detection module <NUM> further includes a processing unit. The processing unit is configured to process at least one first identification signal output by the output end of at least one detection unit, so as to obtain a first processed signal. The detection module <NUM> outputs the first processed signal to the electronic device <NUM> as the first identification information. The detection module <NUM> outputs at least one second identification signal to the electronic device <NUM> as the second identification information, where the at least one second identification signal is output by the output end of at least one detection unit. Alternatively, the processing unit is configured to process at least one second identification signal output by the output end of at least one detection unit, so as to obtain a second processed signal. The detection module <NUM> outputs the second processed signal to the electronic device <NUM> as the second identification information.

The first control signal is a high-level signal, the second control signal is a rising-edge signal, the third control signal is a low-level signal, the fourth control signal is a low-level signal, the first identification signal is a low-level signal, and the second identification signal is a high-level signal.

Depending on a specific situation, the first identification information may be at least one high-level signal, or at least one low-level signal, or a combination of a high-level signal and a low-level signal. For example, when at least one first identification signal output by the output end of at least one detection unit is used as the first identification information, the first identification information is a low-level signal. When a first processed signal is used as the first identification information and the first processed signal is obtained by the processing unit by processing at least one first identification signal output by the output end of at least one detection unit, the first identification information may be at least one high-level signal or a combination of a high-level signal and a low-level signal. For example, if the processing unit is a phase inversion circuit, the first identification information is a high-level signal.

Likewise, depending on a specific situation, the second identification information may be at least one high-level signal, or at least one low-level signal, or a combination of a high-level signal and a low-level signal. For example, when at least one second identification signal output by the output end of at least one detection unit is used as the second identification information, the second identification information is a high-level signal. When a second processed signal is used as the second identification information and the second processed signal is obtained by the processing unit by processing at least one second identification signal output by the output end of at least one detection unit, the second identification information may be at least one low-level signal or a combination of a high-level signal and a low-level signal. For example, if the processing unit is a phase inversion circuit, the second identification information is a low-level signal.

Understandably, after the battery assembly <NUM> is connected onto the electronic device <NUM>, that is, after the first connector <NUM> is connected to the second connector <NUM>, if the electronic device <NUM> detects that its anti-detachment function is disabled, the control module <NUM> correspondingly outputs at least one first control signal and at least one second control signal to the battery assembly <NUM> through the second connector <NUM> before the detection module <NUM> outputs the first identification information to the electronic device <NUM> through the first connector <NUM>. The first input end of each detection unit in the detection module <NUM> receives a corresponding first control signal output by the control module <NUM> through the second connector <NUM>. The second input end of each detection unit receives a corresponding second control signal output by the control module <NUM> through the second connector <NUM>. Then each detection unit in the detection module <NUM> generates a first identification signal based on the first control signal and the second control signal and outputs the first identification signal through the output end of each detection unit. The detection module <NUM> outputs at least one first identification signal to the electronic device <NUM> as the first identification information, where the at least one first identification signal is output by the output end of at least one detection unit; or, outputs a first processed signal to the electronic device <NUM> as the first identification information, where the first processed signal is obtained by the processing unit by processing at least one first identification signal output by the output end of at least one detection unit.

Thereafter, when the second connector <NUM> receives the first identification information output by the detection module <NUM>, the control module <NUM> changes at least one second control signal correspondingly output through the second connector <NUM> into a third control signal and, when the second input end of each detection unit receives the third control signal, locks the first identification signal based on the third control signal so that the output end of each detection unit keeps outputting the first identification signal. The control module <NUM> confirms that the battery assembly <NUM> is in the connected state. This means that the anti-detachment function of the electronic device <NUM> is enabled. In this case, the electronic device <NUM> may set the anti-detachment function flag bit to a preset value such as " <NUM>" and write the value into a memory.

When the first connector <NUM> is disconnected from the second connector <NUM>, a signal of the second input end of each detection unit changes from the third control signal to the second control signal, and a signal of the first input end of each detection unit changes from the first control signal to a fourth control signal. Each detection unit further generates a second identification signal based on the second control signal and the fourth control signal. At this time, the battery assembly <NUM> returns to the initial state. To be specific, the output end of each detection unit in the detection module <NUM> outputs a second identification signal, that is, a high-level signal. After the first connector <NUM> is connected to the second connector <NUM> again after being disconnected, the detection module <NUM> outputs at least one second identification signal to the electronic device <NUM> as the second identification information, where the at least one second identification signal is output by the output end of at least one detection unit. Alternatively, the detection module <NUM> outputs a second processed signal to the electronic device <NUM> as the second identification information, where the second processed signal is obtained by the processing unit by processing the at least one second identification signal output by the output end of the at least one detection unit. In a case that the anti-detachment function is enabled, when the information output by the detection module <NUM> and received by the second connector <NUM> changes from the first identification information to the second identification information, the control module <NUM> confirms that the battery assembly <NUM> is disconnected, and then confirms that the battery assembly <NUM> is detached.

The control module <NUM> is further configured to: after confirming that the battery assembly <NUM> is disconnected, exercise restriction control on the battery assembly <NUM> until the anti-detachment function is reset. For example, inspection may be performed at a professional maintenance service point, and a professional may reset the anti-detachment function. This can avoid risks of detaching and damaging the battery assembly, and ensure the safety of the battery assembly and the electronic device in use.

For example, the restriction control may be to prompt that the battery assembly <NUM> has been detached, or to directly lock the electronic device <NUM>, or to preclude the battery assembly <NUM> from supplying power to the electronic device <NUM>.

Further, according to an embodiment of this application, the battery assembly <NUM> includes a battery cell <NUM>, and supplies power to each detection unit through the battery cell <NUM>. When the battery assembly <NUM> stops supplying power to the electronic device <NUM>, a signal of the second input end of each detection unit is maintained until the third control signal. Each detection unit locks the first identification signal based on the third control signal, and keeps outputting the first identification signal through the output end.

Understandably, when the battery assembly <NUM> exercises power-off protection control on the electronic device <NUM>, the battery assembly <NUM> stops supplying power to the electronic device <NUM>. For example, the power-off protection control may be exercised on the electronic device <NUM> when the battery assembly <NUM> is overheated or the battery assembly <NUM> lacks electrical power or the like. The electronic device <NUM> is powered off, and each detection unit in the detection module <NUM> is powered by the battery cell <NUM>. The second input end of each detection unit keeps receiving the third control signal, that is, the low-level signal. Each detection unit locks the first identification signal based on the third control signal, and keeps outputting the first identification signal through the output end.

In this case, the battery detection system works normally, the electronic device <NUM> is powered off, and the control module <NUM> keeps outputting the third control signal, that is, the low-level signal, through the second connector <NUM>. The second input end of each detection unit keeps receiving the low-level signal output by the control module <NUM>. Each detection unit locks the first identification signal (that is, a low-level signal) based on the received third control signal (that is, a low-level signal), and keeps outputting the first identification signal through the output end. The detection module <NUM> outputs at least one first identification signal to the electronic device <NUM> as the first identification information, where the at least one first identification signal is output by the output end of at least one detection unit; or, outputs a first processed signal to the electronic device <NUM> as the first identification information, where the first processed signal is obtained by the processing unit by processing at least one first identification signal output by the output end of at least one detection unit. When the battery assembly <NUM> ends up the power-off protection control on the electronic device <NUM>, for example, after the electronic device <NUM> restarts, the control module <NUM> determines, when the second connector <NUM> receives the first identification information output by the output end of the detection module <NUM>, that the battery assembly <NUM> is in normal use without being detached.

Further, according to an embodiment of this application, the first connector <NUM> possesses at least one first pin, at least one second pin, and at least one third pin. Each detection unit includes a flip-flop. The flip-flop possesses a CLK end, a D end, and a Q end. The CLK end of the flip-flop is used as a second input end of the detection unit and connected to a corresponding first pin in the first connector <NUM>. The D end of the flip-flop is used as a first input end of the detection unit and connected to a corresponding second pin in the first connector <NUM>. The Q end of the flip-flop is used as an output end of the detection unit and directly connected to a corresponding third pin in the first connector <NUM>. Alternatively, the Q end of the flip-flop is used as an output end of the detection unit and connected to a corresponding input end of a processing unit in the detection module <NUM>. At least one output end of the processing unit is further correspondingly connected to the at least one third pin respectively.

Furthermore, according to an embodiment of this application, each detection unit further includes a first resistor and a second resistor. The CLK end of the flip-flop is connected to a positive electrode of a battery cell <NUM> in the battery assembly <NUM> through the first resistor. The D end of the flip-flop is connected to a negative electrode of the battery cell <NUM> in the battery assembly <NUM> through the second resistor and then grounded.

A power end VCC of the flip-flop is connected to a positive electrode of the battery cell <NUM> in the battery assembly <NUM>. A ground end GND of the flip-flop is connected to a negative electrode of the battery cell <NUM> in the battery assembly <NUM>. An operating voltage of the flip-flop supports <NUM> V to <NUM> V, and power consumption is less than <NUM> Ua.

For example, as shown in <FIG>, when the detection module <NUM> includes one detection unit <NUM>, the first connector <NUM> possesses one first pin 10a, one second pin 10b, and one third pin 10c. The detection unit <NUM> includes a flip-flop <NUM>. The CLK end of the flip-flop <NUM> is used as a second input end of the detection unit <NUM> and connected to a first pin 10a in the first connector <NUM>. The D end of the flip-flop <NUM> is used as a first input end of the detection unit <NUM> and connected to a second pin 10b in the first connector <NUM>. The Q end of the flip-flop <NUM> is used as an output end of the detection unit <NUM> and connected to a third pin 10c in the first connector <NUM>. In addition, as shown in <FIG>, the detection module <NUM> may further include a processing unit <NUM>. The Q end of the flip-flop <NUM>, which serves as the output end of the detection unit <NUM>, may also be connected to the input end 203a of the processing unit <NUM>. The output end 203b of the processing unit <NUM> is further connected to the third pin 10c.

As shown in <FIG>, the detection unit <NUM> further includes a first resistor R1 and a second resistor R2. The CLK end of the flip-flop <NUM> is connected to the positive electrode of the battery cell <NUM> in the battery assembly <NUM> through the first resistor R1. The D end of the flip-flop <NUM> is connected to the negative electrode of the battery cell <NUM> in the battery assembly <NUM> through the second resistor R2 and then grounded. The power end VCC of the flip-flop <NUM> is connected to the positive electrode of the battery cell <NUM> in the battery assembly <NUM>. The ground end GND of the flip-flop <NUM> is connected to the negative electrode of the battery cell <NUM> in the battery assembly <NUM>.

In the embodiment of this application, when the first connector <NUM> is connected to the second connector <NUM>, the first pin in the second connector <NUM> is connected to the corresponding first pin in the first connector <NUM>, the second pin in the second connector <NUM> is connected to the corresponding second pin in the first connector <NUM>, and the third pin in the second connector <NUM> is connected to the corresponding third pin in the first connector <NUM>. A fourth pin in the first connector <NUM> is connected to the positive electrode of the battery cell <NUM> and then connected to the fourth pin in the second connector <NUM>. A fifth pin in the first connector <NUM> is connected to the negative electrode of the battery cell <NUM> and then connected to the fifth pin in the second connector <NUM>. In this way, the battery cell <NUM> supplies power to the electronic device <NUM> through the first connector <NUM>.

For example, as shown in <FIG>, if the detection module <NUM> includes a detection unit <NUM>, and correspondingly, the first connector <NUM> and the second connector <NUM> each possess one first pin, one second pin, and one third pin, then when the first connector <NUM> is connected to the second connector <NUM>, the first pin 30a in the second connector <NUM> is connected to the first pin 10a in the first connector <NUM>, the second pin 30b in the second connector <NUM> is connected to the second pin 10b in the first connector <NUM>, the third pin 30c in the second connector <NUM> is connected to the third pin 10c in the first connector <NUM>, the fourth pin 10d in the first connector <NUM> is connected to the positive electrode of the battery cell <NUM> and then connected to the fourth pin 30d in the second connector <NUM>, and the fifth pin 10e in the first connector <NUM> is connected to the negative electrode of the battery cell <NUM> and then connected to the fifth pin 30e in the second connector <NUM>. In this way, the battery cell <NUM> supplies power to the electronic device <NUM> through the first connector <NUM>.

Therefore, circuit connection of the battery detection system according to this embodiment of this application is simple, and involves no additional circuit structure. Communication between the battery assembly <NUM> and the electronic device <NUM> can be implemented through the connection between the first connector <NUM> and the second connector <NUM>.

Understandably, after the battery assembly <NUM> is connected onto the electronic device <NUM>, that is, after the first connector <NUM> is connected to the second connector <NUM>, if the electronic device <NUM> detects that its anti-detachment function is disabled, the control module <NUM> outputs a first control signal (that is, a high-level signal) through the second pin in the second connector <NUM> before the detection module <NUM> outputs the first identification information to the electronic device <NUM> through the first connector <NUM>. The D end of the flip-flop, which serves as the first input end of the detection unit, receives a corresponding high-level signal through the second pin in the first connector <NUM>. Thereafter, the control module <NUM> outputs a second control signal (that is, a rising-edge signal) through the first pin in the second connector <NUM>, and the CLK end of the flip-flop, which serves as the second input end of the detection unit, receives the corresponding rising-edge signal through the first pin in the first connector <NUM>. Therefore, the Q end of the flip-flop, which serves as the output end of the detection unit, outputs a first identification signal (that is, a low-level signal).

According to an embodiment of this application, as shown in <FIG>, the control module <NUM> outputs a second control signal or a third control signal by controlling turn-on and turn-off of a switch assembly <NUM>. The switch assembly <NUM> includes a first switch transistor <NUM> and a third resistor R3. A first end 60a of the first switch transistor <NUM> is connected to the second connector <NUM>. Specifically, the first end 60a of the first switch transistor <NUM> is connected to the first pin in the second connector <NUM>. In the two embodiments shown in <FIG> and <FIG>, the first end 60a of the first switch transistor <NUM> is connected to the first pin 30a in the second connector <NUM>, a second end 60b of the first switch transistor <NUM> is grounded, and a control end 60c of the first switch transistor <NUM> is connected to the control module <NUM>. The first switch transistor <NUM> is turned on or off under the control of the control module <NUM>. One end of the third resistor R3 is connected to the control end 60c of the first switch transistor <NUM>. A second end of the third resistor R3 is connected to the second end 60b of the first switch transistor <NUM>.

Understandably, when the control module <NUM> controls the first switch transistor <NUM> to turn on, the first pin in the second connector <NUM> outputs a third control signal. When the control module <NUM> controls the first switch transistor <NUM> to turn off, the first pin in the second connector <NUM> outputs a second control signal.

Thereafter, when the corresponding second control signal (that is, a rising-edge signal) received by the CLK end of the flip-flop (serving as the second input end of the detection unit) through the first pin in the first connector <NUM> and output by the control module <NUM> through the first pin in the second connector <NUM> changes to a third control signal (that is, a low-level signal), the Q end of the flip-flop locks the first identification signal and keeps outputting the first identification signal (that is, a low-level signal) by serving as the output end of the detection unit. Further, the detection module <NUM> outputs first identification information to the electronic device <NUM>, where the first identification information is at least one first identification signal output by the output end of at least one detection unit or is a first processed signal obtained by the processing unit by processing at least one first identification signal output by the output end of at least one detection unit. In this case, when the third pin in the second connector <NUM> detects the first identification information output by the detection module <NUM>, the control module <NUM> confirms that the battery assembly <NUM> is in a connected state, and that the anti-detachment function of the electronic device <NUM> is enabled. In this case, the electronic device <NUM> may set the anti-detachment function flag bit to a preset value such as " <NUM>" and write the value into a memory.

When the first connector <NUM> is disconnected from the second connector <NUM>, the CLK end of the flip-flop is connected to the positive electrode of the battery cell <NUM> in the battery assembly <NUM> through the first resistor, and the D end of the flip-flop is connected to the negative electrode of the battery cell <NUM> in the battery assembly <NUM> through the second resistor and then grounded. In other words, a level signal of the CLK end of the flip-flop changes from a low level to a high level. The CLK end of the flip-flop, which serves as the second input end of the detection unit, generates a second control signal, that is, a rising-edge signal. The D end of the flip-flop is a low-level signal, and the control signal at the D end of the flip-flop, which serves as the first input end of the detection unit, changes from a first control signal (a high-level signal) to a fourth control signal (a low-level signal). Therefore, the Q end of the flip-flop, which serves as the output end of the detection unit, outputs a second identification signal (a high-level signal) when the CLK end of the flip-flop is the second control signal (a rising-edge signal) and the D end of the flip-flop is the fourth control signal (a low-level signal). The battery assembly <NUM> returns to the initial state. The detection module <NUM> outputs second identification information to the electronic device <NUM>, where the second identification information is at least one second identification signal output by the output end of at least one detection unit or is a second processed signal obtained by the processing unit by processing at least one second identification signal output by the output end of at least one detection unit. When the first connector <NUM> is connected to the second connector <NUM> again after being disconnected, in a case that the anti-detachment function is already enabled, when the information received by the third pin in the second connector <NUM> and output by the detection module <NUM> through the third pin in the first connector <NUM> changes from the first identification information to the second identification information, the control module <NUM> confirms that the battery assembly <NUM> is disconnected, that is, detached.

Further, understandably, in this embodiment of this application, detachment of the battery assembly <NUM> may include detaching at least the battery cell <NUM> in the battery assembly <NUM> as well as the first connector <NUM> and the detection module <NUM>.

In conclusion, in the battery detection system according to this embodiment of this application, when the first connector is connected to the second connector, the detection module outputs the first identification information to the electronic device through the first connector. When the second connector receives the first identification information, the control module confirms that the battery assembly is in a connected state. After the first connector is disconnected from the second connector, the detection module generates and outputs the second identification information. When the information received by the second connector changes from the first identification information to the second identification signal, the control module confirms that the battery assembly is disconnected. Therefore, the battery detection system according to this embodiment of this application can detect connection status of the battery assembly and the electronic device, and identify detachment of a battery and ensure safety of the battery and the electronic device in use.

Based on the battery detection system disclosed in the foregoing embodiment, an embodiment of this application further discloses a battery assembly. <FIG> is a schematic block diagram of a battery assembly according to an embodiment of this application. As shown in <FIG>, the battery assembly <NUM> includes a first connector <NUM> and a detection module <NUM> connected to the first connector <NUM>.

The first connector <NUM> fits with the second connector <NUM> of an electronic device <NUM> to implement connection. The detection module <NUM> is configured to detect whether the first connector <NUM> is connected to the second connector <NUM>. When the first connector <NUM> is connected to the second connector <NUM>, the detection module <NUM> outputs first identification information through the first connector <NUM>. The first identification information is used to indicate that the battery assembly <NUM> is in a connected state. After the first connector <NUM> is disconnected from the second connector <NUM>, the detection module <NUM> generates and outputs second identification information, and the second identification information changed from the first identification information is used to indicate that the battery assembly <NUM> is disconnected.

Specifically, according to an embodiment of this application, when the first connector <NUM> is connected to the second connector <NUM> of the electronic device <NUM>, the detection module <NUM> is configured to receive, through the first connector <NUM>, a control signal output by the electronic device <NUM>, and output first identification information based on the control signal. Therefore, when receiving the first identification information output by the detection module <NUM>, the electronic device <NUM> confirms that the battery assembly <NUM> is in a connected state.

Further, according to an embodiment of this application, the detection module <NUM> includes at least one detection unit. Each detection unit possesses a first input end, a second input end, and an output end. The first input end of each detection unit receives a corresponding first control signal output by the electronic device <NUM>. The second input end of each detection unit receives a corresponding second control signal output by the electronic device <NUM>. Each detection unit further generates a first identification signal based on the first control signal and the second control signal, and outputs the first identification signal through the output end of each detection unit. The first control signal and the second control signal are output by the electronic device <NUM> through the second connector <NUM> before the detection module <NUM> outputs the first identification information to the electronic device <NUM> through the first connector <NUM>.

Furthermore, according to an embodiment of this application, the second input end of each detection unit receives a third control signal, and locks the first identification signal based on the third control signal, so that the output end of each detection unit keeps outputting the first identification signal. The third control signal is output through the second connector <NUM> when each detection unit outputs the first identification signal.

According to an embodiment of this application, when the first connector <NUM> is disconnected from the second connector <NUM>, a signal of the second input end of each detection unit changes from the third control signal to the second control signal, and a signal of the first input end of each detection unit changes from the first control signal to a fourth control signal. Each detection unit further generates a second identification signal based on the second control signal and the fourth control signal.

Further, according to an embodiment of this application, the detection module <NUM> outputs at least one first identification signal to the electronic device <NUM> as the first identification information, where the at least one first identification signal is output by the output end of at least one detection unit. Alternatively, the detection module <NUM> further includes a processing unit. The processing unit is configured to process at least one first identification signal output by the output end of at least one detection unit, so as to obtain a first processed signal. The detection module <NUM> outputs the first processed signal to the electronic device <NUM> as the first identification information. The detection module <NUM> outputs at least one second identification signal to the electronic device <NUM> as the second identification information, where the at least one second identification signal is output by the output end of at least one detection unit. Alternatively, the processing unit is configured to process at least one second identification signal output by the output end of at least one detection unit, so as to obtain a second processed signal. The detection module <NUM> outputs the second processed signal to the electronic device <NUM> as the second identification information.

According to an embodiment of this application, the battery assembly <NUM> includes a battery cell <NUM>, and supplies power to each detection unit through the battery cell <NUM>. When the battery assembly <NUM> stops supplying power to the electronic device <NUM>, a signal of the second input end of each detection unit is maintained until the third control signal. Each detection unit locks the first identification signal based on the third control signal, and keeps outputting the first identification signal through the output end.

According to an embodiment of this application, the first control signal is a high-level signal, the second control signal is a rising-edge signal, the third control signal is a low-level signal, the fourth control signal is a low-level signal, the first identification signal is a low-level signal, and the second identification signal is a high-level signal.

Specifically, according to an embodiment of this application, the first connector <NUM> possesses at least one first pin, at least one second pin, and at least one third pin. Each detection unit includes a flip-flop. The flip-flop possesses a CLK end, a D end, and a Q end. The CLK end of the flip-flop is used as a second input end of the detection unit and connected to a corresponding first pin in the first connector <NUM>. The D end of the flip-flop is used as a first input end of the detection unit and connected to a corresponding second pin in the first connector <NUM>. The Q end of the flip-flop is used as an output end of the detection unit and directly connected to a corresponding third pin in the first connector <NUM>. Alternatively, the Q end of the flip-flop is used as an output end of the detection unit and connected to a corresponding input end of a processing unit in the detection module <NUM>. At least one output end of the processing unit is further correspondingly connected to the at least one third pin respectively.

Further, according to an embodiment of this application, each detection unit further includes a first resistor and a second resistor. The CLK end of the flip-flop is connected to a positive electrode of a battery cell <NUM> in the battery assembly <NUM> through the first resistor. The D end of the flip-flop is connected to a negative electrode of the battery cell <NUM> in the battery assembly <NUM> through the second resistor and then grounded.

According to an embodiment of this application, a power end VCC of the flip-flop is connected to a positive electrode of the battery cell <NUM> in the battery assembly <NUM>. A ground end GND of the flip-flop is connected to a negative electrode of the battery cell <NUM> in the battery assembly <NUM>.

Further, according to the present invention, the detection module <NUM> is disposed in the first connector <NUM> in a packaging manner.

In conclusion, in the battery assembly according to this embodiment of this application, when the first connector is connected to the second connector, the detection module outputs the first identification information through the first connector. The first identification information is used to indicate that the battery assembly is in a connected state. After the first connector is disconnected from the second connector, the detection module generates and outputs the second identification information. The second identification information changed from the first identification information is used to indicate that the battery assembly is disconnected. Therefore, the battery assembly according to this embodiment of this application can detect connection status of the battery assembly and the electronic device, and then identify detachment of a battery and ensure safety of the battery and an electronic device in use.

Based on the battery detection system disclosed in the foregoing embodiment, an embodiment of this application further discloses an electronic device. <FIG> is a schematic block diagram of an electronic device according to an embodiment of this application. As shown in <FIG>, the electronic device <NUM> includes a second connector <NUM> and a control module <NUM> connected to the second connector <NUM>.

The second connector <NUM> receives first identification information output by a battery assembly <NUM>. When the second connector <NUM> receives the first identification information, the control module <NUM> confirms that the battery assembly <NUM> is in a connected state. The second connector <NUM> receives second identification information output by the battery assembly <NUM>. When information received by the second connector <NUM> changes from the first identification information to the second identification information, the control module <NUM> confirms that the battery assembly <NUM> is disconnected, where the second identification information is generated after the first connector <NUM> is disconnected from the second connector <NUM>.

Specifically, according to an embodiment of this application, before the battery assembly <NUM> outputs the first identification information, the control module <NUM> further outputs a control signal to the battery assembly <NUM> through the second connector <NUM>.

Further, according to an embodiment of this application, the control module <NUM> correspondingly outputs at least one first control signal and at least one second control signal to the battery assembly <NUM> through the second connector <NUM>.

Furthermore, according to an embodiment of this application, the control module <NUM> is further configured to: when the second connector <NUM> receives the first identification information output by the battery assembly <NUM>, change a corresponding second control signal into a third control signal and output the third control signal through the second connector <NUM>.

According to an embodiment of this application, the control module <NUM> is further configured to exercise restriction control on the battery assembly <NUM> after confirming that the battery assembly <NUM> is disconnected.

Further, according to an embodiment of this application, the control module <NUM> outputs the second control signal or the third control signal by controlling turn-on and turn-off of a switch assembly <NUM>. The switch assembly <NUM> includes: a first switch transistor <NUM> and a third resistor R3. A first end 60a of the first switch transistor <NUM> is connected to a first pin in the second connector <NUM>, a second end 60b of the first switch transistor <NUM> is grounded, and a control end 60c of the first switch transistor <NUM> is connected to the control module <NUM>. The first switch transistor <NUM> is turned on or off under control of the control module <NUM>. One end of the third resistor R3 is connected to the control end 60c of the first switch transistor <NUM>, and a second end of the third resistor R3 is connected to the second end 60b of the first switch transistor <NUM>.

In conclusion, in the electronic device according to this embodiment of this application, when the second connector receives the first identification information output by the battery assembly, the control module confirms that the battery assembly is in a connected state. After the information received by the second connector and output by the battery assembly changes from the first identification information to the second identification information, the control module confirms that the battery assembly is disconnected. Therefore, the electronic device according to this embodiment of this application can detect connection status of the battery assembly and the electronic device, and then identify detachment of a battery and ensure safety of the battery and the electronic device in use.

Corresponding to the battery detection system disclosed in the foregoing embodiment, an embodiment of this application further discloses a battery detection method. <FIG> is a schematic flowchart of a battery detection method not falling under the scope of the present invention. The battery detection method is designed to detect whether a battery assembly is connected to an electronic device. The battery assembly includes a first connector and a detection module connected to the first connector. The electronic device includes a second connector and a control module connected to the second connector. The first connector fits with the second connector to implement connection. As shown in <FIG>, the battery detection method includes the following steps:.

It needs to be noted that the foregoing interpretation and description on the embodiments of the battery detection system are also applicable to the battery detection method disclosed herein, details of which are omitted here.

In conclusion, in the battery detection method according to this embodiment of this application, the detection module detects whether the first connector is connected to the second connector. When the first connector is connected to the second connector, the detection module outputs the first identification information to the electronic device through the first connector. When the second connector receives the first identification information, the control module confirms that the battery assembly is in a connected state. After the first connector is disconnected from the second connector, the detection module generates and outputs the second identification information. When the information received by the second connector changes from the first identification information to the second identification signal, the control module confirms that the battery assembly is disconnected. Therefore, the battery detection method according to this embodiment of this application can detect connection status of the battery assembly and the electronic device, and identify detachment of a battery and ensure safety of the battery and the electronic device in use.

Understandably, in the context of this application, a direction or a positional relationship indicated by the terms such as "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "before", "after", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", and "circumferential" is a direction or positional relationship based on the illustration in the drawings, and is merely intended for ease or brevity of description of this application, but not intended to indicate or imply that the indicated device or component must be located in the specified direction or constructed or operated in the specified direction. Therefore, such terms are not to be understood as a limitation on this application.

In addition, the terms "first" and "second" are used merely for descriptive purposes but are not to be construed as indicating or implying relative importance or implicitly specifying the quantity of technical features indicated. Therefore, the features preceded by "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, unless otherwise expressly specified, "a plurality of" means at least two, for example, two, three, or more.

In this application, unless otherwise expressly specified and qualified, the terms such as "mounting", "concatenation", "connection", and "fixing" need to be understood in a broad sense, for example, understood as a fixed connection or a detachable connection or understood as being integrated into a whole; or understood as a mechanical connection or an electrical connection, a direct connection or an indirect connection implemented through an intermediary; or understood as interior communication between two components or interaction between two components. A person of ordinary skill in the art understands the specific meanings of the terms in this application according to the context.

In this application, unless otherwise expressly specified and qualified, a first feature being "on" or "under" a second feature may be that the first feature is in direct contact with the second feature, or the first feature is in indirect contact with the second feature through an intermediary. In addition, a first feature being "on", "above", or "over" a second feature may be that the first feature is exactly above or obliquely above the second feature, or simply that the first feature is at an altitude higher than the second feature. A first feature being "under", "below", or "beneath" a second feature may be that the first feature is exactly under or obliquely under the second feature, or simply that the first feature is at an altitude lower than the second feature.

Claim 1:
A battery assembly (<NUM>), wherein the battery assembly (<NUM>) comprises a first connector (<NUM>) and a detection module (<NUM>) connected to the first connector (<NUM>), the first connector (<NUM>) is configured to fit with a second connector (<NUM>) of an electronic device (<NUM>) to implement connection, and the detection module (<NUM>) is configured to detect whether the first connector (<NUM>) is connected to the second connector (<NUM>), wherein
when the first connector (<NUM>) is connected to the second connector (<NUM>), the detection module (<NUM>) is configured to output first identification information through the first connector (<NUM>) to indicate that the battery assembly (<NUM>) is in a connected state; and
after the first connector (<NUM>) is disconnected from the second connector (<NUM>), the detection module (<NUM>) is configured to generate and output second identification information to indicate that the battery assembly (<NUM>) is disconnected, characterized in that
the detection module (<NUM>) is disposed in the first connector (<NUM>) in a packaging manner.