Current control method and current control device

By using the first sampling module and the second sampling module in the power supply module to sample current and compensate according to the sampling signal to generate a current output signal, the current sampling signal disturbance problem caused by electromagnetic interference within the power supply module is solved, and the current control is improved accuracy.

CN119045596BActive Publication Date: 2025-02-18SHENZHEN WINLINE TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411533649.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-02-18
Estimated Expiration
2044-10-31

AI Technical Summary

Technical Problem

During the charging process of new energy vehicles, the semiconductor devices inside the power supply module cause disturbances in the current sampling signal due to high-frequency electromagnetic interference, which affects the control accuracy of the output current.

Method used

A current control method is adopted, and the power supply module is sampled separately through the first sampling module and the second sampling module, compensated according to the sampling signal, determined the current output signal, and generated a switch driving signal through the triangular wave comparison module.

Benefits of technology

By compensating for deviations in the sampled signal, the accuracy of current control is improved and the impact of electromagnetic interference inside the power supply module is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119045596B_ABST
    Figure CN119045596B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a current control method and a current control device, wherein the method includes: obtaining a first sampling signal from a first sampling module, and obtaining a second sampling signal from a second sampling module; compensating a current given value according to the first sampling signal and a preset transfer function to obtain a compensated reference current given value; determining a first current output signal; and sending the first current output signal to a triangular wave comparison module. The power supply module is sampled by a first sampling module with a smaller sampling bandwidth and a second sampling module with a larger sampling bandwidth, respectively, the current given value is compensated according to the first sampling signal, the first current output signal is determined according to the second sampling signal and the compensated reference current given value, and the first current output signal is compared with a triangular wave before outputting a first switch drive signal, so as to compensate for the deviation of the second sampling signal caused by interference, which is beneficial to improving the accuracy of current control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of power supply charging, and specifically relates to a current control method and a current control device. Background Art

[0002] At present, new energy vehicles have put forward higher requirements for the comprehensive charging performance of the power module in the charging pile. On the one hand, it requires a larger charging power to charge and shorten the waiting time. On the other hand, in order to improve the charging efficiency, it is necessary to increase the charging voltage and reduce the charging current to reduce the loss on the line. In addition, in order to reduce the volume of the power module, improve the power density, and promote the application of SIC devices, the switching frequency of the power module is also gradually increasing. However, while actually improving the performance of the power module, it will also cause the semiconductor devices inside the power module to generate higher dV / dt and dI / dt electromagnetic interference when working. The current sampling signal of the power module is relatively weak and is easily interfered by high-frequency noise, which leads to irregular disturbances on the current sampling signal. When used for output current control, even if the output load remains unchanged, the duty cycle of the charging module will continue to change within a certain range, thereby affecting the accuracy of output current control. Summary of the invention

[0003] The embodiments of the present application provide a current control method and a current control device.

[0004] In a first aspect, an embodiment of the present application provides a current control method, which is applied to a current control module in a current control system, wherein the current control system includes a first sampling module, a second sampling module, the current control module, and a triangular wave comparison module, wherein the first sampling module is respectively connected to the current control module, the first sub-power module and the second sub-power module in the power module, the second sampling module is respectively connected to the current control module, the first sub-power module and the second sub-power module, the current control module is connected to the triangular wave comparison module, the triangular wave comparison module is respectively connected to the first sub-power module and the second sub-power module, and the value of the capacitor in the first sampling module is greater than the value of the capacitor in the second sampling module; the method includes:

[0005] Determine a current connection mode between the first sub-power module and the second sub-power module;

[0006] When it is determined that the connection mode is series connection, a first sampling signal from the first sampling module is obtained, and a second sampling signal from the second sampling module is obtained, wherein the first sampling signal is a signal sampled by the first sampling module on a first shunt in the power module, the first shunt is used to sample the output current of the first sub-power module, and the second sampling signal is a signal sampled by the second sampling module on the first shunt, and the resistance value of the first shunt is greater than the resistance value of the second shunt in the power module;

[0007] Compensating a first current given value of the current control module according to the first sampling signal and a first preset transfer function to obtain a compensated first reference current given value;

[0008] Determine a first current output signal according to the first reference current given value, the second sampling signal and the first preset transfer function;

[0009] The first current output signal is sent to the triangular wave comparison module, and the triangular wave comparison module is used to determine a first switch drive signal according to the first current output signal, and send the first switch drive signal to the first sub-power supply module and the second sub-power supply module respectively.

[0010] In a second aspect, an embodiment of the present application provides a current control device, which is applied to a current control module in a current control system. The current control system includes a first sampling module, a second sampling module, the current control module, and a triangular wave comparison module. The first sampling module is respectively connected to the current control module, the first sub-power module and the second sub-power module in the power module, the second sampling module is respectively connected to the current control module, the first sub-power module and the second sub-power module, the current control module is connected to the triangular wave comparison module, and the triangular wave comparison module is respectively connected to the first sub-power module and the second sub-power module, the value of the capacitor in the first sampling module is greater than the value of the capacitor in the second sampling module; the device includes an acquisition unit, a determination unit and a transmission unit; wherein,

[0011] The determining unit is used to determine a current connection mode between the first sub-power module and the second sub-power module;

[0012] The acquisition unit is used for acquiring a first sampling signal from the first sampling module and a second sampling signal from the second sampling module when it is determined that the connection mode is a series connection, wherein the first sampling signal is a signal sampled by the first sampling module on a first shunt in the power module, the first shunt is used to sample an output current of the first sub-power module, and the second sampling signal is a signal sampled by the second sampling module on the first shunt, and a resistance value of the first shunt is greater than a resistance value of a second shunt in the power module;

[0013] The compensation unit is used to compensate the first current given value of the current control module according to the first sampling signal and the first preset transfer function to obtain a compensated first reference current given value;

[0014] The determining unit is further configured to determine a first current output signal according to the first reference current given value, the second sampling signal and the first preset transfer function;

[0015] The transmission unit is used to send the first current output signal to the triangular wave comparison module, and the triangular wave comparison module is used to determine the first switch drive signal according to the first current output signal, and send the first switch drive signal to the first sub-power supply module and the second sub-power supply module respectively.

[0016] A third aspect of the present application provides an electronic device, comprising: a processor and a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for some or all of the steps described in the first aspect.

[0017] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, wherein the computer program enables a computer to execute instructions of some or all of the steps described in the first aspect of the embodiment of the present application.

[0018] A fifth aspect of the embodiments of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.

