Calibration method, device and equipment of Hall current sensor and medium

By dynamically acquiring and calibrating parameters such as bias voltage each time the Hall current sensor is powered on, the measurement error problem caused by bias voltage drift is solved, high-precision current detection is achieved, and the battery status assessment capability and safety of the BMS system are improved.

CN122017707APending Publication Date: 2026-05-12SHENZHEN ANSHI NEW ENERGY TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN ANSHI NEW ENERGY TECHNOLOGY CO LTD
Filing Date
2026-02-02
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

Hall current sensors in BMS systems cause current measurement results to deviate from the true value due to bias voltage drift. Existing calibration methods fail to perform this calibration every time the system is powered on, affecting the accuracy of battery status assessment and posing safety risks.

Method used

Each time the Hall current sensor is powered on, parameters such as bias voltage, current output voltage, zero-point output current and sampling current are dynamically acquired. The gain factor and offset factor are determined by linear fitting, and calibration is performed to eliminate bias voltage drift.

Benefits of technology

This improves the current measurement accuracy of the Hall current sensor, ensuring that the BMS system provides high-precision current data under any power-on state, reducing errors, and enhancing the reliability and safety of the battery management system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122017707A_ABST
    Figure CN122017707A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of Hall sensor calibration, and discloses a Hall current sensor calibration method and device, equipment and a medium. The method comprises the following steps: when a Hall current sensor is powered on, acquiring bias voltage, current output voltage, zero-point output current and zero-point output voltage corresponding to the zero-point output current of the Hall current sensor, and current sampling current obtained by performing current sampling on a BMS (Battery Management System) in a current state by the Hall current sensor; determining a current zero output voltage of the Hall current sensor based on the bias voltage, the current output voltage and the zero output voltage; determining a current current output voltage of the Hall current sensor based on the bias voltage, the zero output voltage and the current zero output voltage; and calibrating the Hall current sensor based on the zero-point output current, the current zero-point output voltage, the current sampling current and the current current output voltage. According to the embodiment of the invention, the current measurement precision of the Hall current sensor can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Hall sensor calibration technology, and in particular to a calibration method, apparatus, device and medium for a Hall current sensor. Background Technology

[0002] Hall effect current sensors play a crucial role in current monitoring within battery management systems (BMS), relying on the Hall effect to convert current signals into voltage outputs. However, due to the physical characteristics of the sensor's internal components, the bias voltage experiences unpredictable drift each time the system is powered on, influenced by factors such as ambient temperature fluctuations, power supply stability differences, and circuit aging. This bias voltage variation directly leads to zero-point output inaccuracies, causing current measurements to deviate from the true value. To ensure detection accuracy, calibration must be performed immediately after each power-on to eliminate initial deviations. In practical applications, traditional calibration methods typically perform a one-time calibration only during initial equipment deployment or periodic maintenance, failing to embed the calibration process into the routine operation of each system power-on. When the BMS system undergoes a power outage and restart, the Hall effect current sensor, lacking immediate calibration, will output significantly inaccurate current data, failing to accurately capture the real-time charge and discharge status of the battery. This accuracy deficiency not only reduces the system's ability to assess battery health but may also trigger abnormal operating conditions such as overcharging and over-discharging, threatening battery safety and weakening the reliability of the entire management system. Especially under dynamic load changes or complex operating conditions, uncalibrated sensors are unable to maintain stable current monitoring performance, further exacerbating the risk of data distortion. Summary of the Invention

[0003] The purpose of this application is to provide a calibration method, apparatus, device, and medium for a Hall current sensor, which can eliminate bias voltage drift and improve current measurement accuracy each time the Hall current sensor is powered on.

[0004] This application provides a calibration method for a Hall current sensor, including: When the Hall current sensor is powered on, the bias voltage, current output voltage, zero-point output current and the zero-point output voltage corresponding to the zero-point output current of the Hall current sensor are acquired, as well as the current sampling current obtained by the Hall current sensor sampling the current state of the BMS system. The current zero-point output voltage of the Hall current sensor is determined based on the bias voltage, the current output voltage, and the zero-point output voltage. The current output voltage of the Hall current sensor is determined based on the bias voltage, the zero-point output voltage, and the current zero-point output voltage. The Hall current sensor is calibrated based on the zero-point output current, the current zero-point output voltage, the current sampling current, and the current output voltage.

[0005] In some embodiments, determining the current zero-point output voltage of the Hall current sensor based on the bias voltage, the current output voltage, and the zero-point output voltage includes: The difference between the current output voltage and the zero-point output voltage is calculated to obtain the first deviation voltage; The current zero-point output voltage is determined based on the first deviation voltage and the bias voltage.

[0006] In some embodiments, determining the current output voltage of the Hall current sensor based on the bias voltage, the zero-point output current, and the current zero-point output voltage includes: The difference between the current zero-point output voltage and the zero-point output voltage is calculated to obtain the second deviation voltage; The current output voltage is determined based on the first deviation voltage and the bias voltage.

[0007] In some embodiments, calibrating the Hall current sensor based on the zero-point output current, the current zero-point output voltage, the current sampling current, and the current current output voltage includes: Based on the zero-point output current, the current zero-point output voltage, the current sampling current, and the current output voltage, the gain factor and offset factor of the Hall current sensor are determined. The Hall current sensor is calibrated based on the gain factor and the offset factor.

[0008] In some embodiments, determining the gain factor and offset factor of the Hall current sensor based on the zero-point output current, the current zero-point output voltage, the current sampling current, and the current current output voltage includes: Using the current zero-point output voltage and the current current output voltage as independent variables, and the zero-point output current and the current sampled current as dependent variables, a linear fit is performed to obtain the gain factor and the offset factor.

[0009] In some embodiments, calibrating the Hall current sensor based on the gain factor and the offset factor includes: The actual changed current after the BMS system changes state, and the changed output voltage of the Hall current sensor after the BMS system changes state, are obtained. Based on the gain factor and the offset factor, a linear operation is performed on the changed output voltage to obtain the expected sampling current; The gain factor and the offset factor are calibrated based on the deviation current between the actual changed current and the expected sampled current.

