Methods, devices, equipment, media and products for determining high-voltage loop current
By acquiring the power-on status and calculating the current compensation value in the battery management system, the problem of Hall sensor drift at the current zero point is solved, realizing high-precision current acquisition and low-cost current compensation, which is suitable for power battery systems.
Patent Information
- Application Number
- CN202310011371.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-05
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2043-01-05
AI Technical Summary
Existing Hall sensors exhibit drift when the current is zero in the acquisition circuit, affecting the current acquisition accuracy and fault diagnosis accuracy of the battery management system. Furthermore, existing zero-point current compensation methods require additional hardware circuitry, which is costly and lacks universality.
By acquiring the power-on status of the battery management system, calculating the current compensation value using the current value periodically collected by the Hall sensor and the number of collection cycles, determining the target current value, and achieving zero-point current compensation, the addition of extra hardware is avoided.
It improves the accuracy of current acquisition, reduces costs, and has high versatility, not depending on specific Hall sensor models and specifications.
Smart Images

Figure CN116031509B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power battery technology, and in particular to a method, apparatus, computer equipment, storage medium and computer program product for determining high voltage circuit current. Background Technology
[0002] The Battery Management System (BMS) is one of the core components of electric vehicles. Its main functions include signal acquisition, state monitoring, parameter estimation, charge / discharge management, and fault diagnosis of the power battery system. Signal acquisition is fundamental to the BMS's functions and a crucial factor in ensuring the system's proper execution of control strategies and state estimation. High-voltage circuit current, a key parameter of the power battery system, is typically acquired using a Hall effect sensor. However, Hall effect sensors are affected by factors such as external power supply voltage fluctuations, acquisition voltage fluctuations, electromagnetic interference, mechanical vibration, manufacturing processes, and component precision. When the actual current in the acquisition circuit is zero, the output current exhibits a certain deviation, i.e., a drift phenomenon occurs at the current zero point. The accuracy of current acquisition directly affects the accuracy of the BMS's estimation of battery system states, such as state of charge and power status, as well as the accuracy of battery charge / discharge management and fault diagnosis. Therefore, it is necessary to propose a simple, cost-effective, and versatile zero-point current compensation method for Hall effect sensors applied to power battery systems. This method aims to minimize the current zero-point drift phenomenon, improve current acquisition accuracy, and ensure the normal operation of the BMS.
[0003] The commonly used zero-point current compensation method is to compensate for temperature drift. This method can improve the sensitivity of Hall sensors and the accuracy of zero-point temperature drift compensation. However, this method requires the addition of hardware circuitry to achieve current compensation, which increases the product cost of Hall sensors. Furthermore, it is highly dependent on the model and specifications of Hall sensors and is not universally applicable. Summary of the Invention
[0004] Therefore, it is necessary to provide a method, apparatus, computer equipment, computer-readable storage medium, and computer program product for determining high-voltage circuit current that can reduce costs and has high universality in response to the above-mentioned technical problems.
[0005] In a first aspect, this application provides a method for determining the current in a high-voltage circuit. The method is used in a system comprising a high-voltage circuit and a battery management system, wherein the high-voltage circuit includes a power battery pack, a Hall sensor, a load, and a high-voltage relay; the method includes:
[0006] Obtain the power-on status of the battery management system;
[0007] The first current value of the high-voltage circuit is obtained based on the power-on state, and the first current value is periodically collected by the Hall sensor;
[0008] Calculate the current compensation value based on the first current value and the number of acquisition cycles;
[0009] The target current value is determined based on the current compensation value.
[0010] In one embodiment, obtaining the power-on status of the battery management system includes:
[0011] Determine whether the battery management system can obtain the target state parameters of the power battery pack;
[0012] If the battery management system can obtain the target state parameters of the power battery pack, then the power-on state of the battery management system is determined to be a successful power-on.
[0013] In one embodiment, after determining that the power-on state of the battery management system is successful, the method further includes:
[0014] Determine whether the target state parameters meet preset conditions, including battery voltage greater than a preset voltage threshold and battery temperature greater than a preset temperature threshold.
[0015] If the target state parameter satisfies at least one of the preset conditions, an alarm message is issued.
[0016] In one embodiment, obtaining the first current value of the high-voltage circuit based on the power-on state includes:
[0017] If the power-on status of the battery management system is "power-on successful", then determine whether the high-voltage relay is closed.
[0018] If the high-voltage relay is not closed, the first current value will continue to be acquired.
[0019] In one embodiment, after determining whether the high-voltage relay is closed, the method further includes:
[0020] If the high-voltage relay is already closed, then continue acquiring the first current value.
[0021] In one embodiment, determining the target current value based on the current compensation value includes:
[0022] After the high-voltage relay is closed, the second current value periodically collected by the Hall sensor from the high-voltage circuit is obtained;
[0023] The target current value is determined based on the difference between the second current value and the current compensation value.
[0024] Secondly, this application provides a high-voltage circuit current determination device, the device comprising:
[0025] The first acquisition module is used to acquire the power-on status of the battery management system;
[0026] The second acquisition module is used to acquire a first current value of the high-voltage circuit based on the power-on state, wherein the first current value is periodically acquired by the Hall sensor.
[0027] The calculation module is used to calculate the current compensation value based on the first current value and the number of acquisition cycles;
[0028] The determination module is used to determine the target current value based on the current compensation value.
[0029] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the methods in any of the above embodiments.
[0030] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the steps of the methods in any of the above embodiments.
[0031] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps of the methods in any of the above embodiments.
[0032] The aforementioned high-voltage circuit current determination method, apparatus, computer equipment, storage medium, and computer program product first acquire the power-on state of the battery management system, then acquire the first current value of the high-voltage circuit based on the power-on state. This first current value is periodically collected by a Hall sensor. Next, a current compensation value is calculated based on the first current value and the number of collection cycles. Finally, the target current value is determined based on the current compensation value. The method provided in this application can determine the current compensation value based solely on the first current value collected by the Hall sensor and the number of collection cycles, without requiring additional hardware and without special requirements for the Hall sensor. This effectively reduces costs and offers high versatility. Attached Figure Description
[0033] Figure 1 This is an application environment diagram of the high-voltage circuit current determination method in one embodiment;
[0034] Figure 2 This is a flowchart illustrating a method for determining the high-voltage circuit current in one embodiment;
[0035] Figure 3 This is a flowchart illustrating a method for determining the power-on state of a battery management system in one embodiment.
[0036] Figure 4 Here is a flowchart of a method for determining the high-voltage circuit current in another embodiment;
[0037] Figure 5 This is a structural block diagram of a high-voltage circuit current determination device in one embodiment;
[0038] Figure 6 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0039] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0040] The high-voltage circuit current determination method provided in this application embodiment can be applied to, for example... Figure 1 The application environment shown. Among them, Figure 1 The system includes a high-voltage circuit 102 and a battery management system 104. The high-voltage circuit 102 includes a power battery pack 1022, a Hall sensor 1024, a load 1026, and a high-voltage relay 1028. The high-voltage circuit 102 is used to transmit electrical energy generated during the charging and discharging processes of the load 1026. The battery management system 104 is used to control the process of the Hall sensor 1024 collecting current. The power battery pack 1022 is used to provide electrical energy to the high-voltage circuit 102. The Hall sensor 1024 is used to collect the current in the high-voltage circuit 102. The load 1026 is used to receive electrical energy from the high-voltage circuit 102 or release electrical energy to the high-voltage circuit 102. The high-voltage relay 1028 is used to control the conduction or disconnection of the high-voltage circuit 102.
[0041] In one embodiment, such as Figure 2 As shown, a method for determining the current in a high-voltage circuit is provided, which can be applied to... Figure 1 Taking the battery management system in the example, the following steps are included:
[0042] S202. Obtain the power-on status of the battery management system.
[0043] The battery management system is one of the core components of electric vehicles. Its main functions include signal acquisition, status monitoring, parameter estimation, charge and discharge management, and fault diagnosis of the power battery system. The power-on state of the battery management system includes two states: power-on and power-off.
[0044] S204. Obtain the first current value of the high-voltage circuit based on the power-on status. The first current value is periodically collected by the Hall sensor.
[0045] The first current value is the current periodically sampled by the Hall sensor from the high-voltage circuit when the battery management system is energized and the high-voltage relay is de-energized. At this time, the actual current in the high-voltage circuit is zero. The Hall sensor is a magnetic field sensor based on the Hall effect.
[0046] Specifically, when the battery management system is powered on and the high-voltage relay is disconnected, the battery management system acquires the current value of the high-voltage circuit collected by the Hall sensor in each acquisition cycle.
[0047] S206. Calculate the current compensation value based on the first current value and the number of acquisition cycles.
[0048] The number of acquisition cycles refers to the cumulative number of cycles in which the Hall sensor acquires current. The current compensation value refers to the average difference between the current value acquired by the Hall sensor and the actual current in the high-voltage circuit when the actual current in the high-voltage circuit is zero. The formula for calculating the current compensation value is as follows:
[0049]
[0050] In the formula, t is the number of acquisition cycles, and M is... t I is the average value of the first current value collected over t cycles. t I t-1 … represent the first current value collected in each cycle, N is the number of average terms, which is a positive integer and N≤t, usually N=100.
[0051] S208. Determine the target current value based on the current compensation value.
[0052] The target current value refers to the actual output current value of the high-voltage circuit determined by the current compensation value and the current value collected by the Hall sensor when the high-voltage relay is in the closed state.
[0053] The aforementioned method for determining the high-voltage circuit current first obtains the power-on state of the battery management system, then obtains the first current value of the high-voltage circuit based on the power-on state. This first current value is periodically collected by a Hall sensor. Next, a current compensation value is calculated based on the first current value and the number of collection cycles. Finally, the target current value is determined based on the current compensation value. The method provided in this application can determine the current compensation value based solely on the first current value collected by the Hall sensor and the number of collection cycles. It requires no additional hardware and has no special requirements for the Hall sensor, effectively reducing costs and offering high versatility.
[0054] In some embodiments, such as Figure 3 The above, Figure 3 This is a flowchart illustrating a method for determining the power-on state of a battery management system according to an embodiment of this application. The method for obtaining the power-on state of the battery management system includes: determining whether the battery management system can obtain the target state parameters of the power battery pack; if the battery management system can obtain the target state parameters of the power battery pack, then the power-on state of the battery management system is determined to be successful.
[0055] In this step, the target state parameters of the power battery pack refer to the relevant physical parameters of the power battery. For example, the target state parameters can be battery voltage, battery temperature, and battery current.
[0056] Specifically, after the battery management system is powered on, it is necessary to determine whether it can obtain the target state parameters of the power battery pack. If it can obtain the target state parameters of the power battery pack, it means that the battery management system has been successfully powered on. If it cannot obtain the target state parameters of the power battery pack, it means that the battery management system has failed to power on and will issue an alarm message to remind the staff that the battery management system or the power battery pack has malfunctioned.
[0057] The method provided in this step determines that the battery management system has been successfully powered on only if the battery management system can normally obtain the target state parameters, thus ensuring the safety of the battery management system power-on process.
[0058] In some embodiments, after determining that the power-on state of the battery management system is successful, the method further includes: determining whether the target state parameter meets preset conditions, the preset conditions including the battery voltage being greater than a preset voltage threshold and the battery temperature being greater than a preset temperature threshold; if the target state parameter meets at least one preset condition, an alarm message is issued.
[0059] In this step, the preset voltage threshold and preset temperature threshold are the highest voltage and highest temperature to ensure the safety of the power battery pack.
[0060] Specifically, when the battery voltage in the target state parameters is greater than the preset voltage threshold or the battery temperature is greater than the preset temperature threshold, it indicates that there is a safety hazard in the power battery pack, and it may even catch fire. At this time, the battery management system issues an alarm message to remind the staff that there is a safety hazard in the power battery pack.
[0061] The method provided in this step alerts staff to potential safety hazards when the temperature and voltage of the power battery pack are too high, requiring timely handling and ensuring the safety of the power battery pack and the entire vehicle.
[0062] In some embodiments, obtaining the first current value of the high-voltage circuit based on the power-on state includes: if the power-on state of the battery management system is successful, then determining whether the high-voltage relay is closed; if the high-voltage relay is not closed, then continuing to obtain the first current value.
[0063] In this step, in order to determine the current compensation value between the current value of the high-voltage circuit collected by the Hall sensor and the actual current value of the high-voltage circuit, it is necessary to obtain the current value of the high-voltage circuit collected by the Hall sensor when the high-voltage circuit is disconnected. Since the actual current in the circuit is zero when the high-voltage circuit is disconnected, the current collected by the Hall sensor is the error between the collected current and the actual current in the high-voltage circuit. Then, the current compensation value can be determined based on the error of each collection cycle and the number of cycles when the high-voltage circuit is disconnected.
[0064] Specifically, when the battery management system is successfully powered on and the high-voltage relay is not closed, the battery management system continuously acquires the current in the high-voltage circuit periodically collected by the Hall sensor.
[0065] The method provided in this step treats the current collected by the Hall sensor when the high-voltage circuit is disconnected as the error current value, and then calculates the current compensation value based on the error current value. The method is simple and does not require additional equipment.
[0066] In some embodiments, after determining whether the high-voltage relay is closed, the method further includes: if the high-voltage relay is already closed, then stopping the acquisition of the first current value.
[0067] In this step, if the battery management system determines that the high-voltage relay is closed, the battery management system stops acquiring the current collected by the Hall sensor.
[0068] The method provided in this step allows the battery management system to stop acquiring current when the high-voltage circuit is closed, enabling more accurate calculation of the current compensation value based on the current collected when the high-voltage circuit is open.
[0069] In some embodiments, determining the target current value based on the current compensation value includes: after the high-voltage relay is closed, acquiring a second current value periodically collected by the Hall sensor from the high-voltage circuit; and determining the target current value based on the difference between the second current value and the current compensation value.
[0070] In this step, the formula for calculating the target current value is as follows:
[0071] I out =-M t
[0072] In the formula, I out I represents the target current value for the current cycle, and I represents the second current value acquired by the Hall sensor for the current cycle.
[0073] The method provided in this step calculates the target current value based on the second current value and the current compensation value, which makes the output current value more accurate.
[0074] In one embodiment, such as Figure 4 The above, Figure 4 Here is a flowchart of a high-voltage loop current determination method according to another embodiment, the method comprising the following steps:
[0075] (1) The battery management system is powered on and initialized.
[0076] (2) Determine whether the high-voltage relay is closed. If it is not closed, record the current value I in the current i-th sampling period. i And the cumulative number of sampling periods t; if it has been closed, stop recording and jump to step (3).
[0077] (3) After the high-voltage relay is closed, calculate the moving average current value at time t based on the current value of each sampling period and the cumulative number of sampling periods recorded in step (2). The calculation formula is as follows:
[0078]
[0079] Among them, M t I is the moving average of the current at time t; t I t-1 … represent the current values recorded in the t-th, t-1… sampling periods, respectively; N is the number of average terms, which is a positive integer and N≤t. In this example, N is usually taken as 100.
[0080] (4) Read the Hall sensor current for the current sampling period, and calculate the output current value for the current period based on the moving average current calculated in step 3:
[0081] I out =-M t
[0082] Among them, I out I represents the current output current value of the battery management system in the current sampling period; I represents the current collected by the Hall sensor in the current sampling period; M represents the current output current value of the battery management system in the current sampling period. t The moving average value of the current calculated at time t is the compensation value of the zero-point current.
[0083] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0084] Based on the same inventive concept, this application also provides a high-voltage circuit current determination device for implementing the high-voltage circuit current determination method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more embodiments of the high-voltage circuit current determination device provided below can be found in the limitations of the high-voltage circuit current determination method described above, and will not be repeated here.
[0085] In one embodiment, such as Figure 5 As shown, a high-voltage circuit current determination device 500 is provided, including: a first acquisition module 501, a second acquisition module 502, a calculation module 503, and a determination module 504, wherein:
[0086] The first acquisition module 501 is used to acquire the power-on status of the battery management system.
[0087] The second acquisition module 502 is used to acquire the first current value of the high-voltage circuit according to the power-on state, wherein the first current value is periodically collected by the Hall sensor.
[0088] The calculation module 503 is used to calculate the current compensation value based on the first current value and the number of acquisition cycles.
[0089] The determination module 504 is used to determine the target current value based on the current compensation value.
[0090] In some embodiments, the first acquisition module 501 is further configured to: determine whether the battery management system can acquire the target state parameters of the power battery pack; if the battery management system can acquire the target state parameters of the power battery pack, then determine that the power-on state of the battery management system is a successful power-on.
[0091] In some embodiments, the high-voltage circuit current determination device 500 is specifically used to: determine whether the target state parameter meets preset conditions, the preset conditions including battery voltage greater than a preset voltage threshold and battery temperature greater than a preset temperature threshold; if the target state parameter meets at least one of the preset conditions, then an alarm message is issued.
[0092] In some embodiments, the second acquisition module 502 is further configured to: if the power-on state of the battery management system is successful, determine whether the high-voltage relay is closed; if the high-voltage relay is not closed, continue to acquire the first current value.
[0093] In some embodiments, the second acquisition module 502 is further configured to: stop acquiring the first current value if the high-voltage relay has already closed.
[0094] In some embodiments, the determining module 504 is further configured to: after the high-voltage relay is closed, acquire a second current value periodically collected by the Hall sensor from the high-voltage circuit; and determine the target current value based on the difference between the second current value and the current compensation value.
[0095] Each module in the aforementioned high-voltage circuit current determination device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0096] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 6As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores current data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When executed by the processor, the computer program implements a method for determining high-voltage loop current.
[0097] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0098] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to perform the following steps: acquiring the power-on state of the battery management system; acquiring a first current value of the high-voltage circuit based on the power-on state, the first current value being periodically acquired by the Hall sensor; calculating a current compensation value based on the first current value and the number of acquisition cycles; and determining a target current value based on the current compensation value.
[0099] In one embodiment, the process of obtaining the power-on status of the battery management system when the processor executes a computer program includes: determining whether the battery management system can obtain the target status parameters of the power battery pack; if the battery management system can obtain the target status parameters of the power battery pack, then determining that the power-on status of the battery management system is a successful power-on.
[0100] In one embodiment, after the processor executes the computer program to determine that the power-on state of the battery management system is a successful power-on, the method further includes: determining whether the target state parameter meets preset conditions, the preset conditions including the battery voltage being greater than a preset voltage threshold and the battery temperature being greater than a preset temperature threshold; if the target state parameter meets at least one of the preset conditions, an alarm message is issued.
[0101] In one embodiment, the process of obtaining the first current value of the high-voltage circuit based on the power-on state when the processor executes the computer program includes: if the power-on state of the battery management system is successful, then determining whether the high-voltage relay is closed; if the high-voltage relay is not closed, then continuing to obtain the first current value.
[0102] In one embodiment, after the processor executes the computer program to determine whether the high-voltage relay is closed, the method further includes: if the high-voltage relay is already closed, then stopping the acquisition of the first current value.
[0103] In one embodiment, the determination of a target current value based on the current compensation value implemented by the processor when executing a computer program includes: after the high-voltage relay is closed, acquiring a second current value periodically collected by the Hall sensor from the high-voltage circuit; and determining the target current value based on the difference between the second current value and the current compensation value.
[0104] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, performs the following steps: acquiring the power-on state of the battery management system; acquiring a first current value of the high-voltage circuit based on the power-on state, the first current value being periodically acquired by the Hall sensor; calculating a current compensation value based on the first current value and the number of acquisition cycles; and determining a target current value based on the current compensation value.
[0105] In one embodiment, the process of obtaining the power-on status of the battery management system when the computer program is executed by the processor includes: determining whether the battery management system can obtain the target status parameters of the power battery pack; if the battery management system can obtain the target status parameters of the power battery pack, then determining that the power-on status of the battery management system is a successful power-on.
[0106] In one embodiment, after the computer program is executed by the processor to determine that the power-on state of the battery management system is a successful power-on, the method further includes: determining whether the target state parameter meets preset conditions, the preset conditions including the battery voltage being greater than a preset voltage threshold and the battery temperature being greater than a preset temperature threshold; if the target state parameter meets at least one of the preset conditions, an alarm message is issued.
[0107] In one embodiment, the process of obtaining a first current value based on the power-on state when the computer program is executed by the processor includes: if the power-on state of the battery management system is successful power-on, then determining whether the high-voltage relay is closed; if the high-voltage relay is not closed, then continuing to obtain the first current value.
[0108] In one embodiment, after the computer program is executed by the processor to determine whether the high-voltage relay is closed, the method further includes: if the high-voltage relay is already closed, then stopping the acquisition of the first current value.
[0109] In one embodiment, the determination of a target current value based on the current compensation value, implemented by the computer program when executed by the processor, includes: after the high-voltage relay is closed, acquiring a second current value periodically collected by the Hall sensor from the high-voltage circuit; and determining the target current value based on the difference between the second current value and the current compensation value.
[0110] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps: acquiring the power-on state of the battery management system; acquiring a first current value of the high-voltage circuit based on the power-on state, the first current value being periodically acquired by the Hall sensor; calculating a current compensation value based on the first current value and the number of acquisition cycles; and determining a target current value based on the current compensation value.
[0111] In one embodiment, the process of obtaining the power-on status of the battery management system when the computer program is executed by the processor includes: determining whether the battery management system can obtain the target status parameters of the power battery pack; if the battery management system can obtain the target status parameters of the power battery pack, then determining that the power-on status of the battery management system is a successful power-on.
[0112] In one embodiment, after the computer program is executed by the processor to determine that the power-on state of the battery management system is a successful power-on, the method further includes: determining whether the target state parameter meets preset conditions, the preset conditions including the battery voltage being greater than a preset voltage threshold and the battery temperature being greater than a preset temperature threshold; if the target state parameter meets at least one of the preset conditions, an alarm message is issued.
[0113] In one embodiment, the process of obtaining a first current value based on the power-on state when the computer program is executed by the processor includes: if the power-on state of the battery management system is successful power-on, then determining whether the high-voltage relay is closed; if the high-voltage relay is not closed, then continuing to obtain the first current value.
[0114] In one embodiment, after the computer program is executed by the processor to determine whether the high-voltage relay is closed, the method further includes: if the high-voltage relay is already closed, then stopping the acquisition of the first current value.
[0115] In one embodiment, the determination of a target current value based on the current compensation value, implemented by the computer program when executed by the processor, includes: after the high-voltage relay is closed, acquiring a second current value periodically collected by the Hall sensor from the high-voltage circuit; and determining the target current value based on the difference between the second current value and the current compensation value.
[0116] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0117] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0118] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0119] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A method for determining the current in a high-voltage circuit, characterized in that, The method is used in a system comprising a high-voltage circuit and a battery management system, wherein the high-voltage circuit includes a power battery pack, a Hall sensor, a load, and a high-voltage relay; the method includes: Obtain the power-on status of the battery management system; The first current value of the high-voltage circuit is obtained based on the power-on state, and the first current value is periodically collected by the Hall sensor; The current compensation value is calculated based on the first current value and the number of acquisition cycles; the number of acquisition cycles refers to the cumulative number of cycles in which the Hall sensor acquires the current; the current compensation value refers to the average difference between the current value acquired by the Hall sensor and the actual current in the high-voltage circuit when the actual current in the high-voltage circuit is zero; the formula for calculating the current compensation value is as follows: In the formula, t is the number of acquisition cycles, and M is... t I is the average value of the first current value collected over t cycles. t I t-1 …represent the first current value collected in each cycle, N is the number of average terms, which is a positive integer and N≤t; The target current value is determined based on the current compensation value; the target current value refers to the actual output current value of the high-voltage circuit determined based on the current compensation value and the current value currently collected by the Hall sensor when the high-voltage relay is in the closed state. The step of determining the target current value based on the current compensation value includes: after the high-voltage relay is closed, acquiring a second current value periodically collected by the Hall sensor from the high-voltage circuit; and determining the target current value based on the difference between the second current value and the current compensation value.
2. The method according to claim 1, characterized in that, The step of obtaining the power-on status of the battery management system includes: Determine whether the battery management system can obtain the target state parameters of the power battery pack; If the battery management system can obtain the target state parameters of the power battery pack, then the power-on state of the battery management system is determined to be a successful power-on.
3. The method according to claim 2, characterized in that, After determining that the power-on state of the battery management system is successful, the method further includes: Determine whether the target state parameters meet preset conditions, including battery voltage greater than a preset voltage threshold and battery temperature greater than a preset temperature threshold. If the target state parameter satisfies at least one of the preset conditions, an alarm message is issued.
4. The method according to claim 2, characterized in that, The step of obtaining the first current value of the high-voltage circuit based on the power-on state includes: If the power-on status of the battery management system is "power-on successful", then determine whether the high-voltage relay is closed. If the high-voltage relay is not closed, the first current value will continue to be acquired.
5. The method according to claim 4, characterized in that, After determining whether the high-voltage relay is closed, the method further includes: If the high-voltage relay is already closed, then continue acquiring the first current value.
6. A high-voltage circuit current determination device, characterized in that, The device includes: The first acquisition module is used to acquire the power-on status of the battery management system; The second acquisition module is used to acquire a first current value of the high-voltage circuit based on the power-on state, wherein the first current value is periodically acquired by the Hall sensor. The calculation module is used to calculate a current compensation value based on the first current value and the number of acquisition cycles; the number of acquisition cycles refers to the cumulative number of cycles in which the Hall sensor acquires the current; the current compensation value refers to the average difference between the current value acquired by the Hall sensor and the actual current of the high-voltage circuit when the actual current in the high-voltage circuit is zero; the calculation formula for the current compensation value is as follows: In the formula, t is the number of acquisition cycles, and M is... t I is the average value of the first current value collected over t cycles. t I t-1 …represent the first current value collected in each cycle, N is the number of average terms, which is a positive integer and N≤t; The determination module is used to determine the target current value based on the current compensation value; the target current value refers to the actual output current value of the high-voltage circuit determined based on the current compensation value and the current value currently collected by the Hall sensor when the high-voltage relay is in the closed state. The determining module is further configured to, after the high-voltage relay is closed, acquire a second current value periodically collected by the Hall sensor from the high-voltage circuit; and determine the target current value based on the difference between the second current value and the current compensation value.
7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.
9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Current sensor diagnosis method and device, vehicle and storage medium
CN112462315A
Power battery current control method and device, electric vehicle and storage medium
CN114750638A