[0019] It can be seen that in the embodiment of the present application, the current control module first determines the current connection mode between the first sub-power module and the second sub-power module, and then when it is determined that the connection mode is series connection, the first sampling signal from the first sampling module is obtained, and the second sampling signal from the second sampling module is obtained, and then the current given value of the current control module is compensated according to the first sampling signal and the preset transfer function to obtain the compensated reference current given value, and further, according to the reference current given value, the second sampling signal and the preset transfer function, the first current output signal is determined, and finally, the first current output signal is sent to the triangular wave comparison module, and the triangular wave comparison module is used to determine the first switch drive signal according to the first current output signal, and send the first switch drive signal to the first sub-power module and the second sub-power module respectively. The power module is sampled by the first sampling module with a smaller sampling bandwidth and the second sampling module with a larger sampling bandwidth respectively, the current control module compensates the current given value according to the first sampling signal, determines the first current output signal according to the second sampling signal and the compensated reference current given value, and outputs the first switch drive signal after the first current output signal is compared with the triangular wave, so as to compensate for the deviation of the second sampling signal caused by interference, which is conducive to improving the accuracy of current control. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0021] Figure 1A It is a schematic diagram of the architecture of a current control system provided in an embodiment of the present application;

[0022] Figure 1B is a circuit diagram of a sampling module provided in an embodiment of the present application;

[0023] Figure 1C is a circuit diagram of another sampling module provided in an embodiment of the present application;

[0024] Figure 1D is a topological diagram of a power module provided in an embodiment of the present application;

[0025] Figure 2 is a flow chart of a current control method provided in an embodiment of the present application;

[0026] Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;

[0027] Figure 4 This is a block diagram of the functional units of a current control device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0029] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0030] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0031] In the embodiments of the present application, "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent the following three situations: A exists alone; A and B exist at the same time; B exists alone. Among them, A and B can be singular or plural.

[0032] In the embodiment of the present application, the symbol " / " can indicate that the objects associated with each other are in an "or" relationship. In addition, the symbol " / " can also indicate a division sign, that is, performing a division operation. For example, A / B can indicate A divided by B.

[0033] In the embodiments of the present application, "at least one item" or similar expressions refer to any combination of these items, including any combination of single items or plural items, and refer to one or more, and multiple refers to two or more. For example, at least one item of a, b, or c can represent the following seven situations: a, b, c, a and b, a and c, b and c, a, b, and c. Among them, each of a, b, and c can be an element or a set containing one or more elements.

[0034] In the embodiments of the present application, "equal to" can be used in conjunction with greater than, and is applicable to the technical solution adopted when greater than, and can also be used in conjunction with less than, and is applicable to the technical solution adopted when less than. When equal to is used in conjunction with greater than, it is not used in conjunction with less than; when equal to is used in conjunction with less than, it is not used in conjunction with greater than.

[0035] In order to better understand the solutions of the embodiments of the present application, the electronic devices, related concepts and backgrounds that may be involved in the embodiments of the present application are first introduced below.

[0036] The electronic device of the application embodiment is a device with wireless communication function, which can be called terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal equipment, vehicle-mounted terminal equipment, industrial control terminal equipment, UE unit, UE station, mobile station, remote station, remote terminal equipment, mobile device, UE terminal equipment, wireless communication equipment, UE agent or UE device, etc. The terminal device can be fixed or mobile. It should be noted that the terminal device can support at least one wireless communication technology, such as LTE, new radio (NR), wideband code division multiple access (WCDMA), etc. For example, the terminal device may be a mobile phone, a tablet computer (pad), a desktop computer, a laptop computer, an all-in-one computer, a vehicle-mounted terminal, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device with wireless communication function, an electronic device or other processing device connected to a wireless modem, a wearable device, a terminal device in a future mobile communication network, or a terminal device in a future evolved public mobile land network (PLMN), etc. The electronic device may be a current control module in a current control system.

[0037] See also Figure 1A , Figure 1A Schematic diagram of the architecture of a current control system provided by an embodiment of the present application. Figure 1AAs shown, the current control system 1 includes a first sampling module 10 , a second sampling module 20 , a current control module 30 and a triangle wave comparison module 40 .

[0038] The power supply module 50 is connected to the first sampling module 10 and the second sampling module 20 respectively. The first sampling module 10 is connected to the current control module 30 , the second sampling module 20 is connected to the current control module 30 , and the current control module 30 is connected to the triangle wave comparison module 40 .

[0039] Among them, see Figure 1B , Figure 1B is a circuit diagram of a sampling module provided in an embodiment of the present application, Figure 1B The circuit diagram of the first sampling module 10 is shown. Iin+ and Iin- are output signals of the current sampling device in the power module 50. Isense1 represents the first sampling signal. The current sampling device may be a shunt or a current sensor. Iin+ is connected to the second end of the first resistor R1, and Iin- is connected to the second end of the second resistor R2. The first end of the first resistor R1 is respectively connected to the first end of the first capacitor C1, the first end of the second capacitor C2, and the first end of the third resistor R3. The first end of the third resistor R3 is connected to the first end of the second capacitor C2, and the second end of the third resistor R3 is connected to the second end of the second capacitor C2. The second end of the second capacitor C2 is grounded. The first end of the second resistor R2 is respectively connected to the first end of the fourth resistor R4, the first end of the third capacitor C3, and the second end of the first capacitor C1. The two ends of the first capacitor C1 are respectively connected to the first end and the second end of the first amplifier circuit. The third end of the first amplifier circuit is connected to the second end of the fourth resistor R4, the second end of the third capacitor C3, and the first end of the fifth resistor R5. The second end of the fifth resistor R5 is connected to the first end of the fourth capacitor C4, and the second end of the fourth capacitor C4 is grounded. Please refer to Figure 1C , Figure 1C is a circuit diagram of another sampling module provided in an embodiment of the present application, Figure 1CThe circuit diagram of the second sampling module 20 is shown, Iin+ and Iin- are output signals of the current sampling device in the power module 50, Isense2 represents the second sampling signal, the current sampling device can be a shunt or a current sensor, Iin+ is connected to the second end of the sixth resistor R6, Iin- is connected to the second end of the seventh resistor R7, the first end of the sixth resistor R6 is respectively connected to the first end of the fifth capacitor C5, the first end of the sixth capacitor C6, and the first end of the eighth resistor R8, the first end of the eighth resistor R8 is connected to the first end of the sixth capacitor C6, the second end of the eighth resistor R8 is connected to the second end of the sixth capacitor C6, the second end of the sixth capacitor C6 is grounded, the first end of the seventh resistor R7 is respectively connected to the first end of the ninth resistor R9, the first end of the seventh capacitor C7 and the second end of the fifth capacitor C5, the two ends of the fifth capacitor C5 are respectively connected to the first end and the second end of the second amplifier circuit, the third end of the second amplifier circuit is connected to the second end of the ninth resistor R9, the second end of the seventh capacitor C7 and the first end of the tenth resistor R10, the second end of the tenth resistor R10 is connected to the first end of the eighth capacitor C8, and the second end of the eighth capacitor C8 is grounded.

[0040] Wherein, the current control module may include a current loop.

[0041] The triangle wave comparison module may include a triangle wave generating circuit and a comparator, or the triangle wave comparison module includes a digital signal processor DSP.