[0010] In some embodiments, calibrating the gain factor and the offset factor based on the current deviation between the actual changed current and the expected sampled current includes: When the deviation current reaches a preset current deviation threshold, the gain factor and the offset factor are calibrated so that the deviation current does not exceed the current deviation threshold when the BMS system is in various states.

[0011] This application also provides a calibration device for a Hall current sensor, comprising: The first module is used to acquire the bias voltage, current output voltage, zero-point output current and zero-point output voltage corresponding to the Hall current sensor when the Hall current sensor is powered on, as well as the current sampling current obtained by the Hall current sensor from the current sampling of the BMS system in the current state. The second module is used to determine the current zero-point output voltage of the Hall current sensor based on the bias voltage, the current output voltage, and the zero-point output voltage. The third module is used to determine the current output voltage of the Hall current sensor based on the bias voltage, the zero-point output voltage, and the current zero-point output voltage. The fourth module is used to calibrate the Hall current sensor based on the zero-point output current, the current zero-point output voltage, the current sampling current, and the current current output voltage.

[0012] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described calibration method for the Hall current sensor.

[0013] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described calibration method for a Hall current sensor.

[0014] The beneficial effects of this application are as follows: Each time the Hall current sensor is powered on, a series of real-time parameters are dynamically acquired, including its bias voltage, current output voltage, zero-point output current, zero-point output voltage, and current sampling current. Based on these real-time parameters, the current zero-point output voltage and current output voltage are determined, thereby calibrating the sensor. Therefore, by calibrating the Hall current sensor according to its current state each time it is powered on, subtle changes in the bias voltage at each power-on are captured, and the zero-point and current output characteristics of the sensor are recalculated or derived accordingly. This ensures that the Hall current sensor can continuously provide high-precision current measurement even under bias voltage fluctuations, eliminating bias voltage drift each time the Hall current sensor is powered on and improving current measurement accuracy. Attached Figure Description

[0015] Figure 1 This is a flowchart of the calibration method for the Hall current sensor provided in the embodiments of this application.

[0016] Figure 2 This is a flowchart of a method for determining the current zero-point output voltage of a Hall current sensor, as provided in an embodiment of this application.

[0017] Figure 3 This is a flowchart of a method for determining the current output voltage of a Hall current sensor, as provided in an embodiment of this application.

[0018] Figure 4 This is a flowchart of a method for calibrating a Hall current sensor provided in an embodiment of this application.

[0019] Figure 5 This is a schematic diagram of the structure of the calibration device for the Hall current sensor provided in the embodiments of this application.

[0020] Figure 6 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0021] 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.

[0022] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and drawings are used to distinguish similar objects and are not used to describe a specific order or sequence.

[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0024] In traditional BMS systems, Hall effect current sensors are used to monitor current parameters in real time. However, due to the inherent characteristics of the sensor's internal circuitry, the bias voltage varies with each power-on. Existing calibration mechanisms do not use power-on as a trigger for calibration, resulting in a systematic deviation between the sensor's output current signal and the actual value after a power outage and restart. This problem stems from the contradiction between the time-varying characteristics of the bias voltage and the static matching of the calibration strategy, directly reducing the reliability of current detection results and affecting the accuracy of battery state estimation. For example, during the operation of an electric vehicle, when the vehicle restarts after a long period of inactivity, the Hall effect current sensor's bias voltage drifts due to ambient temperature fluctuations and circuit aging. Since the calibration process is only performed during the initial installation phase and not dynamically calibrated each time the vehicle is powered on, the sensor's zero-point voltage deviates from the nominal value. Under high-rate charging conditions, this deviation causes the current sampling value to continuously deviate from the true range, preventing the BMS system from accurately identifying the battery's charging and discharging state, thus triggering incorrect protection mechanisms or energy allocation commands.

[0025] If the above problems are not resolved, the current detection deviation will accumulate with the number of BMS system restarts, which may lead to the BMS system misjudging the battery's state of charge, causing overcharging or over-discharging risks, weakening the BMS system's ability to monitor the battery's health status, and ultimately resulting in a shortened battery pack lifespan and operational safety hazards.

[0026] Based on this, embodiments of this application provide a calibration method, apparatus, device, and medium for a Hall current sensor. By calibrating the Hall current sensor according to its current state each time it is powered on, bias voltage drift can be eliminated each time the Hall current sensor is powered on, thereby improving the accuracy of current measurement.

[0027] See Figure 1 In one embodiment, a calibration method for a Hall current sensor is provided. The subject of the method is a calibration terminal, including but not limited to steps S101 to S104.

[0028] Step S101: When the Hall current sensor is powered on, acquire the bias voltage, current output voltage, zero-point output current and zero-point output voltage corresponding to the Hall current sensor, as well as the current sampling current obtained by the Hall current sensor sampling the current state of the BMS system.

[0029] Bias voltage refers to the non-zero voltage that may exist at the output terminal of a Hall current sensor when there is no current input. This voltage may vary due to factors such as ambient temperature, device aging, or the initial state at each power-on.

[0030] The current output voltage refers to the voltage signal output by the Hall current sensor when sampling the current of the BMS system at a specific moment. This voltage signal reflects the magnitude of the current flowing through the sensor.

[0031] Zero-point output current refers to the current value at the output terminal of a Hall current sensor under ideal conditions when no current flows through it; it is usually set to zero amperes.

[0032] Zero-point output voltage refers to the voltage value at the output terminal of a Hall current sensor when it is in a zero-point output current state, i.e., when no current flows through it. This voltage value is an important reference point in the calibration process.

[0033] The current sampling current refers to the current value actually measured by the BMS system or related measuring equipment when the Hall current sensor performs current detection on the BMS system.

[0034] When the Hall current sensor is powered on, a series of key parameters need to be acquired. Specifically, the bias voltage of the Hall current sensor can be recorded manually or read using a simple analog-to-digital converter. Simultaneously, the output voltage of the Hall current sensor in its current operating state, i.e., the current output voltage, can be read. Furthermore, it is necessary to acquire the zero-point output current and its corresponding zero-point output voltage of the Hall current sensor when no current flows; this can be obtained by measuring the sensor under no-load conditions. For subsequent calibration, the current sampled by the Hall current sensor to the current sampling of the BMS system in its current state also needs to be acquired; this current value can be provided by the reference measurement unit within the BMS system.

