Battery control method, device, apparatus, and readable storage medium
Patent Information
- Application Number
- CN202211658545.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-22
- Publication Date
- 2026-10-20
- Estimated Expiration
- 2042-12-22
AI Technical Summary
[0004]本发明实施例提供一种电池控制方法、装置、设备及可读存储介质,以解决相关技术中采用双向同步整流DCDC变换器直接导通MOS管连接电池,将会给电池造成大电流冲击的是技术问题
[0033]本发明实施例提供了一种电池控制方法、装置、设备及可读存储介质,先采用双闭环控制将电容电压值充电至接近初始电池电压值,当电容电压值充电与初始电池电压值的差值小于预设差值时,将第一闭环输出值以预设第一幅值进行限幅,继续采用双闭环控制输出电流,最后再控制电池和电容之间的输出开关导通。本发明从电容充电到电池与电容导通,整个过程持续采用双闭环控制调整电容电压值和输出电流值,减小电容与电池导通瞬间对电池的大电流冲击。
Smart Images

Figure CN115811114B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of battery formation and capacity testing, and particularly to a battery control method, apparatus, device, and readable storage medium. Background Technology
[0002] Lithium batteries are initially empty upon assembly. The first charge, known as "formation," is used to activate the active materials within the battery. This is a highly complex process and a crucial step affecting battery performance. During the initial charge, the battery is charged and discharged, and its discharge capacity at full charge is measured to determine its overall capacity. The process of selecting qualified batteries through capacity testing is called "capacity grading."
[0003] Lithium-ion battery formation and capacity testing equipment is gradually developing towards lower cost, lower loss, easier maintenance, and higher efficiency. Bidirectional synchronous rectifier DC-DC converters are commonly used in this process. When connecting a battery to a bidirectional synchronous rectifier DC-DC converter, directly turning on the MOSFET will cause a large current surge to both the battery and the MOSFET. Furthermore, to prevent reverse current flow, bidirectional synchronous rectifier DC-DC converters employ a duty cycle that starts at 0 and then turns off one of the MOSFETs. This strategy results in a discontinuous mode when the current is low and a continuous mode when the current is high, leading to uneven and fluctuating soft-start current in the battery. Summary of the Invention
[0004] This invention provides a battery control method, apparatus, device, and readable storage medium to address the technical problem in related technologies where using a bidirectional synchronous rectifier DC-DC converter to directly connect a MOSFET to the battery will cause a large current surge to the battery.
[0005] In a first aspect, a battery control method is provided for controlling a bidirectional synchronous rectifier DC-DC converter to charge and discharge a battery. The converter is located between the bus and the battery, and includes a rectifier switch, a capacitor, and an output switch connected in sequence. The method includes the following steps:
[0006] Obtain the initial battery voltage, current capacitor voltage, and current output current.
[0007] The first closed-loop output value of the first closed loop is calculated based on the initial battery voltage value and the current capacitor voltage value; where the first closed loop refers to a voltage control closed loop that uses the initial battery voltage value as the voltage reference value and the current capacitor voltage value as the voltage feedback value.
[0008] The second closed-loop output value is calculated based on the first closed-loop output value and the current output current value; wherein, the second closed loop refers to a current control closed loop that uses the first closed-loop output value as the current reference value and the current output current value as the current feedback value.
[0009] The duty cycle is calculated based on the second closed-loop output value and the bus voltage value. The calculated duty cycle is used to control the rectifier switch between the bus and the capacitor to be turned on or off in order to charge the capacitor.
[0010] When the difference between the initial battery voltage and the current capacitor voltage is less than a preset difference, the first closed-loop output value is limited by a preset first amplitude, and then the output switch between the battery and the capacitor is turned on to charge the battery.
[0011] In some embodiments, after the step of limiting the first closed-loop output value by a preset first amplitude when the difference between the initial battery voltage value and the current capacitor voltage value is less than a preset difference, and then controlling the output switch between the battery and the capacitor to conduct in order to charge the battery, the method includes:
[0012] The first closed-loop output value is calculated based on the target battery voltage value and the current capacitor voltage value, and then the first closed-loop output value is limited by a preset second amplitude value.
[0013] In some embodiments, the step of calculating the first closed-loop output value of the first closed loop based on the initial battery voltage value and the current capacitor voltage value includes:
[0014] Calculate the difference between the initial battery voltage and the current capacitor voltage;
[0015] Based on the difference between the initial battery voltage and the current capacitor voltage, the first closed-loop output value of the first closed loop is calculated using the first PI controller.
[0016] In some embodiments, the step of calculating the second closed-loop output value of the second closed loop based on the first closed-loop output value and the current output current value includes:
[0017] Calculate the difference between the first closed-loop output value and the current output current value;
[0018] The second closed-loop output value of the second closed loop is calculated using the second PI controller based on the difference between the first closed-loop output value of the limiting circuit and the current output current value.
[0019] In some embodiments, prior to the step of controlling the rectifier switch between the bus and the capacitor to turn on or off with a calculated duty cycle to charge the capacitor, the following steps are included:
[0020] The calculated duty cycle is limited to a preset duty cycle amplitude.
[0021] In some embodiments, before the step of calculating the second closed-loop output value of the second closed loop based on the first closed-loop output value and the current output current value, the method includes:
[0022] The calculated first closed-loop output value is limited by a preset third amplitude value.
[0023] Secondly, a battery control device is provided for controlling a bidirectional synchronous rectifier DC-DC converter to charge and discharge a battery. The converter is located between the bus and the battery, and includes a rectifier switch, a capacitor, and an output switch connected in sequence.
[0024] The acquisition unit is used to acquire the initial battery voltage value, the current capacitor voltage value, and the current output current value;
[0025] The first calculation unit is used to calculate the first closed-loop output value of the first closed loop based on the initial battery voltage value and the current capacitor voltage value.
[0026] The second calculation unit is used to calculate the second closed-loop output value of the second closed loop based on the first closed-loop output value and the current output current value.
[0027] The third calculation unit is used to calculate the duty cycle based on the second closed-loop output value and the bus voltage value, and to control the rectifier switch between the bus and the capacitor to be turned on or off based on the calculated duty cycle in order to charge the capacitor.
[0028] The control unit is configured to limit the first closed-loop output value to a preset first amplitude when the difference between the initial battery voltage value and the current capacitor voltage value is less than a preset difference, and then control the output switch between the battery and the capacitor to be turned on to charge the battery.
[0029] In some embodiments, the first calculation unit is further configured to, after the control unit controls the output switch between the battery and the capacitor to be turned on, calculate the first closed-loop output value of the first closed loop based on the target battery voltage value and the current capacitor voltage value, and limit the first closed-loop output value with a preset second amplitude value.
[0030] Thirdly, a computer device is provided, comprising: a memory and a processor, wherein the memory stores at least one instruction, the at least one instruction being loaded and executed by the processor to implement the aforementioned battery control method.
[0031] Fourthly, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions that, when executed by a computer, cause the computer to perform the aforementioned battery control method.
[0032] The beneficial effects of the technical solution provided by this invention include:
[0033] This invention provides a battery control method, apparatus, device, and readable storage medium. First, a dual-closed-loop control is used to charge the capacitor voltage to near the initial battery voltage. When the difference between the charged capacitor voltage and the initial battery voltage is less than a preset difference, the first closed-loop output value is limited by a preset first amplitude. The dual-closed-loop control continues to control the output current, and finally, the output switch between the battery and capacitor is turned on. From capacitor charging to battery-capacitor connection, this invention continuously uses dual-closed-loop control to adjust the capacitor voltage and output current, reducing the large current surge to the battery at the moment of connection. Attached Figure Description
[0034] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0035] Figure 1 This is a schematic flowchart of a battery control method provided in an embodiment of the present invention;
[0036] Figure 2 This is a topology diagram of a bidirectional synchronous rectification DC-DC converter for charging and discharging a battery, provided by an embodiment of the present invention.
[0037] Figure 3 A block diagram illustrating battery control provided in an embodiment of the present invention;
[0038] Figure 4 This is a schematic diagram of the structure of a battery control device provided in an embodiment of the present invention;
[0039] Figure 5 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. Detailed Implementation
[0040] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0041] This invention provides a battery control method that solves the technical problem that existing technologies using bidirectional synchronous rectification DC-DC converters to directly connect MOSFETs to the battery will cause a large current surge to the battery.
[0042] See Figure 1 As shown, this embodiment of the invention provides a battery control method for controlling a bidirectional synchronous rectifier DC-DC converter to charge and discharge a battery. The converter is located between the bus and the battery, and includes a rectifier switch, a capacitor, and an output switch connected in sequence. The method includes the following steps:
[0043] Step S10: Obtain the initial battery voltage value, the current capacitor voltage value, and the current output current value.
[0044] See Figure 2 As shown, Figure 2 This is a common topology for charging and discharging batteries using a bidirectional DC-DC converter. Acquisition circuits are set up across the battery (BAT) and capacitor (C1), as well as between the battery and capacitor, to obtain the initial battery voltage (VBAT0), the current capacitor voltage (VC1), and the current output current (I). t The output current is the current between the capacitor and the voltage.
[0045] Step S20: Calculate the first closed-loop output value of the first closed loop based on the initial battery voltage value and the current capacitor voltage value. Here, the first closed loop refers to a voltage control closed loop that uses the initial battery voltage value as a voltage reference value and the current capacitor voltage value as a voltage feedback value.
[0046] See Figure 3 As shown, Figure 3 The diagram illustrates battery control. The initial battery voltage value VBAT0 is used as the voltage reference value Vref for the first closed loop, and the current capacitor voltage value VC1t is used as the voltage feedback value Vfeed for the first closed loop. The voltage reference value Vref and the voltage feedback value Vfeed are input to the first closed loop controller to calculate the first closed loop output value.
[0047] Step S30: Calculate the second closed-loop output value of the second closed loop based on the first closed-loop output value and the current output current value. Here, the second closed loop refers to a current control closed loop that uses the first closed-loop output value as the current reference value and the current output current value as the current feedback value.
[0048] See Figure 3 As shown, the first closed-loop output value is used as the current reference value for the second closed loop, and the current output current value I is used as the reference value. t Ifeed, the current reference value and the current feedback value, are used as inputs to the second closed-loop controller to calculate the second closed-loop output value.
[0049] Step S40: Calculate the duty cycle based on the second closed-loop output value and the bus voltage value, and use the calculated duty cycle to control the rectifier switch between the bus and the capacitor to be turned on or off in order to charge the capacitor.
[0050] See Figure 2 and Figure 3 As shown, MOSFETs Q1 and Q2 are installed between the bus and capacitor C1. The MOSFETs Q1 and Q2 between the bus and capacitor are turned on or off according to the calculated duty cycle to charge the capacitor, so that the capacitor voltage VC1 is close to the initial battery voltage VBAT0.
[0051] In step S50, when the difference between the initial battery voltage value and the current capacitor voltage value is less than a preset difference, the first closed-loop output value is limited by a preset first amplitude, and then the output switch between the battery and the capacitor is turned on to charge the battery.
[0052] See Figure 3 As shown, when the difference between the initial battery voltage and the current capacitor voltage is less than a preset difference, it can be considered that the capacitor voltage VC1 is very close to the initial battery voltage VBAT0. At this time, the first closed-loop output value is limited by a preset first amplitude, and then the output switch S1 between the battery and the capacitor is turned on. The preset first amplitude can be set to a very small current value, so that the current output current value It is controlled within the preset first amplitude as much as possible.
[0053] The battery control method in this embodiment of the invention first uses dual closed-loop control to charge the capacitor voltage to near the initial battery voltage. When the difference between the charged capacitor voltage and the initial battery voltage is less than a preset difference, the output value of the first closed loop is limited by a preset first amplitude. Dual closed-loop control continues to be used to control the output current. Finally, the output switch between the battery and the capacitor is turned on. Throughout the entire process from capacitor charging to battery-capacitor connection, this invention continuously uses dual closed-loop control to adjust the capacitor voltage and output current, reducing the large current surge to the battery at the moment of connection.
[0054] As an optional implementation, in one embodiment of the invention, after the step of limiting the first closed-loop output value by a preset first amplitude when the difference between the initial battery voltage value and the current capacitor voltage value is less than a preset difference, and then controlling the output switch between the battery and the capacitor to be turned on to charge the battery, the method further includes:
[0055] The first closed-loop output value is calculated based on the target battery voltage value and the current capacitor voltage value, and then the first closed-loop output value is limited by a preset second amplitude value.
[0056] See Figure 3As shown, when the output switch between the battery and capacitor is turned on, it is equivalent to starting to charge the battery. At this time, the target battery voltage value VBAT1 is used as the voltage reference value Vref of the first closed loop, and the current capacitor voltage value VC1t is used as the voltage feedback value Vfeed of the first closed loop. The voltage reference value Vref and the voltage feedback value Vfeed are input to the first closed loop controller, and the first closed loop output value is calculated. The first closed loop output value is then limited by a preset second amplitude. Usually, the preset second amplitude is the target current value Iset to be achieved. Iset is relatively large, generally 10-100A, and can be set according to requirements. After entering the new dual closed loop control, the dual closed loop control adjusts rapidly. If the battery voltage value has not reached the target battery voltage value VBAT1 when the target current value Iset is reached, constant current charging is entered. If the battery voltage value reaches the target battery voltage value VBAT1 before Iset is reached, constant current and constant voltage charging is entered to achieve soft start. This invention, through dual closed loop control, makes the output current value I... t The system smoothly and quickly adjusts from the preset first amplitude to the preset second amplitude, enabling seamless connection between battery and capacitor conduction and battery soft start.
[0057] As an optional implementation, in one embodiment of the invention, the step of calculating the first closed-loop output value of the first closed loop based on the initial battery voltage value and the current capacitor voltage value includes:
[0058] The difference between the initial battery voltage and the current capacitor voltage is calculated. Based on the difference, the first closed-loop output value of the first closed loop is calculated using the first PI controller. The calculation result using the PI controller is accurate and reliable.
[0059] As an optional implementation, in one embodiment of the invention, the step of calculating the second closed-loop output value of the second closed loop based on the first closed-loop output value and the current output current value includes:
[0060] The difference between the first closed-loop output value of the limiting circuit and the current output current value is calculated. Based on the difference between the first closed-loop output value of the limiting circuit and the current output current value, the second closed-loop output value of the second closed loop is calculated using the second PI controller. The calculation result using the PI controller is accurate and reliable.
[0061] As an optional implementation, in one embodiment of the invention, prior to the step of controlling the rectifier switch between the bus and the capacitor to be turned on or off according to the calculated duty cycle to charge the capacitor, the following steps are included:
[0062] The calculated duty cycle is limited by a preset duty cycle amplitude to ensure the accuracy of control.
[0063] As an optional implementation, in one embodiment of the invention, before the step of calculating the second closed-loop output value of the second closed loop based on the first closed-loop output value and the current output current value, the method includes:
[0064] The calculated first closed-loop output value is limited by a preset third amplitude value, which can be greater than the preset first amplitude value but less than the preset second amplitude value, to ensure that the dual closed-loop control can quickly charge the capacitor voltage value to close to the initial battery voltage value.
[0065] The following specific example further illustrates the workflow of the battery control method in this embodiment:
[0066] The bus voltage VBUS is 15V, the initial battery voltage is 3.700V, the target battery voltage is 4V, and the target current Iset is 100A. When control is not activated, the capacitor voltage is only around 0.3V. After control is activated, the reference voltage of 3.700V and the feedback voltage of 0.3V are input to the first closed-loop controller. The first closed-loop controller calculates the first closed-loop output value. The second closed-loop controller calculates the second closed-loop output value based on the first closed-loop output value and the current output current. Based on the second closed-loop output value and the bus voltage, the duty cycle is calculated. The calculated duty cycle controls the MOSFETs Q1 and Q2 between the bus and the capacitor to turn on or off. Under dual closed-loop control, the capacitor voltage is quickly adjusted to around 3.700V. When the capacitor voltage reaches 3.699V, it differs from the initial battery voltage of 3.700V by 0.001V, which is less than the preset difference of 0.005V. The first closed-loop output value is then limited by a preset first amplitude, which can be 0.02A, and switch S1 is turned on. Using the target battery voltage of 4V as a voltage reference, the first closed-loop output value is then limited by a preset second amplitude, which can be the target current value Iset. At this point, under dual closed-loop control, the output current gradually increases from 0.02A. Before reaching 100A, the battery voltage reaches 4V, at which point it enters a constant voltage state. If the current reaches 100A before the battery voltage reaches 4V, it enters a current-limited constant current state of 100A.
[0067] It should be noted that the embodiments of the present invention are illustrated using battery charging as an example. When the battery is discharging, the corresponding process in the aforementioned battery control method embodiments can be appropriately adjusted and applied, and will not be repeated here.
[0068] See Figure 4 As shown, this embodiment of the invention also provides a battery control device, including: an acquisition unit, a first calculation unit, a second calculation unit, a third calculation unit, and a control unit.
[0069] The acquisition unit is used to acquire the initial battery voltage value, the current capacitor voltage value, and the current output current value.
[0070] The first calculation unit is used to calculate the first closed-loop output value of the first closed loop based on the initial battery voltage value and the current capacitor voltage value.
[0071] The second calculation unit is used to calculate the second closed-loop output value of the second closed loop based on the first closed-loop output value and the current output current value.
[0072] The third calculation unit is used to calculate the duty cycle based on the second closed-loop output value and the bus voltage value, and to control the rectifier switch between the bus and the capacitor to be turned on or off based on the calculated duty cycle in order to charge the capacitor.
[0073] The control unit is used to limit the first closed-loop output value to a preset first amplitude when the difference between the initial battery voltage value and the current capacitor voltage value is less than a preset difference value, and then control the output switch between the battery and the capacitor to be turned on to charge the battery.
[0074] The battery control device in this embodiment of the invention first uses dual closed-loop control to charge the capacitor voltage to near the initial battery voltage. When the difference between the charged capacitor voltage and the initial battery voltage is less than a preset difference, the first closed-loop output value is limited by a preset first amplitude. Dual closed-loop control continues to be used to control the output current, and finally, the output switch between the battery and the capacitor is turned on. From capacitor charging to the battery-capacitor connection, this invention continuously uses dual closed-loop control to adjust the capacitor voltage and output current, reducing the impact on the battery at the moment of connection.
[0075] As an optional implementation, in one embodiment of the invention, the first calculation unit is further configured to, after the control unit controls the output switch between the battery and the capacitor to be turned on, calculate the first closed-loop output value of the first closed loop based on the target battery voltage value and the current capacitor voltage value, and limit the first closed-loop output value with a preset second amplitude value.
[0076] It should be noted that those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the above-described device and each unit can be referred to the corresponding processes in the aforementioned battery control method embodiments, and will not be repeated here.
[0077] The battery control device provided in the above embodiments can be implemented as a computer program, which can be used in, for example... Figure 5 It runs on the computer device shown.
[0078] This invention also provides a computer device, including: a memory, a processor, and a network interface connected via a system bus, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement all or part of the steps of the aforementioned battery control method.
[0079] The network interface is used for network communication, such as sending assigned tasks. Those skilled in the art will understand that... Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present invention and does not constitute a limitation on the computer device to which the present invention is applied. A specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0080] A processor can be a CPU, or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor can be a microprocessor, or any conventional processor. The processor is the control center of a computer device, connecting all parts of the computer device through various interfaces and lines.
[0081] Memory can be used to store computer programs and / or modules. The processor implements various functions of the computer device by running or executing the computer programs and / or modules stored in the memory, and by accessing data stored in the memory. Memory can mainly include a program storage area and a data storage area. The program storage area can store the operating system, at least one application program required for a function (such as video playback, image playback, etc.), etc.; the data storage area can store data created based on the use of the mobile phone (such as video data, image data, etc.). In addition, memory can include high-speed random access memory, and can also include non-volatile memory, such as hard disks, RAM, plug-in hard disks, SmartMedia Cards (SMC), Secure Digital Cards (SD cards), Flash Cards, at least one disk storage device, flash memory device, or other volatile solid-state storage devices.
[0082] In one embodiment, the processor is configured to run a computer program stored in memory to perform the following steps:
[0083] Step S10: Obtain the initial battery voltage value, the current capacitor voltage value, and the current output current value.
[0084] Step S20: Calculate the first closed-loop output value of the first closed loop based on the initial battery voltage value and the current capacitor voltage value.
[0085] Step S30: Calculate the second closed-loop output value of the second closed loop based on the first closed-loop output value and the current output current value.
[0086] Step S40: Calculate the duty cycle based on the second closed-loop output value and the bus voltage value, and use the calculated duty cycle to control the rectifier switch between the bus and the capacitor to be turned on or off in order to charge the capacitor.
[0087] In step S50, when the difference between the initial battery voltage value and the current capacitor voltage value is less than a preset difference, the first closed-loop output value is limited by a preset first amplitude, and then the output switch between the battery and the capacitor is turned on to charge the battery.
[0088] Further, after the step of limiting the first closed-loop output value to a preset first amplitude by when the difference between the initial battery voltage value and the current capacitor voltage value is less than a preset difference, and then controlling the output switch between the battery and the capacitor to conduct in order to charge the battery, the method includes:
[0089] The first closed-loop output value is calculated based on the target battery voltage value and the current capacitor voltage value, and then the first closed-loop output value is limited by a preset second amplitude value.
[0090] Further, the step of calculating the first closed-loop output value of the first closed loop based on the initial battery voltage value and the current capacitor voltage value includes:
[0091] Calculate the difference between the initial battery voltage and the current capacitor voltage;
[0092] Based on the difference between the initial battery voltage and the current capacitor voltage, the first closed-loop output value of the first closed loop is calculated using the first PI controller.
[0093] Further, the step of calculating the second closed-loop output value of the second closed loop based on the first closed-loop output value and the current output current value includes:
[0094] Calculate the difference between the first closed-loop output value and the current output current value;
[0095] The second closed-loop output value of the second closed loop is calculated using the second PI controller based on the difference between the first closed-loop output value of the limiting circuit and the current output current value.
[0096] Further, prior to the step of controlling the rectifier switch between the bus and the capacitor to be turned on or off according to the calculated duty cycle to charge the capacitor, the following steps are included:
[0097] The calculated duty cycle is limited to a preset duty cycle amplitude.
[0098] Further, before the step of calculating the second closed-loop output value of the second closed loop based on the first closed-loop output value and the current output current value, the following steps are included:
[0099] The calculated first closed-loop output value is limited by a preset third amplitude value.
[0100] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed, implements all or part of the steps of the aforementioned battery control method.
[0101] The embodiments of the present invention can implement all or part of the aforementioned processes, or they can be accomplished by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various methods described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added to or subtracted according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.
[0102] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, servers, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-readable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.
[0103] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0104] The serial numbers in the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0105] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0106] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features of the invention herein.
Claims
1. A battery control method for controlling a bidirectional synchronous rectifier DC-DC converter to charge and discharge a battery, the converter being disposed between a bus and the battery, the converter comprising a rectifier switch, a capacitor, and an output switch connected in sequence, characterized in that, Includes the following steps: Obtain the initial battery voltage, current capacitor voltage, and current output current. The first closed-loop output value of the first closed loop is calculated based on the initial battery voltage value and the current capacitor voltage value; where the first closed loop refers to a voltage control closed loop that uses the initial battery voltage value as the voltage reference value and the current capacitor voltage value as the voltage feedback value. The second closed-loop output value is calculated based on the first closed-loop output value and the current output current value; wherein, the second closed loop refers to a current control closed loop that uses the first closed-loop output value as the current reference value and the current output current value as the current feedback value. The duty cycle is calculated based on the second closed-loop output value and the bus voltage value. The calculated duty cycle is used to control the rectifier switch between the bus and the capacitor to be turned on or off in order to charge the capacitor. When the difference between the initial battery voltage and the current capacitor voltage is less than a preset difference, the first closed-loop output value is limited by a preset first amplitude, and then the output switch between the battery and the capacitor is turned on to charge the battery. After the step of limiting the first closed-loop output value to a preset first amplitude by when the difference between the initial battery voltage value and the current capacitor voltage value is less than a preset difference, and then controlling the output switch between the battery and the capacitor to conduct in order to charge the battery, the following steps are included: The first closed-loop output value is calculated based on the target battery voltage value and the current capacitor voltage value, and then the first closed-loop output value is limited by a preset second amplitude value.
2. The battery control method according to claim 1, characterized in that, The step of calculating the first closed-loop output value of the first closed loop based on the initial battery voltage value and the current capacitor voltage value includes: Calculate the difference between the initial battery voltage and the current capacitor voltage; Based on the difference between the initial battery voltage and the current capacitor voltage, the first closed-loop output value of the first closed loop is calculated using the first PI controller.
3. The battery control method according to claim 1, characterized in that, The step of calculating the second closed-loop output value of the second closed loop based on the first closed-loop output value and the current output current value includes: Calculate the difference between the first closed-loop output value and the current output current value; The second closed-loop output value of the second closed loop is calculated using the second PI controller based on the difference between the first closed-loop output value of the limiting circuit and the current output current value.
4. The battery control method according to claim 1, characterized in that, Prior to the step of controlling the rectifier switch between the bus and the capacitor to be turned on or off according to the calculated duty cycle to charge the capacitor, the following steps are included: The calculated duty cycle is limited to a preset duty cycle amplitude.
5. The battery control method according to claim 1, characterized in that, Before the step of calculating the second closed-loop output value of the second closed loop based on the first closed-loop output value and the current output current value, the following steps are included: The calculated first closed-loop output value is limited by a preset third amplitude value.
6. A battery control device for controlling a bidirectional synchronous rectifier DC-DC converter to charge and discharge a battery, the converter being disposed between a bus and the battery, comprising a rectifier switch, a capacitor, and an output switch connected in sequence, characterized in that, include: The acquisition unit is used to acquire the initial battery voltage value, the current capacitor voltage value, and the current output current value; The first calculation unit is used to calculate the first closed-loop output value of the first closed loop based on the initial battery voltage value and the current capacitor voltage value; wherein, the first closed loop refers to a voltage control closed loop that uses the initial battery voltage value as the voltage reference value and the current capacitor voltage value as the voltage feedback value. The second calculation unit is used to calculate the second closed-loop output value of the second closed loop based on the first closed-loop output value and the current output current value; wherein, the second closed loop refers to a current control closed loop in which the first closed-loop output value is used as the current reference value and the current output current value is used as the current feedback value. The third calculation unit is used to calculate the duty cycle based on the second closed-loop output value and the bus voltage value, and to control the rectifier switch between the bus and the capacitor to be turned on or off based on the calculated duty cycle in order to charge the capacitor. The control unit is used to limit the first closed-loop output value to a preset first amplitude when the difference between the initial battery voltage value and the current capacitor voltage value is less than a preset difference, and then control the output switch between the battery and the capacitor to be turned on to charge the battery. The first calculation unit is also used to calculate the first closed-loop output value of the first closed loop based on the target battery voltage value and the current capacitor voltage value after the output switch between the control unit and the battery and capacitor is turned on, and to limit the first closed-loop output value with a preset second amplitude value.
7. A computer device, characterized in that, include: A memory and a processor, wherein the memory stores at least one instruction, which is loaded and executed by the processor to implement the battery control method of any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions that, when executed by a computer, cause the computer to perform the battery control method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Precharging control method and device for charging pile
CN106427648A
Bidirectional energy interface device and control method thereof
CN108551181A
Energy storage control circuit, working method of energy storage control circuit, computer device and computer readable storage medium
CN111817328A