[0042] The power module 50 includes a first sub-power module 51 and a second sub-power module 52. The first sub-power module 51 and the second sub-power module 52 can be connected in series or in parallel. Figure 1D , Figure 1DIt is a topological diagram of a power module provided in an embodiment of the present application. The power module 50 includes a first sub-power module 51 and a second sub-power module 52. The first sub-power module includes a first switch tube Q1, a second switch tube Q2, a third switch tube Q3, a fourth switch tube Q4, a first inductor L1, a ninth diode D9 and a tenth diode D10. The second sub-power module includes a fifth switch tube Q5, a sixth switch tube Q6, a seventh switch tube Q7, an eighth switch tube Q8, a second inductor L2, an eleventh diode D11 and a twelfth diode D12. The power module 50 also includes a first transformer M1, a second transformer M2, a first diode D1, a second diode D2, a third diode D3, a fourth diode D4, and a fifth diode D5. , a sixth diode D6, a seventh diode D7, an eighth diode D8, a third inductor L3, a fourth inductor L4, a first relay K1, a second relay K2, a third relay K3, a first shunt N1, a second shunt N2, an output capacitor Cout and a voltage source Vin; a first end of Q1 is respectively connected to a first end of Q3 and a first end of D9, a second end of Q1 is respectively connected to a first end of Q2 and a first end of C9, a second end of Q3 is connected to a first end of Q4 and a first end of L1, a second end of Q4 is respectively connected to a first end of D10 and a second end of Q2, a second end of D10 is respectively connected to a second end of D9 and a second end of L1, a second end of L1 is connected to a second end of M1, a second end of C9 is connected to a first end of M1, The third end of M1 is respectively connected to the first end of D1 and the first end of D2, the fourth end of M1 is respectively connected to the second end of D3 and the first end of D4, the second end of D1 is respectively connected to the first end of D3 and the first end of L3, the second end of D2 is respectively connected to the second end of D4, the first end of K2 and the first end of K3, the second end of L3 is respectively connected to the first end of K1 and the first end of the output capacitor Cout, the first end of L4 is respectively connected to the second end of K1 and the second end of K2, the second end of L4 is respectively connected to the first end of D5 and the first end of D7, the second end of D5 is respectively connected to the third end of M2 and the first end of D6, the second end of D7 is respectively connected to the fourth end of M2 and the first end of D8, and the second end of D8 is respectively connected to the first end of N1 and D The second end of N1 is connected to the first end of N2 and the second end of K3 respectively, the second end of N2 is connected to the output capacitor Cout, the negative electrode of the voltage source is connected to the second end of Q2 and the second end of Q6 respectively, the positive electrode of the voltage source is connected to the first end of Q1 and the first end of Q5, the second end of Q5 is connected to the first end of C10 and the first end of Q6, the first end of Q5 is connected to the first end of Q7 and the first end of D11 respectively, the second end of Q7 is connected to the first end of Q8 and the first end of L2 respectively, the second end of Q8 is connected to the second end of Q6 and the second end of D12 respectively, the second end of D12 is connected to the second end of M2, L2 is connected to the second end of M2, the second end of D11 is connected to the second end of M2, and C10 is connected to the first end of M2.

[0043] Among them, the resistance of the first shunt N1 is greater than the resistance of the second shunt N2, so the sampling accuracy of the first shunt is higher. When the first relay is closed and the third relay is closed, and the second relay is disconnected, the first sub-power module 51 and the second sub-power module 52 are output in parallel, and when the first relay is closed and the third relay is disconnected, and the second relay is closed, the first sub-power module 51 and the second sub-power module 52 are output in series.

[0044] In a possible example, the current control module 30 in the current control system 1 first determines the current connection mode between the first sub-power module 51 and the second sub-power module 52. When the current control module 30 determines that the connection mode is series connection, it obtains the first sampling signal from the first sampling module 10 and the second sampling signal from the second sampling module 20. The current control module 30 then compensates the current set value of the current control module 30 according to the first sampling signal and the preset transfer function to obtain the compensated reference current set value. Further, the current control module 30 determines the first current output signal according to the reference current set value, the second sampling signal and the preset transfer function. Finally, the current control module 30 sends the first current output signal to the triangular wave comparison module 40. The triangular wave comparison module 40 is used to determine the first switch drive signal according to the first current output signal, and send the first switch drive signal to the first sub-power module 51 and the second sub-power module 52 respectively. The current of the power supply module is sampled respectively by a first sampling module 10 with a smaller sampling bandwidth and a second sampling module 20 with a larger sampling bandwidth. The current control module 30 compensates the current given value according to the first sampling signal, and determines the first current output signal according to the second sampling signal and the compensated reference current given value. The first current output signal is compared with a triangle wave and then outputs a first switch drive signal, so as to compensate for the deviation of the second sampling signal caused by interference, which is beneficial to improving the accuracy of current control.

[0045] See also Figure 2 , Figure 2 It is a flow chart of a current control method provided by an embodiment of the present application, which is applied to a current control module in a current control system. The current control system includes a first sampling module, a second sampling module, the current control module, and a triangular wave comparison module. The first sampling module is respectively connected to the current control module and the first sub-power module and the second sub-power module in the power module. The second sampling module is respectively connected to the current control module, the first sub-power module and the second sub-power module. The current control module is connected to the triangular wave comparison module, and the triangular wave comparison module is respectively connected to the first sub-power module and the second sub-power module. The value of the capacitor in the first sampling module is greater than the value of the capacitor in the second sampling module. The method includes:

[0046] Step S201: determine a current connection mode between the first sub-power module and the second sub-power module.

[0047] Among them, see Figure 1D The first sub-power module and the second sub-power module can be connected in series or in parallel.

[0048] Specifically, in terms of determining the current connection mode between the first sub-power module and the second sub-power module, the above method may include the following steps: obtaining a first switch state of a first relay, a second switch state of a second relay, and a third switch state of a third relay in the power module; when the first switch state is a closed state, the second switch state is an open state, and the third switch state is a closed state, determining that the connection mode is parallel; when the first switch state is an open state, the second switch state is a closed state, and the third switch state is an open state, determining that the connection mode is series.

[0049] Step S202, when it is determined that the connection mode is series connection, a first sampling signal from the first sampling module is obtained, and a second sampling signal from the second sampling module is obtained, the first sampling signal is a signal of the first sampling module sampling the first shunt in the power module, the first shunt is used to sample the output current of the first sub-power module, the second sampling signal is a signal of the second sampling module sampling the first shunt, and the resistance value of the first shunt is greater than the resistance value of the second shunt in the power module.

[0050] Among them, when the first sub-power module and the second sub-power module are output in series, the output current of the first sub-power module and the output current of the second sub-power module are the same. Therefore, for the first sub-power module and the second sub-power module, the current control module performs current control and the given current given value is also the same. Therefore, only the first sampling module and the second sampling module are needed to sample any one of the first shunt and the second shunt, and based on the first sampling signal and the second sampling signal, determine the first switch drive signal that can be applied to the switch tube in the first sub-power module and the opening tube in the second sub-power module at the same time, so as to improve the current control efficiency. On this basis, considering that the first shunt has a higher sampling accuracy for the output current, the first sampling module and the second sampling module are selected to sample the first shunt.