[0035] Step S102: Determine the current zero-point output voltage of the Hall current sensor based on the bias voltage, the current output voltage, and the zero-point output voltage.

[0036] The current zero-point output voltage refers to the output voltage value that should exist when there is no current input, calculated or determined based on the Hall current sensor's current operating state and historical reference data after it is powered on.

[0037] After obtaining the above parameters, the current zero-point output voltage of the Hall current sensor needs to be determined based on the bias voltage, the current output voltage, and the zero-point output voltage. For example, the current zero-point output voltage can be obtained by consulting a pre-stored calibration curve or lookup table. This lookup table can be preset according to factors such as sensor model and ambient temperature, and stores reference values ​​for the zero-point output voltage under different combinations of bias voltage and output voltage.

[0038] Step S103: Determine the current output voltage of the Hall current sensor based on the bias voltage, the zero-point output voltage, and the current zero-point output voltage.

[0039] The current output voltage refers to the output voltage value that should exist when there is current input, calculated or determined based on the Hall current sensor's current operating state and historical reference data after it is powered on.

[0040] Based on the bias voltage, the zero-point output voltage, and the current zero-point output voltage, the current current output voltage of the Hall current sensor is determined. For example, the current zero-point output voltage can be compared with the zero-point output voltage according to empirical formulas or preset proportional relationships, and the influence of the bias voltage can be combined to estimate the output voltage that the sensor should have when current flows under the current operating conditions.

[0041] Step S104: Calibrate the Hall current sensor based on the zero-point output current, the current zero-point output voltage, the current sampling current, and the current output voltage.

[0042] The Hall current sensor is calibrated based on the zero-point output current, the current zero-point output voltage, the current sampled current, and the current output voltage. For example, a simple scaling factor adjustment method can be used. Specifically, by comparing the difference between the current sampled current and the zero-point output current, and the difference between the current output voltage and the current zero-point output voltage, a simple scaling factor is calculated. This scaling factor is then applied to the subsequent output voltage of the Hall current sensor to correct its measurement results. This calibration method can initially correct the overall output of the sensor, enabling it to provide current measurements closer to the true value under current operating conditions.

[0043] The following example will provide a more detailed explanation of the above technical solution: Suppose a Hall effect current sensor is integrated into a battery management system (BMS) of an electric vehicle to monitor the charging and discharging current of the battery. Due to frequent start-stop cycles, the BMS system is powered on and off multiple times. Each time power is applied, the internal bias voltage of the Hall effect current sensor is slightly different, causing a deviation in the output voltage value when measuring the same current, thus affecting the accuracy of the BMS system's assessment of the battery state. To address this issue, the calibration method in this embodiment is triggered each time the Hall effect current sensor is powered on.

[0044] First, when the BMS system powers on and activates the Hall current sensor, the actuator immediately acquires a series of initial data. Specifically, the actuator reads the bias voltage of the Hall current sensor in the current power-on state. Simultaneously, the actuator acquires the voltage value output by the Hall current sensor at the current operating point, i.e., the current output voltage. Furthermore, the actuator retrieves the zero-point output current (e.g., 0A) and its corresponding zero-point output voltage of the Hall current sensor under ideal no-current conditions from preset parameters. For calibration, the BMS system also acquires a current sampling current value through its internal independent measurement channel or reference current source; this value represents the actual current currently being measured by the Hall current sensor.

[0045] Next, the actuator calculates or derives the current zero-point output voltage of the Hall current sensor under the current power-on state based on the acquired bias voltage, current output voltage, and zero-point output voltage. For example, the actuator can estimate the actual current zero-point output voltage based on a preset empirical model that takes into account the influence of the bias voltage on the zero-point output.

[0046] Subsequently, the actuator will further determine the current current output voltage of the Hall current sensor based on the bias voltage, the zero-point output voltage, and the determined current zero-point output voltage. For example, the actuator can calculate the output voltage that the Hall current sensor should have when measuring non-zero current under the current operating conditions, based on the difference between the current zero-point output voltage and the original zero-point output voltage, combined with the influence of the bias voltage.

[0047] Finally, the actuator calibrates the Hall current sensor using the acquired zero-point output current, the determined current zero-point output voltage, the acquired current sampling current, and the determined current output voltage. Specifically, the actuator can construct a simple linear relationship, using the current sampling current and the zero-point output current as two points on the current axis, and the current current output voltage and the current zero-point output voltage as two points on the voltage axis. Through these two points, a temporary calibration line can be determined, resulting in a temporary gain factor and an offset factor. Subsequently, in subsequent current measurements, the Hall current sensor's output voltage signal will be corrected using these temporary gain and offset factors to output a more accurate current value.

[0048] Through the above process, the Hall current sensor can be dynamically calibrated according to its current actual working state each time it is powered on, thereby effectively dealing with the measurement error caused by the change of bias voltage and ensuring that the BMS system can obtain high-precision current data under any power-on state.

[0049] Based on the above examples, the technical solution of this embodiment demonstrates significant technical contributions. Traditional Hall current sensor calibration methods typically involve a one-time calibration during the production phase or calibration only during specific maintenance cycles. As described in the background section, this approach cannot address the issue of inconsistent bias voltages in Hall current sensors upon each power-on, leading to changes in current detection accuracy after the BMS system is powered on again.

[0050] This embodiment dynamically acquires a series of real-time parameters, such as bias voltage, current output voltage, zero-point output current, zero-point output voltage, and current sampling current, each time the Hall current sensor is powered on. Based on these real-time parameters, the current zero-point output voltage and current output voltage are determined, thereby calibrating the sensor. This "power-on calibration" strategy contrasts sharply with the static or periodic calibration methods in existing technologies.

