Control method, electronic equipment, storage medium, program product, device and vehicle
By compensating and adjusting signals based on the actual magnetic induction intensity value of the relay in the battery circuit, the problem of insufficient feedback to the external electromagnetic environment in the battery system in the prior art is solved, and higher stability and safety are achieved.
Patent Information
- Application Number
- CN202510083668.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-17
- Publication Date
- 2025-04-25
AI Technical Summary
The existing battery circuit control method cannot provide feedback on the external electromagnetic environment, resulting in poor stability and safety of the battery system.
The signal compensation value is determined by using the actual magnetic induction intensity values of the relay in the battery circuit, and the magnetic induction intensity of the relay is adjusted according to these values to achieve feedback and dynamic compensation for the external electromagnetic environment.
It reduces the risk of relay failure due to magnetic field interference, optimizes the control of battery circuit, and improves the stability and safety of the battery system.
Smart Images

Figure CN119882500A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of new energy technology, and in particular to a battery circuit control, electronic equipment, computer-readable storage medium, computer program product, battery circuit control device and vehicle. Background Art
[0002] The control of the battery circuit is very important to ensure the operation and safety of the battery system. In the related technology, the battery circuit is controlled by controlling the opening and closing of the battery circuit. For example, the disconnection and closing of the main positive / negative terminals of the battery are controlled by combining traditional electromagnetic relays and program control strategies to ensure the operation of the battery system, and the fuse is used to protect the entire circuit to ensure the safety of the battery system.
[0003] However, the control method of the battery circuit described above cannot provide feedback to the external electromagnetic environment and can only control the opening and closing of the circuit itself according to instructions, which makes the stability and safety of the battery system poor. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems existing in the prior art.
[0005] To this end, an object of the present invention is to propose a control method for a battery circuit, which enables the control of the battery circuit to provide feedback to the external electromagnetic environment, reduces the risk of relay failure due to magnetic field interference, and further optimizes the control of the battery circuit, thereby improving the stability and safety of the battery system.
[0006] To this end, a second objective of the present invention is to provide an electronic device.
[0007] To this end, a third object of the present invention is to provide a computer-readable storage medium.
[0008] To this end, a fourth object of the present invention is to provide a computer program product.
[0009] To this end, a fifth objective of the present invention is to provide a battery circuit control device.
[0010] To this end, a sixth object of the present invention is to provide a vehicle.
[0011] In order to achieve the above-mentioned purpose, an embodiment of the first aspect of the present invention proposes a control method for a battery circuit, the method comprising: determining a signal compensation value of the relay according to an actual magnetic induction intensity value of the relay in the battery circuit; and adjusting the actual magnetic induction intensity value of the relay according to the signal compensation value.
[0012] According to the control method of the battery circuit of the embodiment of the present invention, the signal compensation value of the relay is determined by the actual magnetic induction intensity value of the relay in the battery circuit. The signal compensation value is a dynamic value that changes according to the actual magnetic induction intensity value and the magnetic induction intensity value that ensures the normal operation of the relay. The actual magnetic induction intensity value of the relay is adjusted by the signal compensation value to achieve dynamic compensation of the actual magnetic induction intensity value, so that the magnetic field environment inside the relay coil is constant at the magnetic induction intensity for the normal operation of the relay, thereby achieving the control of the battery circuit to provide feedback to the external electromagnetic environment, reducing the risk of the relay failing due to magnetic field interference, thereby optimizing the control of the battery circuit and improving the stability and safety of the battery system.
[0013] In some embodiments, determining the signal compensation value of the relay includes: obtaining a target magnetic induction intensity value of the relay to prepare data for calculating the signal compensation value; determining the signal compensation value based on the target magnetic induction intensity value and the actual magnetic induction intensity value to compensate for the actual magnetic induction intensity of the relay so that it reaches the target magnetic induction intensity value.
[0014] In some embodiments, the signal compensation value is determined according to the target magnetic induction intensity value and the actual magnetic induction intensity value, including: performing PID calculation on the target magnetic induction intensity value and the actual magnetic induction intensity value to determine the signal compensation value, so as to obtain a signal compensation value corresponding to the magnetic induction intensity that is accurate and meets the normal operation of the relay according to the PID calculation.
[0015] In some embodiments, the actual magnetic induction intensity value of the relay is adjusted according to the signal compensation value, including: determining a PWM pulse signal according to the signal compensation value; adjusting the output voltage value of the battery circuit control device according to the PWM pulse signal so that the actual magnetic induction intensity of the relay reaches a target magnetic induction intensity value, so that the control of the battery circuit can provide feedback to the external electromagnetic environment, reducing the risk of the relay failing due to magnetic field interference, thereby optimizing the control of the battery circuit and improving the stability and safety of the battery system.
[0016] In order to achieve the above-mentioned purpose, an embodiment of the second aspect of the present invention proposes an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a control program of a battery circuit that can be executed by the at least one processor, and when the control program of the battery circuit is executed by the at least one processor, the at least one processor executes the control method of the battery circuit as described in the above-mentioned embodiment.
[0017] According to an electronic device according to an embodiment of the present invention, the control method of the battery circuit of the above embodiment is used on the electronic device, and the signal compensation value of the relay is determined by the actual magnetic induction intensity value of the relay in the battery circuit. The signal compensation value is a dynamic value that changes according to the actual magnetic induction intensity value and the magnetic induction intensity value that ensures the normal operation of the relay. The actual magnetic induction intensity value of the relay is adjusted by the signal compensation value to achieve dynamic compensation of the actual magnetic induction intensity value, so that the magnetic field environment inside the relay coil is constant at the magnetic induction intensity for the normal operation of the relay, and the control of the battery circuit can make feedback to the external electromagnetic environment, reducing the risk of the relay failing due to magnetic field interference, thereby optimizing the control of the battery circuit and improving the stability and safety of the battery system.
[0018] In order to achieve the above-mentioned purpose, an embodiment of the third aspect of the present invention proposes a computer-readable storage medium, on which a control program of a battery circuit is stored. When the control program of the battery circuit is executed by a processor, a device installed with the control program of the battery circuit implements the control method of the battery circuit as described in the above-mentioned embodiment.
[0019] In order to achieve the above object, an embodiment of a fourth aspect of the present invention provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the control method of the battery circuit as described in the above embodiment is implemented.
[0020] According to the computer program product of the embodiment of the present invention, the control method of the battery circuit of the above embodiment is used to determine the signal compensation value of the relay through the actual magnetic induction intensity value of the relay in the battery circuit. The signal compensation value is a dynamic value that changes according to the actual magnetic induction intensity value and the magnetic induction intensity value that ensures the normal operation of the relay. The actual magnetic induction intensity value of the relay is adjusted by the signal compensation value to achieve dynamic compensation of the actual magnetic induction intensity value, so that the magnetic field environment inside the relay coil is constant at the magnetic induction intensity for the normal operation of the relay, so that the control of the battery circuit can provide feedback to the external electromagnetic environment, reduce the risk of the relay failing due to magnetic field interference, and thus optimize the control of the battery circuit and improve the stability and safety of the battery system. In order to achieve the above-mentioned purpose, an embodiment of the fifth aspect of the present invention proposes a battery circuit control device, which includes: a PID control unit, used to determine a signal compensation value of the relay according to the actual magnetic induction intensity value of the relay in the battery circuit; a voltage regulator, connected to the PID control unit, used to adjust the actual magnetic induction intensity value of the relay according to the signal compensation value.
[0021] In some embodiments, the battery circuit control device further includes: a relay, used to turn on or off the battery circuit; and a magnetic field sensor, arranged outside the relay and coaxially with the relay, used to detect an actual magnetic field strength value of the relay.
[0022] According to the battery circuit control device of the embodiment of the present invention, the signal compensation value of the relay is determined by the actual magnetic induction intensity value of the relay in the battery circuit. The signal compensation value is a dynamic value that changes according to the actual magnetic induction intensity value and the magnetic induction intensity value that ensures the normal operation of the relay. The actual magnetic induction intensity value of the relay is adjusted by the signal compensation value to achieve dynamic compensation of the actual magnetic induction intensity value, so that the magnetic field environment inside the relay coil is constant at the magnetic induction intensity for the normal operation of the relay, so that the control of the battery circuit can give feedback to the external electromagnetic environment, reduce the risk of the relay failing due to magnetic field interference, and then optimize the control of the battery circuit, and improve the stability and safety of the battery system. In order to achieve the above-mentioned object, an embodiment of a sixth aspect of the present invention provides a vehicle, comprising: a battery circuit control device as described in the above-mentioned embodiment.
[0023] According to the vehicle of the embodiment of the present invention, the vehicle is equipped with a battery circuit control device as in the above embodiment, and the signal compensation value of the relay is determined by the actual magnetic induction intensity value of the relay in the battery circuit. The signal compensation value is a dynamic value that changes according to the actual magnetic induction intensity value and the magnetic induction intensity value that ensures the normal operation of the relay. The actual magnetic induction intensity value of the relay is adjusted by the signal compensation value to achieve dynamic compensation of the actual magnetic induction intensity value, so that the magnetic field environment inside the relay coil is constant at the magnetic induction intensity for the normal operation of the relay, thereby achieving the control of the battery circuit to provide feedback to the external electromagnetic environment, reducing the risk of the relay failing due to magnetic field interference, thereby optimizing the control of the battery circuit and improving the stability and safety of the battery system. Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which: Figure 1 is a flow chart of a control method for a battery circuit according to an embodiment of the present invention; Figure 2 is a schematic diagram of hardware assembly relationship of battery circuit control according to an embodiment of the present invention; Figure 3is a block diagram of a battery circuit control device according to an embodiment of the present invention; Figure 4 is a flow chart of a battery circuit closed-loop control according to an embodiment of the present invention; Figure 5 is a control operation schematic diagram of a battery circuit according to an embodiment of the present invention; Figure 6 is a flow chart of a control method for a battery circuit according to another embodiment of the present invention; Figure 7 is a block diagram of an electronic device according to an embodiment of the present invention; Figure 8 is a block diagram of a vehicle according to one embodiment of the present invention.
[0025] Reference numerals: Relay coil 30; Linear Hall sensor 31; Sensor output terminal 32; Coil input terminal 33; Magnetic field sensor 50; relay 51; PID control unit 52; voltage regulator 53; Electronic device 100; Processor 101; Memory 102; Battery circuit control device 98; Vehicle 99. DETAILED DESCRIPTION
[0026] The embodiments described with reference to the drawings are exemplary, and embodiments of the present invention are described in detail below.
[0027] The control of the battery circuit is very important to ensure the operation and safety of the battery system. In the related technology, the battery circuit is controlled by controlling the opening and closing of the battery circuit. For example, the disconnection and closing of the main positive / negative terminals of the battery are controlled by combining traditional electromagnetic relays and program control strategies to ensure the operation of the battery system, and the fuse is used to protect the entire circuit to ensure the safety of the battery system.
[0028] However, the control method of the above-mentioned battery circuit cannot provide feedback to the external electromagnetic environment, and can only control the opening and closing of the circuit itself according to instructions, which makes the stability and safety of the battery system poor. For example, with the development of the new energy vehicle industry, the complexity and integration of the power battery system are constantly improving, and its internal structure and wiring harness arrangement are also tighter. When the power battery is in a complex electromagnetic field environment or the electromagnetic environment is disordered due to internal faults, the electromagnetic relay responsible for the opening and closing of the power battery circuit may be affected by internal and external electromagnetic interference, resulting in the circuit being unable to open and close normally or being opened and closed repeatedly, which may cause the power battery to fail to work normally in a short period of time. In severe cases, it may cause arcing, fire or even explosion, thereby causing damage to the power battery system.
[0029] Therefore, the control method of the battery circuit of the embodiment of the present invention is adopted, and the signal compensation value of the relay is determined by the actual magnetic induction intensity value of the relay in the battery circuit. The signal compensation value is a dynamic value that changes according to the actual magnetic induction intensity value and the magnetic induction intensity value that ensures the normal operation of the relay. The actual magnetic induction intensity value of the relay is adjusted by the signal compensation value to achieve dynamic compensation of the actual magnetic induction intensity value, so that the magnetic field environment inside the relay coil is constant at the magnetic induction intensity for the normal operation of the relay, thereby achieving the control of the battery circuit to provide feedback to the external electromagnetic environment, reducing the risk of the relay failing due to magnetic field interference, thereby optimizing the control of the battery circuit and improving the stability and safety of the battery system.
[0030] Combine the following Figure 1-Figure 6 A control method for a battery circuit according to an embodiment of the present invention is described.
[0031] like Figure 1 As shown, the control method of the battery circuit of the embodiment of the present invention at least includes step S1-step S2.
[0032] Step S1, determining a signal compensation value of the relay according to an actual magnetic induction intensity value of the relay in the battery circuit.
[0033] In an embodiment, Figure 2 FIG. 1 is a schematic diagram of the hardware assembly relationship of the battery circuit control of an embodiment of the present invention. Figure 3 FIG. 1 is a block diagram of a battery circuit control device according to an embodiment of the present invention. Figure 2 and Figure 3As shown, the relay 51 is such as an electromagnetic relay, which is used to control the on and off of the high-voltage circuit. The electromagnetic relay is a device that uses the on and off of a low-voltage, weak-current circuit to indirectly control the on and off of a high-voltage, strong-current circuit. It is mainly composed of an electromagnet, an armature, a contact, a spring, etc. The electromagnetic relay attracts the armature when the electromagnet is energized to close the contact, thereby realizing the on-off control of the circuit. When the electromagnet is de-energized, the armature returns to its original position under the action of the spring, the contact is disconnected, and the circuit is also disconnected; the magnetic field sensor 50 is such as a Hall magnetic field sensor, which is installed on the outside of the relay coil 30. The relay coil 30 should be connected to the magnetic field sensor The magnetic field sensor 50 is arranged concentrically to detect the change of the magnetic induction intensity of the coil in real time; the magnetic field sensor 50 performs magnetic field interference monitoring, detects the change of the magnetic field intensity in real time, obtains the actual magnetic induction intensity value, uses the PID control unit to perform multiple rounds of sampling of the actual magnetic induction intensity value, calculates the change of the actual magnetic induction intensity value, converts the change signal into a voltage signal, and calculates the voltage compensation amount that can enable the relay coil to generate sufficient electromagnetic force to adsorb the armature to ensure the normal operation of the relay based on the voltage signal, that is, obtains the signal compensation value, so as to compensate the actual magnetic induction intensity of the relay so that it reaches the magnetic induction intensity value that ensures the normal operation of the relay.
[0034] Step S2, adjusting the actual magnetic induction intensity value of the relay according to the signal compensation value.
[0035] In an embodiment, Figure 3 As shown, according to the signal compensation value, the coil voltage is adjusted using the regulating voltage regulator 53, that is, the current flowing through the relay coil is adjusted to adjust the normal vector sum of the magnetic induction intensity in the internal space of the coil, so that the actual magnetic induction intensity of the relay reaches the magnetic induction intensity value that ensures the normal operation of the relay. This belongs to a closed-loop control strategy, which can not only realize the traditional control of the battery circuit disconnection function, but also can perform dynamic compensation, with higher safety redundancy, and introduce a dynamic signal compensation mechanism, so that the control of the battery circuit can give feedback to the external electromagnetic environment, reducing the risk of the relay failing due to magnetic field interference, thereby optimizing the control of the battery circuit and improving the stability and safety of the battery system.
[0036] According to the control method of the battery circuit of the embodiment of the present invention, the signal compensation value of the relay is determined by the actual magnetic induction intensity value of the relay in the battery circuit. The signal compensation value is a dynamic value that changes according to the actual magnetic induction intensity value and the magnetic induction intensity value that ensures the normal operation of the relay. The actual magnetic induction intensity value of the relay is adjusted by the signal compensation value to achieve dynamic compensation of the actual magnetic induction intensity value, so that the magnetic field environment inside the relay coil is constant at the magnetic induction intensity for the normal operation of the relay, thereby achieving the control of the battery circuit to make feedback to the external electromagnetic environment, reducing the risk of the relay failing due to magnetic field interference, thereby optimizing the control of the battery circuit and improving the stability and safety of the battery system.
[0037] In some embodiments, determining the signal compensation value of the relay includes: obtaining a target magnetic induction intensity value of the relay; and determining the signal compensation value according to the target magnetic induction intensity value and the actual magnetic induction intensity value.
[0038] In the embodiment, the target magnetic induction intensity value is a value that enables the relay coil to generate sufficient electromagnetic force to attract the armature to ensure the normal operation of the relay, also known as the initial magnetic induction intensity value; the actual magnetic induction intensity value is the magnetic induction intensity value detected when the relay is working; the signal compensation value is achieved through closed-loop control to keep the magnetic induction intensity in the coil at the target magnetic induction intensity value, ensuring the normal operation of the relay in a complex magnetic field environment.
[0039] like Figure 4 As shown in FIG. 1 , it is a flow chart of a battery circuit closed-loop control according to an embodiment of the present invention. Figure 5 FIG. 1 is a schematic diagram of the control operation of a battery circuit according to an embodiment of the present invention. Figure 2-Figure 5As shown, when determining the signal compensation value of the relay, first execute step S20 to start; then execute step S21 to determine whether there is magnetic field interference. If not, execute step S22 without processing; if so, execute step S23 to determine the initial magnetic induction intensity value. In step S23, specifically, the initial magnetic induction intensity value is initially set to ensure that the relay coil generates sufficient electromagnetic force to adsorb the armature, and initialize the setting parameters, and the PID (Proportional Integral Differential Controller) control unit 52 obtains the target magnetic induction intensity value to prepare data for calculating the signal compensation value; the sensor output end 32 is connected to the PID control unit 52, and the single-chip microcomputer is used as the PID control unit as an example, and the sensor output end 32 is connected to the single-chip microcomputer, and the linear Hall sensor 31 is installed outside the relay coil to monitor the magnetic field interference, and the change of the magnetic field intensity is detected in real time to obtain the actual magnetic induction intensity value, and the signal compensation value is determined according to the target magnetic induction intensity value and the actual magnetic induction intensity value, so as to compensate the actual magnetic induction intensity of the relay so that it reaches the target magnetic induction intensity value. In some embodiments, determining the signal compensation value according to the target magnetic induction intensity value and the actual magnetic induction intensity value includes: performing PID calculation on the target magnetic induction intensity value and the actual magnetic induction intensity value to determine the signal compensation value.
[0040] In an embodiment, in combination Figure 2-Figure 5 As shown, when the signal compensation value is determined according to the target magnetic induction intensity value and the actual magnetic induction intensity value, step S24 is first executed, and the magnetic field interference is fed back in real time. Specifically, the linear Hall sensor 31 performs magnetic field interference monitoring, monitors the actual magnetic induction intensity value change of the coil in real time, and converts the change signal into a voltage signal. The analog signal includes a voltage signal, and the sensor outputs the analog signal to the PID control unit 52; then step S25 is executed, PID control, specifically, the PID control unit 52 receives the voltage signal of the linear Hall sensor 31, calculates the required voltage compensation amount according to the target magnetic induction intensity value and the voltage signal, that is, obtains the signal compensation value, and outputs the signal compensation value as a control signal to the adjustable power supply, so as to realize compensation for the actual magnetic induction intensity of the relay according to the signal compensation value.
[0041] Among them, in PID control, taking the single-chip microcomputer as the PID control unit as an example, the sensor converts the detected actual magnetic induction intensity value change into a voltage signal, transmits it to the single-chip microcomputer system, and designs a PID control system. The PID control system includes a PID control unit 52, which calculates the required signal compensation value according to the voltage signal and adjusts the PID parameters (proportional, integral, differential) to ensure the stability and rapid response of the PID control system. Specifically, first, define PID parameters and set preset values, which include: proportion (Kp), integral (Ki), differential (Kd) and analog values corresponding to the target magnetic induction intensity value, where the proportion reflects the deviation of the control system. The larger the deviation, the greater the control force. The integral is used to eliminate static errors and improve the system's zero difference. The differential reflects the rate of change of the deviation signal, and reduces the overshoot of the system by predicting the trend of the error change, making the system more stable. Secondly, set PID variables, including: integral value, error or deviation value, and PID control system output value. Secondly, set the sampling period to sample the actual magnetic induction intensity, for example, start timing from 0s and set the sampling period to 10ms. Secondly, initialize the parameters, including: setting the default reference voltage to 5V, sensor input value and PWM (pulse width modulation, PulseWidth Modulation) output value; secondly, read the actual magnetic induction intensity value monitored by the sensor; secondly, use the PID control algorithm to calculate the PID control system output value. In each sampling period, the analog value corresponding to the target magnetic induction intensity value is subtracted from the actual magnetic induction intensity value to obtain the current error or deviation value (error). After multiple sampling periods, the error or deviation value is accumulated in each sampling period to obtain the error or deviation accumulation value (integral). The error or deviation product of the previous sampling period is subtracted from the current error or deviation value to obtain the error change value (derivative). Then the PID control system output value is: Kp × error + Ki × integral + Kd × derivative, that is, the signal compensation value. In calculating the PID control system output value, the output limit of the output value can be controlled so that the voltage compensation amount corresponding to the output value is within the normal voltage range. For example, the output value is set between 0 and 255, the PID control system output value is converted into a PWM signal, and the PWM output is adjusted according to the PID control system output value.
[0042] In some embodiments, adjusting the actual magnetic induction intensity value of the relay according to the signal compensation value includes: determining a PWM pulse signal according to the signal compensation value; adjusting the output voltage value of the battery circuit control device according to the PWM pulse signal so that the actual magnetic induction intensity of the relay reaches the target magnetic induction intensity value.
[0043] In an embodiment, in combination Figure 2-Figure 5As shown, a PWM pulse signal is determined according to the signal compensation value, the output value of the PID control system is converted into a PWM pulse signal, and the PWM signal is output to adjust the output voltage of the voltage regulator 53, so as to achieve real-time voltage regulation and finally maintain the magnetic induction intensity in the coil at the target magnetic induction intensity value to ensure the normal operation of the battery circuit; the output voltage value of the battery circuit control device is adjusted according to the PWM pulse signal, that is, step S26 is executed, voltage regulation magnetic field compensation, specifically, the adjustable power supply uses the voltage regulator 53 (such as a DC voltage regulator) to adjust the coil voltage according to the PWM pulse signal, that is, adjust the current flowing through the relay coil to adjust the normal vector sum of the magnetic induction intensity in the internal space of the coil, so that the actual magnetic induction intensity of the relay reaches the target magnetic induction intensity value. Since the target magnetic induction intensity value is the initial magnetic induction intensity value and is also the set initial value, it also makes the magnetic field in the coil recover to the initial value, so that the control of the battery circuit can make feedback to the external electromagnetic environment, reduce the risk of the relay being interfered with by the magnetic field and failing, and then optimize the control of the battery circuit, and improve the stability and safety of the battery system.
[0044] Reference below Figure 6 The control method of the battery circuit according to the embodiment of the present invention is described in detail.
[0045] like Figure 6 FIG. 2 is a flow chart of a method for controlling a battery circuit according to another embodiment of the present invention. The method for controlling a battery circuit according to the embodiment of the present invention at least includes steps S10 to S24.
[0046] Step S10, obtaining a target magnetic induction intensity value of the relay.
[0047] Step S11, performing PID calculation on the target magnetic induction intensity value and the actual magnetic induction intensity value.
[0048] Step S12, determining a signal compensation value.
[0049] Step S13, determining the PWM pulse signal according to the signal compensation value.
[0050] Step S14, adjusting the output voltage value of the battery circuit control device according to the PWM pulse signal so that the actual magnetic induction intensity of the relay reaches the target magnetic induction intensity value.
[0051] According to the control method of the battery circuit of the embodiment of the present invention, the signal compensation value of the relay is determined by the actual magnetic induction intensity value of the relay in the battery circuit. The signal compensation value is a dynamic value that changes according to the actual magnetic induction intensity value and the magnetic induction intensity value that ensures the normal operation of the relay. The actual magnetic induction intensity value of the relay is adjusted by the signal compensation value to achieve dynamic compensation of the actual magnetic induction intensity value, so that the magnetic field environment inside the relay coil is constant at the magnetic induction intensity for the normal operation of the relay, thereby achieving the control of the battery circuit to make feedback to the external electromagnetic environment, reducing the risk of the relay failing due to magnetic field interference, thereby optimizing the control of the battery circuit and improving the stability and safety of the battery system.
[0052] Reference below Figure 7 An electronic device according to an embodiment of the present invention is described.
[0053] like Figure 7 , which is a block diagram of an electronic device according to an embodiment of the present invention. The electronic device 100 according to the embodiment of the present invention comprises: at least one processor 101; and a memory 102 in communication with the at least one processor 101; wherein the memory 102 stores a control program of a battery circuit that can be executed by the at least one processor 101, and when the control program of the battery circuit is executed by the at least one processor 101, the at least one processor 101 executes the control method of the battery circuit according to the above embodiment.
[0054] According to the electronic device 100 of the embodiment of the present invention, the control method of the battery circuit of the above embodiment is used on the electronic device, and the signal compensation value of the relay is determined by the actual magnetic induction intensity value of the relay in the battery circuit. The signal compensation value is a dynamic value that changes according to the actual magnetic induction intensity value and the magnetic induction intensity value that ensures the normal operation of the relay. The actual magnetic induction intensity value of the relay is adjusted by the signal compensation value to achieve dynamic compensation of the actual magnetic induction intensity value, so that the magnetic field environment inside the relay coil is constant at the magnetic induction intensity for the normal operation of the relay, and the control of the battery circuit can make feedback to the external electromagnetic environment, thereby reducing the risk of the relay failing due to magnetic field interference, thereby optimizing the control of the battery circuit and improving the stability and safety of the battery system.
[0055] The following describes a computer-readable storage medium according to an embodiment of the present invention.
[0056] The computer-readable storage medium stores a control program for the battery circuit. When the control program for the battery circuit is executed by the processor, the device on which the control program for the battery circuit is installed implements the control method for the battery circuit as described in the above embodiment.
[0057] The following describes a computer program product according to an embodiment of the present invention.
[0058] The computer program product includes a computer program, and when the computer program is executed by a processor, the control method of the battery circuit as described in the above embodiment is implemented.
[0059] According to the computer program product of the embodiment of the present invention, the control method of the battery circuit of the above embodiment is used to determine the signal compensation value of the relay through the actual magnetic induction intensity value of the relay in the battery circuit. The signal compensation value is a dynamic value that changes according to the actual magnetic induction intensity value and the magnetic induction intensity value that ensures the normal operation of the relay. The actual magnetic induction intensity value of the relay is adjusted by the signal compensation value to achieve dynamic compensation of the actual magnetic induction intensity value, so that the magnetic field environment inside the relay coil is constant at the magnetic induction intensity for the normal operation of the relay, so that the control of the battery circuit can provide feedback to the external electromagnetic environment, reduce the risk of the relay failing due to magnetic field interference, and thus optimize the control of the battery circuit and improve the stability and safety of the battery system.
[0060] Reference below Figure 3 A battery circuit control device 98 according to an embodiment of the present invention is described, and the device includes: a PID control unit 52, which is used to determine a signal compensation value of the relay 51 according to an actual magnetic induction intensity value of the relay 51 in the battery circuit; and a voltage regulator 53, which is connected to the PID control unit 52 and is used to adjust the actual magnetic induction intensity value of the relay 51 according to the signal compensation value.
[0061] The voltage regulator 53 , such as a DC voltage regulator, regulates the magnetic induction intensity of the coil by adjusting the voltage applied to the relay coil according to the output value of the PID control system, namely the signal compensation value.
[0062] In some embodiments, Figure 3 As shown, the battery circuit control device 98 also includes: a relay 51 for switching on or off the battery circuit; a magnetic field sensor 50 , which is arranged outside the relay 51 and coaxially with the relay 51 , and is used to detect the actual magnetic field strength value of the relay 51 .
[0063] In an embodiment, in combination Figure 2 and Figure 3 As shown, the output end of the magnetic field sensor 50 is connected to the PID control unit 52, and the relay 51 coil should be arranged concentrically with the magnetic field sensor 50 (such as the linear Hall sensor 31) to detect the change of the magnetic induction intensity of the coil in real time to prepare data for calculating the signal compensation value.
[0064] In some embodiments, the PID control unit 52 determines the signal compensation value of the relay, including: obtaining a target magnetic induction intensity value of the relay; and determining the signal compensation value according to the target magnetic induction intensity value and the actual magnetic induction intensity value.
[0065] In some embodiments, the PID control unit 52 determines the signal compensation value according to the target magnetic induction intensity value and the actual magnetic induction intensity value, including: performing PID calculation on the target magnetic induction intensity value and the actual magnetic induction intensity value to determine the signal compensation value.
[0066] In some embodiments, the voltage regulator 53 adjusts the actual magnetic induction intensity value of the relay according to the signal compensation value, including: determining a PWM pulse signal according to the signal compensation value; adjusting the output voltage value of the battery circuit control device according to the PWM pulse signal so that the actual magnetic induction intensity of the relay reaches the target magnetic induction intensity value.
[0067] According to the battery circuit control device 98 of the embodiment of the present invention, the signal compensation value of the relay is determined by the actual magnetic induction intensity value of the relay in the battery circuit. The signal compensation value is a dynamic value that changes according to the actual magnetic induction intensity value and the magnetic induction intensity value that ensures the normal operation of the relay. The actual magnetic induction intensity value of the relay is adjusted by the signal compensation value to achieve dynamic compensation of the actual magnetic induction intensity value, so that the magnetic field environment inside the relay coil is constant at the magnetic induction intensity for the normal operation of the relay, so that the control of the battery circuit can give feedback to the external electromagnetic environment, reduce the risk of the relay failing due to magnetic field interference, and then optimize the control of the battery circuit, and improve the stability and safety of the battery system.
[0068] Reference below Figure 8 A vehicle according to an embodiment of the present invention is described.
[0069] like Figure 8 FIG. 1 is a block diagram of a vehicle according to an embodiment of the present invention. A vehicle 99 according to the embodiment of the present invention comprises: a battery circuit control device according to the above embodiment.
[0070] According to the vehicle 99 of the embodiment of the present invention, the vehicle is equipped with a battery circuit control device 98 as in the above-mentioned embodiment, and the signal compensation value of the relay is determined by the actual magnetic induction intensity value of the relay in the battery circuit. The signal compensation value is a dynamic value that changes according to the actual magnetic induction intensity value and the magnetic induction intensity value that ensures the normal operation of the relay. The actual magnetic induction intensity value of the relay is adjusted by the signal compensation value to achieve dynamic compensation of the actual magnetic induction intensity value, so that the magnetic field environment inside the relay coil is constant at the magnetic induction intensity for the normal operation of the relay, thereby achieving the control of the battery circuit to make feedback to the external electromagnetic environment, reducing the risk of the relay failing due to magnetic field interference, thereby optimizing the control of the battery circuit and improving the stability and safety of the battery system.
[0071] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. A method for controlling a battery circuit, characterized in that: For a battery circuit control device, the control method includes: Determining a signal compensation value of the relay according to an actual magnetic induction intensity value of the relay in the battery loop; The actual magnetic induction intensity value of the relay is adjusted according to the signal compensation value.
2. The method for controlling a battery circuit according to claim 1, characterized in that: Determining a signal compensation value of the relay includes: Obtaining a target magnetic induction intensity value of the relay; The signal compensation value is determined according to the target magnetic induction intensity value and the actual magnetic induction intensity value.
3. The control method of the battery circuit according to claim 2, characterized in that: Determining the signal compensation value according to the target magnetic induction intensity value and the actual magnetic induction intensity value includes: A PID calculation is performed on the target magnetic induction intensity value and the actual magnetic induction intensity value to determine the signal compensation value.
4. The method for controlling a battery circuit according to claim 1, characterized in that: Adjusting the actual magnetic induction intensity value of the relay according to the signal compensation value includes: Determine a PWM pulse signal according to the signal compensation value; The output voltage value of the battery circuit control device is adjusted according to the PWM pulse signal so that the actual magnetic induction intensity of the relay reaches the target magnetic induction intensity value.
5. An electronic device, characterized in that: include: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a control program for a battery circuit that can be executed by the at least one processor. When the control program for the battery circuit is executed by the at least one processor, the at least one processor executes the control method for the battery circuit as described in any one of claims 1 to 4.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a control program for a battery circuit. When the control program for the battery circuit is executed by a processor, a device installed with the control program for the battery circuit implements the control method for the battery circuit according to any one of claims 1 to 4.
7. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the control method of the battery circuit according to any one of claims 1 to 4 is implemented.
8. A battery circuit control device, characterized in that: include: A PID control unit, used to determine a signal compensation value of the relay according to an actual magnetic induction intensity value of the relay in the battery circuit; A voltage regulator is connected to the PID control unit and is used to adjust the actual magnetic induction intensity value of the relay according to the signal compensation value.
9. The battery circuit control device according to claim 8, characterized in that: Also includes: A relay, used for switching on or off the battery circuit; The magnetic field sensor is arranged outside the relay and coaxially with the relay, and is used to detect the actual magnetic field strength value of the relay.
10. A vehicle, characterized in that: include: A battery circuit control device as claimed in any one of claims 8 or 9.