[0051] Step S203 : compensating the first current given value of the current control module according to the first sampling signal and the first preset transfer function to obtain a compensated first reference current given value.

[0052] Among them, the first sampling module and the second sampling module have different sampling bandwidths due to different capacitance values. Specifically, the capacitance value in the first sampling module is greater than the capacitance value at the corresponding position in the second sampling module. Therefore, the sampling bandwidth of the first sampling module is lower than that of the second sampling module. The high sampling bandwidth of the second sampling module means that the second sampling module has a faster response speed, but it is also susceptible to electromagnetic interference with higher dV / dt and dI / dt generated by the high-frequency operation of the switch tube in the power module, so that the output current of the power module sampled by it has a deviation. The sampling bandwidth of the first sampling module is low, which can filter out most of the interference. The deviation of the output current of the power module sampled by the first sampling module is very small. Therefore, the second sampling signal of the second sampling module can be used as the model of the current control of the power module, and the deviation of the second sampling signal of the second sampling module can be compensated by the first sampling signal of the first sampling module, so as to improve the accuracy of current control while ensuring the response speed of current control.

[0053] The first preset transfer function may be manually set or system default, which is not limited here, for example: ,or , where s is the Laplace operator, K is the compensation gain, , is the period corresponding to different zero points, is the period of the extreme point.

[0054] Step S204: determining a first current output signal according to the first reference current given value, the second sampling signal and the first preset transfer function.

[0055] Specifically, the current given value of the current control module is compensated by the first sampling signal to obtain a compensated reference current given value, and then the corrected first current output signal is determined by the compensated reference current given value and the second sampling signal.

[0056] Step S205: sending the first current output signal to the triangular wave comparison module, the triangular wave comparison module is used to determine a first switch drive signal according to the first current output signal, and send the first switch drive signal to the first sub-power module and the second sub-power module respectively.

[0057] Among them, the triangle wave comparison module may include a triangle wave generating circuit and a comparator, or the triangle wave comparison module includes a digital signal processor DSP. The triangle wave generating circuit is connected to the inverting input terminal of the comparator, and the current control module is connected to the non-inverting input terminal of the comparator. The triangle wave generating circuit is used to generate a preset current output signal. The first current output signal and the preset current output signal are compared by the comparator to output a PWM wave, which is used as a driving signal for the switch tube in the first sub-power module and the switch tube in the second sub-power module, that is, the first switch driving signal. The preset current output signal can be set manually or by system default, which is not limited here. Optionally, a corresponding program can also be written in the digital signal processor to realize the process of the triangle wave generating circuit generating a preset current output signal, the preset current output signal and the first current output signal are input into the comparator, and the PWM wave is output.

[0058] It can be seen that in the embodiment of the present application, the current control module first determines the current connection mode between the first sub-power module and the second sub-power module, and then when it is determined that the connection mode is series connection, the first sampling signal from the first sampling module is obtained, and the second sampling signal from the second sampling module is obtained, and then the current given value of the current control module is compensated according to the first sampling signal and the preset transfer function to obtain the compensated reference current given value, and further, according to the reference current given value, the second sampling signal and the preset transfer function, the first current output signal is determined, and finally, the first current output signal is sent to the triangular wave comparison module, and the triangular wave comparison module is used to determine the first switch drive signal according to the first current output signal, and send the first switch drive signal to the first sub-power module and the second sub-power module respectively. The power module is sampled by the first sampling module with a smaller sampling bandwidth and the second sampling module with a larger sampling bandwidth respectively, the current control module compensates the current given value according to the first sampling signal, determines the first current output signal according to the second sampling signal and the compensated reference current given value, and outputs the first switch drive signal after the first current output signal is compared with the triangular wave, so as to compensate for the deviation of the second sampling signal caused by interference, which is conducive to improving the accuracy of current control.

[0059] In a possible example, after determining the current connection mode between the first sub-power module and the second sub-power module, the method may further include the following steps: when it is determined that the connection mode is parallel, obtaining a third sampling signal and a fourth sampling signal from the first sampling module, and obtaining a fifth sampling signal and a sixth sampling signal from the second sampling module, the third sampling signal being a signal sampled by the first sampling module on the first shunt when the first sub-power module and the second sub-power module are connected in parallel, the fourth sampling signal being a signal sampled by the second sampling module on the first shunt when the first sub-power module and the second sub-power module are connected in parallel, the fifth sampling signal being a signal sampled by the first sampling module on the second shunt when the first sub-power module and the second sub-power module are connected in parallel, and the sixth sampling signal being a signal sampled by the second sampling module on the first sub-power module a signal for sampling the second shunt when the power module and the second sub-power module are connected in parallel; determining the seventh sampling signal according to the third sampling signal and the fifth sampling signal, and determining the eighth sampling signal according to the fourth sampling signal and the sixth sampling signal; determining the second current output signal according to the third sampling signal, the fourth sampling signal and the second preset transfer function, and determining the third current output signal according to the seventh sampling signal, the eighth sampling signal and the third preset transfer function; sending the second current output signal and the third current output signal to the triangular wave comparison module respectively, the triangular wave comparison module is used to determine the second switch drive signal according to the second current output signal, determine the third switch drive signal according to the third current output signal, send the second switch drive signal to the first sub-power module, and send the third switch drive signal to the second sub-power module.

[0060] When the first sub-power module and the second sub-power module are connected in parallel for output, the output current of the first sub-power module and the output current of the second sub-power module may not be consistent, and the current of the first sub-power module and the second sub-power module need to be controlled separately.

[0061] Among them, when the first sub-power module and the second sub-power module are output in parallel, the first shunt is used to sample the output current of the first power module, and the second shunt is used to sample the sum of the output current of the first power module and the output current of the second power module. Therefore, the third sampling signal and the fourth sampling signal can be directly used for current control of the first power module, while the fifth sampling signal and the sixth sampling signal cannot be directly used for current control of the second power module. The seventh sampling signal can be determined based on the third sampling signal and the fifth sampling signal, and the eighth sampling signal can be determined based on the fourth sampling signal and the sixth sampling signal. The seventh sampling signal and the eighth sampling signal are used for current control of the second power module. Specifically, the seventh sampling signal = the fifth sampling signal - the third sampling signal, and the eighth sampling signal = the sixth sampling signal - the fourth sampling signal.

[0062] The second preset transfer function and the third preset transfer function may be manually set or set by the system by default, and are not limited here. For example: ,or .

[0063] Specifically, in terms of determining the second current output signal based on the third sampling signal, the fourth sampling signal and the second preset transfer function, the above method may include the following steps: compensating the second current set value of the current control module based on the third sampling signal and the second preset transfer function to obtain a compensated second reference current set value; determining the second current output signal based on the second reference current set value, the fourth sampling signal and the second preset transfer function.

[0064] Among them, in terms of determining the third current output signal according to the seventh sampling signal, the eighth sampling signal and the third preset transfer function, the above method may include the following steps: compensating the third current set value of the current control module according to the seventh sampling signal and the second preset transfer function to obtain a compensated third reference current set value; determining the third current output signal according to the third reference current set value, the eighth sampling signal and the third preset transfer function.