[0051] Specifically, the key to this embodiment lies in its ability to dynamically adjust the calibration parameters of the sensor based on its actual operating state after each power-on. For example, in the BMS system of the aforementioned electric vehicle, the sensor undergoes a power-on process each time the vehicle starts. The method of this embodiment can capture subtle changes in the bias voltage during each power-on and recalculate or derive the zero-point and current output characteristics of the sensor accordingly. This dynamic adaptability ensures that the Hall current sensor can continuously provide high-precision current measurement even under bias voltage fluctuations.

[0052] Therefore, this embodiment effectively solves the technical problem of decreased current detection accuracy of Hall current sensors after multiple power-ups in the prior art. Through a real-time, dynamic calibration mechanism, this embodiment significantly improves the measurement reliability and accuracy of Hall current sensors in practical applications, providing more accurate battery status information for the BMS system, thereby optimizing battery management and system performance.

[0053] See Figure 2 In one embodiment, the method for determining the current zero-point output voltage of the Hall current sensor includes, but is not limited to, steps S201 to S202.

[0054] Step S201: Calculate the difference between the current output voltage and the zero-point output voltage to obtain the first deviation voltage.

[0055] Step S202: Determine the current zero-point output voltage based on the first deviation voltage and the bias voltage.

[0056] Calculating the difference between the current output voltage and the zero-point output voltage aims to quantify the deviation of the Hall current sensor's output voltage relative to the known zero-point output voltage under its current operating state. By calculating the difference, the drift or error of the sensor near the zero point can be intuitively reflected. This calculation can be performed directly by the subtraction operation within the arithmetic logic unit (ALU) of a digital signal processor (DSP) or microcontroller (MCU), or by analog circuitry, such as a differential amplifier, which takes the current output voltage and the zero-point output voltage as inputs and directly outputs their difference as the first deviation voltage.

[0057] The current zero-point output voltage is determined based on the first deviation voltage and the bias voltage. The aim is to use the calculated first deviation voltage and the bias voltage of the Hall current sensor to correct or extrapolate the actual current zero-point output voltage. The bias voltage is typically the theoretical output voltage of the sensor under ideal zero-current input, while the first deviation voltage reflects the offset under actual operating conditions. Combining both allows for a more accurate determination of the current zero-point output voltage. Specifically, it can be determined by adding or subtracting the bias voltage from the first deviation voltage. For example, if the first deviation voltage represents zero-point drift, the current zero-point output voltage can be equal to the bias voltage plus or minus the first deviation voltage. Alternatively, a lookup table method or a preset functional relationship can be used. A mapping relationship between the first deviation voltage and the current zero-point output voltage can be established during sensor manufacturing or initial calibration, and the voltage can be obtained through lookup or calculation during operation.

[0058] The proposed solution first obtains the current output voltage of the Hall current sensor upon power-up and a preset zero-point output voltage, and calculates the difference between the two to obtain a first deviation voltage. This first deviation voltage characterizes the instantaneous shift of the sensor's output relative to the ideal zero-point output under the current operating state. Subsequently, this first deviation voltage is combined with the bias voltage of the Hall current sensor to determine the current zero-point output voltage. The bias voltage typically represents the theoretical output reference of the sensor when there is no current input, while the first deviation voltage provides real-time correction information for this reference. In this way, zero-point drift or initial errors that may occur in the sensor under different operating conditions can be effectively compensated, making the determined current zero-point output voltage more accurate and providing a reliable reference for subsequent current calibration. This method avoids directly using a single voltage value as the zero point, but instead improves the accuracy of zero-point determination by dynamically calculating the deviation and combining it with the bias voltage for correction.

[0059] In one specific embodiment, the formula for calculating the current zero-point output voltage is: , in, This is the current zero-point output voltage. This is the current output voltage. Zero-point output voltage, This is the bias voltage.

[0060] Through the above technical solution, this application provides a more accurate and robust method for determining the current zero-point output voltage of a Hall current sensor. By introducing a first deviation voltage to quantify the difference between the current output and the zero-point output, and combining this with a bias voltage for correction, it can effectively compensate for zero-point drift and initial errors that may occur in the sensor in actual working environments, thereby improving the accuracy of determining the current zero-point output voltage. This provides a more accurate benchmark for subsequent Hall current sensor calibration, thereby improving the measurement accuracy and reliability of the entire current sampling, especially when the sensor is initially powered on or when the working environment changes, enabling it to quickly adapt and provide a stable zero-point reference.

[0061] See Figure 3 In one embodiment, the method for determining the current output voltage of the Hall current sensor includes, but is not limited to, steps S301 to S302.

[0062] Step S301: Calculate the difference between the current zero-point output voltage and the zero-point output voltage to obtain the second deviation voltage.

[0063] Step S302: Determine the current output voltage based on the first deviation voltage and the bias voltage.

[0064] Calculating the difference between the current zero-point output voltage and the initial or calibrated zero-point output voltage quantifies the change in the Hall current sensor's zero-point output voltage relative to the initial or calibrated zero-point output voltage under its current operating state. This change, known as the second deviation voltage, reflects the degree of zero-point drift of the sensor. This calculation can be performed by a digital signal processor (DSP) or microcontroller (MCU), comparing the real-time acquired current zero-point output voltage with a pre-stored zero-point output voltage to directly calculate the difference. Alternatively, analog circuitry, such as a differential amplifier, can be used to input two voltage signals, directly output their difference, and then convert this analog difference into a digital signal for further processing.

[0065] Based on the first deviation voltage and the bias voltage, the current current output voltage is determined. This step aims to accurately calculate the actual current output voltage of the Hall current sensor in the current state using the known bias voltage and the aforementioned first deviation voltage (which reflects the difference between the current output voltage and the zero-point output voltage). This process considers the inherent bias characteristics of the sensor and the dynamic changes in its output signal, thereby obtaining a more accurate current output voltage. One implementation method is to use a preset mathematical model or algorithm, taking the aforementioned first deviation voltage and bias voltage as input parameters, and calculating the current current output voltage through a specific functional relationship or interpolation algorithm. For example, the current current output voltage can be expressed as a linear or nonlinear combination of the bias voltage and the aforementioned first deviation voltage. Another implementation method is to use an adaptive correction mechanism to dynamically adjust the contribution weights of the bias voltage and the aforementioned first deviation voltage to the current current output voltage based on historical data and real-time measurements, thereby optimizing the calculation results and adapting to changes in the sensor's characteristics under different environmental or operating conditions.

