Current correction method and device for shunt, shunt and electrical equipment
Patent Information
- Application Number
- CN202611513845.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-28
- Publication Date
- 2026-10-30
AI Technical Summary
为保证采样精度,需对分流器进行校准,相关技术中,主要存在在出厂前对分流器进行内部参数校准,或将分流器放入专有校准装置中通过对分流器施加基准电压以根据偏移值进行校准等方式进行校准,然而,随着使用时间的推移,分流器中精密电阻会老化,下线时校准参数无法适用于老化后的分流器,进而影响分流器的采样精准度;而将分流器放入专有校准装置中进行校准会影响分流器的正常使用
[0005]在上述技术方案中,通过与分流器串联或并联设置目标电路,利用目标电路中电池对应的电压电流关系结合欧姆定律,由电池的端电压得到流经分流器的电流值,降低了电表采样误差对采样值的影响,使得最终得到的第二电流值更接近真实流经分流器的电流值;在此基础上,根据第二电流值和分流器采集的第一电流值之间的误差所学习的修正函数来修正分流器在实际应用过程中采集的采样电流,显著提高修正精度和准确度;且目标电路的结构简单,设计成本低,可直接接入分流器原有设备回路中,从而在分流器工作的过程中同步学习修正函数以对分流器进行校验,不影响分流器的正常工作,实现分流器使用全生命周期内采集电流的准确校验。
Smart Images