[0065] The second current given value and the third current given value are the same or different, the first current given value is different from the second current given value, and the first current given value is different from the third current given value.

[0066] It can be seen that in this example, when the first sub-power module and the second sub-power module are output in parallel, the current control module can perform different current controls on the first sub-power module and the second sub-power module respectively, which is beneficial to improving the intelligence of the current control module in performing current control.

[0067] In one possible example, in terms of compensating the first current set value of the current control module according to the first sampling signal and the first preset transfer function to obtain a compensated first reference current set value, the above method may include the following steps: determining a first current value according to the first sampling signal; determining a difference between the first current value and the first current set value to obtain a first current difference; determining a first multiplication result between the first current difference and the first preset transfer function, and using the first multiplication result as a first error in the first current set value; compensating the first current set value according to the first error to obtain the compensated first reference current set value.

[0068] The first current value is a current value corresponding to the first sampling signal; the first current difference=the first current given value-the first current value; and the first error=the first current difference×the first transfer function.

[0069] Optionally, in terms of compensating the first current set value according to the first error to obtain the compensated first reference current set value, the above method may include the following steps: summing the first error and the first current set value to obtain the first reference current set value.

[0070] Among them, the first reference current given value=the first error+the first current given value.

[0071] It can be seen that in this example, the current control module compensates the first current set value through the first sampling signal to obtain the compensated first reference current set value, and then determines the corrected first current output signal according to the first reference current set value and the second sampling signal, which is beneficial to improving the accuracy of current control.

[0072] In one possible example, in terms of determining the first current output signal based on the first reference current given value, the second sampling signal and the first preset transfer function, the above method may include the following steps: determining a second current value based on the second sampling signal; determining a second current difference between the first reference current given value and the second current value; determining a second multiplication result between the second current difference and the first preset transfer function, and using the second multiplication result as the first current output signal.

[0073] The second current value is a current value corresponding to the second sampling signal; the second current difference=the first reference current given value-the second current value.

[0074] Wherein, the first current output signal=the second current difference×the first preset transfer function.

[0075] It can be seen that in this example, the current control module can determine the modified first current output signal according to the first reference current given value and the second sampling signal, which is beneficial to improving the accuracy of current control.

[0076] In one possible example, in terms of determining the current connection mode between the first sub-power module and the second sub-power module, the method may include the following steps: obtaining a first switch state of a first relay, a second switch state of a second relay, and a third switch state of a third relay in the power module; when the first switch state is a closed state, the second switch state is an open state, and the third switch state is a closed state, determining that the connection mode is parallel; when the first switch state is an open state, the second switch state is a closed state, and the third switch state is an open state, determining that the connection mode is series.

[0077] Among them, see Figure 1D When the first relay K1 and the third relay K3 are both closed and the second relay K2 is disconnected, the first sub-power module and the second sub-power module are output in parallel; when the first relay K1 and the third relay K3 are both disconnected and the second relay K2 is closed, the first sub-power module and the second sub-power module are output in series.

[0078] It can be seen that in this example, the current control module designs different current control strategies according to different connection modes of the first sub-power module and the second sub-power module, which is conducive to improving the intelligence of current control.

[0079] In a possible example, the first sampling module includes a first capacitor, a second capacitor, a third capacitor and a fourth capacitor, the second sampling module includes a fifth capacitor, a sixth capacitor, a seventh capacitor and an eighth capacitor, the first capacitor and the fifth capacitor are arranged at the same position, the second capacitor and the sixth capacitor are arranged at the same position, the third capacitor and the seventh capacitor are arranged at the same position, the fourth capacitor and the eighth capacitor are arranged at the same position, the value of the first capacitor is greater than the value of the fifth capacitor, the value of the second capacitor is greater than the value of the sixth capacitor, the value of the third capacitor is greater than the value of the seventh capacitor, and the value of the fourth capacitor is greater than the value of the eighth capacitor.

[0080] Among them, see Figure 1B and Figure 1C The first capacitor C1 and the fifth capacitor C5 are arranged at the same position, the second capacitor C2 and the sixth capacitor C6 are arranged at the same position, the third capacitor C3 and the seventh capacitor C7 are arranged at the same position, and the fourth capacitor C4 and the eighth capacitor C8 are arranged at the same position.

[0081] Among them, the second capacitor and the third capacitor have the same value, the first resistor and the second resistor have the same value, the third resistor and the fourth resistor have the same value, the fifth capacitor and the sixth capacitor have the same value, the sixth resistor and the seventh resistor have the same value, and the eighth resistor and the ninth resistor have the same value.

[0082] Among them, the value range of the sixth capacitor is 20pf-900pf, the value range of the eighth capacitor is 2pf-9pf, the value range of the fifth capacitor is 300pf-8000pf, the value ratio of the second capacitor to the sixth capacitor is 20:1-600:1, the value ratio of the fourth capacitor to the eighth capacitor is 20:1-600:1, and the value ratio of the first capacitor to the fifth capacitor is 20:1-600:1.

[0083] It can be seen that, in this example, setting the value of the capacitor in the first sampling module to be greater than the value of the capacitor at the corresponding position in the second sampling module is beneficial to improving the accuracy of current control.

[0084] See also Figure 3 , Figure 3 : is a structural schematic diagram of an electronic device provided by an embodiment of the present application, which is applied to a current control module in a current control system, wherein the current control system includes a first sampling module, a second sampling module, the current control module, and a triangular wave comparison module, wherein the first sampling module is respectively connected to the current control module, the first sub-power module and the second sub-power module in the power module, the second sampling module is respectively connected to the current control module, the first sub-power module and the second sub-power module, the current control module is connected to the triangular wave comparison module, the triangular wave comparison module is respectively connected to the first sub-power module and the second sub-power module, and the value of the capacitor in the first sampling module is greater than the value of the capacitor in the second sampling module; Figure 3 As shown, the electronic device includes a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs are configured to execute the following steps by the processor:

[0085] Determine a current connection mode between the first sub-power module and the second sub-power module;

[0086] When it is determined that the connection mode is series connection, a first sampling signal from the first sampling module is obtained, and a second sampling signal from the second sampling module is obtained, wherein the first sampling signal is a signal sampled by the first sampling module on a first shunt in the power module, the first shunt is used to sample the output current of the first sub-power module, and the second sampling signal is a signal sampled by the second sampling module on the first shunt, and the resistance value of the first shunt is greater than the resistance value of the second shunt in the power module;

[0087] Compensating a first current given value of the current control module according to the first sampling signal and a first preset transfer function to obtain a compensated first reference current given value;

[0088] Determine a first current output signal according to the first reference current given value, the second sampling signal and the first preset transfer function;

[0089] The first current output signal is sent to the triangular wave comparison module, and the triangular wave comparison module is used to determine a first switch drive signal according to the first current output signal, and send the first switch drive signal to the first sub-power supply module and the second sub-power supply module respectively.