[0066] The proposed solution first calculates the difference between the current zero-point output voltage and the actual zero-point output voltage to obtain a second deviation voltage. This second deviation voltage directly reflects the degree of zero-point drift of the Hall current sensor. Based on this, and combining the aforementioned first deviation voltage (which characterizes the difference between the current output voltage and the zero-point output voltage) and the inherent bias voltage of the Hall current sensor, these key voltage parameters are comprehensively considered to determine the current output voltage of the Hall current sensor. This method cleverly utilizes different deviation voltage information to perform multi-dimensional analysis and correction of the sensor's output characteristics, thereby more accurately capturing the sensor's true current output voltage under its current operating state. Through this refined voltage determination process, more accurate and reliable reference data is provided for subsequent Hall current sensor calibration, effectively improving the overall calibration accuracy and robustness.

[0067] In one specific embodiment, the formula for calculating the current current output voltage is: , in, The current output voltage is the current. This is the current zero-point output voltage.

[0068] By employing the aforementioned technical solution, and precisely calculating the second deviation voltage between the current zero-point output voltage and the actual zero-point output voltage, and combining this with the first deviation voltage and the bias voltage to determine the current output voltage, the true output state of the Hall current sensor under actual operating conditions can be more accurately reflected. This method effectively compensates for any potential zero-point drift and inherent bias of the sensor, thereby providing more reliable and accurate input data for subsequent calibration processes, significantly improving the accuracy and stability of Hall current sensor calibration.

[0069] See Figure 4 In one embodiment, the method for calibrating the Hall current sensor includes, but is not limited to, steps S401 to S402.

[0070] Step S401: Determine the gain factor and offset factor of the Hall current sensor based on the zero-point output current, the current zero-point output voltage, the current sampling current, and the current output voltage.

[0071] The gain factor is a parameter that describes the slope of the sensor's output voltage as a function of the input current, and reflects the sensor's sensitivity.

[0072] The offset factor represents the sensor's output voltage at zero input current, i.e., zero-point drift.

[0073] The gain factor and offset factor of a Hall current sensor can be determined in several ways. For example, mathematical methods such as linear regression analysis or least squares can be used to fit the known zero-point output current and the current sampled current (as dependent variables) with the corresponding current zero-point output voltage and current current output voltage (as independent variables) to calculate the gain factor and offset factor. Alternatively, multiple measurements can be performed beforehand at different current points, and the corresponding output voltages recorded. Then, data processing algorithms such as curve fitting or piecewise linear interpolation can be used to determine the gain factor and offset factor that best describe the sensor's characteristics.

[0074] Step S402: Calibrate the Hall current sensor based on the gain factor and offset factor.

[0075] Calibrate Hall current sensors based on gain and offset factors, typically by performing a linear transformation on the sensor's raw output voltage. For example, the raw output voltage is converted to a calibrated current value using a calibration formula (e.g., calibrated current = gain factor × raw output voltage + offset factor). This calibration process can be implemented in software, for example, by using a microcontroller or digital signal processor (DSP) to execute a calibration algorithm, converting the raw output voltage of the Hall current sensor to a calibrated current value in real time. Alternatively, it can be implemented in hardware, for example, by using analog circuits such as a programmable gain amplifier (PGA) and a digital-to-analog converter (DAC) to directly adjust the sensor's analog output signal based on the calculated gain and offset factors, thus achieving hardware calibration.

[0076] This application's solution, after acquiring the bias voltage, current output voltage, zero-point output current, zero-point output voltage, and current sampling current of the Hall current sensor, and determining the current zero-point output voltage and current output voltage based on these parameters, further establishes a mathematical model of the Hall current sensor by using these known input (current) and output (voltage) data points as references. Specifically, this method uses the zero-point output current and current sampling current as the actual current values, and the corresponding current zero-point output voltage and current output voltage as the sensor output values. Through data fitting or calculation, the gain factor and offset factor of the Hall current sensor are accurately determined. The gain factor characterizes the proportional relationship between the sensor output voltage and the actual current, while the offset factor reflects the inherent deviation of the sensor at zero current input. Once these key parameters are determined, they can be used to correct subsequent measurement results of the Hall current sensor. This means that regardless of the voltage signal output by the sensor, it can be converted into an accurate current value by applying the determined gain factor and offset factor through linear calculation. This calibration method based on model parameters effectively solves the nonlinearity and drift problems that may occur in the sensor under different operating conditions, significantly improving the measurement accuracy and reliability of the Hall current sensor.

[0077] The following is a concrete example. After the Hall current sensor is powered on, the actuator first acquires its bias voltage, current output voltage, zero-point output current (e.g., 0A) and its corresponding zero-point output voltage, as well as the current sampling current (e.g., 100A) and its corresponding current output voltage measured in the current state of the BMS system. For example, when the zero-point output current is 0A, the measured zero-point output voltage is 2.5V; when the BMS system is in a certain operating state and the actual current is 100A, the current output voltage output by the Hall current sensor is 3.0V. Based on these data, the current zero-point output voltage and the current output voltage can be calculated. Subsequently, using the current zero-point output voltage (e.g., 2.5V) and the current output voltage (e.g., 3.0V) as independent variables, and the zero-point output current (0A) and the current sampling current (100A) as dependent variables, a linear fit is performed. For example, the least squares method can be used to solve for the gain factor (e.g., 200A / V) and offset factor (e.g., -500A) of the Hall current sensor. Once these factors are determined, each subsequent voltage output value from the Hall current sensor, such as 2.8V, can be converted into a calibrated current value by applying the calibration formula: Actual Current = Gain Factor × Output Voltage + Offset Factor. For example, for a 2.8V output, the calibrated current is 200 × 2.8 - 500 = 60A. In this way, the measurement accuracy of the Hall current sensor is significantly improved.

