Sensor fault diagnosis method, device and vehicle
By calculating the comparison internal resistance and dynamic internal resistance in the battery system, the Hall sensor status is solved, and the problem of low fault diagnosis coverage in the existing technology is realized, and timely detection of Hall sensor faults and monitoring of battery status is realized. Avoid battery overcurrent.
Patent Information
- Application Number
- CN202011435088.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-09
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2040-12-09
AI Technical Summary
The prior art cannot effectively detect other types of faults or stop-operation failures of Hall sensors, resulting in low fault diagnosis coverage, which may cause continuous overcurrent of the battery.
By obtaining the control internal resistance of the battery at different temperatures and the dynamic internal resistance of the current temperature, calculate the target control internal resistance, judge the working status of the Hall sensor based on the relationship between the ratio and the preset range, and improve the fault diagnosis coverage rate.
Timely detection and diagnosis of Hall sensor failures is achieved, the continuous overcurrent of the battery caused by the failure is avoided, and the diagnostic coverage is improved.
Smart Images

Figure CN114609565B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of automobile technology, and more specifically, to a sensor fault diagnosis method, device and vehicle. Background Art
[0002] The Hall sensor is a magnetic field sensor made based on the Hall effect, which can be used to monitor the current in the battery. In the battery system, when the Hall sensor monitors the current in the battery, if the Hall sensor has other types of faults or the Hall sensor stops working, it cannot effectively monitor the current in the battery, which can easily cause the battery to have a continuous overcurrent, and the system has a great hidden danger
[0003] Therefore, in the prior art, it is generally necessary to diagnose the Hall sensor, and the diagnosis method generally adopts real-time diagnosis of the Hall sensor power supply, or initialization diagnosis after sampling the current neutral point, to determine whether the Hall sensor is faulty. However, the above method cannot detect other types of faults of the Hall sensor or the fault state of the Hall sensor stopping working, resulting in the problem of low fault diagnosis coverage of the Hall sensor. Summary of the invention
[0004] The embodiments of the present application provide a sensor fault diagnosis method, device and vehicle, aiming to solve the problem of fault diagnosis coverage of Hall sensors.
[0005] A first aspect of an embodiment of the present application provides a sensor fault diagnosis method, including a battery system, wherein the battery system includes: a battery and a Hall sensor, wherein the Hall sensor is used to measure the current of the battery, and the method includes:
[0006] Obtaining a control internal resistance of a battery at different temperatures, wherein the control internal resistance is obtained by performing offline training when the battery is not operating in a vehicle;
[0007] Obtaining a first dynamic internal resistance of the battery when operating at a current temperature;
[0008] Obtaining a target reference internal resistance corresponding to the current temperature according to the reference internal resistances at different temperatures;
[0009] The working state of the Hall sensor is determined according to a relationship between a ratio of the first dynamic internal resistance to the target control internal resistance and a preset range.
[0010] Optionally, determining the working state of the Hall sensor according to a relationship between a ratio between the first dynamic internal resistance and the target control internal resistance and a preset range includes:
[0011] If the ratio of the first dynamic internal resistance to the target control internal resistance is less than a first preset threshold or greater than a second preset threshold, the Hall sensor is abnormal;
[0012] If the ratio of the first dynamic internal resistance to the target reference internal resistance is above the first preset threshold and below the second preset threshold, the Hall sensor is normal.
[0013] Optionally, a control internal resistance obtained when the battery is not working in a vehicle and undergoes offline training is obtained by following the steps below:
[0014] Periodically collecting a first voltage and a first current of the battery when the battery is operating at a preset temperature;
[0015] Subtracting two adjacent measured first voltages to obtain a first voltage difference;
[0016] Subtracting the first currents measured two adjacent times to obtain a first current difference;
[0017] Obtaining a comparative internal resistance at the preset temperature according to each of the first voltage differences and each of the first current differences;
[0018] The preset temperature is changed to obtain the comparative internal resistance of the battery at different preset temperatures.
[0019] Optionally, obtaining a first dynamic internal resistance of the battery when operating at a current temperature includes:
[0020] periodically collecting a second voltage and a second current at the current temperature when the battery is working;
[0021] Subtracting two adjacent measured second voltages to obtain a second voltage difference;
[0022] Subtracting the second currents measured two adjacent times to obtain a second current difference;
[0023] A first dynamic internal resistance at the current temperature is obtained according to each of the second voltage differences and each of the second current differences.
[0024] Optionally, obtaining a first dynamic internal resistance at the current temperature according to each of the second voltage differences and each of the second current differences includes:
[0025] Obtaining a second dynamic internal resistance at the current temperature according to each of the second voltage differences and each of the second current differences;
[0026] obtaining a measurement noise at the current temperature according to the second voltage difference, the second current difference and the second dynamic internal resistance;
[0027] Obtaining an expected noise value at the current temperature according to the measured noise;
[0028] Determine whether the absolute value of the second voltage difference is greater than a preset threshold value, and if so, store the second voltage difference, the second current difference, the second dynamic internal resistance and the expected noise value at the current temperature in a buffer;
[0029] When the number of second dynamic internal resistors in the buffer zone is equal to a preset number, the second voltage difference, the second current difference and the noise expectation value are calculated by weighted least square method to obtain the first dynamic internal resistor at the current temperature.
[0030] Optionally, obtaining a target reference internal resistance corresponding to the current temperature according to the reference internal resistance at different temperatures further includes:
[0031] According to the reference internal resistances at different temperatures, querying the ideal internal resistance corresponding to the current temperature;
[0032] The ideal internal resistance is compensated for the aging coefficient to obtain the target control internal resistance.
[0033] Optionally, the method further comprises:
[0034] When the working state of the Hall sensor is normal, the buffer zone is cleared.
[0035] Optionally, the method further comprises:
[0036] Collecting the temperature around the battery by using multiple temperature collecting devices;
[0037] The current temperature is an average value of the temperatures collected by the multiple temperature collection devices.
[0038] A second aspect of an embodiment of the present application provides a sensor fault diagnosis device, including a battery system, wherein the battery system includes a battery and a Hall sensor, wherein the Hall sensor is used to measure the current of the battery, and the device includes:
[0039] A reference internal resistance acquisition unit is used to acquire the reference internal resistance of the battery at different temperatures, wherein the reference internal resistance is obtained by offline training when the battery is not working in a vehicle;
[0040] A dynamic internal resistance acquisition unit, which acquires a first dynamic internal resistance of the battery when it operates at a current temperature;
[0041] A query unit, which obtains a target reference internal resistance corresponding to the current temperature according to the reference internal resistances at different temperatures;
[0042] The judging unit determines the working state of the Hall sensor according to a relationship between a ratio between the first dynamic internal resistance and the target control internal resistance and a preset range.
[0043] A third aspect of an embodiment of the present application provides a vehicle, comprising a sensor fault diagnosis device as provided in the second aspect of an embodiment of the present application.
[0044] By adopting a sensor fault diagnosis method provided by the present application, it is possible to determine whether the battery is in a normal state based on the relationship between the ratio of the first dynamic internal resistance of the battery when working at the current temperature and the target control internal resistance of the battery after offline training and the preset range. Since the battery and the Hall sensor together constitute a battery system, the working state of the Hall sensor can be determined based on the working state of the battery, rather than directly detecting from the Hall sensor itself, thereby improving the diagnostic coverage of the Hall sensor. Furthermore, when a Hall sensor fails, the Hall sensor failure can be discovered in time based on the working state of the battery, thereby avoiding the phenomenon of continuous battery overcurrent caused by the Hall sensor failure. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0046] Figure 1 is a flowchart of the steps of a sensor fault diagnosis method proposed in an embodiment of the present application;
[0047] Figure 2 is a flowchart of steps for obtaining a first dynamic internal resistance proposed in an embodiment of the present application;
[0048] Figure 3 It is a schematic diagram of a sensor fault diagnosis device proposed in yet another embodiment of the present application. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0050] Embodiment 1
[0051] Reference Figure 1 , step S1: obtaining a control internal resistance of a battery at different temperatures, wherein the control internal resistance is obtained by offline training when the battery is not working in a vehicle.
[0052] Among them, offline training refers to the process of simulating the state of the battery working on the car when the battery is separated from the car and is in an independent state.
[0053] In addition, the control internal resistance obtained when the battery is not working in the vehicle and undergoes offline training is obtained according to the following sub-steps:
[0054] Step S11: periodically collecting a first voltage and a first current of the battery when the battery is operating at a preset temperature.
[0055] In this step, the battery can be charged to a preset power level, such as 90% power or 95% power. Then place the battery in a thermostat, and adjust the thermostat so that the battery is in an environment with a preset temperature. After the battery reaches the preset temperature adjusted by the thermostat, a dynamic current is introduced to the load end of the battery, and the thermal management device is used to ensure that the battery's operating temperature is constant, so that the battery is in a constant temperature working state. Then, a voltage measuring device is used to periodically collect the first voltage of the battery when it is working at a preset temperature, and a current measuring device is used to periodically collect the first current of the battery when it is working at a preset temperature. Among them, the collection period of the first voltage and the first current can be 200ms.
[0056] Among them, the constant temperature device may be a constant temperature box, the thermal management device may include a heater, a condenser, a radiator, etc.; the voltage measuring device may be a voltmeter; and the current measuring device may be an ammeter.
[0057] Step S12: subtracting two adjacent first voltage measurements to obtain a first voltage difference.
[0058] In this step, the first voltage difference is obtained by the following formula: ΔU i =U i -U i-1
[0059] Among them, ΔU i Represents the first voltage difference; U i Indicates the currently measured voltage; U i-1 Indicates the last measured voltage.
[0060] Step S13: subtract the first currents measured two adjacent times to obtain a first current difference.
[0061] In this step, ΔI i =I i -I i-1
[0062] Among them, ΔI i is the first current difference; I i Indicates the current being measured; I i-1Indicates the last measured current.
[0063] Step S14: obtaining a comparative internal resistance at the preset temperature according to each of the first voltage differences and each of the first current differences.
[0064] In this step, the reference internal resistance is obtained by the following formula: ΔR i =ΔU i / ΔI i
[0065] Among them, ΔR i Indicates the reference internal resistance at a preset temperature.
[0066] Step S15: changing the preset temperature to obtain the comparative internal resistance of the battery at different preset temperatures.
[0067] Since a plurality of first voltages and a plurality of first currents are periodically collected at the current preset temperature, a plurality of first voltage differences and a plurality of first current differences are generated. Accordingly, a plurality of comparative internal resistances are obtained at the current preset temperature.
[0068] Then, the gradient descent method of the forgetting factor is used to perform offline training on multiple reference internal resistances respectively to obtain the reference internal resistance at the current preset temperature.
[0069] Among them, the calculation formula of the gradient descent method is:
[0070]
[0071] Among them, R(t) is the reference internal resistance at the preset temperature at time t; R(t-1) is the reference internal resistance at the preset temperature at time t-1; ΔU(t) is the first voltage difference at time t; ΔI(t) is the first current difference at time t; r(t) is the inverse of the convergence step at time t.
[0072] In the above calculation formula, the calculation formula for the inverse of the convergence step length is:
[0073] r(t)=λr(t-1)+‖ΔI(t)‖ 2
[0074] Wherein, r(t) is the reciprocal of the convergence step at time t; r(t-1) is the reciprocal of the convergence step at time t-1; λ is the forgetting factor, which is 0.9; ΔI(t) is the first current difference at time t.
[0075] By adjusting the thermostat, multiple reference internal resistances at different temperatures can be obtained. For example, when the thermostat is adjusted to 10°C, the reference internal resistance is 10Ω; when the temperature is 20°C, the reference internal resistance is 30Ω, etc. After obtaining multiple reference internal resistances at different temperatures, different temperatures can be matched with different reference internal resistances to form a data table stored in the database.
[0076] Step S2: Obtain the first dynamic internal resistance of the battery when it is operating at the current temperature. Step S2 includes:
[0077] Sub-step S21: periodically collecting a second voltage and a second current at the current temperature when the battery is working.
[0078] In this step, the second voltage and the second current at the current temperature are periodically collected through the battery management system; the temperature of the battery during operation is periodically collected through the temperature collection device. When the battery has multiple temperature collection devices, the current temperature is the average value of the temperatures collected by the multiple temperature collection devices. For example, there are 5 temperature collection devices around the battery, and the temperatures collected by the 5 temperature collection devices are 20°C, 21°C, 22°C, 19°C and 18°C, respectively. Then the current temperature = (20+21+22+19+18) / 5 = 20, and the current temperature is 20°C. Collecting the temperature through multiple temperature collection devices can reduce the error in determining the current temperature.
[0079] The period of voltage acquisition, current acquisition and temperature acquisition may be 500ms.
[0080] Sub-step S22: subtracting two adjacent second voltage measurements to obtain a second voltage difference.
[0081] In this step, the second voltage difference is calculated by the battery management system, and the second voltage difference is obtained by the following formula: ΔU K =U K -U K-1 ;
[0082] Among them, ΔU k Represents the second voltage difference; U k Indicates the currently measured voltage; U k-1 Indicates the last measured voltage.
[0083] Sub-step S23: subtracting the second currents measured two adjacent times to obtain a second current difference.
[0084] In this step, the second current difference is calculated by the battery management system, and the second current difference is obtained by the following formula: ΔI k =I k -I K-1 ;
[0085] Among them, ΔI k is the first current difference; I k Indicates the current being measured; I k-1 Indicates the last measured current.
[0086] Sub-step S24: obtaining a first dynamic internal resistance at the current temperature according to each of the second voltage differences and each of the second current differences.
[0087] Wherein, step S24 also includes the following sub-steps:
[0088] Sub-step S241: obtaining a second dynamic internal resistance at the current temperature according to each of the second voltage differences and each of the second current differences.
[0089] In this step, the reference internal resistance is obtained by the following formula: ΔR k2 =ΔU k / ΔI k ;
[0090] Among them, ΔR k2 Indicates the second dynamic internal resistance at the current temperature.
[0091] Sub-step S242: obtaining the measurement noise at the current temperature according to the second voltage difference, the second current difference and the second dynamic internal resistance.
[0092] In this step, the measurement noise at the current temperature is obtained by the following formula:
[0093] V=ΔU k -ΔR K2 *ΔI k ;
[0094] Among them, ΔU k Represents the second voltage difference; ΔR k2 Indicates the second dynamic internal resistance at the current temperature; ΔI k is the first current difference; V represents the measurement noise at the current temperature.
[0095] Sub-step S243: obtaining an expected noise value at the current temperature according to the measured noise.
[0096] In this step, a corresponding relationship between the measured noise and the expected noise value can be pre-established in the database, and when the expected noise value needs to be obtained, the expected noise value corresponding to the measured noise can be obtained by looking up the table.
[0097] Sub-step S244: determine whether the absolute value of the second voltage difference is greater than a preset threshold value, and if so, store the second voltage difference, the second current difference, the second dynamic internal resistance and the expected noise value at the current temperature in a buffer.
[0098] In this step, it is determined whether the absolute value of the second voltage difference is greater than a preset threshold value. If not, the process returns to sub-step S21 and executes subsequent steps.
[0099] Among them, since the second voltage difference is too small, the computer will ignore the second voltage difference which is too small, thus causing a misjudgment. Therefore, in order to improve the accuracy of calculating the first dynamic internal resistance in the subsequent steps, it is determined whether the absolute value of the second voltage difference is greater than the preset threshold value. If it is greater, data will be stored in the buffer. If it is less, the subsequent steps will not be executed. Accordingly, the sub-step S21 is returned to re-collect the second voltage and the second current, thereby avoiding the computer's misjudgment.
[0100] In addition, the buffer can store two data types in a quantity greater than or equal to 10, and can store three data types in a quantity greater than or equal to 2. The buffer is a queue structure, and its data update method is first-in-first-out. Among them, the data type refers to current, temperature, voltage, noise expected value, etc.
[0101] Sub-step S245: when the number of second dynamic internal resistors in the buffer zone is equal to a preset number, the second voltage difference, the second current difference and the noise expectation value are calculated by weighted least square method to obtain the first dynamic internal resistor at the current temperature.
[0102] In this step, it is determined whether the number of second dynamic internal resistors in the buffer is greater than or equal to the preset number n. If so, the first dynamic internal resistor ΔR at the current temperature can be obtained by using the second voltage difference, the second current difference and the noise expected value stored in the buffer through the following weighted least squares calculation formula: k1 If not, return to sub-step S21, continue to periodically collect the second voltage and the second current of the battery at the current temperature, and execute subsequent steps.
[0103] Among them, the calculation formula of weighted least squares method is:
[0104] ΔR k1 =(H T Q -1 H) -1 H T Q -1 ΔU;
[0105] Among them, ΔR k1 is the first dynamic internal resistance; H is the coefficient matrix composed of the second current difference; HT is the transposed matrix of the coefficient matrix composed of the second current difference; ΔU is the observation matrix composed of the second voltage difference; Q -1 is the inverse matrix of the weight matrix.
[0106] In the calculation formula of the weighted least square method, the calculation formula of the transposed matrix of the coefficient matrix composed of the second current difference is:
[0107] H T =[ΔI k1 ΔI k2 …ΔI kn ];
[0108] Among them, H T is the transposed matrix of the coefficient matrix composed of the second current difference, ΔI kn is the nth second current difference.
[0109] In the calculation formula of the above weighted least squares method, the calculation formula of the weight matrix is:
[0110] Q=diag(σ1 2 ,σ2 2 , …σ n 2 );
[0111] Among them, Q is the weight matrix; σ n 2 is the nth noise expectation value.
[0112] By obtaining the first dynamic internal resistance at the current temperature based on the data in the buffer only when the number of second dynamic internal resistances in the buffer is equal to the preset number, the accuracy of the calculation can be improved. At the same time, calculating the first dynamic internal resistance based on the weighted least squares calculation formula can also improve the accuracy of obtaining the first dynamic internal resistance.
[0113] Step S3: obtaining a target reference internal resistance corresponding to the current temperature according to the reference internal resistances at different temperatures.
[0114] In this step, since it has been explained in step S15 that different temperatures will be matched with different reference internal resistances and stored in the database, when obtaining the target reference internal resistance, it is only necessary to query the target reference internal resistance corresponding to the current temperature in the database. For example, there are 5 temperature acquisition devices around the battery, and the temperatures collected by the 5 temperature acquisition devices are 20°C, 21°C, 22°C, 19°C and 18°C respectively, then the current temperature = (20+21+22+19+18) / 5 = 20, and the current temperature is 20°C; then based on the current temperature of 20°C, in the data table in step S15, it is found that the target reference internal resistance corresponding to 20°C is 30Ω.
[0115] Among them, considering the impact of battery life decay on battery internal resistance, the aging coefficient can be compensated by the target reference resistance in the ideal state at the factory to obtain the target reference internal resistance after aging. The aging coefficient compensation is achieved by the following steps:
[0116] Sub-step S31: querying the ideal internal resistance corresponding to the current temperature according to the reference internal resistance at different temperatures.
[0117] In this step, the ideal internal resistance refers to the resistance value of the battery when it leaves the factory.
[0118] Sub-step S32: performing aging coefficient compensation on the ideal internal resistance to obtain the target control internal resistance.
[0119] In this step, the target control internal resistance refers to the resistance of the aged battery, that is, the resistance of the battery for a period of time after leaving the factory, which is calculated by the following formula: ΔR i =ΔR off / SOH;
[0120] Among them, ΔR i is the target control internal resistance, which is the battery resistance after aging; ΔR off is the ideal internal resistance, that is, the battery resistance when leaving the factory; SOH is the ratio of the current capacity of the battery to the factory capacity.
[0121] Step S4: determining the working state of the Hall sensor according to a relationship between a ratio between the first dynamic internal resistance and the target control internal resistance and a preset range.
[0122] When determining the working state of the Hall sensor, if the first dynamic internal resistance ΔR k1 Compare the internal resistance ΔR with the target i The ratio of is less than the first preset threshold or greater than the second preset threshold, which indicates that the battery is in an abnormal working state and the Hall sensor fails. If the first dynamic internal resistance ΔR k1 Ratio of internal resistance to the target reference ΔR i If the value is above the first preset threshold and below the second preset threshold, it means that the battery is in a normal working state and the Hall sensor is normal.
[0123] Among them, the first dynamic internal resistance ΔR k1 Compare the internal resistance ΔR with the target i The ratio is the gain G = ΔR k1 / ΔR i; If the value of the gain G is greater than or equal to the first preset threshold and less than or equal to the second preset threshold, for example, when 0.6≤G≤1.4, it indicates that the battery is in a normal working state and the Hall sensor is normal; if the value of the gain G is less than the first preset threshold or greater than the second preset threshold, for example, when G<0.6, or when G is greater than 1.4, it indicates that the battery is in an abnormal working state and the Hall sensor is faulty.
[0124] In addition, when the value of gain G is above the first preset threshold and below the second preset threshold, indicating that the Hall sensor is normal, the data in the buffer will be cleared for the next data storage; when the value of gain G is less than the first preset threshold or greater than the second preset threshold, indicating that the Hall sensor is abnormal, the Hall sensor fault will be reported in time to notify the staff to prepare to power off the vehicle.
[0125] Through a sensor fault diagnosis method provided by the present application, it is possible to determine whether the battery is in a normal state based on the relationship between the ratio between the first dynamic internal resistance of the battery when working at the current temperature and the target control internal resistance of the battery after offline training and a preset range. Since the battery and the Hall sensor together constitute a battery system, it is possible to determine whether the Hall sensor is in a faulty working state based on whether the battery is in a normal working state, rather than directly detecting from the Hall sensor itself, thereby improving the diagnostic coverage of the Hall sensor. Furthermore, when a Hall sensor fails, the Hall sensor failure can be discovered in time based on the working state of the battery, thereby avoiding continuous overcurrent of the battery caused by the Hall sensor failure.
[0126] Embodiment 2
[0127] Reference Figure 3 Based on the same inventive concept, another embodiment of the present application provides a sensor fault diagnosis device, including a battery system, wherein the battery system includes a battery and a Hall sensor, wherein the Hall sensor is used to measure the current of the battery, and the device includes:
[0128] A reference internal resistance acquisition unit is used to acquire the reference internal resistance of the battery at different temperatures, wherein the reference internal resistance is obtained by offline training when the battery is not working in a vehicle;
[0129] A dynamic internal resistance acquisition unit, which acquires a first dynamic internal resistance of the battery when it operates at a current temperature;
[0130] A query unit, which obtains a target reference internal resistance corresponding to the current temperature according to the reference internal resistances at different temperatures;
[0131] The judging unit determines the working state of the Hall sensor according to a relationship between a ratio between the first dynamic internal resistance and the target control internal resistance and a preset range.
[0132] In a feasible implementation manner, the judging unit includes:
[0133] a sensor abnormality determination unit, wherein when the ratio of the first dynamic internal resistance to the target control internal resistance is less than a first preset threshold or greater than a second preset threshold, the Hall sensor is abnormal;
[0134] The sensor normality determination unit determines that the Hall sensor is normal when the ratio of the first dynamic internal resistance to the target control internal resistance is above the first preset threshold and below the second preset threshold.
[0135] In a feasible implementation manner, the reference internal resistance acquisition unit includes:
[0136] A first collection unit, periodically collecting a first voltage and a first current of the battery when the battery is working at a preset temperature;
[0137] A first voltage calculation unit, subtracting two adjacent measured first voltages to obtain a first voltage difference;
[0138] A first current calculation unit, subtracting two adjacent measured first currents to obtain a first current difference;
[0139] a reference internal resistance determination unit, for obtaining a reference internal resistance at the preset temperature according to each of the first voltage differences and each of the first current differences;
[0140] The temperature changing unit changes the preset temperature to obtain the comparative internal resistance of the battery at different preset temperatures.
[0141] In a feasible implementation manner, the dynamic internal resistance acquisition unit includes:
[0142] A second collection unit, periodically collecting a second voltage and a second current at the current temperature when the battery is working;
[0143] a second voltage calculation unit, subtracting two adjacent measured second voltages to obtain a second voltage difference;
[0144] A second current calculation unit, subtracting two adjacent measured second currents to obtain a second current difference;
[0145] The dynamic internal resistance determining unit obtains the first dynamic internal resistance at the current temperature according to each of the second voltage differences and each of the second current differences.
[0146] In a feasible implementation manner, the query unit includes:
[0147] a second dynamic internal resistance calculation unit, for obtaining a second dynamic internal resistance at the current temperature according to each of the second voltage differences and each of the second current differences;
[0148] a noise acquisition unit, configured to obtain a measurement noise at the current temperature according to the second voltage difference, the second current difference and the second dynamic internal resistance;
[0149] A noise expectation value acquisition unit, which obtains the noise expectation value at the current temperature according to the measured noise;
[0150] a voltage judgment unit, for judging whether the absolute value of the second voltage difference is greater than a preset threshold value, and if so, storing the second voltage difference, the second current difference, the second dynamic internal resistance and the expected noise value at the current temperature in a buffer;
[0151] The weighted calculation unit calculates the second voltage difference, the second current difference and the noise expectation value by weighted least square method when the number of the second dynamic internal resistors in the buffer zone is equal to a preset number, so as to obtain the first dynamic internal resistor at the current temperature.
[0152] In a feasible implementation manner, the query unit further includes:
[0153] an ideal internal resistance query unit, for querying an ideal internal resistance corresponding to the current temperature according to the reference internal resistances at different temperatures;
[0154] The aging compensation unit performs aging coefficient compensation on the ideal internal resistance to obtain the target control internal resistance.
[0155] In a feasible implementation manner, the device further includes:
[0156] The data clearing unit clears the buffer zone when the working state of the Hall sensor is normal.
[0157] In a feasible implementation manner, the device further includes:
[0158] The temperature collection unit collects the temperature around the battery through a plurality of temperature collection devices.
[0159] Embodiment 3
[0160] Based on the same inventive concept, another embodiment of the present application provides a vehicle, including a sensor fault diagnosis device as provided in the second embodiment of the present application.
[0161] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0162] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0163] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0164] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0165] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0166] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0167] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0168] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0169] The above is a detailed introduction to a sensor fault diagnosis method, device and vehicle provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A sensor fault diagnosis method, It is characterized in that A battery system is provided, wherein the battery system comprises: a battery and a Hall sensor, wherein the Hall sensor is used to measure the current of the battery, and the method comprises: Obtaining a control internal resistance of a battery at different temperatures, wherein the control internal resistance is obtained by performing offline training when the battery is not operating in a vehicle; Obtaining a first dynamic internal resistance of the battery when operating at a current temperature; Obtaining a target reference internal resistance corresponding to the current temperature according to the reference internal resistances at different temperatures; Determining the working state of the Hall sensor according to a relationship between a ratio between the first dynamic internal resistance and the target control internal resistance and a preset range; Wherein, determining the working state of the Hall sensor includes: If the ratio of the first dynamic internal resistance to the target control internal resistance is less than a first preset threshold or greater than a second preset threshold, the Hall sensor is abnormal; If the ratio of the first dynamic internal resistance to the target control internal resistance is above the first preset threshold and below the second preset threshold, the Hall sensor is normal; The obtaining of the first dynamic internal resistance of the battery when operating at the current temperature includes: periodically collecting a second voltage and a second current at the current temperature when the battery is working; Subtracting two adjacent measured second voltages to obtain a second voltage difference; Subtracting the second currents measured two adjacent times to obtain a second current difference; Obtaining a second dynamic internal resistance at the current temperature according to each of the second voltage differences and each of the second current differences; obtaining a measurement noise at the current temperature according to the second voltage difference, the second current difference and the second dynamic internal resistance; Obtaining an expected noise value at the current temperature according to the measured noise; Determine whether the absolute value of the second voltage difference is greater than a preset threshold value, and if so, store the second voltage difference, the second current difference, the second dynamic internal resistance and the expected noise value at the current temperature in a buffer; When the number of second dynamic internal resistors in the buffer zone is equal to a preset number, the second voltage difference, the second current difference and the noise expectation value are calculated by weighted least square method to obtain the first dynamic internal resistor at the current temperature.
2. The method according to claim 1, It is characterized in that Follow these steps to obtain the reference internal resistance obtained when the battery is trained offline without operating in a vehicle: Periodically collecting a first voltage and a first current of the battery when the battery is operating at a preset temperature; Subtracting two adjacent measured first voltages to obtain a first voltage difference; Subtracting the first currents measured two adjacent times to obtain a first current difference; Obtaining a comparative internal resistance at the preset temperature according to each of the first voltage differences and each of the first current differences; The preset temperature is changed to obtain the comparative internal resistance of the battery at different preset temperatures.
3. The method according to claim 1, It is characterized in that According to the reference internal resistances at different temperatures, a target reference internal resistance corresponding to the current temperature is obtained, further comprising: According to the reference internal resistances at different temperatures, querying the ideal internal resistance corresponding to the current temperature; The ideal internal resistance is compensated for the aging coefficient to obtain the target control internal resistance.
4. The method according to claim 1, It is characterized in that The method further comprises: When the working state of the Hall sensor is normal, the buffer zone is cleared.
5. The method according to claim 1, It is characterized in that The method further comprises: Collecting the temperature around the battery by using multiple temperature collecting devices; The current temperature is an average value of the temperatures collected by the multiple temperature collection devices.
6. A sensor fault diagnosis device, It is characterized in that A battery system is provided, wherein the battery system includes a battery and a Hall sensor, wherein the Hall sensor is used to measure the current of the battery, and the device includes: A reference internal resistance acquisition unit is used to acquire the reference internal resistance of the battery at different temperatures, wherein the reference internal resistance is obtained by offline training when the battery is not working in a vehicle; A dynamic internal resistance acquisition unit, which acquires a first dynamic internal resistance of the battery when it operates at a current temperature; A query unit, which obtains a target reference internal resistance corresponding to the current temperature according to the reference internal resistances at different temperatures; a judgment unit, determining a working state of the Hall sensor according to a relationship between a ratio of the first dynamic internal resistance to the target reference internal resistance and a preset range; Wherein, the judging unit comprises: a sensor abnormality determination unit, wherein when the ratio of the first dynamic internal resistance to the target control internal resistance is less than a first preset threshold or greater than a second preset threshold, the Hall sensor is abnormal; a sensor normal determination unit, wherein when the ratio of the first dynamic internal resistance to the target control internal resistance is above the first preset threshold and below the second preset threshold, the Hall sensor is normal; The dynamic internal resistance acquisition unit comprises: A second collecting unit, periodically collecting a second voltage and a second current at the current temperature when the battery is working; a second voltage calculation unit, subtracting two adjacent measured second voltages to obtain a second voltage difference; A second current calculation unit, subtracting two adjacent measured second currents to obtain a second current difference; The query unit comprises: a second dynamic internal resistance calculation unit, for obtaining a second dynamic internal resistance at the current temperature according to each of the second voltage differences and each of the second current differences; a noise acquisition unit, configured to obtain a measurement noise at the current temperature according to the second voltage difference, the second current difference and the second dynamic internal resistance; A noise expectation value acquisition unit, which obtains the noise expectation value at the current temperature according to the measured noise; a voltage judgment unit, for judging whether the absolute value of the second voltage difference is greater than a preset threshold value, and if so, storing the second voltage difference, the second current difference, the second dynamic internal resistance and the expected noise value at the current temperature in a buffer; The weighted calculation unit calculates the second voltage difference, the second current difference and the noise expectation value by weighted least square method when the number of the second dynamic internal resistors in the buffer zone is equal to a preset number, so as to obtain the first dynamic internal resistor at the current temperature.
7. A vehicle, It is characterized in that It comprises a sensor fault diagnosis device as described in claim 6.