[0090] It can be seen that in the embodiment of the present application, the electronic device first determines the current connection mode between the first sub-power module and the second sub-power module, and then when it is determined that the connection mode is series connection, the first sampling signal from the first sampling module is obtained, and the second sampling signal from the second sampling module is obtained, and then the current given value of the current control module is compensated according to the first sampling signal and the preset transfer function to obtain the compensated reference current given value, and further, the first current output signal is determined according to the reference current given value, the second sampling signal and the preset transfer function, and finally, the first current output signal is sent to the triangular wave comparison module, and the triangular wave comparison module is used to determine the first switch drive signal according to the first current output signal, and send the first switch drive signal to the first sub-power module and the second sub-power module respectively. The power module is sampled by the first sampling module with a smaller sampling bandwidth and the second sampling module with a larger sampling bandwidth respectively, the current control module compensates the current given value according to the first sampling signal, and determines the first current output signal according to the second sampling signal and the compensated reference current given value, and the first current output signal is compared with the triangular wave to output the first switch drive signal, so as to compensate for the deviation of the second sampling signal caused by interference, which is conducive to improving the accuracy of current control.

[0091] In a possible example, after determining the current connection mode between the first sub-power module and the second sub-power module, the program includes instructions for executing the following steps:

[0092] When it is determined that the connection mode is in parallel, a third sampling signal and a fourth sampling signal are obtained from the first sampling module, and a fifth sampling signal and a sixth sampling signal are obtained from the second sampling module, wherein the third sampling signal is a signal sampled by the first sampling module on the first shunt when the first sub-power module and the second sub-power module are connected in parallel, the fourth sampling signal is a signal sampled by the second sampling module on the first shunt when the first sub-power module and the second sub-power module are connected in parallel, the fifth sampling signal is a signal sampled by the first sampling module on the second shunt when the first sub-power module and the second sub-power module are connected in parallel, and the sixth sampling signal is a signal sampled by the second sampling module on the second shunt when the first sub-power module and the second sub-power module are connected in parallel;

[0093] Determine a seventh sampling signal according to the third sampling signal and the fifth sampling signal, and determine an eighth sampling signal according to the fourth sampling signal and the sixth sampling signal;

[0094] Determine a second current output signal according to the third sampling signal, the fourth sampling signal and the second preset transfer function, and determine a third current output signal according to the seventh sampling signal, the eighth sampling signal and the third preset transfer function;

[0095] The second current output signal and the third current output signal are respectively sent to the triangular wave comparison module, and the triangular wave comparison module is used to determine the second switch drive signal according to the second current output signal, determine the third switch drive signal according to the third current output signal, send the second switch drive signal to the first sub-power supply module, and send the third switch drive signal to the second sub-power supply module.

[0096] In a possible example, in the aspect of compensating the first current set value of the current control module according to the first sampling signal and the first preset transfer function to obtain the compensated first reference current set value, the program includes instructions for executing the following steps:

[0097] determining a first current value according to the first sampling signal;

[0098] Determine a difference between the first current value and the first current given value to obtain a first current difference;

[0099] Determine a first multiplication result between the first current difference and the first preset transfer function, and use the first multiplication result as a first error of the first current given value;

[0100] The first current given value is compensated according to the first error to obtain the compensated first reference current given value.

[0101] In a possible example, in terms of compensating the first current given value according to the first error to obtain the compensated first reference current given value, the program includes instructions for executing the following steps:

[0102] The first error and the first current given value are summed to obtain the first reference current given value.

[0103] In a possible example, in determining the first current output signal according to the first reference current given value, the second sampling signal and the first preset transfer function, the program further includes instructions for executing the following steps:

[0104] determining a second current value according to the second sampling signal;

[0105] determining a second current difference between the first reference current given value and the second current value;

[0106] A second multiplication result between the second current difference and the first preset transfer function is determined, and the second multiplication result is used as the first current output signal.

[0107] In a possible example, in the determining of the current connection mode between the first sub-power module and the second sub-power module, the program includes instructions for performing the following steps:

[0108] Acquire a first switch state of a first relay, a second switch state of a second relay, and a third switch state of a third relay in the power module;

[0109] When the first switch state is a closed state, the second switch state is an open state, and the third switch state is a closed state, determining that the connection mode is a parallel connection;

[0110] When the first switch state is an open state, the second switch state is a closed state, and the third switch state is an open state, it is determined that the connection mode is a series connection.

[0111] In a possible example, the first sampling module includes a first capacitor, a second capacitor, a third capacitor and a fourth capacitor, the second sampling module includes a fifth capacitor, a sixth capacitor, a seventh capacitor and an eighth capacitor, the first capacitor and the fifth capacitor are arranged at the same position, the second capacitor and the sixth capacitor are arranged at the same position, the third capacitor and the seventh capacitor are arranged at the same position, the fourth capacitor and the eighth capacitor are arranged at the same position, the value of the first capacitor is greater than the value of the fifth capacitor, the value of the second capacitor is greater than the value of the sixth capacitor, the value of the third capacitor is greater than the value of the seventh capacitor, and the value of the fourth capacitor is greater than the value of the eighth capacitor.

[0112] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.

[0113] The embodiment of the present application can divide the electronic device into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0114] In the case of dividing each functional module into corresponding functional modules, Figure 4 A functional unit block diagram of a current control device is given, such as Figure 4As shown, a current control module applied to a current control system, the current control system includes a first sampling module, a second sampling module, the current control module, and a triangular wave comparison module, the first sampling module is respectively connected to the current control module, the first sub-power module and the second sub-power module in the power module, the second sampling module is respectively connected to the current control module, the first sub-power module and the second sub-power module, the current control module is connected to the triangular wave comparison module, the triangular wave comparison module is respectively connected to the first sub-power module and the second sub-power module, the value of the capacitor in the first sampling module is greater than the value of the capacitor in the second sampling module; the device includes a determination unit 401, an acquisition unit 402, a compensation unit 403 and a transmission unit 404; wherein,

[0115] The determining unit 401 is used to determine a current connection mode between the first sub-power module and the second sub-power module;

[0116] The acquisition unit 402 is used for acquiring a first sampling signal from the first sampling module and a second sampling signal from the second sampling module when it is determined that the connection mode is a series connection, wherein the first sampling signal is a signal sampled by the first sampling module on a first shunt in the power module, the first shunt is used to sample an output current of the first sub-power module, and the second sampling signal is a signal sampled by the second sampling module on the first shunt, and a resistance value of the first shunt is greater than a resistance value of a second shunt in the power module;

[0117] The compensation unit 403 is used to compensate the first current given value of the current control module according to the first sampling signal and the first preset transfer function to obtain a compensated first reference current given value;

[0118] The determining unit 401 is further configured to determine a first current output signal according to the first reference current given value, the second sampling signal and the first preset transfer function;

