A fault diagnosis method and device of a temperature sensor, an electronic device, and a medium
By performing polynomial fitting and integral value analysis on the relational data of the temperature sensor, the problem of low accuracy in temperature sensor fault diagnosis under extreme working conditions is solved, and higher diagnostic accuracy is achieved.
Patent Information
- Application Number
- CN202410651239.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2044-05-24
AI Technical Summary
Under extreme working conditions, the fault diagnosis accuracy of temperature sensors in the prior art is low, which can easily lead to diagnostic errors.
By performing polynomial fitting on the relationship data of the temperature sensor within the normal operating temperature range, the overtemperature detection range is determined, and the temperature integral value is used to determine whether the temperature sensor has failed, avoiding simply comparing the current temperature with the boundary value of the normal temperature range.
The fault diagnosis accuracy of the temperature sensor under extreme working conditions is improved, and misdiagnosis caused by direct comparison is avoided.
Smart Images

Figure CN118730339B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of fault diagnosis, in particular to a fault diagnosis method and device of a temperature sensor, an electronic device and a medium. BACKGROUND
[0002] In the control of a transmission assembly, a temperature sensor is used to detect oil temperature. An internal resistance element of the temperature sensor converts temperature into a resistance signal, which is converted into a voltage signal by an excitation current, so as to be recognized by a control unit and to calculate a resistance value. The control unit takes an oil temperature value corresponding to the calculated resistance value from a correspondence table of resistance value-temperature given by a manufacturer of the temperature sensor as an output signal. Since temperature directly reflects the viscosity of oil, it has a great influence on the control of the transmission assembly. Therefore, how to improve the accuracy of fault diagnosis of the temperature sensor is crucial. The manufacturer of the temperature sensor will give the correspondence between the internal resistance element resistance value and the temperature in the normal working temperature range. The existing technology usually takes the boundary value of the normal working temperature range given by the manufacturer as the critical value of fault diagnosis, compares the current temperature with the minimum value or the maximum value of the normal working temperature range, and determines whether the temperature sensor is faulty according to the comparison result.
[0003] However, under extreme working conditions, the above-mentioned method of directly comparing temperature to diagnose temperature sensor faults is prone to diagnostic errors, resulting in low accuracy of fault diagnosis of the temperature sensor. SUMMARY
[0004] Therefore, the purpose of the present application is to provide a fault diagnosis method and device of a temperature sensor, an electronic device and a medium, to solve the problem of low accuracy of fault diagnosis of the temperature sensor under extreme working conditions.
[0005] In a first aspect, the embodiments of the present application provide a fault diagnosis method of a temperature sensor, comprising:
[0006] Polynomial fitting is performed on the relationship data of the temperature sensor in the normal working temperature range to determine an over-temperature detection interval on the relationship fitting curve. The normal working temperature range includes boundary temperatures representing temperature extremes of the normal working temperature range. The over-temperature detection interval is a temperature interval outside the normal working temperature range. The over-temperature detection interval includes an extension temperature representing temperature extremes of the over-temperature detection interval.
[0007] A plurality of detection temperatures of a to-be-detected object are collected by the temperature sensor, and a first temperature integral value in a target time range and a second temperature integral value corresponding to the over-temperature detection interval are obtained according to the plurality of detection temperatures. The target time range is a time range between a first target time when all the plurality of detection temperatures first exceed the boundary temperature and a preset second target time when all the plurality of detection temperatures exceed the extension temperature.
[0008] Whether the temperature sensor fails is determined based on the first temperature integral value and the second temperature integral value.
[0009] Optionally, the first temperature integral value within the target time range is obtained by: constructing a first temperature function corresponding to the first target detected temperature within the target time range; and integrating the first temperature function to obtain the first temperature integral value.
[0010] Optionally, the second temperature integral value corresponding to the overtemperature detection interval is obtained by: constructing a second temperature function corresponding to the second target detection temperature in the overtemperature detection interval; and integrating the second temperature function to obtain the second temperature integral value.
[0011] Optionally, the over-temperature detection interval includes an over-high temperature detection interval and an over-low temperature detection interval, and polynomial fitting is performed on the relationship data of the temperature sensor within the normal operating temperature range, including: performing polynomial fitting on the corresponding relationship between the resistance value and temperature of the resistor element within the normal operating temperature range in the high temperature and low temperature directions respectively to obtain a relationship fitting curve; and taking the temperature interval within a preset range on the relationship fitting curve except the normal operating temperature range as the over-temperature detection interval.
[0012] Optionally, determining whether the temperature sensor is faulty based on the first temperature integral value and the second temperature integral value includes: determining an integral ratio corresponding to the second temperature integral value and the first temperature integral value; and determining whether the temperature sensor is faulty based on the integral ratio.
[0013] Optionally, the method further includes: after collecting a detected temperature of the object to be detected by the temperature sensor, determining whether the detected temperature exceeds the extended temperature; if the detected temperature exceeds the extended temperature, determining that the temperature sensor fails.
[0014] Optionally, determining whether the temperature sensor fails according to the integral ratio includes: comparing the integral ratio with a set threshold value to determine whether the temperature sensor fails according to the comparison result.
[0015] In a second aspect, an embodiment of the present application further provides a temperature sensor fault diagnosis device, the device comprising:
[0016] a data fitting module for performing polynomial fitting on the relationship data of the temperature sensor within the normal operating temperature range to determine an overtemperature detection interval on the relationship fitting curve, wherein the normal operating temperature range includes a boundary temperature representing the temperature extreme value of the normal operating temperature range, and the overtemperature detection interval is a temperature range outside the normal operating temperature range, and the overtemperature detection interval includes an extended temperature representing the temperature extreme value of the overtemperature detection interval;
[0017] The temperature integral determination module is configured to collect a plurality of detection temperatures of the to-be-detected object by using the temperature sensor, and obtain a first temperature integral value in a target time range and a second temperature integral value corresponding to an over-temperature detection interval, the target time range being a time range between a first target moment when the plurality of detection temperatures first exceed a boundary temperature and a preset second target moment.
[0018] The fault diagnosis module is configured to determine whether the temperature sensor is faulty according to the first temperature integral value and the second temperature integral value.
[0019] In a third aspect, an embodiment of the present application further provides an electronic device, including a processor, a memory and a bus, the memory stores machine readable instructions executable by the processor, when the electronic device is running, the processor and the memory communicate through the bus, and the machine readable instructions are executed by the processor to perform the steps of the fault diagnosis method of the temperature sensor.
[0020] In a fourth aspect, an embodiment of the present application further provides a computer readable storage medium, the computer readable storage medium stores a computer program, and the computer program is executed by a processor to perform the steps of the fault diagnosis method of the temperature sensor.
[0021] The embodiments of the present application have the following beneficial effects:
[0022] The fault diagnosis method, device, electronic device and medium of the temperature sensor provided by the embodiments of the present application can expand the normal temperature interval of the temperature sensor, obtain an over-temperature detection interval outside the normal temperature interval, and integrate the detection temperatures in different ranges, so as to determine whether the temperature sensor is faulty by using different temperature integral values, avoid diagnosing the fault by simply comparing the current temperature with the boundary value of the normal temperature interval, improve the accuracy of fault diagnosis, and solve the problem of low accuracy of fault diagnosis of the temperature sensor under extreme working conditions compared with the fault diagnosis method of the temperature sensor in the prior art.
[0023] In order to make the above purposes, features and advantages of the present application more obvious and easy to understand, the following preferred embodiments are described in detail below, and the accompanying drawings are described as follows. BRIEF DESCRIPTION OF DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can also be obtained without creative labor on the basis of these drawings.
[0025] Figure 1 A flow chart of a fault diagnosis method of a temperature sensor is shown;
[0026] Figure 2 A schematic diagram of a first temperature integral value is shown;
[0027] Figure 3 A schematic diagram of a second temperature integral value is shown;
[0028] Figure 4 A structural schematic diagram of a fault diagnosis device of a temperature sensor is shown;
[0029] Figure 5 A structural schematic diagram of an electronic device is shown. DETAILED DESCRIPTION
[0030] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the accompanying drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments of the present application, every other embodiment obtained by a person skilled in the art without creative work falls within the scope of protection of the present application.
[0031] It is worth noting that before the present application is proposed, in the control of the transmission assembly, a temperature sensor is needed to detect the oil temperature, the resistance element inside the temperature sensor converts the temperature into a resistance signal, which is converted into a voltage signal by an excitation current, to be recognized by the control unit, and the resistance value is calculated. The control unit takes the oil temperature value corresponding to the calculated resistance value read from the resistance-temperature correspondence table given by the temperature sensor manufacturer as the output signal. Since temperature directly reflects the viscosity of oil, it has a great influence on the control of the transmission assembly, therefore, how to improve the accuracy of fault diagnosis of the temperature sensor is crucial. The manufacturer of the temperature sensor will give the correspondence between the resistance value of the internal resistance element and the temperature in the normal working temperature range, and the existing technology usually takes the boundary value of the normal working temperature range given by the manufacturer as the critical value for fault diagnosis. If the current temperature is less than the minimum value of the normal working temperature range or greater than the maximum value of the normal working temperature range, it is determined that the temperature sensor has failed. However, under extreme working conditions, for example: when the temperature is higher than the normal working temperature range or lower than the normal working temperature range, the error rate of the above-mentioned fault diagnosis method of the temperature sensor is usually high, causing the problem of low accuracy of fault diagnosis of the temperature sensor under extreme working conditions.
[0032] Based on this, the present application provides a fault diagnosis method of a temperature sensor to improve the accuracy of fault diagnosis of the temperature sensor under extreme working conditions.
[0033] The fault diagnosis method of the temperature sensor in the present application can be applied to the electronic control power supply (ECU) on the vehicle.
[0034] Please refer to Figure 1 , Figure 1 The flow chart of the fault diagnosis method of the temperature sensor provided in the present application is shown in FIG. 1. Figure 1 As shown in FIG. 1, the fault diagnosis method of the temperature sensor provided in the present application comprises the following steps:
[0035] In step S101, the relationship data of the temperature sensor in the normal working temperature interval is polynomial fitted to determine the over-temperature detection interval on the relationship fitting curve.
[0036] In this step, the temperature sensor can refer to a sensor for measuring temperature, for example, the temperature sensor is a thermistor type sensor, i.e. an NTC type temperature sensor.
[0037] The normal working temperature interval includes the boundary temperature representing the temperature extreme value of the normal working temperature interval, for example: the normal working temperature interval is [T1, T2], and the boundary temperature refers to T1 or T2.
[0038] The over-temperature detection range is a temperature range outside the normal operating temperature range. The over-temperature detection range includes the extended temperature representing the temperature extreme value of the over-temperature detection range. The over-temperature detection range includes the over-high temperature detection range and the over-low temperature detection range. For example: the over-low temperature detection range is [T a ,T1), the over-temperature detection interval is (T2,T b ], then for the low temperature detection range, T a That is the extended temperature. For the over-high temperature detection range, T b This is the expansion temperature.
[0039] In the embodiments of the present application, the manufacturer of the temperature sensor provides a correspondence between the resistance value of the temperature sensor's resistor element and the measured temperature. Therefore, this correspondence can be used to determine the overtemperature detection range. Specifically, a polynomial fit can be performed on the correspondence between the resistance value of the resistor element and the temperature within the normal operating temperature range [T1, T2], in both the high and low temperature directions, to obtain a fitted curve. The temperature range within a preset range on the fitted curve, excluding the normal operating temperature range, is used as the overtemperature detection range.
[0040] Among them, the relationship fitting curve can be a linear curve or a multi-curve curve, and the corresponding relationship between the resistance value of the resistor and the temperature in other temperature ranges except the normal operating temperature range can be determined through the relationship fitting curve. In order to determine the over-temperature detection range, the over-temperature ratio corresponding to the over-high temperature detection range and the over-low temperature detection range can be preset respectively. The over-temperature ratio corresponding to the over-high temperature detection range and the over-low temperature detection range can be the same or different. For example: the over-temperature ratio of the two ranges is set to 5%, assuming that T1 = 0°C, T2 = 100°C, then T a =-5℃, T b =105°C. After performing a polynomial fit on the relationship data between the resistance value and temperature within [T1, T2] to obtain a relationship fitting curve, the corresponding relationship between the resistance value and temperature within the interval (100°C, 105°C) can be obtained based on the relationship fitting curve. This interval is the over-high temperature detection interval. Similarly, the corresponding relationship between the resistance value and temperature within the interval [-5°C, 0) can be obtained based on the relationship fitting curve. This interval is the under-low temperature detection interval.
[0041] Step S102 : using a temperature sensor to collect multiple detection temperatures of the object to be detected, and obtaining a first temperature integral value within a target time range and a second temperature integral value corresponding to an overtemperature detection interval based on the multiple detection temperatures.
[0042] In this step, only after the over-temperature detection interval is determined, can the temperature sensor be used to determine whether the current temperature of the object to be detected is within the over-temperature detection interval.
[0043] The to-be-detected object can refer to an object measured by the temperature sensor. For example, the to-be-detected object can be a transmission device arranged on a vehicle, and the detected temperature is the oil temperature in the transmission device.
[0044] The target time range is a time range between a first target time when all the detected temperatures do not exceed the extended temperature and a second target time preset.
[0045] The first temperature integral value can refer to an integral value of the temperature in the target time range.
[0046] The second temperature integral value can refer to an integral value of the temperature corresponding to the over-temperature detection interval.
[0047] In the embodiments of the present application, the to-be-detected object is a transmission device arranged on a vehicle. The temperature sensor is used to collect a plurality of detected temperatures of the transmission device in the current power-on and power-off process (the process from starting to extinguishing) of the vehicle. The temperature sensor actually collects the resistance values of the resistance elements, which are stored in the electronic control unit. The electronic control unit determines the detected temperatures in the normal working temperature range according to the corresponding relationship between the resistance values and the temperatures provided by the manufacturer, and determines the detected temperatures outside the normal working temperature range, for example, the detected temperatures in the over-temperature detection interval, according to the relationship fitting curve. Then, after the temperature sensor collects each detected temperature of the to-be-detected object, it is determined whether the detected temperature exceeds the extended temperature. If the detected temperature exceeds the extended temperature, it is determined that the temperature sensor has failed. For example, the extended temperature T a is -5°C, and the extended temperature T b is 105°C. The first detected temperature collected by the temperature sensor after the vehicle is powered on is 80°C. Since 80°C is within the interval [-5°C, 105°C] and does not exceed the extended temperature (-5°C or 105°C), it cannot be determined that the temperature sensor has failed. If the second detected temperature collected by the temperature sensor is 106°C, since 106°C is not within the interval [-5°C, 105°C] and exceeds the extended temperature (105°C), it is determined that the temperature sensor has failed. For another example, the first detected temperature collected by the temperature sensor after the vehicle is powered on is 20°C. Since 20°C is within the interval [-5°C, 105°C] and does not exceed the extended temperature (-5°C or 105°C), it cannot be determined that the temperature sensor has failed. If the second detected temperature collected by the temperature sensor is -6°C, since -6°C is not within the interval [-5°C, 105°C] and exceeds the extended temperature (-5°C), it is determined that the temperature sensor has failed.
[0048] At the same time, the detected time corresponding to each detected temperature is recorded. It is assumed that each detected temperature collected is denoted as T n , and the detected time corresponding to the detected temperature T nThe corresponding detection time is recorded as: t n , then each time a detection temperature is collected, the detection temperature T is determined. n Is it greater than T2 or less than T1? When T appears for the first time n >T2 or T n <T1时,将此时T n The corresponding detection time t n The first target time is recorded as t1, and the time when the vehicle is powered off is recorded as the second target time, and the second target time is recorded as t2.
[0049] When obtaining the first temperature integral value within the target time range, a first temperature function corresponding to the first target detected temperature within the target time range [t1, t2] may be constructed and the first temperature function may be integrated to obtain the first temperature integral value. The first target detected temperature may refer to the detected temperature within the target time range [t1, t2], the first temperature function may refer to a function of multiple first target detected temperatures with respect to time t, and the first temperature integral value is denoted as S1.
[0050] When obtaining the second temperature integral value corresponding to the over-temperature detection interval, a second temperature function corresponding to the second target detection temperature in the over-temperature detection interval can be constructed, and the second temperature function can be integrated to obtain the second temperature integral value. The second target detection temperature can refer to the temperature in the over-temperature detection interval (T2, T b ] or low temperature detection interval [T a , T1), the second temperature function may refer to a function of multiple second target detection temperatures with respect to time t, and the second temperature integral value is recorded as: S2.
[0051] It should be noted that the first temperature function and the second temperature function can be constructed separately, or the temperature function can be directly constructed, and then the temperature function corresponding to the target time range is used as the first temperature function, and the temperature function corresponding to the overtemperature detection interval is used as the second temperature function.
[0052] Refer to the following Figure 2 and Figure 3 The following describes a method for calculating the first temperature integral value and the second temperature integral value when the abnormal detection temperature is greater than T2.
[0053] Figure 2 A schematic diagram of the first temperature integral value provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, t1 is the first occurrence of T n >T2, t2 is the time when the vehicle is powered off, then the first temperature integral value is all the b ] range of the detection temperature in the time range [t1, t2], that is, the first temperature integral value is Figure 2 The area of the shaded region.
[0054] Figure 3 A schematic diagram of the second temperature integral value provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the second temperature integral value is all the temperatures in [T2,T b ] range of the detection temperature in the time range [t1, t2], that is, the second temperature integral value is Figure 3 The area of the shaded region.
[0055] It should be noted that when the abnormal detection temperatures are all less than T1, the first temperature integral value is the value of all the abnormal detection temperatures between [T2, T a The second temperature integral value is the integration of the detected temperature in the range of [T a ,T1] in the time range [t1,t2].
[0056] If there is both a detected temperature less than T1 and a detected temperature greater than T2, the first temperature integral value and the second temperature integral value corresponding to the low temperature detection interval and the first temperature integral value and the second temperature integral value corresponding to the high temperature detection interval are calculated respectively.
[0057] Step S103 : determining whether the temperature sensor is faulty based on the first temperature integral value and the second temperature integral value.
[0058] In this step, the integral ratio of the second temperature integral value S2 to the first temperature integral value S1 is determined. Based on this integral ratio, it is determined whether the temperature sensor has failed. The integral ratio is denoted as FR, where FR = S2 / S1. A larger FR value indicates a higher risk of temperature sensor failure, while a smaller FR value indicates a lower risk of temperature sensor failure.
[0059] In one possible embodiment of the present application, the following method can be used to determine whether a temperature sensor has failed: the integral ratio is compared with a set threshold value, and the temperature sensor is determined to have failed based on the comparison result. For example, if the threshold value is set to 0.1, if the value of FR is less than 0.1, the temperature sensor is determined to be healthy; if the value of FR is greater than or equal to 0.1, the temperature sensor is determined to have failed.
[0060] It should be noted that since the normal operating temperature range of the object to be detected is different under different working conditions, the two boundary temperatures T1 and T2 can be adjusted according to the values provided by the temperature sensor manufacturer and the actual application scenarios. Those skilled in the art can select the specific values of the two boundary temperatures according to actual conditions, and this application does not limit them here.
[0061] There are multiple (T a ,T1) range, and there is a detection temperature (T2,T b ) range, the integral ratios corresponding to the detection temperatures in different ranges can be calculated respectively, and then whether the temperature sensor fails can be determined based on the sum of the two integral ratios, but the above working conditions are extremely unlikely to occur.
[0062] Compared with the fault diagnosis method of temperature sensors in the prior art, the present application can expand the normal temperature range of the temperature sensor, obtain an overtemperature detection range outside the normal temperature range, and integrate the detected temperatures in different ranges to use different temperature integral values to determine whether the temperature sensor has a fault, avoiding diagnosing the fault by simply comparing the current temperature with the boundary value of the normal temperature range, improving the accuracy of fault diagnosis, and solving the problem of low fault diagnosis accuracy of temperature sensors under extreme working conditions.
[0063] Based on the same inventive concept, the embodiment of the present application also provides a fault diagnosis device for a temperature sensor corresponding to the fault diagnosis method for a temperature sensor. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the fault diagnosis method for the temperature sensor in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0064] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of a temperature sensor fault diagnosis device provided in an embodiment of the present application. Figure 4 As shown in FIG, the temperature sensor fault diagnosis device 200 includes:
[0065] A data fitting module 201 is configured to perform polynomial fitting on the relationship data of the temperature sensor within a normal operating temperature range to determine an overtemperature detection interval on the relationship fitting curve, wherein the normal operating temperature range includes a boundary temperature representing a temperature extreme value of the normal operating temperature range, and the overtemperature detection interval is a temperature range outside the normal operating temperature range, and the overtemperature detection interval includes an extended temperature representing a temperature extreme value of the overtemperature detection interval;
[0066] The temperature integral determination module 202 is configured to use a temperature sensor to collect multiple detected temperatures of the object to be detected, and obtain a first temperature integral value within a target time range and a second temperature integral value corresponding to the overtemperature detection interval based on the multiple detected temperatures. The target time range is the time range between a first target moment when the multiple detected temperatures first exceed the boundary temperature when none of the multiple detected temperatures exceed the extended temperature and a preset second target moment.
[0067] The fault diagnosis module 203 is configured to determine whether a fault occurs in the temperature sensor according to the first temperature integral value and the second temperature integral value.
[0068] See also Figure 5 , Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 5 As shown in FIG, the electronic device 300 includes a processor 310 , a memory 320 and a bus 330 .
[0069] The memory 320 stores machine-readable instructions executable by the processor 310. When the electronic device 300 is running, the processor 310 communicates with the memory 320 via the bus 330. When the machine-readable instructions are executed by the processor 310, the above-mentioned Figure 1 The steps of the temperature sensor fault diagnosis method in the illustrated method embodiment and their specific implementation can be found in the method embodiment, which will not be described in detail here.
[0070] The embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1 The steps of the temperature sensor fault diagnosis method in the illustrated method embodiment and their specific implementation can be found in the method embodiment, which will not be described in detail here.
[0071] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0072] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. There may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some communication interface, indirect coupling or communication connection of devices or units, which may be electrical, mechanical or other forms.
[0073] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0074] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0075] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0076] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The scope of protection of the present application is not limited thereto. Although the present application has been described in detail with reference to the above-mentioned embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above-mentioned embodiments within the technical scope disclosed in the present application, or perform equivalent replacements for some of the technical features thereof. These modifications, changes, or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A method for diagnosing a fault of a temperature sensor, characterized in that: include: Performing polynomial fitting on relationship data of the temperature sensor within a normal operating temperature range to determine an overtemperature detection interval on the relationship fitting curve, wherein the normal operating temperature range includes a boundary temperature representing a temperature extreme of the normal operating temperature range, and the overtemperature detection interval is a temperature range outside the normal operating temperature range, and the overtemperature detection interval includes an extended temperature representing a temperature extreme of the overtemperature detection interval; Using the temperature sensor to collect multiple detected temperatures of the object to be detected, and obtaining a first temperature integral value within a target time range and a second temperature integral value corresponding to the overtemperature detection interval based on the multiple detected temperatures, the target time range being a time range between a first target moment when the multiple detected temperatures first exceed the boundary temperature when none of the multiple detected temperatures exceed the extended temperature and a preset second target moment; It is determined whether the temperature sensor fails according to the first temperature integral value and the second temperature integral value.
2. The method according to claim 1, characterized in that Get the first temperature integral value within the target time range by: Constructing a first temperature function corresponding to the first target detected temperature within the target time range; The first temperature function is integrated to obtain a first temperature integral value.
3. The method according to claim 1, characterized in that The second temperature integral value corresponding to the over-temperature detection interval is obtained by: Constructing a second temperature function corresponding to a second target detection temperature within the overtemperature detection interval; The second temperature function is integrated to obtain a second temperature integral value.
4. The method according to claim 1, wherein The over-temperature detection interval includes an over-high temperature detection interval and an over-low temperature detection interval, and the polynomial fitting of the relationship data of the temperature sensor within the normal operating temperature range includes: Performing polynomial fitting on the corresponding relationship between the resistance value and temperature of the resistor element within the normal operating temperature range in the high temperature direction and the low temperature direction respectively to obtain a relationship fitting curve; A temperature interval within a preset range on the relationship fitting curve, excluding the normal operating temperature interval, is used as an over-temperature detection interval.
5. The method according to claim 1, wherein Determining whether the temperature sensor fails according to the first temperature integral value and the second temperature integral value includes: determining an integral ratio corresponding to the second temperature integral value and the first temperature integral value; It is determined whether the temperature sensor fails according to the integral ratio.
6. The method according to claim 1, characterized in that The method further comprises: After collecting a detected temperature of the object to be detected by the temperature sensor, determining whether the detected temperature exceeds the extended temperature; If the detected temperature exceeds the extended temperature, it is determined that the temperature sensor has failed.
7. The method according to claim 5, characterized in that Determining whether the temperature sensor fails according to the integral ratio includes: The integral ratio is compared with a set threshold value to determine whether the temperature sensor fails according to the comparison result.
8. A fault diagnosis device for a temperature sensor, characterized in that: include: a data fitting module, configured to perform polynomial fitting on the relationship data of the temperature sensor within a normal operating temperature range to determine an overtemperature detection interval on the relationship fitting curve, wherein the normal operating temperature range includes a boundary temperature representing a temperature extreme of the normal operating temperature range, and the overtemperature detection interval is a temperature range outside the normal operating temperature range, and the overtemperature detection interval includes an extended temperature representing a temperature extreme of the overtemperature detection interval; a temperature integral determination module, configured to use the temperature sensor to collect multiple detected temperatures of the object to be detected, and obtain, based on the multiple detected temperatures, a first temperature integral value within a target time range and a second temperature integral value corresponding to the overtemperature detection interval, wherein the target time range is a time range between a first target moment when the multiple detected temperatures first exceed the boundary temperature when none of the multiple detected temperatures exceed the extended temperature and a preset second target moment; A fault diagnosis module is used to determine whether the temperature sensor has a fault according to the first temperature integral value and the second temperature integral value.
9. An electronic device, characterized in that: include: A processor, a storage medium, and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the storage medium communicate via the bus, and the processor executes the machine-readable instructions to perform the steps of the temperature sensor fault diagnosis method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the fault diagnosis method for a temperature sensor according to any one of claims 1 to 7 are executed.
Citation Information
Patent Citations
Low-cost temperature control system for micromechanical inertial measurement combination
CN106767799A
Temperature sensor fault diagnosis method, storage medium and traction system
CN116429292A