[0078] Through the above technical solution, this application can accurately establish a linear model of the Hall current sensor based on its zero-point output current, current zero-point output voltage, current sampling current, and current output voltage at a specific operating point, thereby determining its gain factor and offset factor. This allows for accurate quantification of the Hall current sensor's output characteristics, enabling effective mathematical correction of the sensor's original output signal. By applying these calibration parameters, the Hall current sensor can output more accurate current measurements under various operating conditions, significantly improving its measurement accuracy and reliability, and effectively solving the measurement error problem caused by the uncertainty of the sensor's output characteristics.

[0079] In some embodiments, the gain factor and offset factor of the Hall current sensor are determined based on the zero-point output current, the current zero-point output voltage, the current sampling current, and the current current output voltage, including: performing linear fitting with the current zero-point output voltage and the current current output voltage as independent variables and the zero-point output current and the current sampling current as dependent variables to obtain the gain factor and offset factor.

[0080] The proposed solution uses the output voltage of the Hall current sensor under different current states (i.e., the current zero-point output voltage and the current current output voltage) as the independent variable, and the corresponding actual current values ​​(i.e., the zero-point output current and the current sampling current) as the dependent variable, to perform linear fitting. This method can effectively establish a linear relationship model between the output voltage of the Hall current sensor and the actual current. Through linear fitting, the gain factor representing the sensor sensitivity and the offset factor representing the sensor's zero-point drift can be accurately calculated from these data points. This fitting method based on actual measurement data points can dynamically capture the characteristics of the sensor under the current operating state, thereby overcoming the static errors or drift problems caused by environmental changes that may exist in traditional calibration methods, and providing reliable basic data for subsequent accurate calibration.

[0081] As a specific implementation method, the above-mentioned technical means can be implemented with reference to the following example. For example, after obtaining the current zero-point output voltage, current current output voltage, zero-point output current, and current sampling current, the data points (current zero-point output voltage, zero-point output current) and (current current output voltage, current sampling current) can be input into a linear regression algorithm. This algorithm can use the least squares method to calculate and find an optimal fitting line that minimizes the sum of the squares of the vertical distances from all data points to this line. The slope of this line is the gain factor, and the intercept of this line on the current axis (or the voltage axis intercept obtained through transformation) is the offset factor. This linear fitting process can be implemented in the microcontroller or dedicated signal processing unit inside the BMS system, using its built-in mathematical operation library or by programming the corresponding algorithm.

[0082] By employing the above technical solution, using the current zero-point output voltage and current current output voltage as independent variables, and the zero-point output current and current sampling current as dependent variables, linear fitting can accurately determine the gain factor and offset factor of the Hall current sensor. This method avoids pre-setting sensor characteristics or relying on a single measurement point, instead using a dynamic linear model to reflect the sensor's response characteristics under actual operating conditions. This significantly improves the calculation accuracy of the gain factor and offset factor, thus providing a more accurate parameter basis for subsequent calibration of the Hall current sensor, effectively enhancing the accuracy and reliability of current measurement, especially maintaining high measurement accuracy even when the sensor's operating environment or its own characteristics undergo slight changes.

[0083] In some embodiments, the Hall current sensor is calibrated based on a gain factor and an offset factor, including: acquiring the actual changed current after the BMS system changes state, and the changed output voltage of the Hall current sensor after the BMS system changes state; performing a linear operation on the changed output voltage based on the gain factor and the offset factor to obtain the expected sampling current; and calibrating the gain factor and the offset factor based on the deviation current between the actual changed current and the expected sampling current.

[0084] A BMS system change status refers to a situation where the operating mode or load conditions of the BMS system change during operation. For example, the BMS system may switch from a charging state to a discharging state, or the load current may change significantly, such as switching from a low-power mode to a high-power mode. The actual changed current refers to the real current value flowing through the Hall current sensor after a change in the BMS system state. This actual changed current can be obtained in various ways, such as by measuring it using a high-precision reference current sensor, or by calculating it using known load or power supply parameters in certain specific scenarios. The changed output voltage refers to the voltage value at the output terminal of the Hall current sensor after a change in the BMS system state. This voltage value is an analog or digital signal generated by the Hall current sensor after sensing the actual changed current, reflecting the sensor's response in the current operating state.

[0085] This application's solution dynamically adjusts the calibration parameters of the Hall current sensor by introducing a real-time monitoring and feedback mechanism after changes in the BMS system's state. Specifically, when the BMS system's operating state changes, the execution unit actively acquires the actual changed current flowing through the Hall current sensor and the corresponding changed output voltage. Then, using the known gain factor and offset factor, the changed output voltage is converted into a predicted sampling current. By comparing this predicted sampling current with the actual changed current, a deviation current is obtained, which directly reflects the accuracy of the current calibration parameters. If the deviation current exceeds the acceptable range, it indicates that the characteristics of the Hall current sensor may have drifted. In this case, the execution unit performs real-time calibration of the gain factor and offset factor based on the magnitude and direction of the deviation current. This calibration process enables the Hall current sensor to adapt to environmental changes and its own characteristic drift under different operating states of the BMS system, thereby maintaining high-precision current measurement capabilities. In this way, this application, based on the initial calibration, further realizes adaptive calibration of the Hall current sensor during actual operation, effectively solving the problem of accuracy degradation caused by long-term operation and state changes of the sensor, ensuring that the BMS system can acquire accurate current data.

[0086] The following is a concrete example. As a specific implementation, assume the BMS system switches from a battery charging state to a high-power discharging state. After the state change, the actuator first obtains the actual changed current through a high-precision shunt or an ammeter with a known load; for example, the actual changed current is 50A. Simultaneously, the Hall current sensor outputs the corresponding changed output voltage, for example, 2.5V. At this point, the actuator uses the currently stored gain factor (e.g., 0.05 V / A) and offset factor (e.g., 0.1 V) to perform a linear operation on the changed output voltage, calculating the expected sampling current = (2.5V - 0.1V) / 0.05 V / A = 48A. Comparing the expected sampling current 48A with the actual changed current 50A, the deviation current is found to be 2A. Since the 2A deviation current may exceed a preset current deviation threshold, the actuator will initiate a calibration procedure. The calibration procedure can fine-tune the gain factor and offset factor based on a deviation current of 2A using an iterative algorithm (e.g., gradient descent). For example, the gain factor can be adjusted to 0.049 V / A and the offset factor to 0.09V, so that the expected sampling current is closer to the actual changed current in the next measurement. For instance, in the next state change or periodic calibration, if the actual changed current is still 50A and the sensor output is 2.5V, the new expected sampling current = (2.5V - 0.09V) / 0.049 V / A ≈ 49.18A, and the deviation current is reduced.

