Battery in-position detection circuit, battery wake-up method, device and electric scooter
By combining the comparison circuit and the optical coupling circuit, combined with the boost and buck circuit, the problem of misidentification in battery position detection is solved, and the accuracy and safety of battery position detection is achieved.
Patent Information
- Application Number
- CN202510585949.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-08
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2045-05-08
AI Technical Summary
When the existing battery in-position detection circuit is not connected to the entire vehicle, the ID identification port caused by accidental connection is connected to the positive electrode of the battery, which may be mistakenly identified as the lithium battery connected to the entire vehicle, which poses a safety hazard.
By comparing the voltage to be compared and the reference voltage, the controller outputs the detection signal based on the detection signal. The controller determines whether the battery is loaded at the target position, and combines the boost and buck circuits to ensure the accuracy of the detection.
It improves the accuracy of battery in-position detection, reduces the risk of misidentification, and enhances the safety of the battery system.
Smart Images

Figure CN120080765B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of batteries, and in particular, to a battery in-position detection circuit, a battery wake-up method, a device, and an electric scooter. Background Art
[0002] The standard lithium battery interface of an electric scooter is 2+4. Among them, 2 represents the positive and negative electrodes of the battery, and 4 represents the control interface. The positive electrode of the battery is directly led out, and the negative electrode of the battery is led out through a relay. Two of the control interfaces are used for communication, and the other two interfaces are used for battery wake-up and ID (Identity document) recognition.
[0003] ID recognition is for the application scenario where two or more lithium batteries are configured in a vehicle. ID recognition is to encode the identity of each lithium battery, and the vehicle controller obtains the status information of each battery according to the lithium battery ID.
[0004] In the existing battery in-position detection circuit, when the lithium battery is not connected to the vehicle, due to an accident, the ID recognition port is connected to the positive electrode of the battery. For example, when the ID recognition port gets wet and is connected to the positive electrode of the battery, it will be misrecognized as the lithium battery being connected to the vehicle, thus waking up the battery, which poses a safety hazard. Summary of the Invention
[0005] Embodiments of the present application provide a battery in-position detection circuit, a battery wake-up method, a device, and an electric scooter, which are used to accurately identify whether a battery is installed at a target position to reduce safety hazards.
[0006] In a first aspect, the present application provides a battery in-position detection circuit, including:
[0007] A comparison circuit, configured to receive a voltage to be compared and a reference voltage, and obtain an output result according to the voltage to be compared and the reference voltage;
[0008] An optocoupler circuit, connected to the output end of the comparison circuit, and configured to output a detection signal according to the output result;
[0009] Wherein, a controller is connected to the output end of the optocoupler circuit, and is configured to determine whether the battery is loaded at the target position according to the detection signal.
[0010] Optionally, the comparison circuit is further configured to: when the battery is loaded at the target position and the ID recognition port of the battery is connected to the positive output end of the battery, the voltage to be compared output by the ID recognition port is less than the reference voltage.
[0011] Optionally, it further includes:
[0012] A boost circuit, connected to the positive output terminal of the battery, for boosting the first voltage output by the battery to a second voltage;
[0013] The comparison circuit includes a comparator. The positive power supply terminal of the comparator is connected to the output terminal of the boost circuit, and the negative power supply terminal of the comparator is connected to the positive output terminal of the battery.
[0014] Optionally, the comparison circuit further includes: a voltage dividing circuit and a first resistor;
[0015] The first end of the voltage dividing circuit is connected to the positive power supply terminal of the comparator, the second end of the voltage dividing circuit is connected to the negative power supply terminal of the comparator, and the signal output terminal of the voltage dividing circuit is connected to the positive phase input terminal of the comparator;
[0016] The first end of the first resistor is connected to the ID recognition port of the battery, and the second end of the first resistor is connected to the positive power supply terminal of the comparator; the ID recognition port of the battery is connected to the negative phase input terminal of the comparator.
[0017] Optionally, the voltage dividing circuit includes a second resistor and a third resistor;
[0018] The first end of the second resistor is connected to the positive power supply terminal of the comparator, the second end of the second resistor is connected to the first end of the third resistor and is connected to the positive phase input terminal of the comparator, and the second end of the third resistor is connected to the negative power supply terminal of the comparator.
[0019] Optionally, the resistance value of the first resistor is equal to the resistance value of the second resistor.
[0020] Optionally, the optocoupler circuit includes an optocoupler, a fourth resistor, and a fifth resistor;
[0021] The positive electrode of the diode in the optocoupler is connected to the output terminal of the boost circuit through the fourth resistor, and the negative electrode of the diode in the optocoupler is connected to the output terminal of the comparison circuit;
[0022] The collector of the triode of the optocoupler is connected to the target output terminal through the fifth resistor and is the output terminal of the optocoupler circuit; the emitter of the triode of the optocoupler is grounded; the target output terminal is a voltage output terminal.
[0023] Optionally, it further includes:
[0024] A buck circuit, connected to the positive output terminal of the battery, for reducing the first voltage output by the battery to a third voltage and outputting the third voltage through the target output terminal.
[0025] Second aspect, the present application provides a battery wake-up method, which is applied to a controller. There are multiple batteries, and each battery includes N ID recognition ports. The connection methods of the N ID recognition ports of the battery to the positive output terminal of the battery are different, and the connection methods are used to indicate whether the N ID recognition ports are respectively connected to the positive output terminal of the battery; the battery includes N battery in-position detection circuits as described in any item of the first aspect; for any battery, the method includes:
[0026] Determine the detection signals output by each battery in-position detection circuit in the battery;
[0027] When at least one of the N detection signals changes to a target value, and / or when the battery establishes communication with a target component, wake up the battery.
[0028] Optionally, the connection method includes a method in which none of the N ID recognition ports are connected to the positive output terminal of the battery.
[0029] Optionally, the boost modules in the N battery in-position detection circuits are shared, and / or the buck modules in the N battery in-position detection circuits are shared.
[0030] Optionally, the method further includes:
[0031] When at least one of the N detection signals changes to a target value, and / or after the battery establishes communication with a target component, lock the ID information of the battery; the ID information is related to the connection method.
[0032] Optionally, the method further includes:
[0033] Within a preset time period after waking up the battery, determine whether the communication of the battery is normal;
[0034] If the communication of the battery is abnormal, turn off the battery;
[0035] If the communication of the battery is normal, continuously detect the communication situation of the battery, and determine whether to turn off the battery according to the ID information and communication situation of the battery.
[0036] Optionally, determining whether to turn off the battery according to the ID information and communication situation of the battery includes:
[0037] When the locked ID information is that the target value does not exist and the communication is abnormal, turn off the battery.
[0038] Optionally, determining whether to turn off the battery according to the ID information and communication situation of the battery includes:
[0039] When the locked ID information indicates the existence of the target value and abnormal communication, if the ID information of the battery changes to the non-existence of the target value, the battery is turned off.
[0040] In a third aspect, the present application provides a battery wake-up device applied to a controller. There are multiple batteries, and each battery includes N ID recognition ports. The connection methods of the N ID recognition ports of the battery to the positive output terminal of the battery are different, and the connection methods are used to indicate whether each of the N ID recognition ports is connected to the positive output terminal of the battery; each battery includes N battery presence detection circuits as described in any one of the first aspect; for any one of the batteries, the device includes:
[0041] A determination module, configured to determine the detection signals output by each battery presence detection circuit in the battery;
[0042] A wake-up module, configured to wake up the battery when at least one of the N detection signals changes to a target value, and / or when the battery establishes communication with a target component.
[0043] Optionally, the connection method includes a method in which none of the N ID recognition ports is connected to the positive output terminal of the battery.
[0044] In a fourth aspect, the present application provides a controller, including: at least one processor and a memory;
[0045] The memory stores computer-executable instructions;
[0046] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the method as described in any one of the second aspect.
[0047] In a fifth aspect, the present application provides a battery management system, including: the controller as described in the fourth aspect.
[0048] In a sixth aspect, the present application provides a battery, including: the battery presence detection circuit as described in any one of the first aspect, and the battery management system as described in the fifth aspect.
[0049] In a seventh aspect, the present application provides an electric scooter, including: the battery as described in the sixth aspect.
[0050] In an eighth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the method as described in any one of the second aspect is implemented.
[0051] In a ninth aspect, the present application provides a computer program product, including a computer program, which when executed by a processor implements the method as described in any one of the second aspect.
[0052] A battery in-position detection circuit, a battery wake-up method, a device and an electric scooter provided by the present application. The battery in-position detection circuit includes: a comparison circuit, configured to receive a voltage to be compared and a reference voltage, and obtain an output result according to the voltage to be compared and the reference voltage; an opto-coupling circuit, connected to an output end of the comparison circuit, configured to output a detection signal according to the output result; wherein, a controller is connected to the output end of the opto-coupling circuit, configured to determine whether the battery is loaded at a target position according to the detection signal, obtain different voltages to be compared by whether the battery is loaded at the target position, and thus output different detection signals based on the comparison circuit and the opto-coupling circuit to accurately identify whether the battery is loaded at the target position. Through the present application, ID coding of the in-position battery can also be realized, so that each in-position battery has different ID information to participate in vehicle communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.
[0054] Figure 1 Schematic diagram of a battery in-position detection circuit provided by an embodiment of the present application;
[0055] Figure 2 Schematic diagram of another battery in-position detection circuit provided by an embodiment of the present application;
[0056] Figure 3 Schematic flow chart of a battery wake-up method provided by an embodiment of the present application;
[0057] Figure 4 Schematic diagram of different battery ID recognition provided by an embodiment of the present application;
[0058] Figure 5 Schematic flow chart of another battery wake-up method provided by an embodiment of the present application;
[0059] Figure 6 Schematic diagram of the structure of a battery wake-up device provided by an embodiment of the present application;
[0060] Figure 7 Schematic diagram of the hardware structure of a controller provided by an embodiment of the present application.
[0061] Through the above drawings, specific embodiments of the present application have been shown, and there will be more detailed descriptions hereinafter. These drawings and textual descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0062] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0063] For a lithium battery, after the lithium battery is placed at the target position, an operation to wake up the lithium battery can be performed. After the lithium battery is removed from the target position, an operation to turn off the lithium battery can be performed to ensure the safety of the lithium battery.
[0064] Exemplarily, when the lithium battery is connected to the entire vehicle, the positive electrode of the battery (the positive output terminal of the battery) is connected to the ID recognition port of the battery through a wire harness and a plug. The BMS (Battery Management System) of the lithium battery can determine that the battery is connected to the entire vehicle, thereby waking up the battery.
[0065] However, in some scenarios, due to human factors or accidents, such as the ID recognition port of the battery getting wet and connected to the positive output terminal of the battery, it will also be misjudged that the lithium battery is connected to the entire vehicle, and the battery will be woken up. This belongs to an abnormal situation and there are potential safety hazards.
[0066] Based on the above problems, the present application provides a battery in-place detection circuit. By setting a comparison circuit and an optocoupler circuit, the comparison circuit compares the magnitude of the voltage to be detected and the reference voltage to obtain the output result of the comparison circuit, thereby obtaining the detection signal of the optocoupler circuit. The controller in the BMS is connected to the output terminal of the optocoupler circuit. Since whether the battery is loaded at the target position or not can make the voltage to be detected different, the detection signal of the coupling circuit can accurately identify whether the battery is loaded at the target position, reducing potential safety hazards.
[0067] The technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail below with specific embodiments. These several specific embodiments below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.
[0068] Figure 1 A schematic diagram of a battery in-place detection circuit provided by an embodiment of the present application is shown in Figure 1 as follows, including:
[0069] A comparison circuit for receiving a voltage to be compared and a reference voltage and obtaining an output result according to the voltage to be compared and the reference voltage;
[0070] An optical coupling circuit, connected to the output end of the comparison circuit, is configured to output a detection signal according to the output result;
[0071] Wherein, a controller is connected to the output end of the optical coupling circuit and is configured to determine whether the battery is loaded at the target position according to the detection signal.
[0072] Optionally, the comparison circuit includes: when the battery is loaded at the target position and the ID recognition port of the battery is connected to the positive output terminal of the battery, the voltage to be compared output by the ID recognition port is less than the reference voltage.
[0073] The comparison circuit can be used to compare the magnitudes of the voltage to be compared and the reference voltage, and the voltage to be compared can reflect whether the battery is loaded at the target position. When the battery is loaded at the target position, since the ID recognition port of the battery is connected to the positive output terminal of the battery, the voltage to be compared is less than the reference voltage. When the battery is not loaded at the target position, or when the ID recognition port of the battery is accidentally connected to the positive output terminal of the battery, the voltage to be compared will be greater than the reference voltage.
[0074] Therefore, compared with the situation where the battery is not loaded at the target position or when the ID recognition port of the battery is accidentally connected to the positive output terminal of the battery, when the battery is loaded at the target position, the output result of the comparison circuit will be different. Therefore, the detection signal output by the optical coupling circuit will also be different, so that the controller can determine whether the battery is loaded at the target position based on the detection signal of the optical coupling circuit.
[0075] Exemplarily, the voltage to be compared can be connected to the negative-phase input terminal of the comparator in the comparison circuit, and the reference voltage can be connected to the positive-phase input terminal of the comparator in the comparison circuit. Then, when the voltage to be compared is less than the reference voltage, the open-drain output of the comparator is not conductive, and the detection signal output by the optical coupler can be a relatively high voltage; when the voltage to be compared is greater than the reference voltage, the comparator outputs a low level, and the detection signal output by the optical coupler can be a low voltage, such as voltage 0.
[0076] Optionally, when the voltages of the positive power supply terminal and the negative power supply terminal of the comparator are fixed respectively, the reference voltage can be a fixed value.
[0077] A battery in-position detection circuit provided by the present application, the battery in-position detection circuit includes: a comparison circuit, configured to receive a voltage to be compared and a reference voltage, and obtain an output result according to the voltage to be compared and the reference voltage; an opto-coupling circuit, connected to the output end of the comparison circuit, configured to output a detection signal according to the output result; wherein, a controller is connected to the output end of the opto-coupling circuit, configured to determine whether the battery is loaded at a target position according to the detection signal, obtain different voltages to be compared by whether the battery is loaded at the target position, and thus output different detection signals based on the comparison circuit and the opto-coupling circuit to accurately identify whether the battery is loaded at the target position. Through the technical solution provided by the present application, ID coding of the in-position battery can also be realized, so that each in-position battery has different ID information to participate in vehicle communication.
[0078] Figure 2 FIG. is a schematic diagram of another battery in-position detection circuit provided by an embodiment of the present application, as Figure 2 shown, the battery in-position detection circuit further includes:
[0079] A boost circuit, connected to the positive output terminal of the battery, configured to boost the first voltage output by the battery to a second voltage;
[0080] The comparison circuit includes a comparator, a positive power supply terminal of the comparator is connected to an output terminal of the boost circuit, and a negative power supply terminal of the comparator is connected to the positive output terminal of the battery.
[0081] Since the ID recognition port (ID1) of the battery is connected to the positive output terminal of the battery (the output voltage is P+), the negative power supply terminal of the comparator can also be connected to the positive output terminal of the battery.
[0082] Since the supply voltage of the positive power supply terminal of the comparator should be greater than the supply voltage of the negative power supply terminal of the comparator, therefore, the first voltage (P+) output by the positive output terminal of the battery can be boosted to a second voltage (V1) through the boost circuit, so that the voltage input to the positive power supply terminal of the comparator is the second voltage (V1), and the voltage input to the negative power supply terminal of the comparator is the first voltage (P+).
[0083] Exemplarily, the first voltage is 48V and the second voltage is 55V.
[0084] Optionally, the boost circuit means boosting the voltage output by the positive output terminal of the battery by a fixed value. Exemplarily, when the first voltage is 48V, the second voltage is 55V; when the first voltage is 50V, the second voltage is 57V.
[0085] Optionally, the boost circuit can be a voltage conversion module.
[0086] Optionally, the voltage difference between the second voltage and the first voltage should satisfy the operating voltage range of the comparator.
[0087] The second voltage output value is not stable but is the first voltage plus a fixed voltage through a boost circuit, so as to ensure the normal operation of the comparator when the first voltage output from the positive output terminal of the battery varies within a large range; in addition, two power supplies with a voltage difference are used to supply power to the comparator, so that the accuracy of the resistance between the detected ID identification port and the positive output terminal of the battery is very high and is not affected by the voltage output by the battery.
[0088] Optionally, the comparison circuit further includes: a voltage dividing circuit and a first resistor;
[0089] The first end of the voltage dividing circuit is connected to the positive power supply terminal of the comparator, the second end of the voltage dividing circuit is connected to the negative power supply terminal of the comparator, and the signal output terminal of the voltage dividing circuit is connected to the positive phase input terminal of the comparator;
[0090] The first end of the first resistor is connected to the ID identification port of the battery, and the second end of the first resistor is connected to the positive power supply terminal of the comparator; the ID identification port of the battery is connected to the negative phase input terminal of the comparator.
[0091] As Figure 2 shown, the comparison circuit further includes a voltage dividing circuit. Through the connection mode of the voltage dividing circuit, the voltage dividing circuit can obtain a reference voltage REF based on the voltage difference between the positive power supply terminal and the negative power supply terminal of the comparator.
[0092] In addition, a first resistor R1 can be set. The first end of the first resistor R1 is connected to the ID identification port (ID1) of the battery, and the second end is connected to the positive power supply terminal of the comparator, so as to form a voltage dividing circuit with the equivalent resistance R. The equivalent resistance R refers to the resistance when the battery is loaded at the target position. When the battery is loaded at the target position, the resistance value of the equivalent resistance R is small; when the battery is not loaded at the target position, or due to an accident, the ID identification port of the battery is connected to the positive output terminal of the battery, the resistance value of the equivalent resistance R is large. Therefore, the voltage to be compared at the ID identification port will be different.
[0093] The voltage to be compared is input to the negative phase input terminal of the comparator, and the reference voltage is input to the positive phase input terminal of the comparator, so that the comparator can compare the voltage to be compared with the reference voltage.
[0094] By setting the voltage dividing circuit, a reference voltage can be obtained. By setting the first resistor, a voltage dividing circuit can be formed with the equivalent resistance, so as to obtain the voltage to be compared, and the comparison between the voltage to be compared and the reference voltage is realized.
[0095] Optionally, the voltage dividing circuit includes a second resistor and a third resistor;
[0096] The first end of the second resistor is connected to the positive power supply terminal of the comparator. The second end of the second resistor is connected to the first end of the third resistor and is also connected to the positive-phase input terminal of the comparator. The second end of the third resistor is connected to the negative power supply terminal of the comparator.
[0097] As Figure 2 shown, the voltage dividing circuit can be implemented by using two series resistors. By connecting the second resistor R2 and the third resistor R3 in series, a reference voltage is obtained.
[0098] Optionally, the value of the reference voltage is related to the voltage difference between the positive power supply terminal and the negative power supply terminal of the comparator, the resistance value of the second resistor, and the resistance value of the third resistor. When the voltage difference between the positive power supply terminal and the negative power supply terminal of the comparator remains unchanged and the second resistor and the third resistor are determined, the reference voltage remains unchanged.
[0099] A fixed reference voltage can be obtained through two series resistors.
[0100] Optionally, the opto-coupling circuit includes an opto-coupler, a fourth resistor, and a fifth resistor;
[0101] The positive electrode of the diode in the opto-coupler is connected to the output terminal of the boost circuit through the fourth resistor. The negative electrode of the diode in the opto-coupler is connected to the output terminal of the comparison circuit;
[0102] The collector of the triode in the opto-coupler is connected to the target output terminal through the fifth resistor and serves as the output terminal of the opto-coupling circuit; the emitter of the triode in the opto-coupler is grounded; the target output terminal is a voltage output terminal.
[0103] As Figure 2 shown, the opto-coupler can include a diode and a triode. The positive electrode of the diode is connected to the output terminal of the boost circuit through the fourth resistor R4. When the diode conducts, the function of R4 is to limit the current to prevent the diode from being burned out.
[0104] As Figure 2 shown, the collector of the triode is connected to the target output terminal through the fifth resistor R5. When the triode conducts, the function of R5 is to limit the current. When the triode does not conduct, the output voltage is pulled up to V2.
[0105] Since the controller in the BMS is connected to the output terminal ID1_IN of the opto-coupling circuit, the voltage V2 of the target output terminal connected to the fifth resistor is a relatively low voltage to meet the operating conditions of the controller in the BMS.
[0106] Through the opto-coupler, the output result of the comparison circuit can be reduced from a high voltage to a low voltage, enabling the controller in the BMS to identify and process it.
[0107] Optionally, it further includes:
[0108] A buck circuit, connected to the positive output terminal of the battery, is configured to reduce the first voltage output by the battery to a third voltage and output the third voltage through the target output terminal.
[0109] To obtain a lower voltage V2, a buck circuit can be set up and connected to the positive output terminal of the battery, thereby reducing the first voltage P+ output by the battery to the third voltage V2.
[0110] Optionally, the buck circuit can be a voltage conversion module.
[0111] Exemplarily, when the first voltage P+ is 48V, the third voltage V2 can be 5V.
[0112] By setting up the buck circuit, the operating conditions of the controller in the BMS are met.
[0113] Next, Figure 2 the working principle of the shown circuit will be described.
[0114] As Figure 2 shown, BT1 is a storage battery, P+ is connected to the negative power supply terminal of comparator U1, and V1 is connected to the positive power supply terminal of U1. Through the voltage division network composed of resistors R2 and R3, a reference voltage REF is generated and connected to the non-inverting input terminal of U1. The inverting input terminal of U1 is connected to the ID recognition port ID1 and pulled up to V1 through resistor R1. The open-drain output terminal of U1 is connected to the cathode of the diode in optocoupler U2. The anode of the diode in U2 is pulled up to V1 through resistor R4. The emitter of the triode in U2 is connected to GND, and the collector of the triode in U2 is connected to ID1_IN and pulled up to V2 through resistor R5.
[0115] When the lithium battery is not connected to the vehicle, it is equivalent to the resistor R (an equivalent resistor) in the dashed box not existing or having an infinite resistance value. At this time, the voltage of ID1 is equal to V1, which is greater than the REF voltage. The comparator U1 outputs a low level, the diode in U2 conducts, and the triode in U2 also conducts. The voltage of ID1_IN is 0 (low level).
[0116] When the lithium battery is connected to the vehicle, it is equivalent to the existence of R in the dashed box. Under normal circumstances, the resistance value of resistor R is very small, which is equal to the resistance value of the wire connecting P+ to the ID1 port. The resistance values of R1 and R2 are set to be the same, and R3 is the set threshold. When R is less than the resistance value of R3, at this time, the voltage of ID1 is less than the REF voltage, the open-drain output of comparator U1 does not conduct, the diode in U2 does not conduct, and the triode in U2 does not conduct. The voltage output by ID1_IN is V2 (high level).
[0117] When the ID recognition port is accidentally connected to the positive output terminal of the battery, such as when the ID recognition port gets wet, the resistance R is greater than the resistance value of R3. At this time, the voltage of ID1 is greater than the REF voltage, and the voltage of ID1_IN is 0 (low level).
[0118] In summary, only when the lithium battery is connected to the whole vehicle and the resistance value from P+ to ID1 is less than the set threshold, can ID1_IN be recognized as 1. In other cases, ID1_IN is 0. Therefore, the BMS can determine whether the battery is connected to the whole vehicle according to whether the obtained ID1_IN is 1.
[0119] Optionally, the resistance value of the first resistor is equal to the resistance value of the second resistor.
[0120] By setting the resistance values of the first resistor and the second resistor to be equal, the equivalent resistance can be directly compared with the third resistor R to determine whether the battery is connected to the whole vehicle or whether it is loaded at the target position. Usually, when the battery is loaded at the target position, the equivalent resistance is small. Therefore, the resistance value of the third resistor can be reasonably set.
[0121] Exemplarily, the third resistor can be set to 1K. Then, when the equivalent resistance R is less than 1K, ID1_IN will jump from 0 to 1.
[0122] The battery in-position detection circuit proposed in this application is applicable to a large voltage range. That is, regardless of the magnitude of the first voltage output by the positive output terminal of the battery, it can effectively detect whether the battery is loaded at the target position, and the set threshold is not affected by the battery voltage, reducing the risk of misidentifying whether the battery is loaded at the target position.
[0123] Figure 3 It is a schematic flowchart of a battery wake-up method provided by an embodiment of this application. As Figure 4 shown, the method is applied to a controller. There are multiple batteries, and the batteries include N ID recognition ports. The connection methods of the N ID recognition ports of the batteries to the positive output terminal of the battery are different, and the connection methods are used to indicate whether each of the N ID recognition ports is connected to the positive output terminal of the battery; the batteries include N battery in-position detection circuits as described in any item of the first aspect; for any battery, the method includes:
[0124] Step S301, determine the detection signals output by each battery in-position detection circuit in the battery;
[0125] Step S302, when at least one of the N detection signals changes to a target value, and / or when the battery establishes communication with the target component, wake up the battery.
[0126] Based on the aforementioned in - vehicle battery detection circuit, it is possible to determine whether the battery is loaded at the target position, thereby determining whether to wake up the battery.
[0127] Optionally, the connection method includes the method in which none of the N ID recognition ports are connected to the positive output terminal of the battery.
[0128] The battery can be provided with N ID recognition ports. When the battery is connected to the vehicle, whether each ID recognition port of each battery is connected to the positive output terminal of the battery is different, so as to distinguish the ID information of each battery.
[0129] When there are N ID recognition ports in the battery, N in - vehicle battery detection circuits need to be correspondingly set. The controller can obtain the detection signals output by each in - vehicle battery detection circuit in the battery, thereby determining whether the battery is connected to the vehicle. Optionally, when there is a change in one detection signal to a target value, such as changing from 0 to 1, it is determined that the battery is connected to the vehicle, thereby waking up the battery.
[0130] For a battery where none of the N ID recognition ports are connected to the positive output terminal of the battery, it is impossible to determine whether the battery is connected to the vehicle through the in - vehicle battery detection circuit. It can be judged by the way of whether the battery establishes communication with the target component. When the battery is connected to the vehicle, the target component such as the instrument can send data to the battery through the communication line, and the BMS can determine whether the battery establishes communication with the target component.
[0131] Therefore, for any battery, when at least one of the N detection signals changes to the target value, and / or when the battery establishes communication with the target component, it means that the battery is connected to the vehicle, or when the battery is loaded at the preset position, the battery can be woken up.
[0132] Figure 4 This is a schematic diagram of different battery ID recognition provided by the embodiment of the present application. As Figure 4 shown, there may be multiple batteries. For example, in an electric scooter, multiple lithium batteries can be set. Then, for the whole vehicle, it is necessary to obtain the ID information and the status information of each lithium battery to distinguish the status information of each battery. Figure 4 It shows the situation where the battery has 2 ID recognition ports.
[0133] As Figure 4 shown, the following combinations of 2 ID recognition ports can be achieved through wire harness configuration: 00, 01, 10, 11, where 0 represents that the positive output terminal of the battery is not connected to the ID recognition port, 1 represents that the positive output terminal of the battery is connected to the ID recognition port, and 2 ID recognition ports support configuring four lithium batteries for the whole vehicle.
[0134] Exemplarily, two interfaces can be set at each target position. The two interfaces can be connected or not connected to the P+ terminal of the vehicle harness in advance. When the battery is connected, the ID recognition port can be connected or not connected to the P+ terminal of the vehicle harness. The P+ terminal of the vehicle harness is one end after the P+ terminals of each battery are connected in parallel.
[0135] The detection signals output by the battery in-position detection circuit can be used to identify whether batteries 2, 3, and 4 are connected to the vehicle. Based on communication judgment, it can be determined whether battery 1 is connected to the vehicle.
[0136] When multiple lithium batteries are installed on the vehicle, the battery specifications are the same, and the battery in-position detection circuits inside each ID recognition port are the same. When there are N ID recognition ports for the battery, it supports the ID recognition and wake-up of 2 to the Nth power lithium batteries.
[0137] Exemplarily, as Figure 4 shown, when there are two ID recognition ports, the IDs of 4 lithium batteries can be recognized. Each battery contains two battery in-position detection circuits, which are respectively connected to the positions where ID1 and ID2 are located. There is a BMS in each battery. The controller in the BMS can obtain the detection signals to determine the ID information of the battery. The ID information of the battery is the combination of the detection signals output by the battery in-position detection circuits in each battery.
[0138] Exemplarily, when the ID information of the battery is detected as 11, it is determined that a battery is installed at the position of battery 4, and the ID information of this battery is 11.
[0139] Optionally, waking up the battery means closing the relay K at the negative terminal of the battery to charge or discharge the battery.
[0140] As Figure 4 shown, among the four wire harnesses, C1 and C2 are the vehicle communication buses, P+ is the positive pole of the vehicle power supply, and the battery has four interfaces, namely ID1, ID2, C1, and C2. The P+ of batteries 1 to 4 are connected together, and the P- of batteries 1 to 4 are connected together. The respective GNDs of batteries 1 to 4 are respectively connected to P- through the internal relay K. When the battery is connected to the vehicle, the ID information of battery 1 is 00, the ID information of battery 2 is 01, the ID information of battery 3 is 10, and the ID information of battery 4 is 11. Among them, when any one of batteries 2, 3, and 4 is connected to the vehicle to complete wake-up, the vehicle is powered on after the battery is woken up, and communication is established. At this time, battery 1 can be woken up through communication.
[0141] The battery wake-up method provided by the embodiments of the present application is applied to a controller. There are multiple batteries, and each battery includes N ID recognition ports. The connection modes of the N ID recognition ports of the battery to the positive output terminal of the battery are different, and the connection modes are used to indicate whether each of the N ID recognition ports is connected to the positive output terminal of the battery; each battery includes N battery presence detection circuits as described in any item of the first aspect; for any one battery, the method includes: determining the detection signals output by each battery presence detection circuit in the battery; when at least one of the N detection signals changes to a target value, and / or when the battery establishes communication with a target component, waking up the battery, realizing the wake-up of the battery under different connection modes, and realizing the wake-up of 2 to the power of N square batteries when there are N ID recognition ports.
[0142] Optionally, the boost modules in the N battery presence detection circuits are shared, and / or the buck modules in the N battery presence detection circuits are shared.
[0143] For one battery, when there are N ID recognition ports, N comparison circuits and N optocoupler circuits can be set, corresponding to the N ID recognition ports respectively, to obtain the ID information of the battery.
[0144] For the boost circuit, only one can be set in one battery to connect the output terminal of the boost circuit to the positive power supply terminal of the comparator in each comparison circuit to supply power to each comparator.
[0145] For the buck circuit, only one can be set in one battery to connect the output terminal of the buck circuit to each optocoupler circuit.
[0146] By setting only one boost circuit and / or one buck circuit for one battery, the cost of the battery can be saved.
[0147] Figure 5 It is a schematic flowchart of another battery wake-up method provided by the embodiments of the present application. As Figure 5 shown, when it is determined that the battery is connected to the vehicle, the ID information of the battery can also be locked to avoid the battery being turned off or the communication being abnormal caused by the ID information changing due to poor contact or the interface being contaminated (unexpected short circuit or open circuit) due to vibration after the battery is normally woken up. In addition, it is also possible to determine whether to turn off the battery based on whether the communication of the battery is normal, so as to ensure the safety of the battery. The above process will be described in detail below.
[0148] Optionally, the method further includes:
[0149] When at least one of the N detection signals changes to a target value, and / or when the battery establishes communication with a target component, lock the ID information of the battery; the ID information is related to the connection method.
[0150] When at least one of the N detection signals changes to a target value, and / or when the battery establishes communication with a target component, it is determined that the battery is connected to the entire vehicle or loaded at a target position, and then the ID information of the battery can be locked.
[0151] Exemplarily, as Figure 4 shown, when the ID information of battery 4 is detected as 11, the ID information is locked to prevent the ID information of the battery from changing due to poor contact caused by vibration subsequently.
[0152] Optionally, the method further includes:
[0153] Within a preset duration after waking up the battery, determine whether the communication of the battery is normal;
[0154] If the communication of the battery is abnormal, turn off the battery;
[0155] If the communication of the battery is normal, continuously detect the communication situation of the battery, and determine whether to turn off the battery according to the ID information and communication situation of the battery.
[0156] After waking up the battery, it can also be determined whether to turn off the battery. For example, when the battery is removed from the entire vehicle, the battery can be turned off. Turning off the battery means turning on the relay K of the battery.
[0157] Optionally, it can be determined by whether the communication is normal. When the communication of the battery is abnormal within a preset duration after waking up the battery, the battery is directly turned off.
[0158] If the communication of the battery is normal within a preset duration after waking up the battery, it means that the battery is not being used abnormally, and then the communication situation of the battery can be continuously detected to determine whether the battery is removed from the entire vehicle, so as to accurately determine whether to turn off the battery.
[0159] Optionally, within a few seconds after waking up the battery, determine whether the communication of the battery is normal. When it is abnormal, turn off the battery, which can prevent the lithium battery from being used abnormally, such as artificially or accidentally changing the ID information of the battery to wake up the battery.
[0160] Optionally, determining whether to turn off the battery according to the ID information and communication situation of the battery includes:
[0161] When the locked ID information does not have the target value and the communication is abnormal, turn off the battery.
[0162] When communication is normal within a few seconds after the battery is awakened, it indicates that the battery has not been misused, and then it is possible to continue to determine whether the battery has been removed from the vehicle to determine whether to turn off the battery.
[0163] When the locked ID information has no target value, that is, the detection signals output by the respective in-position detection circuits of the battery are all 0, then when communication is abnormal, it can be determined that the battery has been removed from the vehicle, and thus the battery is turned off.
[0164] Although it is also possible that the battery has not been removed from the vehicle at this time, based on the in-position detection circuit of the battery, it is impossible to determine whether the battery has been removed from the vehicle. To ensure battery safety, the battery is turned off.
[0165] By turning off the battery when communication of the battery is abnormal and the locked ID information has no target value, the safety of the battery can be ensured.
[0166] Optionally, determining whether to turn off the battery according to the ID information and communication status of the battery includes:
[0167] When the locked ID information has the target value and communication is abnormal, if the ID information of the battery changes to have no target value, then the battery is turned off.
[0168] When the locked battery ID information has the target value, for example, the detection signals output by the respective in-position detection circuits of the battery include 1. When communication of the battery is abnormal, it is possible to continue to determine whether the battery ID information has changed. When the ID information of the battery changes to have no target value, that is, the detection signals output by the respective in-position detection circuits of the battery change from including 1 to all 0, it indicates that the battery has been removed from the vehicle, and at this time the battery can be turned off.
[0169] When the battery shutdown condition is not met, the battery operates normally. When the battery shutdown condition is met, after turning off the battery, it returns to the start state.
[0170] Figure 6 The following is a schematic structural diagram of a battery wake-up device provided by an embodiment of the present application, which is applied to a controller. There are multiple batteries, and each battery includes N ID recognition ports. The connection modes of the N ID recognition ports of the battery to the positive output terminal of the battery are different, and the connection modes are used to indicate whether the N ID recognition ports are respectively connected to the positive output terminal of the battery; each battery includes N battery in-position detection circuits as described in any item of the first aspect; for any one battery, the device 60 includes:
[0171] A determination module 601, configured to determine the detection signals output by each battery in-position detection circuit in the battery;
[0172] The wake-up module 602 is configured to wake up the battery when at least one of the N detection signals changes to a target value, and / or when the battery establishes communication with a target component.
[0173] Optionally, the connection method includes a method in which none of the N ID recognition ports are connected to the positive output terminal of the battery.
[0174] Optionally, the boost modules in the N battery presence detection circuits are shared, and / or the buck modules in the N battery presence detection circuits are shared.
[0175] Optionally, the device further includes: a processing module, configured to:
[0176] When at least one of the N detection signals changes to a target value, and / or after the battery establishes communication with a target component, lock the ID information of the battery; the ID information is related to the connection method.
[0177] Optionally, the processing module is further configured to:
[0178] Within a preset duration after waking up the battery, determine whether the communication of the battery is normal;
[0179] If the communication of the battery is abnormal, turn off the battery;
[0180] If the communication of the battery is normal, continuously detect the communication status of the battery, and determine whether to turn off the battery according to the ID information and communication status of the battery.
[0181] Optionally, when the processing module determines whether to turn off the battery according to the ID information and communication status of the battery, it is specifically configured to:
[0182] When the locked ID information indicates the non-existence of the target value and the communication is abnormal, turn off the battery.
[0183] Optionally, when the processing module determines whether to turn off the battery according to the ID information and communication status of the battery, it is specifically configured to:
[0184] When the locked ID information indicates the existence of the target value and the communication is abnormal, if the ID information of the battery changes to the non-existence of the target value, turn off the battery.
[0185] The battery wake-up device 60 provided by the embodiments of the present application can implement the battery wake-up method of the above embodiments as Figure 3 shown. The implementation principle and technical effects are similar, and will not be elaborated here.
[0186] Figure 7This is a schematic diagram of the hardware structure of a controller provided by an embodiment of the present application. As Figure 7 shown, the controller provided in this embodiment includes: at least one processor 701 and a memory 702. Among them, the processor 701 and the memory 702 are connected through a bus 703.
[0187] In a specific implementation process, at least one processor 701 executes computer-executable instructions stored in the memory 702, so that at least one processor 701 executes the method in the above method embodiment.
[0188] For the specific implementation process of the processor 701, reference can be made to the above method embodiment. Their implementation principles and technical effects are similar, and will not be elaborated here in this embodiment.
[0189] In the above Figure 7 shown embodiment, it should be understood that the processor can be a central processing unit (English: Central Processing Unit, abbreviated: CPU), or other general-purpose processors, digital signal processors (English: Digital Signal Processor, abbreviated: DSP), application specific integrated circuits (English: Application SpecificIntegrated Circuit, abbreviated: ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in combination with the invention can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
[0190] The memory may include high-speed RAM memory, and may also include non-volatile storage NVM, such as at least one disk memory.
[0191] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0192] The embodiment of the present application also provides a battery management system, including: the controller as described in the foregoing embodiment.
[0193] An embodiment of the present application further provides a battery, including: the battery in-position detection circuit as described in the foregoing embodiment, and the battery management system as described in the foregoing embodiment.
[0194] An embodiment of the present application further provides an electric scooter, including: the battery as described in the foregoing embodiment.
[0195] An embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the methods of the foregoing method embodiments are implemented.
[0196] An embodiment of the present application further provides a computer program product, including a computer program. When the computer program is executed by a processor, the methods of the foregoing method embodiments are implemented.
[0197] The foregoing computer-readable storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk or an optical disc. The readable storage medium may be any available medium accessible by a general-purpose or special-purpose computer.
[0198] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium may also be a component of the processor. The processor and the readable storage medium may be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium may also exist as discrete components in a device.
[0199] It should be noted that, in this article, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including the element.
[0200] The serial numbers of the foregoing embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
[0201] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of the present application.
[0202] The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present application.
Claims
1. A battery in-situ detection circuit, characterized in that, Comprising: A comparison circuit, configured to receive a voltage to be compared and a reference voltage, and obtain an output result according to the voltage to be compared and the reference voltage; An opto-coupling circuit, connected to the output end of the comparison circuit, and configured to output a detection signal according to the output result; Wherein, a controller is connected to the output end of the opto-coupling circuit, and is configured to determine whether the battery is loaded at a target position according to the detection signal; The comparison circuit includes a comparator, a voltage dividing circuit and a first resistor; A first end of the voltage dividing circuit is connected to a positive power supply end of the comparator, a second end of the voltage dividing circuit is connected to a negative power supply end of the comparator, and a signal output end of the voltage dividing circuit is connected to a positive phase input end of the comparator; A first end of the first resistor is connected to an ID identification port of the battery, and a second end of the first resistor is connected to the positive power supply end of the comparator; the ID identification port of the battery is connected to a negative phase input end of the comparator.
2. The battery in-situ detection circuit according to claim 1, wherein, Further comprising: A boost circuit, connected to a positive output end of the battery, and configured to boost a first voltage output by the battery to a second voltage; The positive power supply end of the comparator is connected to an output end of the boost circuit, and the negative power supply end of the comparator is connected to the positive output end of the battery.
3. The battery in-situ detection circuit according to claim 1, characterized in that, The voltage dividing circuit includes a second resistor and a third resistor; A first end of the second resistor is connected to the positive power supply end of the comparator, a second end of the second resistor is connected to a first end of the third resistor and is connected to the positive phase input end of the comparator, and a second end of the third resistor is connected to the negative power supply end of the comparator.
4. The battery in-situ detection circuit according to claim 3, wherein, The resistance value of the first resistor is equal to the resistance value of the second resistor.
5. The battery in-situ detection circuit according to any one of claims 1-4, characterized in that, The opto-coupling circuit includes an opto-coupler, a fourth resistor and a fifth resistor; A positive electrode of a diode in the opto-coupler is connected to an output end of the boost circuit through the fourth resistor, and a negative electrode of the diode in the opto-coupler is connected to an output end of the comparison circuit; A collector of a triode in the opto-coupler is connected to a target output end through the fifth resistor, and is the output end of the opto-coupling circuit; an emitter of the triode in the opto-coupler is grounded; the target output end is a voltage output end; and / or, The comparison circuit is further configured to: when the battery is loaded at the target position and the ID identification port of the battery is connected to the positive output end of the battery, the voltage to be compared output by the ID identification port is less than the reference voltage.
6. The battery in-situ detection circuit according to claim 5, wherein, Further comprising: A buck circuit, connected to a positive output end of the battery, and configured to reduce a first voltage output by the battery to a third voltage, and output the third voltage through the target output end.
7. A battery wake-up method, characterized in that, Applied to a controller, there are multiple batteries, the batteries include N ID identification ports, connection manners of the N ID identification ports of the batteries to the positive output end of the battery are different, and the connection manners are used to indicate whether the N ID identification ports are respectively connected to the positive output end of the battery; the batteries include N battery-in-position detection circuits as described in any one of claims 1-6; For any one of the batteries, the method includes: Determining detection signals output by each battery-in-position detection circuit in the battery; When at least one of the N detection signals changes to a target value, and / or when the battery establishes communication with a target component, the battery is woken up.
8. The method according to claim 7, wherein The boost modules in the N battery presence detection circuits are shared, and / or the buck modules in the N battery presence detection circuits are shared; And / or, the connection method includes a method in which none of the N ID recognition ports are connected to the positive output terminal of the battery.
9. The method according to claim 7 or 8, characterized in that, The method further includes: When at least one of the N detection signals changes to a target value, and / or after the battery establishes communication with a target component, the ID information of the battery is locked; the ID information is related to the connection method.
10. The method according to claim 9, wherein The method further includes: Within a preset time period after waking up the battery, it is determined whether the communication of the battery is normal; If the communication of the battery is abnormal, the battery is turned off; If the communication of the battery is normal, continuously detect the communication status of the battery, and determine whether to turn off the battery according to the ID information and communication status of the battery.
11. The method according to claim 10, wherein Determining whether to turn off the battery according to the ID information and communication status of the battery includes: When the locked ID information is that the target value does not exist and the communication is abnormal, the battery is turned off; and / or, Determining whether to turn off the battery according to the ID information and communication status of the battery includes: When the locked ID information is that the target value exists and the communication is abnormal, if the ID information of the battery changes to the target value not existing, the battery is turned off.
12. A battery wake-up device, characterized in that, Applied to a controller, there are multiple batteries, the battery includes N ID recognition ports, the connection methods of the N ID recognition ports of the battery to the positive output terminal of the battery are different, the connection method is used to indicate whether each of the N ID recognition ports is connected to the positive output terminal of the battery; the battery includes N battery presence detection circuits according to any one of claims 1-6; For any one battery, the device includes: A determination module for determining the detection signals output by each battery presence detection circuit in the battery; A wake-up module for waking up the battery when at least one of the N detection signals changes to a target value, and / or when the battery establishes communication with a target component.
13. The device according to claim 12, characterized in that, The connection method includes a method in which none of the N ID recognition ports are connected to the positive output terminal of the battery.
14. A controller, characterized in that, Includes: At least one processor and a memory; The memory stores computer execution instructions; The at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes the method according to any one of claims 7 to 11.
15. A battery management system, characterized in that, Includes: The controller according to claim 14.
16. A battery, characterized in that, Includes: The battery presence detection circuit according to any one of claims 1-6, and the battery management system according to claim 15.
17. An electric scooter, characterized in that, Includes: The battery according to claim 16.
18. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer execution instructions, and when the processor executes the computer execution instructions, the method according to any one of claims 7 to 11 is implemented.
19. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, the method according to any one of claims 7 to 11 is implemented.
Citation Information
Patent Citations
Information management method and device, electronic equipment and storage medium
CN116552330A
Detection circuit of battery module, battery management system and vehicle
CN217425622U
Method for battery removal detection
US20130111251A1