Battery voltage detection circuit, charging system, vehicle, method, device and medium
By using voltage sampling capacitors, detection control modules and optocouple isolation modules in the battery voltage detection circuit, low-power voltage detection is realized, solving the problem that voltage detection in the prior art is not suitable for the vehicle sleep state, and ensuring the battery voltage Accurate judgment and safety.
Patent Information
- Application Number
- CN202411223554.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-09-03
AI Technical Summary
In the prior art, the power consumption of real-time monitoring of battery voltage is relatively large and is not suitable for voltage detection in the dormant state of the vehicle, resulting in an increase in the risk of battery power loss.
A voltage detection circuit including voltage sampling capacitor, detection control module, optocouple isolation module and optocouple isolation drive module is designed. By enabling signals, the optocouple isolation drive module outputs the driving signal to realize voltage acquisition and charging, which is suitable for vehicles. Voltage detection in the dormant state of the whole vehicle.
It realizes low-power battery voltage detection, can accurately judge the battery voltage status, and is suitable for voltage detection in the dormant state of the vehicle, reducing the risk of battery power loss.
Smart Images

Figure CN118731475B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of automobile batteries, and in particular to a battery voltage detection circuit, a charging system, a vehicle, a method, a device and a medium. Background Art
[0002] In order to meet the increasing demand of car users for driving experience, new energy vehicles continue to upgrade in terms of electrification and intelligence, and their functions are becoming more and more abundant, but at the same time, it also brings about a continuous increase in the static power consumption of the whole vehicle. In view of the consideration of saving the manufacturing cost of the whole vehicle, the capacity of the battery in the car cannot be increased indefinitely. Therefore, when the car is in a stationary state, the increase in the static power consumption of the whole vehicle will lead to a corresponding shortening of the continuous power supply time of the low-voltage battery, thereby increasing the risk of battery power failure.
[0003] Chinese patent CN205229425U discloses an over-voltage and under-voltage fault detection circuit for a low-voltage battery on an electric vehicle. The solution of this patent realizes battery voltage detection by real-time monitoring of the battery voltage, which consumes a large amount of power and is not suitable for battery voltage detection when the vehicle is in a dormant state. Summary of the invention
[0004] In view of the shortcomings of the prior art mentioned above, the present application provides a battery voltage detection circuit, charging system, vehicle, method, equipment and medium to solve the technical problem that the above-mentioned method of real-time monitoring of the battery voltage consumes large power and is not suitable for battery voltage detection when the vehicle is in a dormant state.
[0005] The present application provides a voltage detection circuit of a battery, wherein the voltage detection circuit of the battery comprises a voltage sampling capacitor, a detection control module for collecting voltage, an optocoupler isolation module for switching circuits, and an optocoupler isolation drive module for driving the optocoupler isolation module to switch on and off; the optocoupler isolation module comprises a first optocoupler isolation submodule and a second optocoupler isolation submodule; the detection control module is connected to the optocoupler isolation drive module; the optocoupler isolation drive module is respectively connected to the first optocoupler isolation submodule and the second optocoupler isolation submodule; the voltage sampling capacitor is connected to the battery through the first optocoupler isolation submodule, and is connected to the battery through the second optocoupler isolation submodule The block is connected to the detection control module; the detection control module sends an enable signal to the optocoupler isolation driving module, triggering the optocoupler isolation driving module to successively output a first drive signal and a second drive signal; when the optocoupler isolation driving module outputs the first drive signal, the first optocoupler isolation submodule is turned on, and the second optocoupler isolation submodule is turned off, causing the battery to charge the voltage sampling capacitor; when the optocoupler isolation driving module outputs the second drive signal, the first optocoupler isolation submodule is turned off, and the second optocoupler isolation submodule is turned on, causing the detection control module to collect the voltage of the voltage sampling capacitor to determine the voltage state of the battery.
[0006] In one embodiment of the present application, the optocoupler isolation driving module includes a first transistor, a second transistor, a third transistor and a capacitor, the first transistor and the third transistor are NPN transistors, and the second transistor is a PNP transistor; the base of the first transistor, the base of the third transistor and the first end of the capacitor are connected to the first interface of the detection control module; the collector of the first transistor is connected to the circuit power supply, and the emitter of the first transistor is respectively connected to the emitter of the second transistor and the collector of the third transistor; the collector of the second transistor is connected to the positive input terminal of the first optocoupler isolation sub-module, and the emitter of the third transistor is connected to the positive input terminal of the second optocoupler isolation sub-module; the base of the second transistor, the emitter of the third transistor, the second end of the capacitor, the negative input terminal of the first optocoupler isolation sub-module and the negative input terminal of the second optocoupler isolation sub-module are connected to the ground terminal of the detection control module.
[0007] In one embodiment of the present application, the first optocoupler isolator module includes a first optocoupler isolator and a second optocoupler isolator; the output collector of the first optocoupler isolator is connected to the positive electrode of the battery, and the output emitter of the first optocoupler isolator is connected to the first end of the voltage sampling capacitor; the output collector of the second optocoupler isolator is connected to the second end of the voltage sampling capacitor, and the output emitter of the second optocoupler isolator is connected to the negative electrode of the battery.
[0008] In one embodiment of the present application, the second optocoupler isolator module includes a third optocoupler isolator and a fourth optocoupler isolator; the output collector of the third optocoupler isolator is connected to the second interface of the detection control module, and the output emitter of the third optocoupler isolator is connected to the first end of the voltage sampling capacitor; the output collector of the fourth optocoupler isolator is connected to the second end of the voltage sampling capacitor, and the output emitter of the fourth optocoupler isolator is connected to the ground end of the detection control module.
[0009] In one embodiment of the present application, the optocoupler isolation driving module also includes a first resistor, a second resistor and a third resistor; the base of the third transistor and the first end of the capacitor are connected to the first interface of the detection control module through the first resistor; the collector of the first transistor is connected to the circuit power supply through the second resistor; the base of the second transistor and the emitter of the third transistor are connected to the ground terminal of the detection control module through the third resistor.
[0010] In one embodiment of the present application, the voltage detection circuit of the battery also includes a fourth resistor, a fifth resistor and a sixth resistor; the voltage sampling capacitor is connected in parallel with the fourth resistor; the output emitter of the first optocoupler isolator is connected to the first end of the voltage sampling capacitor through the fifth resistor; the output collector of the third optocoupler isolator is connected to the second interface of the detection control module through the sixth resistor.
[0011] In one embodiment of the present application, a battery charging system is also provided, and the battery charging system includes: a battery; a battery management controller, including the battery voltage detection circuit as described above, for detecting the voltage state of the battery; a DC converter, for charging the battery; a vehicle controller, for waking up and sleeping an in-vehicle controller, and the in-vehicle controller includes the vehicle controller, the battery management controller and the DC converter.
[0012] In one embodiment of the present application, a vehicle is also provided, the vehicle comprising the battery charging system as described above.
[0013] In one embodiment of the present application, a battery charging method is also provided, which is applied to the battery charging system as described above, and the battery charging method includes: in response to a vehicle power-off command, the vehicle controller controls the in-vehicle controller to enter a sleep state; after the battery management controller enters the sleep state, the detection control module sends an enable signal to collect the voltage of the voltage sampling capacitor, and wakes up the battery management controller when the currently collected capacitor voltage is less than a preset voltage threshold; the battery management controller detects the voltage of the battery, determines the voltage state of the battery according to the currently detected battery voltage, and wakes up the DC converter through the vehicle controller when the battery is in an undervoltage state, so that the DC converter charges the battery.
[0014] In one embodiment of the present application, when the battery is in an undervoltage state, the battery charging method further includes: the battery management controller calculates the voltage drop difference of the battery based on the currently detected battery voltage and the voltage of the battery when the vehicle is powered off, and calculates the parking time of the vehicle based on the detection time of the currently detected battery voltage and the vehicle power-off time, wherein the voltage of the battery at the time of vehicle power-off is obtained by the battery management controller performing voltage detection on the battery in response to the vehicle power-off instruction; determining the degree of aging of the battery based on the voltage drop difference and the parking time; if the degree of aging of the battery exceeds a preset degree, generating a reminder message, and pushing the reminder message in response to the vehicle power-on instruction.
[0015] In one embodiment of the present application, an electronic device is also provided, comprising: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device implements the battery charging method as described above.
[0016] In one embodiment of the present application, a computer-readable storage medium is further provided, on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the battery charging method as described above.
[0017] Beneficial effects of the present invention: The present invention provides a battery voltage detection circuit, charging system, vehicle, method, equipment and medium, wherein the detection control module sends an enable signal to the optocoupler isolation drive module, triggering the optocoupler isolation drive module to successively output a first drive signal and a second drive signal. When the optocoupler isolation drive module outputs the first drive signal, the first optocoupler isolation submodule is turned on, and the second optocoupler isolation submodule is turned off, causing the battery to charge the voltage sampling capacitor. When the optocoupler isolation drive module outputs the second drive signal, the first optocoupler isolation submodule is turned off, and the second optocoupler isolation submodule is turned on, causing the detection control module to collect the voltage of the voltage sampling capacitor to determine the voltage state of the battery, thereby being able to accurately determine whether the battery voltage is undervoltage. The circuit structure of the detection circuit is simple, and the cost of electronic components is low. Moreover, the detection process is controlled by the enable signal of the detection control module, which is more suitable for battery voltage detection in the dormant state of the vehicle.
[0018] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0020] Figure 1 is a block diagram of a battery voltage detection circuit shown in an exemplary embodiment of the present application;
[0021] Figure 2 is a schematic diagram of a battery voltage detection circuit shown in a specific embodiment of the present application;
[0022] Figure 3 is a flow chart of a battery charging method shown in an exemplary embodiment of the present application;
[0023] Figure 4 It is a schematic diagram of a low-voltage battery inspection process shown in a specific embodiment of the present application;
[0024] Figure 5 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0025] The following will describe the implementation methods of the present application with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustrating the present application, not for limiting the scope of protection of the present application.
[0026] It should be noted that in this application, "first", "second", etc. are only used to distinguish similar objects, and are not used to limit the order or precedence of similar objects. The variations of "including", "having", etc. described above indicate that the scope covered by the subject of the word is not exclusive except for the examples shown by the word.
[0027] It is understood that the various numbers, step numbers, and other reference numerals recorded in this application are distinguished for the convenience of description and are not intended to limit the scope of this application. The size of the reference numerals in this application does not mean the order of execution. The execution order of each process should be determined by its function and internal logic.
[0028] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present application difficult to understand.
[0029] The embodiments of the present application respectively propose a battery voltage detection circuit, a battery charging system, a vehicle, a battery charging method, an electronic device, a computer-readable storage medium and a computer program product, which will be described in detail below.
[0030] See also Figure 1 , Figure 1 FIG. 1 is a block diagram of a battery voltage detection circuit shown in an exemplary embodiment of the present application. Figure 1 As shown, the exemplary battery voltage detection circuit includes a voltage sampling capacitor, a detection control module for collecting voltage, an optocoupler isolation module for switching the circuit, and an optocoupler isolation drive module for driving the optocoupler isolation module to switch on and off; the optocoupler isolation module includes a first optocoupler isolation sub-module and a second optocoupler isolation sub-module;
[0031] The detection control module is connected to the optocoupler isolation drive module; the optocoupler isolation drive module is respectively connected to the first optocoupler isolation sub-module and the second optocoupler isolation sub-module; the voltage sampling capacitor is connected to the battery through the first optocoupler isolation sub-module, and is connected to the detection control module through the second optocoupler isolation sub-module;
[0032] The detection control module sends an enable signal to the optocoupler isolation driving module, triggering the optocoupler isolation driving module to successively output the first drive signal and the second drive signal; when the optocoupler isolation driving module outputs the first drive signal, the first optocoupler isolation sub-module is turned on and the second optocoupler isolation sub-module is turned off, causing the battery to charge the voltage sampling capacitor; when the optocoupler isolation driving module outputs the second drive signal, the first optocoupler isolation sub-module is turned off and the second optocoupler isolation sub-module is turned on, causing the detection control module to collect the voltage of the voltage sampling capacitor to determine the voltage state of the battery.
[0033] In this embodiment, the output end of the first optocoupler isolator module is respectively connected to the voltage sampling capacitor and the battery to form a charging circuit, wherein the first optocoupler isolator module serves as a switch of the charging circuit to control the on and off of the charging circuit, the optocoupler isolator driving module is connected to the input end of the first optocoupler isolator module, and the first optocoupler isolator module is used to achieve electrical isolation between the optocoupler isolator driving module and the charging circuit; the output end of the second optocoupler isolator module is respectively connected to the voltage sampling capacitor and the detection control module to form a collection circuit, wherein the second optocoupler isolator module serves as a switch of the collection circuit to control the on and off of the collection circuit, the optocoupler isolator driving module is connected to the input end of the second optocoupler isolator module, and the second optocoupler isolator module is used to achieve electrical isolation between the optocoupler isolator driving module and the collection circuit. The circuit switching between the charging circuit and the collection circuit is achieved by the optocoupler isolator driving module switching the first optocoupler isolator module and the second optocoupler isolator module. In response to the enable signal sent by the detection control module, the optocoupler isolation drive module first outputs the first drive signal to the first optocoupler isolation module to turn on the first optocoupler isolation module. At this time, the second optocoupler isolation module is in the off state. Correspondingly, the charging circuit is connected and the acquisition circuit is in the off state. After a period of time, the optocoupler isolation drive module stops outputting the first drive signal and starts outputting the second drive signal to turn off the first optocoupler isolation module and turn on the second optocoupler isolation module. Correspondingly, the charging circuit is disconnected and the acquisition circuit is connected. When the charging circuit is connected, the battery charges the voltage sampling capacitor. When the acquisition circuit is connected, the detection control module acquires the voltage of the voltage sampling capacitor so that the voltage state of the battery can be judged based on the acquired capacitor voltage.
[0034] It should be understood that batteries in the automotive field usually refer to low-voltage batteries, that is, batteries used to start the vehicle and provide a 12V operating voltage for the vehicle's electrical equipment.
[0035] In a specific embodiment of the present application, the detection control module may be an AFE (Analog Front-End) chip, which may collect the voltage of the voltage sampling capacitor by periodically sending an enable signal. The undervoltage threshold voltage of the battery may be preset as a preset voltage threshold, and the AFE chip compares the collected capacitor voltage with the preset voltage threshold. When the collected capacitor voltage is lower than the preset voltage threshold, it may be determined that the battery is in an undervoltage state. When the collected capacitor voltage is higher than or equal to the preset voltage threshold, it may be determined that the battery is in a non-undervoltage state, i.e., a normal state.
[0036] In one embodiment of the present application, the first optocoupler isolator module includes a first optocoupler isolator and a second optocoupler isolator; the output collector of the first optocoupler isolator is connected to the positive pole of the battery, and the output emitter of the first optocoupler isolator is connected to the first end of the voltage sampling capacitor; the output collector of the second optocoupler isolator is connected to the second end of the voltage sampling capacitor, and the output emitter of the second optocoupler isolator is connected to the negative pole of the battery.
[0037] In one embodiment of the present application, the second optocoupler isolator module includes a third optocoupler isolator and a fourth optocoupler isolator; the output collector of the third optocoupler isolator is connected to the second interface of the detection control module, and the output emitter of the third optocoupler isolator is connected to the first end of the voltage sampling capacitor; the output collector of the fourth optocoupler isolator is connected to the second end of the voltage sampling capacitor, and the output emitter of the fourth optocoupler isolator is connected to the ground end of the detection control module.
[0038] In one embodiment of the present application, the voltage detection circuit of the battery also includes a fourth resistor, a fifth resistor and a sixth resistor; the voltage sampling capacitor is connected in parallel with the fourth resistor; the output emitter of the first optocoupler isolator is connected to the first end of the voltage sampling capacitor through the fifth resistor; the output collector of the third optocoupler isolator is connected to the second interface of the detection control module through the sixth resistor.
[0039] See also Figure 2 , Figure 2 FIG. 1 is a schematic diagram of a battery voltage detection circuit according to a specific embodiment of the present application. Figure 2As shown, U1 is the first optocoupler isolator, U2 is the second optocoupler isolator, and together they constitute the first optocoupler isolator module; R4 is the fourth resistor, R5 is the fifth resistor, and they are used for voltage division, and the two are connected in series to form a resistor voltage division circuit; C2 is a voltage sampling capacitor. The positive electrode of the battery is connected in series with the fifth resistor R5 and the fourth resistor R4 as voltage division resistors via the collector 4 and the emitter 3 at the output end of the first optocoupler isolator U1, and then connected to the negative electrode of the battery via the collector 4 and the emitter 3 at the output end of the second optocoupler isolator U2, and the two ends of the voltage sampling capacitor C2 are connected in parallel with the fourth resistor R4.
[0040] U3 is the third optocoupler isolator, U4 is the fourth optocoupler isolator, and together they constitute the second optocoupler isolator module; R6 is the sixth resistor, used for current limiting; and the AFE chip is the detection control module. The GPIO (GPIO, General Purpose Input / Output) interface 2 of the AFE chip, i.e., the second interface, is connected in series with the voltage sampling capacitor C2 through the sixth resistor R6 as the current limiting resistor, the collector 4 and the emitter 3 at the output end of the third optocoupler isolator U3, and is connected to the ground end of the AFE chip through the collector 4 and the emitter 3 at the output end of the fourth optocoupler isolator U4.
[0041] The AFE chip sends an enable signal to the optocoupler isolation driver module, and controls the first optocoupler isolator U1 and the second optocoupler isolator U2 to be turned on at the same time through the optocoupler isolation driver module, so that the battery charges the voltage sampling capacitor C2 through the resistor divider circuit composed of R5 and R4. After charging is completed, the optocoupler isolation driver module controls the first optocoupler isolator U1 and the second optocoupler isolator U2 to be turned off at the same time, and then controls the third optocoupler isolator U3 and the fourth optocoupler isolator U4 to be turned on, and the AFE chip collects the voltage of the voltage sampling capacitor C2 through the GPIO channel connected in series with the voltage sampling capacitor C2.
[0042] In one embodiment of the present application, the optocoupler isolation driving module includes a first transistor, a second transistor, a third transistor and a capacitor, the first transistor and the third transistor are NPN transistors, and the second transistor is a PNP transistor; the base of the first transistor, the base of the third transistor and the first end of the capacitor are connected to the first interface of the detection control module; the collector of the first transistor is connected to the circuit power supply, and the emitter of the first transistor is respectively connected to the emitter of the second transistor and the collector of the third transistor; the collector of the second transistor is connected to the positive input terminal of the first optocoupler isolation sub-module, and the emitter of the third transistor is connected to the positive input terminal of the second optocoupler isolation sub-module; the base of the second transistor, the emitter of the third transistor, the second end of the capacitor, the negative input terminal of the first optocoupler isolation sub-module and the negative input terminal of the second optocoupler isolation sub-module are connected to the ground terminal of the detection control module.
[0043] Please continue reading Figure 2 ,like Figure 2 As shown, Q1 is the first transistor, Q2 is the second transistor, Q3 is the third transistor, and C1 is a capacitor, which together constitute an optocoupler isolation drive module. The first interface of the AFE chip can be a GPIO interface with driving capability or a sensor 5V power supply interface. The AFE chip sends an enable signal through the first interface to control the first transistor Q1 to be turned on. When the first transistor Q1 is turned on and the capacitor C1 is not charged, the optocoupler isolation drive module outputs a low-level signal, i.e., the first drive signal, the third transistor Q3 is turned off, and the second transistor Q2 is turned on, thereby turning on the first optocoupler isolator U1 and the second optocoupler isolator U2 at the same time, and the charging circuit is closed. The current returns from the positive electrode of the battery through the output end of the first optocoupler isolator U1, the fifth resistor R5, the fourth resistor R4, and the output end of the second optocoupler isolator U2 to the negative electrode of the battery, thereby charging the voltage sampling capacitor C2. When the capacitor C1 is charged to the threshold voltage of the third transistor Q3, the optocoupler isolation driving module outputs a high-level signal, i.e., the second driving signal, and the third transistor Q3 is turned on, while the second transistor Q2 is turned off, thereby turning off the first optocoupler isolator U1 and the second optocoupler isolator U2 at the same time. Accordingly, the circuit of the fifth resistor R5, the fourth resistor R4, and the voltage sampling capacitor C2 is disconnected from the battery; the third optocoupler isolator U3 and the fourth optocoupler isolator U4 are turned on at the same time, and the GPIO interface 2 of the AFE chip collects the voltage across the voltage sampling capacitor C2 via the collection circuit of the sixth resistor R6, the output end of the third optocoupler isolator U3, the voltage sampling capacitor C2, and the output end of the fourth optocoupler isolator U4.
[0044] In one embodiment of the present application, the optocoupler isolation driving module also includes a first resistor, a second resistor and a third resistor; the base of the third transistor and the first end of the capacitor are connected to the first interface of the detection control module through the first resistor; the collector of the first transistor is connected to the circuit power supply through the second resistor; the base of the second transistor and the emitter of the third transistor are connected to the ground terminal of the detection control module through the third resistor.
[0045] Please continue reading Figure 2 ,like Figure 2As shown, R1 is the first resistor, R2 is the second resistor, and R3 is the third resistor, and VCC (Volt Current Condenser) is the circuit power supply. VCC provides voltage to the collector of the first transistor Q1 through the second resistor R2, and the AFE chip can send a high-level signal as an enable signal to make the voltage at the base of the first transistor Q1 higher than the voltage at the collector of the first transistor Q1, so that the first transistor Q1 is turned on, and the AFE chip charges the capacitor C1 through the first resistor R1. After the first transistor Q1 is turned on, the current flows through the emitter of the first transistor Q1 to the emitter of the second transistor Q2 and the collector of the third transistor Q3. Since the capacitor C1 is not fully charged, the voltage at the base of the third transistor Q3 is lower than the voltage at the collector of the third transistor Q3, and the third transistor Q3 is turned off. At this time, since the base of the second transistor Q2 is connected to the ground terminal of the AFE chip through the third resistor R3, the voltage at the base of the second transistor Q2 is 0, which is lower than the voltage at the emitter of the second transistor Q2. In addition, the second transistor Q2 is a PNP transistor, so the second transistor Q2 is turned on. When the capacitor C1 is charged to the voltage at the base of the third transistor Q3 higher than the voltage at the collector of the third transistor Q3, the third transistor Q3 is turned on. At this time, since the base of the second transistor Q2 is connected to the emitter of the third transistor Q3, the voltage at the base of the second transistor Q2 is higher than the voltage at the emitter of the second transistor Q2. In addition, the second transistor Q2 is a PNP transistor, so the second transistor Q2 is turned off.
[0046] It can be understood that the charging circuit composed of the fourth resistor R4, the fifth resistor R5 and the voltage sampling capacitor C2 should be designed to match the circuit of the first resistor R1 and the capacitor C1. Specifically, the fourth resistor R4, the fifth resistor R5 and the voltage sampling capacitor C2 should be small enough, and the first resistor R1 and the capacitor C1 should be large enough to ensure that when the voltage of the capacitor C1 reaches the threshold voltage of the third transistor Q3, the voltage sampling capacitor C2 is already full. In addition, the capacitance values of the capacitor C1 and the voltage sampling capacitor C2 should be small enough to ensure that the AFE chip can accurately collect the voltage across the voltage sampling capacitor C2 during the self-wake-up cycle, and complete the judgment process of whether the battery is undervoltage and whether to wake up the battery management controller assembly. The specific parameter values of each component can be obtained through experiments.
[0047] In addition, when the vehicle is powered on normally and the AFE chip is working normally, the low-voltage system of the vehicle is powered by DC / DC, not by the battery. At this time, it is meaningless to detect the battery voltage. In this scenario, the first transistor Q1 and the third transistor Q3 are continuously turned on, and the second transistor Q2 is continuously turned off. The electric energy stored in the power battery is continuously consumed by the circuit of VCC, the second resistor R2, the first transistor Q1, the third transistor Q3, and the third resistor R3, which can easily cause voltage imbalance in some cells of the power battery. Therefore, the resistance values of the second resistor R2 and the third resistor R3, which are current limiting resistors, should be large enough to ensure that the circuit loss is low enough. The specific resistance values can be obtained through experiments.
[0048] An embodiment of the present application also provides a battery charging system, which includes: a battery; a battery management controller, wherein the battery management controller includes a battery voltage detection circuit as provided in the above-mentioned embodiments, for detecting the voltage state of the battery; a DC converter, for charging the battery; a vehicle controller, for waking up and sleeping an in-vehicle controller, wherein the in-vehicle controller includes a vehicle controller, a battery management controller and a DC converter.
[0049] In this embodiment, the DC converter may be a DC-DC converter, namely, DC / DC, or an AC-DC converter, which is not limited here.
[0050] The embodiment of the present application also provides a method for charging a battery. Figure 3 , Figure 3 This is a flowchart of a battery charging method shown in an exemplary embodiment of the present application. The method can be applied to the battery charging system in the above embodiment, and is specifically performed by the battery, battery management controller, vehicle controller and DC converter in the charging system. It should be understood that the method can also be applied to other exemplary charging systems and be specifically performed by devices in other charging systems. This embodiment does not limit the charging system to which the method is applicable.
[0051] like Figure 3 As shown, in an exemplary embodiment, the battery charging method includes at least steps S310 to S330, which are described in detail as follows:
[0052] Step S310, in response to the vehicle power-off instruction, the vehicle controller controls the in-vehicle controller to enter a sleep state.
[0053] Step S320: After the battery management controller enters the sleep state, the detection control module sends an enable signal to collect the voltage of the voltage sampling capacitor, and wakes up the battery management controller when the currently collected capacitor voltage is less than a preset voltage threshold.
[0054] Step S330, the battery management controller detects the voltage of the battery, determines the voltage state of the battery according to the currently detected battery voltage, and wakes up the DC converter through the vehicle controller when the battery is in an undervoltage state, so that the DC converter charges the battery.
[0055] In one embodiment of the present application, the vehicle power-off instruction may be a vehicle locking signal, or a key leaving the vehicle signal, or the owner generates a power-off instruction by selecting the vehicle power-off in the central control screen or system settings, which is not limited here. When the vehicle power-off instruction is detected, the vehicle controller controls each controller in the vehicle to enter a dormant state to reduce the static power consumption of the vehicle. When the battery management controller is in a dormant state, the AFE chip inside it enters the inspection mode, and can be periodically self-wake-up through the clock system inside the chip. When the AFE chip is in a self-wake-up state, an enable signal is issued, and the first optocoupler isolator and the second optocoupler isolator are controlled to be turned on at the same time through the optocoupler isolation drive module, and the battery charges the voltage sampling capacitor through a resistor voltage divider circuit. After charging is completed, the first optocoupler isolator and the second optocoupler isolator are controlled to be disconnected at the same time through the optocoupler isolation drive module, and then the third optocoupler isolator and the fourth optocoupler isolator are controlled to be turned on at the same time, and the AFE chip collects the voltage of the voltage sampling capacitor through the GPIO channel connected in series with the voltage sampling capacitor to obtain the collected capacitor voltage.
[0056] The AFE chip compares the collected capacitor voltage with the preset voltage threshold. When the collected capacitor voltage is higher than or equal to the preset voltage threshold, it indicates that the battery is in a non-undervoltage state, and the AFE chip can sleep and wait for the next self-wake-up. When the collected capacitor voltage is lower than the preset voltage threshold, the AFE chip can wake up the battery management controller through the wake-up circuit so that the battery management controller can review the battery voltage. The battery management controller directly collects the battery voltage through software and determines the battery voltage state according to the currently detected battery voltage. If the currently detected battery voltage is higher than or equal to the second preset voltage threshold, it indicates that the battery is in a non-undervoltage state. If the currently detected battery voltage is lower than the second preset voltage threshold, it indicates that the battery is in an undervoltage state, wherein the second preset voltage threshold is greater than the preset voltage threshold. After confirming that the battery is undervoltage, the battery management controller wakes up the VCU (Vehicle Control Unit), and the VCU then wakes up the DC / DC converter to charge the battery.
[0057] In one embodiment of the present application, when the battery is in an undervoltage state, the battery charging method further includes: the battery management controller calculates the voltage drop difference of the battery based on the currently detected battery voltage and the voltage of the battery when the vehicle is powered off, and calculates the parking time of the vehicle based on the detection time of the currently detected battery voltage and the vehicle power-off time, wherein the voltage of the battery at the time of vehicle power-off is obtained by the battery management controller performing voltage detection on the battery in response to the vehicle power-off instruction; determining the degree of aging of the battery based on the voltage drop difference and the parking time; if the degree of aging of the battery exceeds a preset degree, generating a reminder message, and pushing the reminder message in response to the vehicle power-on instruction.
[0058] In this embodiment, the battery management controller can automatically store the last time the vehicle was powered off and the battery voltage at the time of power off. When the battery management controller confirms that the battery is under-voltage, the battery management controller reads the stored time when the vehicle was last powered off and the battery voltage at the time of power off, and compares it with the voltage at the time of the current battery under-voltage, and determines the degree of degradation, or aging, of the battery through the voltage drop difference and the parking duration. If the degree of degradation of the battery exceeds the set threshold, or the preset degree, the battery management controller stores the information that the battery urgently needs to be replaced, and when the vehicle is fully powered on next time, the battery management controller reminds the car user to go to the 4S store to replace the battery in time through the on-board display terminal, mobile phone APP, etc.
[0059] In one embodiment of the present application, after charging is completed, the VCU sends a power-off and sleep signal to the controller, and the VCU, DC / DC and other direct current converters can be directly powered off and sleep.
[0060] In one embodiment of the present application, after automatically storing information such as the power-off time, the battery voltage at the time of power-off, and the need for battery replacement, the battery management controller responds to the VCU power-off sleep signal and enters the sleep mode, and the AFE chip enters the inspection mode again.
[0061] See also Figure 4 , Figure 4 FIG. 1 is a schematic diagram of a low-voltage battery inspection process shown in a specific embodiment of the present application. Figure 4 As shown in the figure, the battery inspection process is as follows:
[0062] When the user locks the vehicle and turns off the power, the VCU sends a power-off sleep signal to put all controllers of the vehicle into sleep mode. The battery management controller assembly (also known as the battery management controller) stores the key information of the low-voltage battery and then goes into sleep mode. The AFE chip enters the inspection mode and wakes up automatically at a fixed period. The key information of the low-voltage battery includes the power-off time of the vehicle and the battery voltage at the time of power-off. After the AFE chip wakes up, it collects the voltage of the voltage sampling capacitor and compares the collected capacitor voltage with the preset voltage threshold. If the collected capacitor voltage is lower than the preset voltage threshold, the AFE chip will generate a wake-up signal to wake up the battery management controller, and the battery management controller directly collects the low-voltage battery voltage for judgment.
[0063] If the undervoltage fault is falsely reported, the battery management controller goes back into sleep mode, and the AFE chip goes into inspection mode again, periodically self-waking up to collect the voltage of the voltage sampling capacitor.
[0064] If it is confirmed that the low-voltage battery undervoltage fault exists, the battery management controller wakes up the VCU, and the VCU wakes up the DC / DC to charge the low-voltage battery. At the same time, the battery management controller reads the last time the vehicle was powered off and the low-voltage battery voltage at the last time it was powered off, and combines the currently recorded low-voltage battery voltage and the time when the low-voltage battery is undervoltage to calculate and evaluate the degree of degradation of the low-voltage battery. When the degree of degradation of the low-voltage battery is less than the set threshold, the battery management controller stores the information that the low-voltage battery needs to be replaced urgently, and when the vehicle is fully powered on next time, it reminds the user to replace the low-voltage battery in time through the on-board display terminal, mobile phone APP, etc.
[0065] After the low-voltage battery is fully charged, the VCU sends a power-off sleep signal to the entire vehicle, and the VCU and DC / DC enter sleep mode directly. The battery management controller stores information such as the power-off time, the low-voltage battery voltage at the time of power-off, and whether the low-voltage battery has been replaced. Then, it responds to the power-off sleep signal sent by the VCU and enters sleep mode. The AFE chip inspects the low-voltage battery again.
[0066] The technical solution of this specific embodiment realizes the health status management and charging management of the low-voltage battery throughout its life cycle by using the high-voltage monitoring module of the battery management controller, namely the AFE chip. When the car is parked, in order to avoid undervoltage failure of the low-voltage battery, the high-voltage monitoring module itself is designed with a patrol function, which will periodically wake up, collect the voltage of the voltage sampling capacitor and the low-voltage battery, and monitor the voltage status of the low-voltage battery. In addition, the high-voltage monitoring module is powered by a power battery and does not consume the electrical energy stored in the low-voltage battery.
[0067] An embodiment of the present application also provides a vehicle, comprising a charging system for the battery provided in the above embodiment.
[0068] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the electronic device implements the battery charging method provided in the above-mentioned embodiments.
[0069] See also Figure 5 , Figure 5 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Figure 5 The computer system 500 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0070] like Figure 5 As shown, the computer system 500 includes a central processing unit 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory 502 or the program loaded from the storage part 508 to the random access memory 503, such as executing the method in the above embodiment. Various programs and data required for system operation are also stored in the random access memory 503. The central processing unit 501, the read-only memory 502 and the random access memory 503 are connected to each other through a bus 504. The input / output interface 505 is also connected to the bus 504.
[0071] The following components are connected to the input / output interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the input / output interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.
[0072] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 509, and / or installed from a removable medium 511. When the computer program is executed by the central processing unit 501, various functions defined in the system of the present application are executed.
[0073] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier, which carries a computer-readable computer program. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0074] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the apparatus, methods and computer program products according to various embodiments of the present application. Among them, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0075] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0076] Another aspect of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the battery charging method as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.
[0077] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the battery charging method provided in each of the above embodiments.
[0078] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A battery voltage detection circuit, characterized in that: The voltage detection circuit of the battery includes a voltage sampling capacitor, a detection control module for collecting voltage, an optocoupler isolation module for switching the circuit, and an optocoupler isolation driving module for driving the optocoupler isolation module to switch on and off; the optocoupler isolation module includes a first optocoupler isolation submodule and a second optocoupler isolation submodule; The detection control module is connected to the optical coupler isolation drive module; the optical coupler isolation drive module is respectively connected to the first optical coupler isolation sub-module and the second optical coupler isolation sub-module; the voltage sampling capacitor is connected to the battery through the first optical coupler isolation sub-module, and is connected to the detection control module through the second optical coupler isolation sub-module; The detection control module sends an enable signal to the optocoupler isolation driving module, triggering the optocoupler isolation driving module to output a first drive signal and a second drive signal in sequence; when the optocoupler isolation driving module outputs the first drive signal, the first optocoupler isolation submodule is turned on, and the second optocoupler isolation submodule is turned off, causing the battery to charge the voltage sampling capacitor; when the optocoupler isolation driving module outputs the second drive signal, the first optocoupler isolation submodule is turned off, and the second optocoupler isolation submodule is turned on, causing the detection control module to collect the voltage of the voltage sampling capacitor to determine the voltage state of the battery.
2. The battery voltage detection circuit according to claim 1, characterized in that: The optical coupling isolation driving module comprises a first transistor, a second transistor, a third transistor and a capacitor, the first transistor and the third transistor are NPN transistors, and the second transistor is a PNP transistor; The base of the first transistor, the base of the third transistor and the first end of the capacitor are connected to the first interface of the detection control module; the collector of the first transistor is connected to the circuit power supply, and the emitter of the first transistor is connected to the emitter of the second transistor and the collector of the third transistor respectively; the collector of the second transistor is connected to the positive input terminal of the first optocoupler isolator module, and the emitter of the third transistor is connected to the positive input terminal of the second optocoupler isolator module; the base of the second transistor, the emitter of the third transistor, the second end of the capacitor, the negative input terminal of the first optocoupler isolator module and the negative input terminal of the second optocoupler isolator module are connected to the ground terminal of the detection control module.
3. The battery voltage detection circuit according to any one of claims 1 or 2, characterized in that: The first optocoupler isolator module includes a first optocoupler isolator and a second optocoupler isolator; The collector of the output end of the first optocoupler isolator is connected to the positive electrode of the battery, and the emitter of the output end of the first optocoupler isolator is connected to the first end of the voltage sampling capacitor; the collector of the output end of the second optocoupler isolator is connected to the second end of the voltage sampling capacitor, and the emitter of the output end of the second optocoupler isolator is connected to the negative electrode of the battery.
4. The battery voltage detection circuit according to claim 3, characterized in that: The second optocoupler isolator module includes a third optocoupler isolator and a fourth optocoupler isolator; The output collector of the third optocoupler isolator is connected to the second interface of the detection control module, and the output emitter of the third optocoupler isolator is connected to the first end of the voltage sampling capacitor; the output collector of the fourth optocoupler isolator is connected to the second end of the voltage sampling capacitor, and the output emitter of the fourth optocoupler isolator is connected to the ground end of the detection control module.
5. The battery voltage detection circuit according to claim 2, characterized in that: The optical coupling isolation driving module also includes a first resistor, a second resistor and a third resistor; The base of the third transistor and the first end of the capacitor are connected to the first interface of the detection control module through the first resistor; the collector of the first transistor is connected to the circuit power supply through the second resistor; the base of the second transistor and the emitter of the third transistor are connected to the ground terminal of the detection control module through the third resistor.
6. The battery voltage detection circuit according to claim 4, characterized in that: The voltage detection circuit of the battery further includes a fourth resistor, a fifth resistor and a sixth resistor; The voltage sampling capacitor is connected in parallel with the fourth resistor; the output end emitter of the first optocoupler isolator is connected to the first end of the voltage sampling capacitor through the fifth resistor; the output end collector of the third optocoupler isolator is connected to the second interface of the detection control module through the sixth resistor.
7. A battery charging system, characterized in that: The battery charging system comprises: Batteries; A battery management controller, comprising a voltage detection circuit of a battery as claimed in any one of claims 1 to 6, for detecting a voltage state of the battery; A DC converter, used for charging the battery; The vehicle controller is used to wake up and put the in-vehicle controller into sleep mode, wherein the in-vehicle controller includes the vehicle controller, the battery management controller and the DC converter.
8. A vehicle, characterized in that: The vehicle includes the battery charging system as claimed in claim 7.
9. A method for charging a battery, characterized in that: Applicable to the battery charging system as claimed in claim 7, the battery charging method comprising: In response to the vehicle power-off instruction, the vehicle controller controls the in-vehicle controller to enter a dormant state; After the battery management controller enters a dormant state, the detection control module sends an enable signal to collect the voltage of the voltage sampling capacitor, and wakes up the battery management controller when the currently collected capacitor voltage is less than a preset voltage threshold; The battery management controller detects the voltage of the battery, determines the voltage state of the battery according to the currently detected battery voltage, and wakes up the DC converter through the vehicle controller when the battery is in an undervoltage state, so that the DC converter charges the battery.
10. The method for charging a storage battery according to claim 9, characterized in that: When the battery is in an undervoltage state, the battery charging method further comprises: The battery management controller calculates the voltage drop difference of the battery according to the currently detected battery voltage and the voltage of the battery at the time when the vehicle is powered off, and calculates the parking time of the vehicle according to the detection time of the currently detected battery voltage and the time when the vehicle is powered off, wherein the voltage of the battery at the time when the vehicle is powered off is obtained by the battery management controller performing voltage detection on the battery in response to the vehicle power-off instruction; determining the aging degree of the battery based on the voltage drop difference and the parking time; If the aging degree of the battery exceeds a preset degree, a reminder message is generated, and the reminder message is pushed in response to a vehicle power-on instruction.
11. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the battery charging method as described in any one of claims 9-10.
12. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the battery charging method as described in any one of claims 9 to 10.