Figure CN123009780A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of battery technology, and more specifically, to a current correction method, apparatus, shunt, and electrical equipment for a shunt. Background Technology
[0002] A shunt is a sensor primarily used for the precise measurement of direct current. The shunt measures current mainly through its internal precision resistor. According to Ohm's law I=U / R, the current can be calculated by measuring the voltage across the precision resistor and obtaining its resistance value. To ensure sampling accuracy, the shunt needs to be calibrated. Related technologies mainly involve internal parameter calibration before shipment, or calibrating the shunt in a dedicated calibration device by applying a reference voltage and calibrating based on the offset value. However, over time, the precision resistor in the shunt ages, and the calibration parameters become inapplicable to the aged shunt upon termination, thus affecting the sampling accuracy. Furthermore, calibrating the shunt in a dedicated calibration device can interfere with its normal operation. Summary of the Invention
[0003] This application provides a current correction method, apparatus, shunt, and electrical equipment for a shunt, so as to achieve accurate verification of the current collected throughout the entire life cycle of the shunt.
[0004] In a first aspect, embodiments of this application provide a current correction method for a shunt, wherein the shunt is configured in series with a power supply device and a power consumption device in a main circuit, and the shunt is connected in parallel or in series with a target circuit, the target circuit including a battery; the method includes: Obtain the sampled current value of the shunt; The sampled current value is corrected based on the correction function; wherein... The correction function is obtained based on the correlation between the first current value and the second current value collected by the shunt. The second current value is obtained from the terminal voltage of the battery using the voltage-current relationship corresponding to the battery.
[0005] In the above technical solution, by setting up a target circuit in series or parallel with the shunt, and using the voltage-current relationship of the battery in the target circuit combined with Ohm's law, the current value flowing through the shunt is obtained from the battery's terminal voltage. This reduces the impact of meter sampling error on the sampled value, making the final obtained second current value closer to the actual current value flowing through the shunt. Based on this, a correction function learned from the error between the second current value and the first current value collected by the shunt is used to correct the sampled current collected by the shunt in actual application, significantly improving the correction accuracy and precision. Moreover, the target circuit has a simple structure and low design cost, and can be directly connected to the original equipment circuit of the shunt. Thus, the correction function is learned synchronously during the operation of the shunt to verify the shunt without affecting its normal operation, achieving accurate verification of the current collected throughout the entire life cycle of the shunt.
[0006] In some embodiments, the target circuit includes a first resistor, the battery, and a first switch connected in series; the target circuit is configured in parallel with the shunt. or, If the power supply device includes a battery, the target circuit includes the battery.
[0007] In some embodiments, the second current value is obtained from the terminal voltage of the battery using the voltage-current relationship corresponding to the battery, including: The open-circuit voltage and the terminal voltage of the battery are input to the equivalent circuit model corresponding to the battery to obtain the third current value flowing through the battery. The second current value is obtained based on the third current value.
[0008] In some embodiments, the target circuit includes a first resistor, the battery, and a first switch connected in series; the target circuit is configured in parallel with the shunt. The process of obtaining the second current value based on the third current value includes: The second current value is obtained based on the third current value, the resistance value of the first resistor, the resistance value of the battery, and the resistance value of the shunt.
[0009] In some embodiments, where the power supply device includes a battery, the target circuit includes the battery; The process of obtaining the second current value based on the third current value includes: The third current value is used as the second current value.
[0010] In some embodiments, the correction function is obtained based on the correlation between the first current value and the second current value collected by the shunt, including: When the target circuit is turned on and an excitation current is applied to the main circuit, the first current value collected by the shunt and the terminal voltage of the battery are acquired; the terminal voltage is used to convert the second current value. The correction function is obtained based on the degree of difference between multiple sets of the first current value and the second current value.
[0011] In some embodiments, the correction function is obtained based on the correlation between the first current value and the second current value collected by the shunt, including: Multiple sets of first and second current values are obtained under multiple different ambient temperatures and multiple different excitation currents. The correction function is obtained based on the correlation between the multiple sets of first current values and second current values.
[0012] In the above technical solution, by applying different magnitudes of excitation current to the main circuit under different ambient temperatures, the first current value and the second current value under the target ambient temperature and the target magnitude of excitation current are obtained. This allows for the acquisition error of the shunt under different currents and temperatures. Furthermore, based on changes in ambient temperature and current, the accuracy of the error correction is adaptively adjusted to improve the accuracy of the shunt current correction, broaden the application scenarios, and adapt to complex and variable working environments with different temperatures and currents.
[0013] In some embodiments, when the excitation current is a continuously changing current, the second current value is obtained through the following steps: The changing state of charge and the open-circuit voltage that changes with the state of charge are obtained by the ampere-hour integration method. The equivalent circuit model is updated based on the open-circuit voltage that changes with the state of charge, and a second current value that changes with time is obtained.
[0014] In some embodiments, the method includes: If the difference between the corrected and uncorrected sampled current values is greater than the target threshold, a fault message is output.
[0015] Secondly, embodiments of this application provide a current correction device for a shunt.
[0016] Thirdly, embodiments of this application provide a shunt.
[0017] Fourthly, embodiments of this application provide an electrical device. Attached Figure Description
[0018] Figure 1This is one of the flowcharts illustrating a current correction method for a shunt provided in some embodiments of this application; Figure 2 This is a second schematic flowchart illustrating a current correction method for a shunt provided in some embodiments of this application. Figure 3 This is the third flowchart illustrating a current correction method for a shunt provided in some embodiments of this application. Figure 4 One of the schematic diagrams illustrating the principle of a current correction method for a shunt provided in some embodiments of this application; Figure 5 A schematic diagram of the principle of a current correction method for a shunt provided in some embodiments of this application; Figure 6 This is one of the schematic diagrams of the target circuit provided in some embodiments of this application; Figure 7 This is a second schematic diagram of the target circuit provided in some embodiments of this application; Figure 8 This is a schematic diagram of the structure of a current correction device for a shunt provided in some embodiments of this application. Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0020] Unless otherwise defined, all technical and scientific terms used in this application have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used in the description of this application is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms "comprising" and "having," and any variations thereof, in the description, claims, and accompanying drawings of this application are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the description, claims, or accompanying drawings of this application are used to distinguish different objects, not to describe a specific order or hierarchy.
[0021] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application can be combined with other embodiments.
[0022] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," "linking," and "attachment" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal communication between two components. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0023] In this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, in this application, the character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0024] The following description, in conjunction with the accompanying drawings, details the current correction method for a shunt, the current correction device for a shunt, the shunt, the electrical equipment, and the readable storage medium provided in this application, through specific embodiments and application scenarios.
[0025] The current correction method for the shunt can be applied to the terminal, and can be executed by the hardware or software in the terminal.
[0026] The current correction method for a shunt provided in this application embodiment can be executed by an electrical device or a functional module or entity in the electrical device that can implement the current correction method for the shunt.
[0027] To ensure sampling accuracy, the shunt needs to be calibrated. Related technologies mainly involve internal parameter calibration of the shunt before it leaves the factory, or calibrating the shunt in a dedicated calibration device by applying a reference voltage to the shunt and calibrating based on the offset value. However, as time goes on, the precision resistors in the shunt will age, and the calibration parameters will no longer be applicable to the aged shunt when it is taken off the production line, thus affecting the sampling accuracy of the shunt. Furthermore, calibrating the shunt in a dedicated calibration device will affect its normal operation.
[0028] Based on the above considerations, in order to solve the problem that it is impossible to correct the sampling accuracy of the shunt while it is working normally, and that the accuracy verification is not very accurate, this application designs a current correction method for the shunt, including obtaining the sampling current value of the shunt; correcting the sampling current value based on a correction function; wherein, the correction function is obtained based on the first current value and the second current value collected by the shunt, and the second current value is obtained based on the equivalent circuit model corresponding to the battery and the battery terminal voltage conversion.
[0029] This current correction method for shunts uses a target circuit connected in series or parallel with the shunt. Utilizing the voltage-current relationship of the battery in the target circuit and Ohm's law, the current flowing through the shunt is obtained from the battery's terminal voltage. This reduces the impact of meter sampling errors on the sampled value, making the final second current value closer to the actual current flowing through the shunt. Based on this, a correction function learned from the error between the second current value and the first current value collected by the shunt is used to correct the sampled current collected by the shunt in actual application, significantly improving correction accuracy and precision. Furthermore, the target circuit has a simple structure and low design cost, and can be directly connected to the existing shunt circuit. This allows for synchronous learning of the correction function during shunt operation to verify the shunt without affecting its normal operation, achieving accurate verification of the collected current throughout the shunt's entire lifespan.
[0030] like Figure 1 As shown, the current correction method for the shunt includes steps 110 and 120.
[0031] The shunt 305 is a sensor used to measure DC current. The shunt 305 mainly relies on its internal precision resistor to measure the current. According to Ohm's law I=U / R, the current can be calculated by measuring the voltage across the precision resistor and obtaining the resistance value of the precision resistor.
[0032] like Figure 6 or Figure 7 As shown, the shunt 305 is connected in series with the power supply device 306 and the power consumption device 307 in the main circuit. The shunt 305 is connected in parallel or in series with a target circuit, which includes a battery 304.
[0033] In some embodiments, the power supply device 306 may be an external power source or a single battery cell, battery device, energy storage device, energy storage system, etc. The power consumption device 307 may be a load or other power consumption device 307, etc.
[0034] In some embodiments, the battery 304 included in the target circuit may be a single battery cell, a battery device, or an energy storage device.
[0035] In some embodiments, such as Figure 6 As shown, the target circuit includes a first resistor 303, a battery 304, and a first switch 308 connected in series; the target circuit is connected in parallel with the shunt 305. The first resistor 303 is used to prevent large currents from being generated in the branch, ensuring the normal operation of the circuit.
[0036] In some embodiments, such as Figure 7 As shown, when the power supply device 306 includes a battery 304, the target circuit includes the battery 304.
[0037] In this embodiment of the application, the battery cell can be a secondary battery, which refers to a battery cell that can be recharged to activate the active materials and continue to be used after the battery cell has been discharged.
[0038] The battery cell can be a lithium-ion battery, sodium-ion battery, sodium-lithium-ion battery, lithium metal battery, sodium metal battery, lithium-sulfur battery, magnesium-ion battery, nickel-metal hydride battery, nickel-cadmium battery, lead-acid battery, etc., and the embodiments of this application are not limited to this.
[0039] Battery cells can be cylindrical, flat, cuboid, or other shapes, and this application embodiment is not limited to any of these. Battery cells are generally classified into three types according to their packaging method: cylindrical battery cells, square battery cells, and pouch battery cells, and this application embodiment is not limited to any of these types either.
[0040] A battery cell includes a casing, electrode components, and electrolyte. The casing houses the electrode components and electrolyte. The electrode components consist of a positive electrode, a negative electrode, and a separator. The battery cell primarily functions by the movement of metal ions between the positive and negative electrode components. The positive electrode includes a positive current collector and a positive active material layer. The positive current collector includes a current collector body and a positive electrode tab. The positive active material layer is coated on the surface of the current collector body, while the positive electrode tab is not coated with the positive active material layer and protrudes from the current collector body. Taking a lithium-ion battery as an example, the material of the positive current collector can be aluminum, and the positive active material can be lithium cobalt oxide, lithium iron phosphate, ternary lithium, or lithium manganese oxide, etc. The negative electrode includes a negative current collector and a negative active material layer. The negative current collector includes a current collector body and a negative electrode tab. The negative active material layer is coated on the surface of the current collector body, while the negative electrode tab is not coated with the negative active material layer and protrudes from the current collector body. The negative electrode current collector can be made of copper, and the negative electrode active material can be carbon or silicon, etc. To ensure that a large current can be passed without melting, there are multiple positive electrode tabs stacked together, and there are multiple negative electrode tabs stacked together.
[0041] The separator can be made of PP (polypropylene) or PE (polyethylene), etc. Furthermore, the electrode assembly can be a wound structure or a stacked structure; the embodiments of this application are not limited to these.
[0042] The technical solutions described in the embodiments of this application are applicable to various electrical devices 307 that use individual battery cells, such as mobile phones, portable devices, laptops, electric vehicles, electric toys, power tools, vehicles, ships, and spacecraft, etc. For example, spacecraft include airplanes, rockets, space shuttles, and spacecraft. The individual battery cells are used to store or provide electrical energy.
[0043] The battery apparatus mentioned in the embodiments of this application may include one or more battery cell assemblies for providing voltage and capacity. A battery cell assembly may include multiple battery cells connected in series, parallel, or mixed connections via a busbar.
[0044] In some embodiments, a battery cell assembly is typically formed by arranging multiple battery cells.
[0045] As an example, a battery cell assembly can be a battery module, which consists of multiple battery cells arranged and fixed together to form a single unit. As another example, a battery module can be formed by bundling multiple battery cells together with cable ties.
[0046] In some embodiments, the battery device may be a battery pack, which includes a housing and one or more individual battery cells housed within the housing.
[0047] As an example, the battery cell assembly can be a battery module, and the battery cell assembly can be housed in the housing by fixing the battery module in the housing.
[0048] As an example, battery cell assemblies can also be housed in a housing by directly fixing multiple battery cells to the housing.
[0049] As an example, the enclosure may include a first enclosure and a second enclosure. The first enclosure and the second enclosure are fastened together to form a closed space inside the enclosure to house the individual battery cells. Here, "closed" refers to covering or closing, and can be either sealed or unsealed. The first enclosure may be a top cover or a bottom plate.
[0050] As an example, the enclosure may include a top cover, a frame, and a bottom plate. The top cover and bottom plate are connected to the frame, creating an enclosed space inside the enclosure to house the individual battery cells.
[0051] In some embodiments, the housing may be part of the vehicle's chassis structure. For example, a portion of the housing may be at least a part of the vehicle's floor, or a portion of the housing may be at least a part of the vehicle's crossbeams and longitudinal beams.
[0052] The technical solutions described in the embodiments of this application are applicable to various electrical devices that use battery devices, such as mobile phones, portable devices, laptops, electric vehicles, electric toys, power tools, vehicles, ships, and spacecraft, etc. For example, spacecraft include airplanes, rockets, space shuttles, and spacecraft. The battery device is used to store or provide electrical energy.
[0053] The energy storage device mentioned in this application embodiment includes one or more battery clusters to improve the voltage and capacity of the energy storage device. A battery cluster may include multiple battery devices, which are connected in series via a busbar to increase the voltage of the energy storage device. When the energy storage device includes multiple battery clusters, the multiple battery clusters are connected in parallel to increase the capacity of the energy storage device.
[0054] Energy storage devices can be used in energy storage power stations, wind power generation systems, solar power generation systems, mobile power systems, or temporary power supply systems. Energy storage devices can store electrical energy as needed and output it when appropriate. For example, an energy storage device can store electrical energy during off-peak hours and provide power to relevant users or electrical devices during peak hours. The energy storage system provided in this application embodiment can be any power system that requires energy storage devices.
[0055] In some embodiments, the energy storage device is an energy storage container or an energy storage cabinet.
[0056] In some embodiments, the energy storage device may include a cabinet and one or more battery clusters housed within the cabinet.
[0057] In some embodiments, the energy storage device may include a thermal management device, a main control device, a central control device, a power distribution device, and a fire protection device.
[0058] As an example, the thermal management device may include a liquid cooling unit that supplies coolant to each battery unit via piping to regulate the temperature of the individual battery cells.
[0059] As an example, the master control unit can serve as the battery management unit for the battery cluster, used to monitor and manage the battery cluster. The master control unit can monitor information such as the current, voltage, power, or temperature of the battery cluster. For example, it can control the charging and discharging current and voltage of the battery cluster. The master control unit includes a slave battery management unit (SBMU), a fusion switch, and other devices.
[0060] As an example, a central control unit can serve as the battery management unit for an energy storage device, used to monitor and manage the device. The central control unit can monitor information such as the energy storage device's current, voltage, power, state of charge, or temperature. For instance, it can control the charging and discharging current and voltage of the energy storage device. As an example, the central control unit may include an Insulation Monitoring Module (IMM), a Master Battery Management Unit (MBMU), an Ethernet (ETH) network, and a fiber optic conversion device.
[0061] As an example, a fire protection system includes control panels, detectors, alarm devices, etc., used to detect, alarm, or extinguish fires in energy storage systems.
[0062] As an example, power distribution equipment can be used to distribute power to energy storage devices and their users.
[0063] The technical solutions described in the embodiments of this application are applicable to various electrical devices that use energy storage devices, such as mobile phones, portable devices, laptops, electric vehicles, electric toys, power tools, vehicles, ships, and spacecraft, etc. For example, spacecraft include airplanes, rockets, space shuttles, and spacecraft. The energy storage device is used to store or provide electrical energy.
[0064] Step 110: Obtain the sampling current value of the shunt; In this step, the sampled current value is the current flowing through shunt 305, sampled by shunt 305. In actual execution, current sampling can be performed periodically at certain time intervals to obtain the sampled current value.
[0065] Step 120: Correct the sampled current value based on the correction function.
[0066] In this step, the correction function is used to characterize the mapping relationship between the sampled current value and the corresponding real current value, or to characterize the mapping relationship between the difference between the sampled current value and the real current value corresponding to the sampled current value and the sampled current value, and is used to compensate the sampled current value so that the compensated current value is closer to the real current value.
[0067] In actual implementation, the correction function can be queried based on the sampled current value to obtain the actual current value or the compensation current value corresponding to the sampled current value.
[0068] The correction function can be learned in advance or learned synchronously in real time during the normal operation of the splitter 305.
[0069] The correction function is obtained based on the correlation between the first current value and the second current value collected by the shunt 305. The first current value is the data directly collected by the shunt 305. The second current value is obtained from the terminal voltage of the battery 304 using the voltage-current relationship corresponding to the battery 304. The second current value can be approximated as the actual current value flowing through the shunt 305.
[0070] The voltage-current relationship corresponding to battery 304 is used to characterize the correlation between the terminal voltage and the current flowing through battery 304. In some embodiments, the voltage-current relationship corresponding to battery 304 can be pre-calibrated. The terminal voltage is the voltage across battery 304 when current flows through it.
[0071] The terminal voltage of battery 304 can be obtained through a battery management system (BMS). It is understood that the sampling accuracy of a BMS is much higher than that of an external ordinary electricity meter. In some embodiments, the terminal voltage of battery 304 can be obtained through a voltage acquisition device 302.
[0072] It should be noted that the target circuit in this application is not an electricity meter. This target circuit provides the terminal voltage of its internal battery 304, which is then converted using Ohm's law to obtain a second current value characterizing the current flowing through the shunt 305. Compared to directly collecting the current value from an electricity meter, this reduces the impact of meter sampling errors on subsequent correction results and improves sampling accuracy.
[0073] It is understandable that since the target circuit and the shunt 305 are connected in different ways, the calculation method for the second current value flowing through the shunt 305, which is calculated based on the terminal voltage of the battery 304 inside the target circuit, may also differ.
[0074] In some embodiments, the voltage-current relationship corresponding to battery 304 may include the equivalent circuit model corresponding to battery 304.
[0075] The equivalent circuit model (ECM) can be a first-order RC model, a second-order RC model, or other multi-order RC models, and the equivalent circuit model can be pre-calibrated.
[0076] Figure 4 An example of a second-order equivalent circuit model is provided, which exhibits high fitting performance to the external characteristics of the battery. For example... Figure 4 As shown, the equivalent circuit model includes a first RC network and a second RC network. The first RC network includes a first capacitor and a second resistor connected in parallel, used to simulate the electrochemical polarization of the battery, which corresponds to the charge transfer process. It has a small time constant and a fast response speed. The second RC network includes a second capacitor and a third resistor connected in parallel, used to simulate the concentration polarization of the battery. It corresponds to the diffusion process of lithium ions in the electrode material or electrolyte. It has a large time constant and a slow response speed. The mathematical model of this second-order equivalent circuit model is shown below: Ud1(i)=Ud1(i-1) exp(-Δt / (Rd1 C1))+(1-exp(-Δt / (Rd1 C1)) Rd1 Cur(i) Equation 1 Ud2(i)=Ud2(i-1) exp(-Δt / (Rd2 C2))+(1-exp(-Δt / (Rd2 C2))) Rd2 Cur(i) Equation 2 Ut(i)=OCV+Ud1(i)+Ud2(i)+Cur(i) R0 formula 3 Wherein, Ud1 is the voltage drop of the first RC network, Ud2 is the voltage drop of the second RC network; Rd1 is the resistance of the second resistor; C1 is the capacitance of the first capacitor; Rd2 is the resistance of the third resistor; C2 is the capacitance of the second capacitor; R0 is the internal resistance in ohms; Ut(i) is the battery terminal voltage calculated at time i; Cur(i) is the current flowing through the battery calculated at time i, Δt is the sampling time; OCV is the open-circuit voltage of the battery, which is a nonlinear function of the state of charge (SOC). The state of charge is used to characterize the proportion of available energy (i.e., current remaining capacity) in the battery to its total capacity. SOC is usually expressed as a percentage (%), with a value ranging from 0% to 100%.
[0077] Ud1, Ud2, C1, C2, and R0 are the model parameters of the equivalent circuit model. The battery can be pre-tested by offline calibration methods, and the parameters in the model can be determined using current-voltage data and optimization algorithms.
[0078] Open-circuit voltage is the voltage between the positive and negative electrodes of a battery when there is no current excitation for a long time and the electrochemical reaction inside the battery reaches a state of complete thermodynamic equilibrium.
[0079] In some embodiments, the method includes: If the difference between the corrected and uncorrected sampled current values is greater than the target threshold, a fault message is output.
[0080] In this embodiment, the difference can be a difference or a ratio, etc. The target threshold can be set based on a user-defined setting or according to the current accuracy evaluation standard. For example, for currents below 100A, the difference between the first current value and the second current value should be less than or equal to 5A; for currents of 100A and above, the difference between the first current value and the second current value should be less than or equal to 10A. If the difference between the corrected sampled current value and the uncorrected sampled current value is greater than the target threshold, it indicates that the current value collected by the shunt 305 has a large sampling error, and fault information can be output for the user to repair.
[0081] Fault information includes, but is not limited to: specific numerical values of the difference and fault prompts.
[0082] The following section provides a detailed explanation of how to obtain the first current data, the second current data, and the correction function.
[0083] In some embodiments, the correction function is obtained based on the correlation between the first current value and the second current value collected by the shunt 305, including: When the target circuit is turned on and an excitation current is applied to the main circuit, the first current value collected by the shunt 305 and the terminal voltage of the battery 304 are obtained; the terminal voltage is used to convert it into a second current value. A correction function is obtained based on the degree of difference between multiple sets of first and second current values.
[0084] In this embodiment, when the target circuit includes a first switch 308, the target circuit being turned on includes the first switch 308 being closed.
[0085] The excitation current can be a pulsed current to ensure that the state of charge of the energy storage battery remains unchanged before and after excitation.
[0086] In some embodiments, the duration of the excitation current is less than or equal to a first time threshold, which can be based on a user-defined setting, such as 10s or 8s.
[0087] It should be noted that the excitation current can be a periodic current under fixed operating conditions (i.e., a fixed magnitude or a fixed variation pattern) or a continuous current under random operating conditions (i.e., the magnitude of the current is randomly adjusted).
[0088] The following is combined Figure 2 The implementation process under fixed operating conditions is explained.
[0089] 101. Establish an equivalent circuit model and obtain the model parameters of the equivalent circuit model; 102. Obtain battery OCV data 103. The circuit generates a pulse current excitation and obtains the first current value from the shunt 305, and obtains the terminal voltage from the voltage acquisition device 302; 104. Substitute the terminal voltage into the equivalent circuit model to obtain the second current value; 105. Compare the first current value and the second current value, and determine whether the difference between the first current value and the second current value is greater than the target threshold. 106. Obtain multiple sets of first and second current values under fixed operating conditions; 107. Establish the functional relationship between the first current value and the second current value, and identify the parameters in the function through an optimization algorithm; 108. This function continuously corrects the current collected by the shunt 305.
[0090] In some embodiments, the second current value is obtained from the terminal voltage of battery 304 using the voltage-current relationship corresponding to battery 304, including: The open-circuit voltage and terminal voltage of battery 304 are input to the equivalent circuit model corresponding to battery 304 to obtain the third current value flowing through battery 304. The second current value is obtained based on the third current value.
[0091] In this embodiment, the method for obtaining the third current value based on the terminal voltage is similar for various target circuits. However, the method for calculating the second current value based on the third current value should be selected according to the series and parallel connection method between the target circuit and the shunt 305.
[0092] like Figure 6 As shown, in some embodiments, the target circuit includes a first resistor 303, a battery 304, and a first switch 308 connected in series; the target circuit is connected in parallel with the shunt 305. Based on the third current value, the second current value is obtained, including: The second current value is obtained based on the third current value, the resistance value of the first resistor 303, the resistance value of the battery 304, and the resistance value of the shunt 305.
[0093] In this embodiment, such as Figure 6As shown, the shunt 305, power supply device 306, and power consumption device 307 are connected in series to form the main circuit; the first resistor 303, battery 304, and first switch 308 are connected in series and then in parallel with the shunt 305; the voltage acquisition device 302 and temperature acquisition device are connected to the battery 304 to acquire the operating temperature and terminal voltage of the battery 304. The host computer 301 is electrically connected to the shunt 305, voltage acquisition device 302, and temperature acquisition device respectively, and acts as the main processor. It receives the first current value acquired by the shunt 305 and the terminal voltage of the battery 304 acquired by the voltage acquisition device 302, converts them into a second current value, and compares it with the first current value.
[0094] In actual operation, the target circuit is connected in the loop in parallel with the shunt 305. The voltage acquisition device 302 is connected to the battery 304 to collect the voltage across the battery 304. Closing the first switch 308 generates a stable excitation current in the main circuit. The shunt 305 collects the current flowing through it as the first current value, and the voltage acquisition device 302 collects the terminal voltage across the battery 304. After the excitation current ends, the first switch 308 is disconnected, preventing further current from flowing through the target circuit.
[0095] After obtaining the terminal voltage across the battery 304, the third current value flowing through the battery 304 is obtained according to the pre-calibrated equivalent circuit model corresponding to the battery 304. Based on Ohm's law, and combining the third current value, the resistance value of the first resistor 303, the resistance value of the battery 304, and the resistance value of the shunt 305, the second current value flowing through the shunt 305 is obtained.
[0096] It is understandable that when the pulse current flows through battery 304, the terminal voltage Ut of battery 304 is determined by the open-circuit voltage OCV, the ohmic internal resistance, and the two RC polarization networks in the equivalent circuit model. In the equivalent circuit model, each model parameter and the open-circuit voltage have been pre-calibrated. By substituting these model parameters, open-circuit voltage, and the terminal voltage of battery 304 into Equations 1 to 3 above, and using optimization algorithms such as genetic algorithms, particle swarm optimization, and least squares methods, the third current value of the branch where battery 304 is located can be calculated.
[0097] In some embodiments, the second current value can be obtained from the third current value using the following formula: Cur
[305] = Cur
[304] (R
[304] +R
[303] ) / R
[305] Equation 4 Wherein, Cur
[305] is the second current value of Cur
[305] , R
[303] is the resistance value of the first resistor 303, R
[304] is the resistance value of the battery 304, and R
[305] is the resistance value of the shunt 305.
[0098] like Figure 7 As shown, in some embodiments, when the power supply device 306 includes a battery 304, the target circuit includes a battery 304. Based on the third current value, the second current value is obtained, including: Use the third current value as the second current value.
[0099] In this embodiment, such as Figure 7 As shown, the target circuit is the battery 304 itself. The voltage acquisition device 302 and temperature acquisition device are directly electrically connected to the power supply device 306 to acquire the terminal voltage and operating temperature of the battery 304. Since the power supply device 306 itself contains an energy storage battery, there is no need to set up an additional energy storage battery. Therefore, the power supply device 306 itself can serve as the target circuit, and the equivalent circuit model corresponding to the battery 304 can be pre-calibrated. In this case, the method for obtaining the second current value is similar to that in the previous structure.
[0100] In actual implementation, such as Figure 7 As shown, a stable excitation current is generated in the main circuit. The shunt 305 collects the current flowing through itself as the first current value, and the voltage acquisition device 302 collects the terminal voltage across the battery 304.
[0101] After obtaining the terminal voltage across battery 304, the third current value flowing through battery 304 is obtained according to the pre-calibrated equivalent circuit model corresponding to battery 304. The specific calculation method is similar to that for the third current value and will not be elaborated here. According to the circuit principle, the current flowing through battery 304 is equal to the current flowing through shunt 305, that is, the third current value is the second current value.
[0102] In most related technologies, the shunt 305 is calibrated with multiple currents of different magnitudes before it is off the production line to recalibrate the internal parameters of the shunt 305 in order to recalibrate the resistance value of the precision resistor. However, as the shunt 305 is used, the precision resistor will age, making the calibration parameters unsuitable for the aged shunt 305 when it is off the production line.
[0103] In related technologies, there is also a method that compares the current value collected by the electricity meter with the sampled current of the shunt 305 to correct the sampled current of the shunt 305. However, the electricity meter itself has sampling errors. If the current value collected by the electricity meter is used as the accurate value to correct the shunt 305, it will further introduce the meter's sampling error, thus affecting the accuracy of the correction. Moreover, as the electricity meter ages over time, it will also introduce sampling errors, further affecting the accuracy of the correction.
[0104] In this application, a correction function is constructed by learning the error between the first current value and the second current value. Only one calibration is required, and continuous correction can be performed in subsequent applications. Moreover, the target circuit has a simple structure and low design cost. It can be directly connected to the original equipment circuit of the shunt 305. The correction function is learned synchronously during the process of the shunt 305 being connected to the power supply device 306 and the load working normally to correct the shunt 305. High-precision continuous verification and correction of the shunt 305 can be achieved without affecting the normal use of the shunt 305. In addition, by setting up the target circuit in series or parallel with the shunt 305, the battery voltage of the target circuit itself is used, combined with the equivalent circuit model and Ohm's law, to convert it into the current value flowing through the shunt 305. This reduces the influence of the meter sampling error on the sampled value, making the final second current value closer to the actual current value flowing through the shunt 305, thereby improving the correction accuracy and precision. According to the current correction method for shunt 305 provided in this application embodiment, a target circuit is set up in series or parallel with the shunt. By utilizing the voltage-current relationship of the battery in the target circuit and Ohm's law, the current value flowing through the shunt is obtained from the battery terminal voltage. This reduces the influence of meter sampling error on the sampled value, making the final obtained second current value closer to the actual current value flowing through the shunt. Based on this, a correction function learned from the error between the second current value and the first current value collected by the shunt is used to correct the sampled current collected by the shunt in actual application, significantly improving the correction accuracy and precision. Moreover, the target circuit has a simple structure and low design cost, and can be directly connected to the original equipment circuit of the shunt. Thus, the correction function is learned synchronously during the operation of the shunt to verify the shunt without affecting the normal operation of the shunt, achieving accurate verification of the current collected throughout the entire life cycle of the shunt.
[0105] In some embodiments, the correction function is obtained based on the correlation between the first current value and the second current value collected by the shunt 305, including: Multiple sets of first and second current values are obtained under multiple different ambient temperatures and multiple different excitation currents. Based on the correlation between multiple sets of first and second current values, a correction function is obtained.
[0106] In this embodiment, the target ambient temperature can be any ambient temperature value among different ambient temperatures, and the target excitation current can be any excitation current among different sizes.
[0107] In some embodiments, multiple experimental groups of excitation currents ranging from target ambient temperature to target size can be set to obtain the first current value and the second current value under the action of different experimental group data.
[0108] In some embodiments, while keeping the same ambient temperature constant, different magnitudes of excitation current can be periodically applied to the main circuit to obtain a first current value and a second current value; then the ambient temperature is changed, and different magnitudes of excitation current are periodically applied to the main circuit to obtain a first current value and a second current value, and so on, until multiple sets of first current values and second current values are obtained.
[0109] In some embodiments, the excitation current can be a pulsed current that changes sequentially from small to large or from large to small. A rest period is provided between each application cycle, during which the excitation current is zero. The duration of the rest period can be based on a user-defined setting, as long as the duration of the rest period is greater than that of battery 304 or the depolarization time of battery 304. Figure 5 An example of a continuous pulsed current with an excitation current that changes sequentially from small to large is given.
[0110] Based on the error characteristics of the shunt 305 under different excitation currents and ambient temperatures, a correction function is established between the first current value and the second current value. This correction function can be used to continuously correct the current collected by the shunt 305.
[0111] In some embodiments, correction functions corresponding to the environmental temperature and current magnitude can be constructed based on multiple sets of target ambient temperature to target magnitude. In some embodiments, correction functions that can uniformly characterize all factors such as temperature and current can also be constructed.
[0112] In some embodiments, the correction function can be obtained by fitting ambient temperature, room temperature, first current value, and second current value, etc.
[0113] In some embodiments, the constructed correction function is as follows: f(x) = a(t-T0)^2 + bx + c (Equation 5) Where a, b, and c are parameters, c is the zero-drift correction part, which refers to the error of the current sensor under zero current conditions; f(x) is the second current value, and x is the first current value; a(t-T0)^2 is the ambient temperature correction part, T0 is the room temperature, and t is the ambient temperature; it can be seen that as the difference between the ambient temperature and the room temperature increases, the current error increases in a square relationship; bx is the current correction part, and it can be seen that the current error is linearly related to the actual current magnitude.
[0114] In actual execution, multiple sets of first and second current values can be substituted into the correction function, and the values of a, b, and c can be obtained using optimization algorithms. Optimization algorithms include, but are not limited to, genetic algorithms, particle swarm optimization algorithms, least squares methods, and other algorithms.
[0115] After obtaining the correction function, in subsequent practical applications, when the sampled current value collected by the shunt 305 is obtained, there is no need to recalibrate. The corrected current value can be obtained directly from the pre-built correction function based on the ambient temperature and the current value range of the sampled current value in the actual working scenario of the shunt 305, or the compensation current value compared with the corrected current value, and thus the corrected current value can be obtained.
[0116] Based on the current acquisition principle of shunt 305, the error of shunt 305 may vary depending on different currents and temperatures. For example, under low current, the voltage drop across shunt 305 is very small (e.g., tens of microvolts). In this case, the inherent input offset voltage of the downstream measurement circuit (such as the current sensing amplifier) becomes particularly prominent, leading to a larger measurement error. Under high current, the voltage drop across shunt 305 is more significant, and the measurement error is relatively smaller.
[0117] For example, at room temperature, the resistance value of the precision resistor inside the shunt 305 is stable and does not easily change, resulting in a small measurement error. However, at high and low temperatures, the resistance value drifts due to temperature, leading to a larger measurement error.
[0118] According to the current correction method for shunt 305 provided in the embodiments of this application, by applying different magnitudes of excitation current to the main circuit under different ambient temperatures, the first current value and the second current value under the target ambient temperature and the target magnitude of excitation current are obtained. The acquisition error of shunt 305 under different current and temperature can be obtained. Then, according to the changes in different ambient temperatures and currents, the accuracy of the correction error can be adaptively adjusted to improve the current correction accuracy of shunt 305, broaden the application scenarios, and adapt to complex and variable working environments such as different temperatures and different currents.
[0119] In some embodiments, when the excitation current is a continuously changing current, the second current value is obtained through the following steps: The changing state of charge and the open-circuit voltage that changes with the state of charge are obtained by the ampere-hour integration method. The equivalent circuit model is updated based on the open-circuit voltage that changes with the state of charge, and the second current value that changes with time is obtained.
[0120] In this embodiment, the excitation current can be a continuous current with a randomly varying magnitude.
[0121] like Figure 3 As shown, during actual execution, a continuous excitation current with randomly varying magnitude can be applied to the main circuit to synchronously collect the first current value collected by the shunt 305 at different collection times.
[0122] When the excitation current is a continuous current, the state of charge of the battery in the target circuit will change as the current continues. Different states of charge will correspond to different open-circuit voltages, so the open-circuit voltage will change as the current continues.
[0123] In some embodiments, the change in remaining power can be calculated using the ampere-hour integration method.
[0124] The specific formula for the change is shown below: SOC(i) = SOC(i-1) + Cur(i-1) / battery capacity (Formula 6) OCV(i) = Table(SOC) Equation 7 Where SOC(i) is the state of charge at time i; SOC(i-1) is the state of charge at time i-1; Cur(i-1) is the current flowing through the battery calculated at time i-1, i.e., the second current value; and OCV(i) is the open-circuit voltage at time i. Battery capacity is the total amount of charge that the battery can release when discharged from a fully charged state to a specified termination voltage under certain discharge conditions (such as a specific discharge current, temperature, and termination voltage).
[0125] Equation 7 represents the correspondence between the battery's open-circuit voltage OCV and state of charge SOC, which can be pre-calibrated. Once the state of charge at time i is known, the open-circuit voltage at time i can be obtained based on this correspondence.
[0126] In actual execution, the SOC at the current moment is calculated using the second current value and SOC at the previous moment through Equation 6. After obtaining the SOC at the current moment, the open-circuit voltage at the current moment is obtained through Equation 7. Substituting the open-circuit voltage at the current moment, the pre-calibrated equivalent circuit model parameters, and the terminal voltage into Equations 1, 2, and 3, the third current value at the current moment can be obtained, which is then converted into the second current value at the current moment. Thus, multiple sets of first and second current values at different moments under this current excitation can be obtained. The first current data and the second current data are compared to determine whether the difference between the first current data and the second current data is greater than the target threshold. A correction function for the first current data and the second current data is established, and the parameters of the correction function are determined through an optimization algorithm. In subsequent practical applications, the current value collected by the shunt 305 is continuously corrected through this correction.
[0127] The following is combined with Figure 3 The implementation process under random operating conditions is explained.
[0128] 201. Establish an equivalent circuit model and obtain the model parameters of the equivalent circuit model; 202. Obtain the battery's SOC information; 203. Under random operating conditions, continuously acquire the first current value from the shunt 305; 204. Substitute the terminal voltage into the equivalent circuit model to obtain the second current value; 205. Compare the first current value and the second current value, and determine whether the difference between the first current value and the second current value is greater than the target threshold. 206. Establish the functional relationship between the first current value and the second current value, and identify the parameters in the function through an optimization algorithm; 207. This function continuously corrects the current collected by the shunt 305.
[0129] The current correction method for a shunt 305 provided in this application embodiment can be executed by a current correction device for a shunt 305. This application embodiment uses the execution of the current correction method for a shunt 305 by a current correction device for a shunt 305 as an example to illustrate the current correction device for a shunt 305 provided in this application embodiment.
[0130] This application also provides a current correction device for a shunt.
[0131] like Figure 8 As shown, the shunt 305 is connected in series with the power supply device 306 and the power consumption device 307 in the main circuit. The shunt 305 is connected in parallel or in series with a target circuit, which includes a battery 304. The current correction device for the shunt 305 includes an acquisition device 810 and a correction device 820.
[0132] Acquisition device 810 is used to acquire the sampled current value of shunt 305; Correction device 820 is used to correct the sampled current value based on a correction function; wherein, The correction function is obtained based on the correlation between the first current value and the second current value collected by the shunt 305. The second current value is obtained from the terminal voltage of the battery 304 by utilizing the voltage-current relationship corresponding to the battery 304.
[0133] According to the embodiments of this application, the current correction device for a shunt is configured by setting a target circuit in series or parallel with the shunt. By utilizing the voltage-current relationship of the battery in the target circuit and Ohm's law, the current value flowing through the shunt is obtained from the battery's terminal voltage. This reduces the impact of meter sampling error on the sampled value, making the final obtained second current value closer to the actual current value flowing through the shunt. Based on this, a correction function learned from the error between the second current value and the first current value collected by the shunt is used to correct the sampled current collected by the shunt in actual application, significantly improving the correction accuracy and precision. Moreover, the target circuit has a simple structure and low design cost, and can be directly connected to the original equipment circuit of the shunt. Thus, the correction function is learned synchronously during the operation of the shunt to verify the shunt without affecting its normal operation, achieving accurate verification of the current collected throughout the entire life cycle of the shunt.
[0134] In some embodiments, the target circuit includes a first resistor 303, a battery 304, and a first switch 308 connected in series; the target circuit is configured in parallel with the shunt 305.
[0135] In some embodiments, where the power supply device 306 includes a battery 304, the target circuit includes the battery 304.
[0136] In some embodiments, the device further includes a processing module for: The open-circuit voltage and terminal voltage of battery 304 are input to the equivalent circuit model corresponding to battery 304 to obtain the third current value flowing through battery 304. The second current value is obtained based on the third current value.
[0137] In some embodiments, the target circuit includes a first resistor 303, a battery 304, and a first switch 308 connected in series; the target circuit is configured in parallel with the shunt 305. Processing module, used for: The second current value is obtained based on the third current value, the resistance value of the first resistor 303, the resistance value of the battery 304, and the resistance value of the shunt 305.
[0138] In some embodiments, when the power supply device 306 includes a battery 304, the target circuit is the battery 304. Processing module, used for: Use the third current value as the second current value.
[0139] In some embodiments, the processing module is configured to: When the target circuit is turned on and an excitation current is applied to the main circuit, the first current value collected by the shunt 305 and the terminal voltage of the battery 304 are obtained; the terminal voltage is used to convert it into a second current value. A correction function is obtained based on the degree of difference between multiple sets of first and second current values.
[0140] In some embodiments, the processing module is configured to: Multiple sets of first and second current values are obtained under multiple different ambient temperatures and multiple different excitation currents. Based on the correlation between multiple sets of first and second current values, a correction function is obtained.
[0141] In some embodiments, when the excitation current is a continuously varying current, the processing module is configured to: The changing state of charge and the open-circuit voltage that changes with the state of charge are obtained by the ampere-hour integration method. The equivalent circuit model is updated based on the open-circuit voltage that changes with the state of charge, and the second current value that changes with time is obtained.
[0142] In some embodiments, the device includes an output module for: If the difference between the corrected and uncorrected sampled current values is greater than the target threshold, a fault message is output.
[0143] The current correction device for the shunt in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the specific device.
[0144] The current correction device for the shunt in this embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this embodiment does not specifically limit the specific operating system.
[0145] The current correction device for a shunt provided in this application embodiment can achieve... Figures 1 to 5 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0146] This application also provides a shunt in its embodiments.
[0147] The shunt includes the shunt body and the target circuit.
[0148] The target circuit includes a battery, and the target circuit is connected in parallel or in series with the shunt body.
[0149] The shunt performs current correction based on the current correction method for shunts described in any of the above embodiments.
[0150] In some embodiments, the target circuit includes a first resistor, a battery, and a first switch connected in series, and the target circuit is arranged in parallel with the shunt body.
[0151] In some embodiments, the target circuit includes a battery inside a power supply device connected in series with the shunt to the main circuit.
[0152] According to the shunt provided in this application embodiment, by setting a target circuit in series or parallel with the shunt, the voltage-current relationship of the battery in the target circuit is combined with Ohm's law to obtain the current value flowing through the shunt from the battery terminal voltage. This reduces the influence of meter sampling error on the sampled value, making the final obtained second current value closer to the actual current value flowing through the shunt. On this basis, a correction function learned based on the error between the second current value and the first current value collected by the shunt is used to correct the sampled current collected by the shunt in actual application, significantly improving the correction accuracy and precision. Moreover, the target circuit has a simple structure and low design cost, and can be directly connected to the original equipment circuit of the shunt. Thus, the correction function is learned synchronously during the operation of the shunt to verify the shunt without affecting the normal operation of the shunt, achieving accurate verification of the current collected throughout the entire life cycle of the shunt.
[0153] This application also provides an electrical appliance. This electrical appliance includes a shunt as described in any of the above embodiments.
[0154] The electrical devices provided in this application embodiment can be, but are not limited to, mobile phones, tablets, laptops, electric toys, power tools, electric vehicles, electric cars, ships, and spacecraft. Among them, electric toys can include stationary or mobile electric toys, such as game consoles, electric car toys, electric ship toys, and electric airplane toys, etc., and spacecraft can include airplanes, rockets, space shuttles, and spacecraft, etc.
[0155] According to the electrical equipment provided in this application embodiment, by setting up a target circuit in series or parallel with a shunt, the target circuit's own battery voltage, combined with an equivalent circuit model and Ohm's law, is converted into a current value flowing through the shunt. This reduces the impact of meter sampling error on the sampled value, making the final obtained second current value closer to the actual current value flowing through the shunt. Based on this, a correction function learned from the error between the second current value and the first current value collected by the shunt is used to correct the sampled current collected by the shunt in actual application, significantly improving the correction accuracy and precision. Moreover, the target circuit has a simple structure and low design cost, and can be directly connected to the original equipment circuit of the shunt. Thus, the correction function is learned synchronously during the operation of the shunt to verify the shunt without affecting its normal operation, achieving accurate verification of the current collected throughout the entire life cycle of the shunt.
[0156] This application also provides a non-transitory computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the above-described current correction method embodiment for a shunt and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0157] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0158] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described current correction method for a shunt.
[0159] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0160] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described current correction method embodiment for a shunt, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0161] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0162] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0163] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0164] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
[0165] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0166] Although embodiments of this application have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of this application, the scope of which is defined by the claims and their equivalents.
Claims
1. A current correction method for a shunt, characterized in that, The shunt is connected in series with the power supply device and the power consumption device in the main circuit. The shunt is connected in parallel or in series with a target circuit, the target circuit including a battery. The method includes: Obtain the sampled current value of the shunt; The sampled current value is corrected based on the correction function; wherein... The correction function is obtained based on the correlation between the first current value and the second current value collected by the shunt. The second current value is obtained from the terminal voltage of the battery using the voltage-current relationship corresponding to the battery.
2. The current correction method for a shunt according to claim 1, characterized in that, The target circuit includes a first resistor, the battery, and a first switch connected in series; the target circuit is connected in parallel with the shunt. or, If the power supply device includes a battery, the target circuit includes the battery.
3. The current correction method for a shunt according to claim 1, characterized in that, The second current value is obtained from the battery's terminal voltage using the voltage-current relationship corresponding to the battery, including: The open-circuit voltage and the terminal voltage of the battery are input to the equivalent circuit model corresponding to the battery to obtain the third current value flowing through the battery. The second current value is obtained based on the third current value.
4. The current correction method for a shunt according to claim 3, characterized in that, The target circuit includes a first resistor, the battery, and a first switch connected in series. The target circuit is connected in parallel with the shunt; The process of obtaining the second current value based on the third current value includes: The second current value is obtained based on the third current value, the resistance value of the first resistor, the resistance value of the battery, and the resistance value of the shunt.
5. The current correction method for a shunt according to claim 3, characterized in that, In the case where the power supply device includes a battery, the target circuit is the battery; The process of obtaining the second current value based on the third current value includes: The third current value is used as the second current value.
6. The current correction method for a shunt according to any one of claims 1-5, characterized in that, The correction function is obtained based on the correlation between the first current value and the second current value collected by the shunt, and includes: When the target circuit is turned on and an excitation current is applied to the main circuit, the first current value collected by the shunt and the terminal voltage of the battery are acquired; the terminal voltage is used to calculate the second current value. The correction function is obtained based on the degree of difference between multiple sets of the first current value and the second current value.
7. The current correction method for a shunt according to any one of claims 1-5, characterized in that, The correction function is obtained based on the correlation between the first current value and the second current value collected by the shunt, and includes: Multiple sets of first and second current values are obtained under various ambient temperatures and excitation currents of different magnitudes. The correction function is obtained based on the correlation between the multiple sets of first current values and second current values.
8. The current correction method for a shunt according to claim 7, characterized in that, When the excitation current is a continuously changing current, the second current value is obtained through the following steps: The changing state of charge and the open-circuit voltage that changes with the state of charge are obtained by the ampere-hour integration method. The equivalent circuit model is updated based on the open-circuit voltage that changes with the state of charge, and the second current value that changes with time is obtained.
9. The current correction method for a shunt according to any one of claims 1-5, characterized in that, The method includes: If the difference between the corrected and uncorrected sampled current values is greater than the target threshold, a fault message is output.
10. A current correction device for a shunt, characterized in that, The shunt is connected in series with the power supply device and the power consumption device in the main circuit. The shunt is connected in parallel or in series with a target circuit, the target circuit including a battery. The device includes: Acquisition device, used to acquire the sampling current value of the shunt; A correction device is used to correct the sampled current value based on a correction function; wherein, The correction function is obtained based on the correlation between the first current value and the second current value collected by the shunt. The second current value is obtained from the terminal voltage of the battery using the voltage-current relationship corresponding to the battery.
11. A shunt, characterized in that, include; Shunt body; The target circuit includes a battery, and the target circuit is connected in parallel or in series with the shunt body; The shunt is current-corrected based on the current correction method for a shunt as described in any one of claims 1-9.
12. The shunt according to claim 11, characterized in that, The target circuit includes a first resistor, a battery, and a first switch connected in series, and the target circuit is arranged in parallel with the shunt body.
13. An electrical appliance, characterized in that, include: The shunt as described in claim 11.