[0087] Through the above technical solution, this application enables dynamic and adaptive calibration of the gain factor and offset factor of the Hall current sensor during BMS system operation, especially when the BMS system state changes. This effectively solves the characteristic drift problem caused by long-term operation or environmental changes, and avoids the decrease in measurement accuracy caused by the failure of initial calibration parameters. By continuously monitoring the deviation between the actual changed current and the expected sampling current, and adjusting the calibration parameters in real time accordingly, this application ensures that the Hall current sensor can provide high-precision current measurement data under various operating conditions. This is of great significance for the BMS system to accurately assess battery status, optimize energy management strategies, and improve the overall safety and reliability of the BMS system.

[0088] In some embodiments, the gain factor and offset factor are calibrated based on the current deviation between the actual changed current and the expected sampled current, including: calibrating the gain factor and offset factor when the deviation current reaches a preset current deviation threshold, so that the deviation current does not exceed the current deviation threshold when the BMS system is in various states.

[0089] This application's solution further optimizes the calibration triggering mechanism and objective based on the aforementioned Hall current sensor calibration method. Specifically, after the Hall current sensor samples the current of the BMS system and undergoes preliminary calibration (i.e., performing linear calculations on the changed output voltage based on the gain factor and offset factor to obtain the expected sampled current, and comparing it with the actual changed current), the execution unit continuously calculates the deviation current between the actual changed current and the expected sampled current. To avoid unnecessary frequent calibrations and ensure timely correction when accuracy issues arise, this solution introduces a preset current deviation threshold. Only when the absolute value of the calculated deviation current reaches or exceeds this preset current deviation threshold will the execution unit trigger the calibration operation on the gain factor and offset factor. This condition-triggered calibration mechanism makes the calibration process more efficient and targeted. More importantly, the calibration objective of this solution is not merely to simply correct the current deviation, but to ensure that after calibration, the Hall current sensor's measurement error (i.e., deviation current) can be effectively controlled and never exceed the preset current deviation threshold when the BMS system is in various complex operating states such as charging, discharging, idling, and overload. In this way, the solution can dynamically adapt to changes in the working environment and load of the BMS system, continuously maintain the high-precision measurement performance of the Hall current sensor, thereby improving the reliability and safety of the entire BMS system.

[0090] The following is a concrete example. Assume that during BMS system operation, the Hall current sensor has already obtained preliminary gain and offset factors through initial calibration. The actuator continuously monitors the actual battery current (actual changed current) and the voltage output by the Hall current sensor (changed output voltage), and calculates the expected sampling current using the current gain and offset factors. The actuator compares the actual changed current with the expected sampling current to obtain the deviation current. For example, the preset current deviation threshold can be set to ±0.2A. When the actuator detects that the absolute value of the deviation current first exceeds 0.2A, for example, reaching 0.25A, it immediately initiates the calibration procedure for the gain and offset factors. In the calibration procedure, the actuator can collect actual changed current and changed output voltage data over a recent period (e.g., the past 10 seconds), and, combining the zero-point output current and the current zero-point output voltage, recalculate and update the gain and offset factors using the least squares method. After calibration, the actuator continues to monitor the deviation current and ensures that the measurement deviation of the Hall current sensor is controlled within ±0.2A under various operating conditions, such as when the BMS system switches from high-current discharge to low-current charging, or when it transitions from a normal temperature environment to a low-temperature environment. For example, in a low-temperature environment, if the deviation current approaches or exceeds 0.2A again, the actuator will trigger calibration again to adapt to the impact of temperature changes on sensor performance, thereby ensuring the accuracy of current measurement under all operating conditions.

[0091] Through the above technical solution, this application effectively solves the problem of low efficiency and difficulty in consistently guaranteeing accuracy that may result from unclear calibration timing during Hall current sensor calibration. By introducing a mechanism that only performs calibration when the deviation current reaches a preset current deviation threshold, unnecessary frequent calibrations are avoided, thereby reducing computational burden and resource consumption. Simultaneously, by clearly defining the calibration target as ensuring that the deviation current does not exceed the current deviation threshold under all BMS system states, the measurement accuracy and stability of the Hall current sensor are ensured under all operating conditions of the BMS system, significantly improving the reliability and safety of the BMS system.

[0092] See Figure 5 This application also provides a calibration device for a Hall current sensor, which can implement the above-described calibration method for the Hall current sensor. The device includes: The first module 501 is used to acquire the bias voltage, current output voltage, zero-point output current and zero-point output voltage corresponding to the Hall current sensor when the Hall current sensor is powered on, as well as the current sampling current obtained by the Hall current sensor from the current sampling of the BMS system in the current state. The second module 502 is used to determine the current zero-point output voltage of the Hall current sensor based on the bias voltage, the current output voltage, and the zero-point output voltage. The third module 503 is used to determine the current output voltage of the Hall current sensor based on the bias voltage, the zero-point output voltage and the current zero-point output voltage. The fourth module 504 is used to calibrate the Hall current sensor based on the zero-point output current, the current zero-point output voltage, the current sampling current, and the current output voltage.

[0093] The specific implementation of the calibration device for the Hall current sensor is basically the same as the specific implementation of the calibration method for the Hall current sensor described above, and will not be repeated here.

[0094] Figure 6 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application.

[0095] The following reference Figure 6 To describe an electronic device 600 according to such an embodiment of the present disclosure. Figure 6 The electronic device 600 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.

[0096] like Figure 6 As shown, the electronic device 600 is presented in the form of a general-purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different system components (including storage unit 620 and processing unit 610), a display unit 640, etc.

[0097] The storage unit stores program code, which can be executed by the processing unit 610, causing the processing unit 610 to perform the steps described in the calibration method section of the Hall current sensor described above, according to various exemplary embodiments of this disclosure.