[0119] The transmission unit 404 is used to send the first current output signal to the triangular wave comparison module, and the triangular wave comparison module is used to determine the first switch drive signal according to the first current output signal, and send the first switch drive signal to the first sub-power module and the second sub-power module respectively.

[0120] It can be seen that the current control device described in the embodiment of the present application first determines the current connection mode between the first sub-power module and the second sub-power module, and then when it is determined that the connection mode is series connection, the first sampling signal from the first sampling module is obtained, and the second sampling signal from the second sampling module is obtained, and then the current given value of the current control module is compensated according to the first sampling signal and the preset transfer function to obtain the compensated reference current given value, and further, the first current output signal is determined according to the reference current given value, the second sampling signal and the preset transfer function, and finally, the first current output signal is sent to the triangular wave comparison module, and the triangular wave comparison module is used to determine the first switch drive signal according to the first current output signal, and send the first switch drive signal to the first sub-power module and the second sub-power module respectively. The power module is sampled by the first sampling module with a smaller sampling bandwidth and the second sampling module with a larger sampling bandwidth respectively, the current control module compensates the current given value according to the first sampling signal, determines the first current output signal according to the second sampling signal and the compensated reference current given value, and the first current output signal is compared with the triangular wave to output the first switch drive signal, so as to compensate for the deviation of the second sampling signal caused by interference, which is conducive to improving the accuracy of current control.

[0121] In a possible example, after determining the current connection mode between the first sub-power module and the second sub-power module, the acquiring unit 402 is specifically configured to:

[0122] When it is determined that the connection mode is in parallel, a third sampling signal and a fourth sampling signal are obtained from the first sampling module, and a fifth sampling signal and a sixth sampling signal are obtained from the second sampling module, wherein the third sampling signal is a signal sampled by the first sampling module on the first shunt when the first sub-power module and the second sub-power module are connected in parallel, the fourth sampling signal is a signal sampled by the second sampling module on the first shunt when the first sub-power module and the second sub-power module are connected in parallel, the fifth sampling signal is a signal sampled by the first sampling module on the second shunt when the first sub-power module and the second sub-power module are connected in parallel, and the sixth sampling signal is a signal sampled by the second sampling module on the second shunt when the first sub-power module and the second sub-power module are connected in parallel;

[0123] Determine a seventh sampling signal according to the third sampling signal and the fifth sampling signal, and determine an eighth sampling signal according to the fourth sampling signal and the sixth sampling signal;

[0124] Determine a second current output signal according to the third sampling signal, the fourth sampling signal and the second preset transfer function, and determine a third current output signal according to the seventh sampling signal, the eighth sampling signal and the third preset transfer function;

[0125] The second current output signal and the third current output signal are respectively sent to the triangular wave comparison module, and the triangular wave comparison module is used to determine the second switch drive signal according to the second current output signal, determine the third switch drive signal according to the third current output signal, send the second switch drive signal to the first sub-power supply module, and send the third switch drive signal to the second sub-power supply module.

[0126] In a possible example, in the aspect of compensating the first current given value of the current control module according to the first sampling signal and the first preset transfer function to obtain the compensated first reference current given value, the determining unit 401 is specifically used to:

[0127] determining a first current value according to the first sampling signal;

[0128] Determine a difference between the first current value and the first current given value to obtain a first current difference;

[0129] Determine a first multiplication result between the first current difference and the first preset transfer function, and use the first multiplication result as a first error of the first current given value;

[0130] The first current given value is compensated according to the first error to obtain the compensated first reference current given value.

[0131] In a possible example, in terms of compensating the first current given value according to the first error to obtain the compensated first reference current given value, the determining unit 401 is specifically configured to:

[0132] The first error and the first current given value are summed to obtain the first reference current given value.

[0133] In a possible example, in determining the first current output signal according to the first reference current given value, the second sampling signal and the first preset transfer function, the determining unit 401 is specifically used to:

[0134] determining a second current value according to the second sampling signal;

[0135] determining a second current difference between the first reference current given value and the second current value;

[0136] A second multiplication result between the second current difference and the first preset transfer function is determined, and the second multiplication result is used as the first current output signal.

[0137] In a possible example, in determining the current connection mode between the first sub-power module and the second sub-power module, the determining unit 401 is further specifically configured to:

[0138] Acquire a first switch state of a first relay, a second switch state of a second relay, and a third switch state of a third relay in the power module;

[0139] When the first switch state is a closed state, the second switch state is an open state, and the third switch state is a closed state, determining that the connection mode is a parallel connection;

[0140] When the first switch state is an open state, the second switch state is a closed state, and the third switch state is an open state, it is determined that the connection mode is a series connection.

[0141] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0142] The electronic device provided in this embodiment is used to execute the above current control method, and thus can achieve the same effect as the above implementation method.

[0143] In the case of an integrated unit, the electronic device may include a processing module, a storage module and a communication module. The processing module may be used to control and manage the actions of the electronic device, for example, it may be used to support the electronic device to execute the steps performed by the above-mentioned functional unit. The storage module may be used to support the electronic device to execute stored program codes and data, etc. The communication module may be used to support the communication between the electronic device and other devices.

[0144] Among them, the processing module can be a processor or a controller. It can implement or execute various exemplary logic boxes, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, etc.

[0145] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps of any method recorded in the above method embodiments, and the above computer includes an electronic device.

[0146] The present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes a control platform.

[0147] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0148] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0149] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as 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 interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0150] The units described above 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.

[0151] In addition, each functional unit in each embodiment of 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. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0152] If the above-mentioned integrated unit 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 memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the above-mentioned methods in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0153] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which can include: a flash drive, a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.

[0154] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A current control method, characterized in that: A current control module applied to a current control system, the current control system comprising a first sampling module, a second sampling module, the current control module, and a triangular wave comparison module, the first sampling module being respectively connected to the current control module, a first sub-power module and a second sub-power module in a power module, the second sampling module being respectively connected to the current control module, the first sub-power module and the second sub-power module, the current control module being connected to the triangular wave comparison module, the triangular wave comparison module being respectively connected to the first sub-power module and the second sub-power module, the value of the capacitor in the first sampling module being greater than the value of the capacitor in the second sampling module; the method comprising: Determine a current connection mode between the first sub-power module and the second sub-power module; When it is determined that the connection mode is series connection, a first sampling signal from the first sampling module is obtained, and a second sampling signal from the second sampling module is obtained, wherein the first sampling signal is a signal sampled by the first sampling module on a first shunt in the power module, the first shunt is used to sample the output current of the first sub-power module, and the second sampling signal is a signal sampled by the second sampling module on the first shunt, and the resistance value of the first shunt is greater than the resistance value of the second shunt in the power module; Compensating a first current given value of the current control module according to the first sampling signal and a first preset transfer function to obtain a compensated first reference current given value; Determine a first current output signal according to the first reference current given value, the second sampling signal and the first preset transfer function; sending the first current output signal to the triangular wave comparison module, wherein the triangular wave comparison module is used to determine a first switch drive signal according to the first current output signal, and send the first switch drive signal to the first sub-power module and the second sub-power module respectively; When it is determined that the connection mode is in parallel, a third sampling signal and a fourth sampling signal are obtained from the first sampling module, and a fifth sampling signal and a sixth sampling signal are obtained from the second sampling module, wherein the third sampling signal is a signal sampled by the first sampling module on the first shunt when the first sub-power module and the second sub-power module are connected in parallel, the fourth sampling signal is a signal sampled by the second sampling module on the first shunt when the first sub-power module and the second sub-power module are connected in parallel, the fifth sampling signal is a signal sampled by the first sampling module on the second shunt when the first sub-power module and the second sub-power module are connected in parallel, and the sixth sampling signal is a signal sampled by the second sampling module on the second shunt when the first sub-power module and the second sub-power module are connected in parallel; Determine a seventh sampling signal according to the third sampling signal and the fifth sampling signal, and determine an eighth sampling signal according to the fourth sampling signal and the sixth sampling signal; Determine a second current output signal according to the third sampling signal, the fourth sampling signal and the second preset transfer function, and determine a third current output signal according to the seventh sampling signal, the eighth sampling signal and the third preset transfer function; The second current output signal and the third current output signal are respectively sent to the triangular wave comparison module, and the triangular wave comparison module is used to determine the second switch drive signal according to the second current output signal, determine the third switch drive signal according to the third current output signal, send the second switch drive signal to the first sub-power supply module, and send the third switch drive signal to the second sub-power supply module.

