Control method and device for smooth switching of battery heating and charging modes and electronic equipment
By using parallel voltage and current loop control modules in the charger and setting the initial value of the integral value during mode switching, the instantaneous impact problem during battery heating and charging mode switching in traditional technology is solved, and non-stop switching and stable charging efficiency are achieved.
Patent Information
- Application Number
- CN202411799561.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-03-25
AI Technical Summary
Traditional technology cannot achieve non-stop switching of battery heating and charging modes without reducing the instantaneous impact during mode switching.
By using a parallel voltage ring and current ring control module in the charger, and setting the initial value of the integral value of the current ring to the integral value of the voltage ring during mode switching, and vice versa, to stabilize the output current and voltage, reducing the instantaneous impact during mode switching.
It realizes smooth switching of battery heating and charging modes, reducing the instantaneous impact during mode switching, and ensuring the stability and efficiency of battery charging.
Smart Images

Figure CN119696099A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of battery charging, and in particular to a control method, device and electronic equipment for smoothly switching between battery heating and charging modes. Background Art
[0002] The charging efficiency of the battery will be greatly reduced at low temperatures, and it will also have a great impact on the battery life. In order to improve this situation, it is necessary to increase the battery temperature before charging. A heating resistor is connected in parallel to the battery output port. If the temperature is low before charging, the resistor needs to be heated first to increase the battery temperature. After reaching a certain temperature, the battery will start to be charged.
[0003] The connection diagram of the charger and the battery with heating function is as follows Figure 1 As shown, S1 is a relay for controlling the connection of the heating resistor, and S2 is a relay for controlling the connection between the charger and the battery pack.
[0004] At present, one way to solve this problem is to detect the ambient temperature of the battery before the charger works. If it is determined to be in a low temperature state, the charger will first output power to heat the resistance wire outside the battery (only S1 is closed). When the ambient temperature rises to a certain temperature, the charger stops working and then re-outputs power to charge the battery (only S2 is closed). If the ambient temperature drops during the charging process, the charging will be stopped and the resistance wire will be re-heated, and the cycle will continue. In terms of control methods, most products use a loop design that cascades the voltage loop and the current loop, such as Figure 2 shown.
[0005] Some products also switch directly from heating mode to charging mode without stopping the machine, but the actual control effect is not ideal. For example, the impact current during the switching process is too large, triggering protection and causing shutdown.
[0006] Traditionally, when switching from battery heating mode to charging mode, the device first stops working and then re-enters charging mode, which results in a poor user experience. When switching from heating mode to charging mode without stopping, due to the voltage difference between the port voltage and the battery voltage, a large current overshoot will occur at the output port instantly, which may trigger the overcurrent protection and cause shutdown. In addition, the output port voltage may overshoot, which may also trigger the overvoltage protection and cause shutdown.
[0007] In summary, how to achieve non-stop switching between battery heating and charging modes while reducing the instantaneous impact during mode switching has become a technical problem that urgently needs to be solved. Summary of the invention
[0008] In view of this, the purpose of the present invention is to provide a control method, device and electronic device for smooth switching of battery heating and charging modes, so as to alleviate the situation where traditional technology cannot reduce the instantaneous impact during mode switching and realize the technical problem of non-stop switching of battery heating and charging modes.
[0009] In a first aspect, an embodiment of the present invention provides a control method for smooth switching between battery heating and charging modes, which is applied to a charger, and the method includes:
[0010] Get the heating request sent by the battery pack;
[0011] According to the heating request, the battery reference voltage in the loop control module is set to the battery pack voltage, and the battery reference current is set to 200A to stabilize the output voltage, wherein the loop control module includes: a voltage loop and a current loop connected in parallel, and the integral value of the voltage loop and the integral value of the current loop are taken smaller and input into the PWM setting register, the input end of the voltage loop includes: the battery reference voltage and the battery pack voltage sampling feedback, and the input end of the current loop includes: the battery reference current and the battery pack current sampling feedback;
[0012] Acquire a first switching request sent by the battery pack to switch from a heating mode to a charging mode;
[0013] According to the first switching request, the battery reference voltage in the loop control module is set to a preset voltage, the battery reference current is set to a requested current of the BMS, and the initial value of the integral value of the current loop is set to the integral value of the voltage loop, so as to stabilize the output current, wherein the preset voltage is greater than the battery pack voltage by a preset value;
[0014] Obtaining a second switching request sent by the battery pack to switch from a charging mode to a heating mode;
[0015] According to the second switching request, the battery reference voltage in the loop control module is set to the battery pack voltage, the battery reference current is set to 200A, and the initial value of the integral value of the voltage loop is set to the integral value of the current loop.
[0016] Further, in the heating mode, the current loop is in a saturated state;
[0017] In charging mode, the voltage loop is in saturation.
[0018] Further, the voltage loop includes: a voltage difference finder and a first PI controller, wherein the output end of the voltage difference finder is connected to the first PI controller;
[0019] The current loop includes: a current difference finder and a second PI controller, wherein the output end of the current difference finder is connected to the second PI controller.
[0020] Furthermore, at the same time, one of the voltage loop or the current loop in the loop control module is in control.
[0021] Furthermore, the charger includes the loop control module.
[0022] In a second aspect, an embodiment of the present invention further provides a control device for smooth switching between battery heating and charging modes, which is applied to a charger, and the device includes:
[0023] A first acquiring unit, used to acquire a heating request sent by the battery pack;
[0024] A first setting unit is used to set the battery reference voltage in the loop control module to the battery pack voltage and the battery reference current to 200A according to the heating request, so as to stabilize the output voltage, wherein the loop control module includes: a voltage loop and a current loop connected in parallel, and the integral value of the voltage loop and the integral value of the current loop are input into the PWM setting register after taking the smaller one, the input end of the voltage loop includes: the battery reference voltage and the battery pack voltage sampling feedback, and the input end of the current loop includes: the battery reference current and the battery pack current sampling feedback;
[0025] A second acquiring unit, configured to acquire a first switching request sent by the battery pack for switching from a heating mode to a charging mode;
[0026] a second setting unit, configured to set the battery reference voltage in the loop control module to a preset voltage according to the first switching request, set the battery reference current to a requested current of the BMS, and set the initial value of the integral value of the current loop to the integral value of the voltage loop, so as to stabilize the output current, wherein the preset voltage is greater than the battery pack voltage by a preset value;
[0027] A third acquiring unit, configured to acquire a second switching request sent by the battery pack for switching from a charging mode to a heating mode;
[0028] A third setting unit is used to set the battery reference voltage in the loop control module to the battery pack voltage, set the battery reference current to 200A, and set the initial value of the integral value of the voltage loop to the integral value of the current loop according to the second switching request.
[0029] Further, in the heating mode, the current loop is in a saturated state;
[0030] In charging mode, the voltage loop is in saturation.
[0031] Further, the voltage loop includes: a voltage difference finder and a first PI controller, wherein the output end of the voltage difference finder is connected to the first PI controller;
[0032] The current loop includes: a current difference finder and a second PI controller, wherein the output end of the current difference finder is connected to the second PI controller.
[0033] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.
[0034] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to execute any method described in the first aspect above.
[0035] In an embodiment of the present invention, a control method for smooth switching of battery heating and charging modes is provided, which is applied to a charger, and the method comprises: obtaining a heating request sent by a battery pack; setting the battery reference voltage in a loop control module to the battery pack voltage and the battery reference current to 200A according to the heating request, so as to stabilize the output voltage, wherein the loop control module comprises: a voltage loop and a current loop connected in parallel, and the integral value of the voltage loop and the integral value of the current loop are taken as smaller, and then input into a PWM setting register, the input end of the voltage loop comprises: a battery reference voltage and a battery pack voltage sampling feedback, and the input end of the current loop comprises: a battery reference current and a battery pack current sampling feedback; obtaining A first switching request from a heating mode to a charging mode is sent by the battery pack; according to the first switching request, the battery reference voltage in the loop control module is set to a preset voltage, the battery reference current is set to a requested current of the BMS, and the initial value of the integral value of the current loop is set to the integral value of the voltage loop, so as to stabilize the output current, wherein the preset voltage is greater than the battery pack voltage by a preset value; a second switching request from the battery pack for switching the charging mode to the heating mode is obtained; according to the second switching request, the battery reference voltage in the loop control module is set to the battery pack voltage, the battery reference current is set to 200A, and the initial value of the integral value of the voltage loop is set to the integral value of the current loop. From the above description, it can be seen that in the control method for smooth switching of battery heating and charging modes of the present invention, the voltage loop and the current loop are connected in parallel, and the integral value of the voltage loop and the integral value of the current loop are taken as the smaller one and input into the PWM setting register. When the heating mode is switched to the charging mode, the initial value of the integral value of the current loop is set to the integral value of the voltage loop, so that the output current will not produce excessive fluctuations when switching from the voltage loop to the current loop. In addition, when the charging mode is switched to the heating mode, the initial value of the integral value of the voltage loop is set to the integral value of the current loop, so that the output voltage will not produce excessive fluctuations when switching from the current loop to the voltage loop. In other words, it can reduce the instantaneous impact during mode switching and realize non-stop switching of battery heating and charging modes, alleviate the situation where traditional technology cannot reduce the instantaneous impact during mode switching, and solve the technical problem of non-stop switching of battery heating and charging modes. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 Schematic diagram of the connection of the charger and the battery with heating function for the conventional technology;
[0038] Figure 2 A schematic diagram of a loop design for a cascade of a voltage loop and a current loop provided for conventional technology;
[0039] Figure 3 A flow chart of a control method for smooth switching between battery heating and charging modes provided by an embodiment of the present invention;
[0040] Figure 4 A basic framework diagram of a loop control module provided by an embodiment of the present invention;
[0041] Figure 5 A basic framework diagram of an optimized loop control module provided by an embodiment of the present invention;
[0042] Figure 6 A schematic diagram of the test effect before optimization provided by an embodiment of the present invention;
[0043] Figure 7 A schematic diagram of the optimized test effect provided by an embodiment of the present invention;
[0044] Figure 8 A schematic diagram of a control device for smooth switching between battery heating and charging modes provided by an embodiment of the present invention;
[0045] Fig. 9 A schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0046] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] Traditional technologies cannot achieve non-stop switching between battery heating and charging modes while reducing the instantaneous impact during mode switching.
[0048] Based on this, in the control method for smooth switching of battery heating and charging modes of the present invention, the voltage loop and the current loop are connected in parallel, and the smaller of the integral value of the voltage loop and the integral value of the current loop is input into the PWM setting register. When the heating mode is switched to the charging mode, the initial value of the integral value of the current loop is set to the integral value of the voltage loop, so that the output current will not produce excessive fluctuations when switching from the voltage loop to the current loop. In addition, when the charging mode is switched to the heating mode, the initial value of the integral value of the voltage loop is set to the integral value of the current loop, so that the output voltage will not produce excessive fluctuations when switching from the current loop to the voltage loop. In other words, the instantaneous impact during mode switching can be reduced, and non-stop switching of the battery heating and charging modes can be achieved.
[0049] To facilitate understanding of this embodiment, a control method for smooth switching between battery heating and charging modes disclosed in an embodiment of the present invention is first introduced in detail.
[0050] Embodiment 1:
[0051] According to an embodiment of the present invention, an embodiment of a control method for smooth switching of battery heating and charging modes is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0052] Figure 3 is a flow chart of a control method for smooth switching between battery heating and charging modes according to an embodiment of the present invention. Figure 3 As shown, the method comprises the following steps:
[0053] Step S302, obtaining a heating request sent by the battery pack;
[0054] Specifically, the purpose of the present invention is to provide a software control method for smoothly switching between a heating mode and a charging mode for a battery with a heating function, which can be applied to Figure 1 The charger shown.
[0055] Step S304, according to the heating request, the battery reference voltage in the loop control module is set to the battery pack voltage, and the battery reference current is set to 200A to stabilize the output voltage, wherein the loop control module includes: a voltage loop and a current loop connected in parallel, and the integral value of the voltage loop and the integral value of the current loop are taken as smaller, and then input into the PWM setting register, the input end of the voltage loop includes: a battery reference voltage and a battery pack voltage sampling feedback, and the input end of the current loop includes: a battery reference current and a battery pack current sampling feedback;
[0056] Specifically, when in heating mode, the output voltage of the charger is required to be stable, wherein the output voltage of the charger is constant at the battery pack voltage (which can be obtained from BMS information through CAN communication) to prevent a large impact current from being generated due to excessive voltage difference when switching to charging mode.
[0057] This is achieved through the program's loop control module. Figure 4 The basic framework diagram of the loop control module is shown in FIG. , wherein the part related to the output voltage control is called the voltage loop, and the part related to the output current control is called the current loop.
[0058] In heating mode, the output voltage needs to be controlled to be stable. Vbatref is the battery reference voltage, which is generally given by the program and is generally set to the battery pack voltage. Voutfbk is the battery pack voltage sampling feedback. The difference between the two is output through the PI controller to output the period value of the PWM module (that is, Vprd. The frequency of the output pwm is directly related to the current output voltage, but the chip cannot directly control the frequency and needs to indirectly control the frequency through the PRD value).
[0059] At this time, assuming that the battery reference voltage Vbatref = battery pack voltage 80V, the battery pack voltage sampling feedback Voutfbk is 0V at the beginning, the voltage difference between the two is 80V, entering the PI controller, and outputting Vprd; the battery reference current Ibatref = 200A, and the battery pack current sampling feedback Ibatfbk is 8A (such as Figure 1 As shown, assuming that the output voltage is a stable 80V, the heating resistor is 10Ω, Ibatfbk should be 8A, which is constant), the current loop is in a saturated state (ie, Ibatfbk is a constant 8A), Iprd=1, Vprd is less than Iprd, and a small Vprd is taken. The feedback effect causes Voutfbk to gradually increase from 0V to 80V.
[0060] Step S306, obtaining a first switching request from the battery pack to switch from the heating mode to the charging mode;
[0061] Step S308, according to the first switching request, the battery reference voltage in the loop control module is set to a preset voltage, the battery reference current is set to a requested current of the BMS, and the initial value of the integral value of the current loop is set to the integral value of the voltage loop, so as to stabilize the output current, wherein the preset voltage is greater than the battery pack voltage by a preset value;
[0062] Specifically, in charging mode, the output current (i.e., the output current of the charger) needs to be controlled to be stable. Ibatref is the battery reference current, which is generally given by the battery pack, specifically the requested current of the BMS. Voutfbk is the battery pack voltage sampling feedback. The difference between the two is obtained by the PI controller to output the period value of the PWM module (i.e., Iprd. At this time, the Vbatref setting will be higher than the actual battery pack voltage, and the voltage loop is in a saturated state).
[0063] At this time, assuming that the battery reference voltage Vbatref = preset voltage 83V (the preset voltage is 3V higher than the battery pack voltage 80V), the battery pack voltage sampling feedback Voutfbk is 80V, which has reached the battery pack voltage value and remains unchanged. In other words, the voltage loop is in a saturated state, Vprd = 1; the battery reference current Ibatref = 45A, the battery pack current sampling feedback Ibatfbk is 0A, and the current difference between the two is 45A, which enters the PI controller and outputs Iprd. Iprd is less than Vprd. The smaller Iprd is taken, and the feedback effect causes Ibatfbk to gradually increase from 0A to 45A.
[0064] Switching from heating mode to charging mode is equivalent to switching the control mode from constant voltage source output to constant current source output, and the control loop switches from voltage control to current control. Before switching, the current loop is in a saturated state, and the integral value of the current loop is saturated. When switching, the initial value of the integral value of the current loop is set to the integral value of the current voltage loop, so that the current loop exits the saturated state. In this way, when switching from the voltage loop to the current loop, the output current will not produce excessive oscillations.
[0065] Step S310, obtaining a second switching request sent by the battery pack to switch from the charging mode to the heating mode;
[0066] Step S312, according to the second switching request, the battery reference voltage in the loop control module is set to the battery pack voltage, the battery reference current is set to 200A, and the initial value of the integral value of the voltage loop is set to the integral value of the current loop.
[0067] Specifically, switching from charging mode to heating mode is equivalent to switching the control mode from constant current source output to constant voltage source output, and the control loop switches from current control to voltage control. Before switching, the voltage loop is in a saturated state, and the integral value of the voltage loop is saturated. When switching, the initial value of the integral value of the voltage loop is set to the integral value of the current loop, so that the voltage loop exits the saturated state. In this way, when switching from the current loop to the voltage loop, the output voltage will not produce excessive fluctuations.
[0068] like Figure 5As shown, the above steps S306 to S312 are based on the output of the original control loop, plus the judgment of mode switching. If mode switching occurs, it is necessary to assign an initial value to the current loop integral output.
[0069] In an embodiment of the present invention, a control method for smooth switching of battery heating and charging modes is provided, which is applied to a charger, and the method comprises: obtaining a heating request sent by a battery pack; setting the battery reference voltage in a loop control module to the battery pack voltage and the battery reference current to 200A according to the heating request, so as to stabilize the output voltage, wherein the loop control module comprises: a voltage loop and a current loop connected in parallel, and the integral value of the voltage loop and the integral value of the current loop are taken as smaller, and then input into a PWM setting register, the input end of the voltage loop comprises: a battery reference voltage and a battery pack voltage sampling feedback, and the input end of the current loop comprises: a battery reference current and a battery pack current sampling feedback; obtaining A first switching request from a heating mode to a charging mode is sent by the battery pack; according to the first switching request, the battery reference voltage in the loop control module is set to a preset voltage, the battery reference current is set to a requested current of the BMS, and the initial value of the integral value of the current loop is set to the integral value of the voltage loop, so as to stabilize the output current, wherein the preset voltage is greater than the battery pack voltage by a preset value; a second switching request from the battery pack for switching the charging mode to the heating mode is obtained; according to the second switching request, the battery reference voltage in the loop control module is set to the battery pack voltage, the battery reference current is set to 200A, and the initial value of the integral value of the voltage loop is set to the integral value of the current loop. From the above description, it can be seen that in the control method for smooth switching of battery heating and charging modes of the present invention, the voltage loop and the current loop are connected in parallel, and the integral value of the voltage loop and the integral value of the current loop are taken as the smaller one and input into the PWM setting register. When the heating mode is switched to the charging mode, the initial value of the integral value of the current loop is set to the integral value of the voltage loop, so that the output current will not produce excessive fluctuations when switching from the voltage loop to the current loop. In addition, when the charging mode is switched to the heating mode, the initial value of the integral value of the voltage loop is set to the integral value of the current loop, so that the output voltage will not produce excessive fluctuations when switching from the current loop to the voltage loop. In other words, it can reduce the instantaneous impact during mode switching and realize non-stop switching of battery heating and charging modes, alleviate the situation where traditional technology cannot reduce the instantaneous impact during mode switching, and solve the technical problem of non-stop switching of battery heating and charging modes.
[0070] The above content briefly introduces the control method for smooth switching of battery heating and charging modes of the present invention. The specific contents involved are described in detail below.
[0071] In an optional embodiment of the present invention, in the heating mode, the current loop is in a saturated state; in the charging mode, the voltage loop is in a saturated state.
[0072] In an optional embodiment of the present invention, at the same time, one of the voltage loop or the current loop in the loop control module is in control.
[0073] Specifically, as can be seen from the analysis of the above content, no matter whether it is working in heating mode or charging mode, only one loop is in control at the same time, and the other loop module is in a saturated state. It is considered to connect these two loops in parallel to facilitate switching of working modes without stopping the machine.
[0074] In an optional embodiment of the present invention, the voltage loop includes: a voltage difference finder and a first PI controller, wherein the output end of the voltage difference finder is connected to the first PI controller;
[0075] The current loop includes: a current difference finder and a second PI controller, wherein the output end of the current difference finder is connected to the second PI controller.
[0076] Combine the following Figure 1 Introduce the switching between heating mode and charging mode:
[0077] When charging starts, the battery pack is at a low temperature and works in heating mode. Only S1 is closed, and the charger outputs a constant voltage to heat the resistor to increase the battery temperature. After reaching a certain temperature T1, S2 is closed. At this time, the heating mode and charging mode exist at the same time, and the battery temperature will continue to rise to T2. At this time, S1 needs to be disconnected and the machine only works in charging mode.
[0078] If the ambient temperature is low, the battery temperature may drop again after the heating resistor is disconnected. When it drops to T2, S1 needs to be closed again. If the heating at this time still cannot prevent the battery temperature from dropping, when the battery temperature drops to T1, S2 needs to be disconnected so that it only works in heating mode to increase the battery temperature. This ensures that the temperature of the battery pack is not too low when charging, thereby improving the battery life and charging efficiency.
[0079] Before optimization (only the voltage loop and current loop are connected in parallel, and the initial value of the integral value is not set), switching from heating mode to charging mode is equivalent to directly switching the voltage loop to current loop control. The initial value of the integral of the current loop is reduced from the saturation value, and then stabilized through the closed loop, which will inevitably lead to a large sudden change in the current value at the moment of switching. The actual test results are as follows Figure 6 As shown, it is the battery current waveform. It can be seen that there is a large fluctuation at the switching moment. The stable current is 40A, and the fluctuation peak even reaches 170A.
[0080] After optimization, the initial value of the integral value of the current loop is equivalent to approaching the stable value from a value corresponding to the stable current, so the fluctuating current is greatly reduced. Figure 7 shown.
[0081] The present invention adopts a voltage loop and a current loop in parallel, which can adapt to resistive loads and constant voltage source loads at the same time; after the voltage loop and the current loop are output, a judgment is added on whether the loop should be switched in the next control to ensure smooth switching; in the heating mode, the output voltage is constant at the battery pack voltage, which can effectively reduce the instantaneous impact current during mode switching.
[0082] Embodiment 2:
[0083] An embodiment of the present invention also provides a control device for smooth switching of battery heating and charging modes. The control device for smooth switching of battery heating and charging modes is mainly used to execute the control method for smooth switching of battery heating and charging modes provided in Example 1 of the present invention. The following is a specific introduction to the control device for smooth switching of battery heating and charging modes provided in the embodiment of the present invention.
[0084] Figure 8 is a schematic diagram of a control device for smooth switching between battery heating and charging modes according to an embodiment of the present invention. Figure 8 As shown, the device mainly includes: a first acquisition unit 10, a first setting unit 20, a second acquisition unit 30, a second setting unit 40, a third acquisition unit 50, and a third setting unit 60, wherein:
[0085] A first acquiring unit, used to acquire a heating request sent by the battery pack;
[0086] A first setting unit is used to set the battery reference voltage in the loop control module to the battery pack voltage and the battery reference current to 200A according to the heating request, so as to stabilize the output voltage, wherein the loop control module includes: a voltage loop and a current loop connected in parallel, and the integral value of the voltage loop and the integral value of the current loop are input into the PWM setting register after taking the smaller one, the input end of the voltage loop includes: a battery reference voltage and a battery pack voltage sampling feedback, and the input end of the current loop includes: a battery reference current and a battery pack current sampling feedback;
[0087] A second acquiring unit, configured to acquire a first switching request sent by the battery pack for switching from a heating mode to a charging mode;
[0088] A second setting unit is used to set the battery reference voltage in the loop control module to a preset voltage according to the first switching request, set the battery reference current to a requested current of the BMS, and set the initial value of the integral value of the current loop to the integral value of the voltage loop, so as to stabilize the output current, wherein the preset voltage is greater than the battery pack voltage by a preset value;
[0089] A third acquiring unit, configured to acquire a second switching request sent by the battery pack for switching from a charging mode to a heating mode;
[0090] The third setting unit is used to set the battery reference voltage in the loop control module to the battery pack voltage, set the battery reference current to 200A, and set the initial value of the integral value of the voltage loop to the integral value of the current loop according to the second switching request.
[0091] In an embodiment of the present invention, a control device for smooth switching of battery heating and charging modes is provided, which is applied to a charger, and the device comprises: obtaining a heating request sent by a battery pack; setting the battery reference voltage in a loop control module to the battery pack voltage and the battery reference current to 200A according to the heating request, so as to stabilize the output voltage, wherein the loop control module comprises: a voltage loop and a current loop connected in parallel, and the integral value of the voltage loop and the integral value of the current loop are taken as smaller, and then input into a PWM setting register, the input end of the voltage loop comprises: a battery reference voltage and a battery pack voltage sampling feedback, and the input end of the current loop comprises: a battery reference current and a battery pack current sampling feedback; obtaining A first switching request from a heating mode to a charging mode is sent by the battery pack; according to the first switching request, the battery reference voltage in the loop control module is set to a preset voltage, the battery reference current is set to a requested current of the BMS, and the initial value of the integral value of the current loop is set to the integral value of the voltage loop, so as to stabilize the output current, wherein the preset voltage is greater than the battery pack voltage by a preset value; a second switching request from the battery pack for switching the charging mode to the heating mode is obtained; according to the second switching request, the battery reference voltage in the loop control module is set to the battery pack voltage, the battery reference current is set to 200A, and the initial value of the integral value of the voltage loop is set to the integral value of the current loop. It can be seen from the above description that in the control device for smooth switching of battery heating and charging modes of the present invention, the voltage loop and the current loop are connected in parallel, and the smaller of the integral value of the voltage loop and the integral value of the current loop is input into the PWM setting register. When the heating mode is switched to the charging mode, the initial value of the integral value of the current loop is set to the integral value of the voltage loop, so that the output current will not produce excessive fluctuations when switching from the voltage loop to the current loop. In addition, when the charging mode is switched to the heating mode, the initial value of the integral value of the voltage loop is set to the integral value of the current loop, so that the output voltage will not produce excessive fluctuations when switching from the current loop to the voltage loop. In other words, the instantaneous impact during mode switching can be reduced, and non-stop switching of battery heating and charging modes can be achieved, which alleviates the situation where traditional technology cannot reduce the instantaneous impact during mode switching and solves the technical problem of non-stop switching of battery heating and charging modes.
[0092] Optionally, in the heating mode, the current loop is in a saturated state; in the charging mode, the voltage loop is in a saturated state.
[0093] Optionally, the voltage loop includes: a voltage differentiator and a first PI controller, wherein the output end of the voltage differentiator is connected to the first PI controller; the current loop includes: a current differentiator and a second PI controller, wherein the output end of the current differentiator is connected to the second PI controller.
[0094] Optionally, at the same time, one of the voltage loop or the current loop in the loop control module is in control.
[0095] Optionally, the charger includes a loop control module.
[0096] The device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0097] like Fig. 9 As shown, an electronic device 600 provided in an embodiment of the present application includes: a processor 601, a memory 602 and a bus, wherein the memory 602 stores machine-readable instructions executable by the processor 601. When the electronic device is running, the processor 601 communicates with the memory 602 through the bus, and the processor 601 executes the machine-readable instructions to perform the steps of the control method for smooth switching of battery heating and charging modes as described above.
[0098] Specifically, the above-mentioned memory 602 and processor 601 can be general-purpose memories and processors, which are not specifically limited here. When the processor 601 runs the computer program stored in the memory 602, it can execute the above-mentioned control method for smooth switching of battery heating and charging modes.
[0099] The processor 601 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 601. The above processor 601 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the above method in combination with its hardware.
[0100] Corresponding to the above-mentioned control method for smooth switching of battery heating and charging modes, an embodiment of the present application also provides a computer-readable storage medium, which stores machine-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the steps of the above-mentioned control method for smooth switching of battery heating and charging modes.
[0101] The control device for smooth switching of battery heating and charging modes provided in the embodiment of the present application can be specific hardware on the device or software or firmware installed on the device. The implementation principle and technical effects of the device provided in the embodiment of the present application are the same as those of the aforementioned method embodiment. For the sake of brief description, the parts not mentioned in the device embodiment can refer to the corresponding contents in the aforementioned method embodiment. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can all refer to the corresponding processes in the aforementioned method embodiment, and will not be repeated here.
[0102] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0103] For another example, the flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the device, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes 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 and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0104] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0105] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0106] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including a number of instructions to enable an electronic device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the control method for smooth switching of battery heating and charging modes described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., and other media that can store program codes.
[0107] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.
[0108] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solution of the present application, rather than to limit it. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the aforementioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solution recorded in the aforementioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solution deviate from the scope of the technical solution of the embodiment of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A control method for smooth switching between battery heating and charging modes, characterized in that: Applied to a charger, the method comprises: Get the heating request sent by the battery pack; According to the heating request, the battery reference voltage in the loop control module is set to the battery pack voltage, and the battery reference current is set to 200A to stabilize the output voltage, wherein the loop control module includes: a voltage loop and a current loop connected in parallel, and the integral value of the voltage loop and the integral value of the current loop are taken smaller and input into the PWM setting register, the input end of the voltage loop includes: the battery reference voltage and the battery pack voltage sampling feedback, and the input end of the current loop includes: the battery reference current and the battery pack current sampling feedback; Acquire a first switching request sent by the battery pack to switch from a heating mode to a charging mode; According to the first switching request, the battery reference voltage in the loop control module is set to a preset voltage, the battery reference current is set to a requested current of the BMS, and the initial value of the integral value of the current loop is set to the integral value of the voltage loop, so as to stabilize the output current, wherein the preset voltage is greater than the battery pack voltage by a preset value; Obtaining a second switching request sent by the battery pack to switch from a charging mode to a heating mode; According to the second switching request, the battery reference voltage in the loop control module is set to the battery pack voltage, the battery reference current is set to 200A, and the initial value of the integral value of the voltage loop is set to the integral value of the current loop.
2. The method according to claim 1, characterized in that In the heating mode, the current loop is in a saturated state; In charging mode, the voltage loop is in saturation.
3. The method according to claim 1, characterized in that The voltage loop comprises: a voltage difference finder and a first PI controller, wherein the output end of the voltage difference finder is connected to the first PI controller; The current loop includes: a current difference finder and a second PI controller, wherein the output end of the current difference finder is connected to the second PI controller.
4. The method according to claim 1, characterized in that: At the same time, one of the voltage loop or the current loop in the loop control module is in control.
5. The method according to claim 1, characterized in that The charger includes the loop control module.
6. A control device for smooth switching between battery heating and charging modes, characterized in that: Applied to a charger, the device comprises: A first acquiring unit, used to acquire a heating request sent by the battery pack; A first setting unit is used to set the battery reference voltage in the loop control module to the battery pack voltage and the battery reference current to 200A according to the heating request, so as to stabilize the output voltage, wherein the loop control module includes: a voltage loop and a current loop connected in parallel, and the integral value of the voltage loop and the integral value of the current loop are input into the PWM setting register after taking the smaller one, the input end of the voltage loop includes: the battery reference voltage and the battery pack voltage sampling feedback, and the input end of the current loop includes: the battery reference current and the battery pack current sampling feedback; A second acquiring unit, configured to acquire a first switching request sent by the battery pack for switching from a heating mode to a charging mode; a second setting unit, configured to set the battery reference voltage in the loop control module to a preset voltage according to the first switching request, set the battery reference current to a requested current of the BMS, and set the initial value of the integral value of the current loop to the integral value of the voltage loop, so as to stabilize the output current, wherein the preset voltage is greater than the battery pack voltage by a preset value; A third acquiring unit, configured to acquire a second switching request sent by the battery pack for switching from a charging mode to a heating mode; A third setting unit is used to set the battery reference voltage in the loop control module to the battery pack voltage, set the battery reference current to 200A, and set the initial value of the integral value of the voltage loop to the integral value of the current loop according to the second switching request.
7. The device according to claim 6, characterized in that In the heating mode, the current loop is in a saturated state; In charging mode, the voltage loop is in saturation.
8. The device according to claim 6, characterized in that The voltage loop comprises: a voltage difference finder and a first PI controller, wherein the output end of the voltage difference finder is connected to the first PI controller; The current loop includes: a current difference finder and a second PI controller, wherein the output end of the current difference finder is connected to the second PI controller.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to execute the method according to any one of claims 1 to 5.