[0098] Storage unit 620 may include a readable medium in the form of a volatile storage unit, such as random access memory (RAM) 6201 and / or cache memory 6202, and may further include a read-only memory (ROM) 6203.

[0099] Storage unit 620 may also include a program / utility 6204 having a set (at least one) program module 6205, such program module 6205 including but not limited to: operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.

[0100] Bus 630 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.

[0101] Electronic device 600 can also communicate with one or more external devices 600' (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with electronic device 600, and / or with any device that enables electronic device 600 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 650. Furthermore, electronic device 600 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 660. Network adapter 660 can communicate with other modules of electronic device 600 via bus 630. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0102] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method.

[0103] The calibration method, apparatus, device, and medium for the Hall current sensor provided in this application dynamically acquire a series of real-time parameters, such as bias voltage, current output voltage, zero-point output current, zero-point output voltage, and current sampling current, each time the Hall current sensor is powered on. Based on these real-time parameters, the current zero-point output voltage and current output voltage are determined, thereby calibrating the sensor. Therefore, by calibrating the Hall current sensor according to its current state each time it is powered on, subtle changes in the bias voltage at each power-on are captured, and the zero-point and current output characteristics of the sensor are recalculated or derived accordingly. This ensures that the Hall current sensor can continuously provide high-precision current measurement even under bias voltage fluctuations, eliminating bias voltage drift each time the Hall current sensor is powered on and improving current measurement accuracy.

[0104] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, or network device, etc.) to execute the methods described above according to the embodiments of this disclosure.

[0105] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0106] Computer-readable storage media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable storage medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0107] Those skilled in the art will understand that the above modules can be distributed in the device as described in the embodiments, or they can be modified accordingly and placed in one or more devices that are unique to this embodiment. The modules in the above embodiments can be combined into one module, or they can be further divided into multiple sub-modules.

[0108] Exemplary embodiments of this disclosure have been specifically shown and described above. It should be understood that this disclosure is not limited to the detailed structures, arrangements, or implementations described herein; rather, this disclosure is intended to cover various modifications and equivalent arrangements contained within the spirit and scope of the appended claims.

Claims

1. A calibration method for a Hall current sensor, characterized in that, include: When the Hall current sensor is powered on, the bias voltage, current output voltage, zero-point output current and the zero-point output voltage corresponding to the zero-point output current of the Hall current sensor are acquired, as well as the current sampling current obtained by the Hall current sensor sampling the current state of the BMS system. The current zero-point output voltage of the Hall current sensor is determined based on the bias voltage, the current output voltage, and the zero-point output voltage. The current output voltage of the Hall current sensor is determined based on the bias voltage, the zero-point output voltage, and the current zero-point output voltage. The Hall current sensor is calibrated based on the zero-point output current, the current zero-point output voltage, the current sampling current, and the current output voltage.

2. The calibration method for the Hall current sensor according to claim 1, characterized in that, Determining the current zero-point output voltage of the Hall current sensor based on the bias voltage, the current output voltage, and the zero-point output voltage includes: The difference between the current output voltage and the zero-point output voltage is calculated to obtain the first deviation voltage; The current zero-point output voltage is determined based on the first deviation voltage and the bias voltage.

3. The calibration method for the Hall current sensor according to claim 1, characterized in that, Determining the current output voltage of the Hall current sensor based on the bias voltage, the zero-point output current, and the current zero-point output voltage includes: The difference between the current zero-point output voltage and the zero-point output voltage is calculated to obtain the second deviation voltage; The current output voltage is determined based on the first deviation voltage and the bias voltage.

4. The calibration method for the Hall current sensor according to claim 1, characterized in that, The calibration of the Hall current sensor based on the zero-point output current, the current zero-point output voltage, the current sampling current, and the current current output voltage includes: Based on the zero-point output current, the current zero-point output voltage, the current sampling current, and the current output voltage, the gain factor and offset factor of the Hall current sensor are determined. The Hall current sensor is calibrated based on the gain factor and the offset factor.

5. The calibration method for the Hall current sensor according to claim 4, characterized in that, The determination of the gain factor and offset factor of the Hall current sensor based on the zero-point output current, the current zero-point output voltage, the current sampling current, and the current current output voltage includes: Using the current zero-point output voltage and the current current output voltage as independent variables, and the zero-point output current and the current sampled current as dependent variables, a linear fit is performed to obtain the gain factor and the offset factor.

6. The calibration method for the Hall current sensor according to claim 4, characterized in that, The calibration of the Hall current sensor based on the gain factor and the offset factor includes: The actual changed current after the BMS system changes state, and the changed output voltage of the Hall current sensor after the BMS system changes state, are obtained. Based on the gain factor and the offset factor, a linear operation is performed on the changed output voltage to obtain the expected sampling current; The gain factor and the offset factor are calibrated based on the deviation current between the actual changed current and the expected sampled current.

7. The calibration method for the Hall current sensor according to claim 6, characterized in that, The calibration of the gain factor and the offset factor based on the current deviation between the actual changed current and the expected sampled current includes: When the deviation current reaches a preset current deviation threshold, the gain factor and the offset factor are calibrated so that the deviation current does not exceed the current deviation threshold when the BMS system is in various states.

8. A calibration device for a Hall current sensor, characterized in that, include: The first module is used to acquire the bias voltage, current output voltage, zero-point output current and zero-point output voltage corresponding to the Hall current sensor when the Hall current sensor is powered on, as well as the current sampling current obtained by the Hall current sensor from the current sampling of the BMS system in the current state. The second module is used to determine the current zero-point output voltage of the Hall current sensor based on the bias voltage, the current output voltage, and the zero-point output voltage. The third module is used to determine the current output voltage of the Hall current sensor based on the bias voltage, the zero-point output voltage, and the current zero-point output voltage. The fourth module is used to calibrate the Hall current sensor based on the zero-point output current, the current zero-point output voltage, the current sampling current, and the current current output voltage.

9. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the calibration method of the Hall current sensor according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the calibration method of the Hall current sensor according to any one of claims 1 to 7.