2. The method according to claim 1, characterized in that The method of compensating the first current given value of the current control module according to the first sampling signal and the first preset transfer function to obtain a compensated first reference current given value includes: determining a first current value according to the first sampling signal; Determine a difference between the first current value and the first current given value to obtain a first current difference; Determine a first multiplication result between the first current difference and the first preset transfer function, and use the first multiplication result as a first error of the first current given value; The first current given value is compensated according to the first error to obtain the compensated first reference current given value.

3. The method according to claim 2, characterized in that The compensating the first current given value according to the first error to obtain the compensated first reference current given value includes: The first error and the first current given value are summed to obtain the first reference current given value.

4. The method according to claim 1, characterized in that: The step of determining a first current output signal according to the first reference current given value, the second sampling signal and the first preset transfer function comprises: determining a second current value according to the second sampling signal; determining a second current difference between the first reference current given value and the second current value; A second multiplication result between the second current difference and the first preset transfer function is determined, and the second multiplication result is used as the first current output signal.

5. The method according to claim 1, characterized in that: The determining a current connection mode between the first sub-power module and the second sub-power module includes: Acquire a first switch state of a first relay, a second switch state of a second relay, and a third switch state of a third relay in the power module; When the first switch state is a closed state, the second switch state is an open state, and the third switch state is a closed state, determining that the connection mode is a parallel connection; When the first switch state is an open state, the second switch state is a closed state, and the third switch state is an open state, it is determined that the connection mode is a series connection.

6. The method according to any one of claims 1 to 5, characterized in that: The first sampling module includes a first capacitor, a second capacitor, a third capacitor and a fourth capacitor, the second sampling module includes a fifth capacitor, a sixth capacitor, a seventh capacitor and an eighth capacitor, the first capacitor and the fifth capacitor are arranged at the same position, the second capacitor and the sixth capacitor are arranged at the same position, the third capacitor and the seventh capacitor are arranged at the same position, the fourth capacitor and the eighth capacitor are arranged at the same position, the value of the first capacitor is greater than the value of the fifth capacitor, the value of the second capacitor is greater than the value of the sixth capacitor, the value of the third capacitor is greater than the value of the seventh capacitor, and the value of the fourth capacitor is greater than the value of the eighth capacitor.

7. A current control device, characterized in that: A current control module applied to a current control system, the current control system comprising a first sampling module, a second sampling module, the current control module, and a triangular wave comparison module, the first sampling module being respectively connected to the current control module, the first sub-power module and the second sub-power module in the power module, the second sampling module being respectively connected to the current control module, the first sub-power module and the second sub-power module, the current control module being connected to the triangular wave comparison module, the triangular wave comparison module being respectively connected to the first sub-power module and the second sub-power module, the value of the capacitor in the first sampling module being greater than the value of the capacitor in the second sampling module; the device comprising a determination unit, an acquisition unit, a compensation unit and a transmission unit; wherein, The determining unit is used to determine a current connection mode between the first sub-power module and the second sub-power module; The acquisition unit is used for acquiring a first sampling signal from the first sampling module and a second sampling signal from the second sampling module when it is determined that the connection mode is a series connection, wherein the first sampling signal is a signal sampled by the first sampling module on a first shunt in the power module, the first shunt is used to sample an output current of the first sub-power module, and the second sampling signal is a signal sampled by the second sampling module on the first shunt, and a resistance value of the first shunt is greater than a resistance value of a second shunt in the power module; The compensation unit is used to compensate the first current given value of the current control module according to the first sampling signal and the first preset transfer function to obtain a compensated first reference current given value; The determining unit is further configured to determine a first current output signal according to the first reference current given value, the second sampling signal and the first preset transfer function; The transmission unit is used to send the first current output signal to the triangular wave comparison module, and the triangular wave comparison module is used to determine a first switch drive signal according to the first current output signal, and send the first switch drive signal to the first sub-power module and the second sub-power module respectively; The acquisition unit is further used for acquiring a third sampling signal and a fourth sampling signal from the first sampling module, and acquiring a fifth sampling signal and a sixth sampling signal from the second sampling module when it is determined that the connection mode is parallel, wherein the third sampling signal is a signal sampled by the first sampling module on the first shunt when the first sub-power module and the second sub-power module are connected in parallel, the fourth sampling signal is a signal sampled by the second sampling module on the first shunt when the first sub-power module and the second sub-power module are connected in parallel, the fifth sampling signal is a signal sampled by the first sampling module on the second shunt when the first sub-power module and the second sub-power module are connected in parallel, and the sixth sampling signal is a signal sampled by the second sampling module on the second shunt when the first sub-power module and the second sub-power module are connected in parallel. a signal sampled by a triangular wave comparison module; determining a seventh sampling signal according to the third sampling signal and the fifth sampling signal, and determining an eighth sampling signal according to the fourth sampling signal and the sixth sampling signal; determining a second current output signal according to the third sampling signal, the fourth sampling signal and a second preset transfer function, and determining a third current output signal according to the seventh sampling signal, the eighth sampling signal and the third preset transfer function; sending the second current output signal and the third current output signal to the triangular wave comparison module respectively, the triangular wave comparison module is used to determine a second switch drive signal according to the second current output signal, determine a third switch drive signal according to the third current output signal, send the second switch drive signal to the first sub-power supply module, and send the third switch drive signal to the second sub-power supply module.

8. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store one or more programs and is configured to be executed by the processor, wherein the program comprises instructions for executing the steps in the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Current sharing device, method and system

    CN103812508A

  • Power supply and output load regulation rate compensation circuit and voltage regulation method thereof

    CN115940587A