A temperature sensing method, a temperature sensor, a vehicle, and a computer program product.

By introducing a dual-resistor redundancy design into the temperature sensor, the resistance difference and rate of change are monitored, and normal resistance is automatically identified for temperature measurement. This solves the problem of system failure caused by single-point faults and achieves higher reliability and accuracy.

CN119533692BActive Publication Date: 2026-03-13CHINA FAW CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-19
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

Existing temperature sensor systems cannot continue to provide accurate temperature measurement data when the resistor or sensor malfunctions or becomes abnormal, affecting the reliability and stability of the vehicle.

Method used

The system employs a dual-resistor redundancy design, which automatically identifies and utilizes the normal resistor for temperature measurement by monitoring the resistance difference and instantaneous resistance change rate of the two resistors, thereby enhancing the reliability and accuracy of the system.

Benefits of technology

Even if one resistor fails, the system can still measure the temperature using another working resistor, which improves the accuracy of temperature measurement and the stability of the system, and reduces the impact of external interference factors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119533692B_ABST
    Figure CN119533692B_ABST
Patent Text Reader

Abstract

This application provides a temperature sensing method, a temperature sensor, a vehicle, and a computer program product. The method is applied to a temperature sensor including a first resistor and a second resistor. The method includes: when it is determined that the resistance difference between the first resistor and the second resistor at the current sampling time exceeds a preset difference threshold, determining a first instantaneous resistance change rate and a second instantaneous resistance change rate of the first resistor and the second resistor at the current sampling time, respectively; determining the resistor whose instantaneous resistance change rate meets a preset requirement as a normal resistor from the first resistor and the second resistor; and using the normal resistor to sense the temperature. By introducing two resistors and monitoring their instantaneous resistance change rates, even if one resistor fails or is abnormal, the system can still identify and use the other normally functioning resistor for temperature measurement, enhancing the reliability and stability of the entire system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of temperature detection technology, and more specifically, to a temperature sensing method, a temperature sensor, a vehicle, and a computer program product. Background Technology

[0002] Temperature sensors are used in transmission assembly control. The internal resistive element of the temperature sensor converts temperature into a resistance signal, which is then converted into a voltage signal by the excitation current. This voltage signal is recognized by the control unit, which calculates the resistance value. The control unit then reads the oil temperature value according to the resistance-temperature correspondence table provided by the temperature sensor manufacturer, and uses this as the output signal. Since temperature directly reflects oil viscosity, it has a significant impact on transmission assembly control. The stability of the temperature sensor and the accuracy of the temperature detection results are crucial to transmission control. If the resistor or sensor malfunctions or malfunctions, the entire temperature measurement system will fail, severely affecting the reliability and stability of the vehicle. However, currently, there is no method in the relevant technology to improve the reliability of the temperature measurement system. Summary of the Invention

[0003] The purpose of this application is to provide a temperature sensing method, a temperature sensor, a vehicle, and a computer program product to achieve the technical effect of improving the reliability of temperature measurement.

[0004] A first aspect of this application provides a temperature sensing method, the method being applied to a temperature sensor including a first resistor and a second resistor; the method includes:

[0005] If it is determined that the resistance values ​​of the first resistor and the second resistor at the current sampling time differ by more than a preset difference threshold, the first instantaneous resistance change rate and the second instantaneous resistance change rate of the first resistor and the second resistor at the current sampling time are determined respectively.

[0006] The resistor whose instantaneous resistance change rate meets the preset requirements is determined from the first resistor and the second resistor as the normal resistor;

[0007] Temperature is sensed using the normal resistance.

[0008] In the above implementation process, a redundant temperature sensing system was constructed by introducing two resistors and monitoring their resistance changes and rates of change. Even if one resistor fails or malfunctions, the system can still identify and utilize the other normally functioning resistor for temperature measurement, thereby enhancing the reliability and stability of the entire system.

[0009] Further, the resistance value includes the first resistance value and the second resistance value corresponding to the first resistor and the second resistor at the current sampling time, respectively; before determining that the difference between the resistance values ​​of the first resistor and the second resistor at the current sampling time exceeds a preset difference threshold, the method further includes:

[0010] Both the first resistance value and the second resistance value are determined to be within a preset resistance value range; the resistance value range is the minimum to maximum resistance value range of the first resistor and the second resistor.

[0011] In the above implementation process, a layer of data validity verification is added before comparing the resistance differences. This verification step helps to eliminate erroneous comparisons caused by resistance anomalies (such as extreme resistance values ​​deviating from the normal range), thereby improving the accuracy of subsequent resistance change rate analysis and temperature sensing. At the same time, it also enhances the reliability of the entire temperature sensing system, enabling the system to make more accurate judgments and responses when facing abnormal situations.

[0012] Furthermore, the method also includes:

[0013] If it is determined that the first resistance value or the second resistance value is outside the resistance value range, a normal resistance value within the resistance value range is determined, and the temperature is sensed using the normal resistance value.

[0014] If it is determined that both the first resistance value and the second resistance value are outside the range of the resistance value, temperature sensing is stopped.

[0015] In the above implementation process, the system automatically identifies and determines the normal resistor within the resistance range, and uses the normal resistor to continue sensing the temperature. This ensures that even if one resistor is abnormal, the system can still use another normal resistor to measure the temperature, thereby maintaining the system's measurement function and accuracy and improving the system's reliability.

[0016] Furthermore, the method also includes:

[0017] If the difference in resistance values ​​does not exceed the difference threshold, the temperature is sensed using the first resistor and the second resistor.

[0018] In the above implementation process, if the difference in resistance does not exceed the difference threshold, it indicates that the measured values ​​of the two resistors are basically consistent and within the normal range, without significant abnormalities. At this point, these two resistors can be directly used for temperature sensing.

[0019] Further, the step of sensing temperature using the first resistor and the second resistor includes:

[0020] Determine the temperature value corresponding to the average of the first resistance value and the second resistance value;

[0021] The temperature value is taken as the temperature sensed by the temperature sensor.

[0022] In the above implementation process, the method achieves the fusion of the two resistance measurement results by calculating the average resistance values ​​of the first and second resistors and determining the temperature value based on this average value. Since the resistance values ​​of the two resistors are similar (i.e., the difference does not exceed the difference threshold), their measurement results also have a high correlation. Therefore, averaging these two results can reduce the influence of random errors and noise, and improve the accuracy of temperature measurement.

[0023] Further, the resistance value includes the first resistance value and the second resistance value corresponding to the first resistor and the second resistor at the current sampling time, respectively; the first instantaneous resistance change rate includes the rate of change of the temperature of the first resistor over time; the second instantaneous resistance change rate includes the rate of change of the temperature of the second resistor over time; determining the first instantaneous resistance change rate and the second instantaneous resistance change rate of the first resistor and the second resistor at the current sampling time, respectively, includes:

[0024] Determine the first temperature and the second temperature corresponding to the first resistance value and the second resistance value, respectively;

[0025] The rate of change of the temperature of the first resistor over time is determined based on the first temperature and a preset rate of change function of temperature over time.

[0026] The rate of change of the temperature of the second resistor over time is determined based on the function of the second temperature and the rate of change.

[0027] The first instantaneous resistance change rate and the second instantaneous resistance change rate are determined based on the rate of change of temperature of the first resistor over time and the rate of change of temperature of the second resistor over time, respectively.

[0028] In the above implementation process, using the rate of change of temperature over time to determine the instantaneous rate of change of resistance means that not only the current resistance value is considered, but also its trend over time. This helps to reduce errors caused by factors such as resistor aging, ambient temperature fluctuations, or measurement noise, thereby improving the accuracy of temperature measurement.

[0029] Further, determining the resistor whose instantaneous resistance change rate meets a preset requirement from the first resistor and the second resistor as a normal resistor includes:

[0030] The resistor with the smallest instantaneous resistance change rate among the first resistor and the second resistor is the normal resistor.

[0031] In the above implementation process, during temperature sensing, the resistance value may be affected by various external factors, such as ambient temperature fluctuations and electromagnetic noise. These interference factors may cause instantaneous changes in the resistance value, thus affecting the accuracy of temperature measurement. By selecting the resistor with the smallest instantaneous resistance change rate as the normal resistor, the influence of these interference factors on the measurement results can be reduced, and the resistor with a smaller rate of change is more likely to represent the true temperature change.

[0032] A second aspect of this application provides a temperature sensor, which includes a first resistor and a second resistor, and performs temperature sensing using any of the methods described in the first aspect.

[0033] A third aspect of this application provides a vehicle that uses the temperature sensor described in the second aspect.

[0034] A fourth aspect of this application provides a computer program product, the computer program product including a computer program, which, when executed by a processor, implements any of the methods described in the first aspect. Attached Figure Description

[0035] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0036] Figure 1 A schematic flowchart of a temperature sensing method provided in an embodiment of this application;

[0037] Figure 2 A schematic flowchart illustrating another temperature sensing method provided in an embodiment of this application;

[0038] Figure 3 A schematic flowchart illustrating another temperature sensing method provided in an embodiment of this application;

[0039] Figure 4 This is a schematic flowchart of another temperature sensing method provided in an embodiment of this application. Detailed Implementation

[0040] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.

[0041] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0042] In related technologies, many temperature sensor systems employ a single-point measurement method, relying on only one resistor or sensor for temperature measurement. If this resistor or sensor malfunctions or malfunctions, the entire system fails and can no longer provide accurate temperature measurement data. This single-point-of-failure problem severely impacts the reliability and stability of the system.

[0043] To address any of the problems mentioned above, embodiments of this application provide a temperature sensing method, referring to... Figure 1 , Figure 1 This is a schematic flowchart of a temperature sensing method provided in an embodiment of this application.

[0044] In this embodiment, the method is applied to a temperature sensor including a first resistor and a second resistor; the method includes:

[0045] Step S10: If it is determined that the resistance difference between the first resistor and the second resistor at the current sampling time exceeds a preset difference threshold, determine the first instantaneous resistance change rate and the second instantaneous resistance change rate of the first resistor and the second resistor at the current sampling time, respectively.

[0046] It should be noted that this embodiment can be used for temperature sensing in vehicles. The execution subject of this embodiment includes a temperature sensor and may also include a vehicle controller.

[0047] The current sampling time refers to the current point in time.

[0048] The accuracy of resistance measurement is affected by various factors, including the resistor's material, manufacturing process, temperature coefficient, and stability. Typically, there is a certain difference between the output resistance value and the actual resistance value. Similarly, there is a certain deviation between the measured value and the true value of a temperature sensor; this deviation is the accuracy of the temperature sensor's measurement. The preset difference threshold can be determined based on the resistance measurement accuracy or the temperature sensor's measurement accuracy. For example, if the temperature sensor's measurement accuracy is ±5℃, and the temperature sensor includes two resistors, then the preset difference threshold can be 10℃, meaning the preset difference threshold can be twice the absolute value of the temperature sensor's measurement accuracy. This embodiment uses a preset difference threshold of 10℃ as an example. As an example, firstly, according to the resistance-temperature correspondence table, the resistance values ​​of the first and second resistors at the current sampling time are converted into corresponding temperature values ​​(i.e., the first temperature and the second temperature). If the difference between the first and second temperatures does not exceed 10℃, then the first instantaneous resistance change rate and the second instantaneous resistance change rate of the first and second resistors at the current sampling time are determined respectively.

[0049] The instantaneous resistance change rate reflects how quickly the resistance value changes over time. Calculating the instantaneous resistance change rate of the first and second resistors at the current sampling moment may involve continuously sampling the resistance values ​​and calculating the change rate using the difference method.

[0050] It should be understood that by adding redundant resistors to the temperature sensor and simultaneously acquiring the resistance signals of two resistor elements, and processing the resistance signals according to the resistance-temperature correspondence curve (equivalent to a resistance-temperature correspondence table), two sets of temperature signals can be obtained. Further processing of the two sets of temperature signals yields the final temperature data that closely approximates the actual temperature.

[0051] In addition to the first and second resistors, the temperature sensor may include more resistive elements, but this embodiment is not limited to this.

[0052] Step S20: Determine the resistor whose instantaneous resistance change rate meets the preset requirements from the first resistor and the second resistor as the normal resistor;

[0053] It should be noted that the preset requirement can be determined based on the acceptable range of resistance change under normal operating conditions, or it can be the instantaneous resistance change rate that is the smallest compared to the change rate of the first resistor and the second resistor.

[0054] After calculating the instantaneous resistance change rate of the first and second resistors, they are compared with preset requirements. If the instantaneous resistance change rate of a resistor meets the preset requirements, that resistor is considered normal; otherwise, it is considered faulty. If the instantaneous resistance change rate of both resistors does not meet the preset requirements, it means that both resistors are faulty.

[0055] Step S30: Sensing temperature using the normal resistance.

[0056] In a temperature sensing system, the resistance value of a normal resistor changes with temperature. Based on the resistance-temperature correspondence table, the resistance value of the normal resistor is converted into corresponding temperature information, thereby achieving the effect of sensing temperature through resistance.

[0057] In this embodiment, the normal resistance is determined by comparing the resistance difference and instantaneous resistance change rate of the two resistors, and the normal resistance is used for temperature sensing, which improves the accuracy of temperature measurement and the reliability of the system.

[0058] Based on any of the above embodiments, the resistance value includes the first resistance value and the second resistance value corresponding to the first resistor and the second resistor at the current sampling time, respectively; before determining that the difference between the resistance values ​​of the first resistor and the second resistor at the current sampling time exceeds a preset difference threshold, the method further includes:

[0059] Both the first resistance value and the second resistance value are determined to be within a preset resistance value range; the resistance value range is the minimum to maximum resistance value range of the first resistor and the second resistor.

[0060] It should be noted that the preset resistance range refers to the interval between the minimum and maximum resistance values ​​that the first and second resistors can achieve under normal operating conditions. The resistance range can be obtained by consulting the resistor's datasheet or determined through experimental testing.

[0061] Before determining the resistance difference between two resistors, it is necessary to ensure that their resistance values ​​are both within the preset resistance range. If the resistance value of one resistor exceeds the preset resistance range, it means that the resistor is faulty. At this time, determining the resistance difference between the two resistors will be meaningless.

[0062] In this embodiment, verifying whether the resistance values ​​of the first and second resistors are within a preset resistance range is an important step in the temperature sensing method. This step ensures that the resistors are in normal working condition, providing an accurate and reliable basis for subsequent temperature sensing.

[0063] Based on any of the above embodiments, the method further includes, for example: Figure 2Steps S01-S02 shown:

[0064] Step S01: If it is determined that the first resistance value or the second resistance value is outside the resistance value range, determine the normal resistance that is within the resistance value range, and use the normal resistance to sense the temperature.

[0065] Step S02: If it is determined that both the first resistance value and the second resistance value are outside the resistance value range, stop sensing the temperature.

[0066] Specifically, if either the first or second resistance value is determined to be outside its range, it means that at least one resistor may be faulty. In this case, it is necessary to check whether the other resistor's resistance value is within its range. If the other resistor's resistance value is within its range, it can be considered a normal resistor, and temperature sensing can be performed using this normal resistor. The temperature value corresponding to this normal resistor's resistance value will be used as the final output temperature, while simultaneously indicating that the other resistor is faulty so that the user can replace it as soon as possible. If both the first and second resistance values ​​are determined to be outside their range, it means that both resistors may be faulty. In this case, stop using these two resistors to sense temperature and issue an alarm or error message for further troubleshooting and repair.

[0067] In this embodiment, the state of the resistor is automatically detected, and measures are taken in a timely manner when an abnormality is detected (such as using a normal resistor for temperature sensing or stopping temperature sensing), thereby enhancing the robustness of the system.

[0068] Based on any of the above embodiments, the method further includes:

[0069] If the difference in resistance values ​​does not exceed the difference threshold, the temperature is sensed using the first resistor and the second resistor.

[0070] It should be understood that the internal resistive element of a temperature sensor can be simply understood as a resistor whose resistance changes non-linearly with temperature. Therefore, a temperature sensor malfunction manifests as a deviation in resistance value. Typically, for the same resistive element, the relationship between resistance and temperature is provided by the temperature sensor manufacturer, and at the same temperature, the resistance value will not differ significantly.

[0071] In practical applications, the simultaneous failure of two resistive elements is extremely rare. When one resistive element fails, the other, which is functioning normally, is used for temperature sensing, ensuring that the temperature sensor retains all its functions. When both resistors are functioning correctly, the output data from both resistors can be cross-checked to make the output temperature closer to the actual value. When it is determined that the resistance values ​​of the first and second resistors at the current sampling time do not differ by more than a preset difference threshold, it means that the resistance values ​​of the two resistors are relatively close and both are in normal working condition. In this case, both resistors can be used together for temperature sensing.

[0072] The methods for sensing temperature using both a first resistor and a second resistor include, but are not limited to, the following:

[0073] ① Use the resistance values ​​of two resistors to calculate the average temperature value to improve the accuracy of the measurement;

[0074] ② Input the resistance values ​​of the two resistors into the preset algorithm model to obtain a more accurate temperature estimate;

[0075] ③ Take a weighted average or other combination of the resistance values ​​of the two resistors to obtain a more stable temperature measurement value.

[0076] In this embodiment, when it is determined that the resistance values ​​of the first resistor and the second resistor do not exceed a preset difference threshold, these two resistors can be used together for temperature sensing. This helps improve the accuracy of the measurement and the robustness of the system.

[0077] Based on any of the above embodiments, the step of sensing temperature using the first resistor and the second resistor includes, for example: Figure 3 Steps S011-S012 shown:

[0078] Step S011: Determine the temperature value corresponding to the average value of the first resistance value and the second resistance value;

[0079] Step S012: Use the temperature value as the temperature sensed by the temperature sensor.

[0080] Specifically, when the resistance values ​​of the first resistor and the second resistor are both within a preset resistance range at a certain moment (equivalent to the temperatures collected by the first resistor and the second resistor at a certain moment not exceeding the measurement range of the temperature sensor), and the difference between the resistance values ​​of the two resistors does not exceed a preset difference threshold (equivalent to the difference between the temperatures collected by the first resistor and the second resistor at a certain moment not exceeding twice the absolute value of the detection accuracy of the temperature sensor), the average value of the temperatures measured by the first resistor and the second resistor will be used as the output temperature of the temperature sensor.

[0081] In this embodiment, when the resistance values ​​of the first resistor and the second resistor do not differ by more than a preset difference threshold, the average resistance value of the two resistors is calculated, and the corresponding temperature value is determined based on the average value. This achieves the effect of making the output temperature closer to the actual value by mutual verification between the two resistors, thereby improving the accuracy of the temperature sensor in detecting the temperature.

[0082] Based on any of the above embodiments, the resistance value includes the first resistance value and the second resistance value corresponding to the first resistor and the second resistor at the current sampling time, respectively; the first instantaneous resistance change rate includes the temperature change rate of the first resistor over time; the second instantaneous resistance change rate includes the temperature change rate of the second resistor over time; determining the first instantaneous resistance change rate and the second instantaneous resistance change rate of the first resistor and the second resistor at the current sampling time includes, for example... Figure 4 Steps S11-S14 are shown below:

[0083] Step S11: Determine the first temperature and the second temperature corresponding to the first resistance value and the second resistance value, respectively;

[0084] Specifically, the resistance values ​​(i.e., the first resistance value and the second resistance value) measured at the current sampling time are converted into corresponding temperature values ​​(i.e., the first temperature and the second temperature) through the resistance-temperature correspondence table.

[0085] Step S12: Determine the rate of change of the temperature of the first resistor over time based on the first temperature and a preset rate of change function of temperature over time;

[0086] Step S13: Determine the rate of change of the temperature of the second resistor over time based on the second temperature and the rate of change function;

[0087] It's important to note that the rate of change of temperature is a mathematical expression that reflects how temperature changes over time. It describes how temperature changes from one value to another within a specific timeframe. The rate of change of temperature can take many forms, depending on the complexity of the system or the temperature data used. In simple systems, it can be a linear function, representing a linear increase or decrease in temperature over time. In more complex systems, it can be a nonlinear function, describing complex temperature changes over time, such as exponential growth or periodic fluctuations. Constructing a rate of change of temperature requires experimental data or a theoretical model. Experimental data can be collected using devices such as sensors and thermometers. When constructing the function, a suitable mathematical model needs to be selected (such as linear regression, nonlinear regression, time series analysis, etc.). This embodiment does not impose any restrictions on the rate of change function.

[0088] In practical implementation, the rate of change function refers to the derivative of the rate of change of temperature with respect to time. Since the temperature sampling time interval approaches infinitesimal, the derivative function can be used to determine whether an instantaneous temperature change has occurred at the current time. Under normal circumstances, temperature does not change abruptly.

[0089] Step S14: Determine the first instantaneous resistance change rate and the second instantaneous resistance change rate based on the rate of change of the temperature of the first resistor over time and the rate of change of the temperature of the second resistor over time, respectively.

[0090] Understandably, since there is a fixed relationship between the resistance value and temperature (usually non-linear, determined by the resistance-temperature correspondence table provided by the temperature sensor manufacturer), the rate of temperature change is converted into the rate of resistance change through this relationship.

[0091] The rate of change of resistance actually refers to the rate at which the temperature of the resistor changes over time, as reflected in the resistance value, rather than the rate at which the resistance value itself changes over time.

[0092] In this embodiment, the instantaneous rate of change of resistance is derived from the resistance value. This rate of change reflects the rate of temperature change of the resistor over time. By determining the instantaneous rate of change of resistance, the temperature change of the resistor over time can be understood more accurately, thereby improving the dynamic response of temperature measurement.

[0093] Based on any of the above embodiments, determining the resistor whose instantaneous resistance change rate meets a preset requirement from the first resistor and the second resistor as a normal resistor includes:

[0094] The resistor with the smallest instantaneous resistance change rate among the first resistor and the second resistor is the normal resistor.

[0095] It should be understood that if the resistance value changes significantly within a short period of time, it may indicate a fault in the resistor itself. In contrast, resistors with a smaller rate of change are more likely to be in a stable and normal state. Therefore, the resistor with the smallest instantaneous rate of change in resistance is identified as the normal resistor.

[0096] In practical implementation, if at a certain moment the difference between the first and second temperature data collected by the first and second resistors exceeds twice the absolute value of the temperature sensor's detection accuracy, then the absolute values ​​of the derivative functions of these two sets of temperature data are compared. The temperature data with the smaller absolute value of the derivative function is taken as the output temperature of the temperature sensor. The derivative function characterizes both the instantaneous rate of change of the resistance's temperature and the instantaneous rate of change of its resistance. The resistor with the larger absolute value of its derivative function is identified as the faulty resistor (i.e., the resistor with the larger instantaneous rate of change is the faulty resistor), and a sensor fault is indicated, requiring immediate replacement.

[0097] In this embodiment, by comparing the instantaneous resistance change rates of the first resistor and the second resistor, and selecting the resistor with the smallest change rate as the normal resistor, the state of the resistor can be determined more accurately, thereby improving the reliability and stability of the system.

[0098] Based on the methods described in any of the above embodiments, this application also provides a temperature sensor, which includes a first resistor and a second resistor, and uses the methods described in any of the above embodiments to perform temperature sensing.

[0099] Based on any of the above embodiments, this application also provides a vehicle that uses the temperature sensor described in any of the above embodiments.

[0100] Based on the methods described in any of the above embodiments, this application also provides a computer program product, which includes one or more computer programs or instructions. The computer program or instructions may be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. When executed by a processor, the computer program implements the methods described in any of the above embodiments.

[0101] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0102] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0103] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0104] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application. It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0105] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0106] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

Claims

1. A temperature sensing method, characterized by, The method is applied to a temperature sensor comprising a first resistor and a second resistor; the method comprises: in a case where it is determined that the resistance values of the first resistor and the second resistor at a current sampling time differ by more than a preset difference threshold, determining a first instantaneous resistance value change rate and a second instantaneous resistance value change rate of the first resistor and the second resistor at the current sampling time, respectively; determining, from the first resistor and the second resistor, a resistor with an instantaneous resistance value change rate meeting a preset requirement as a normal resistor; sensing temperature by using the normal resistor.

2. The method of claim 1, wherein, The resistance values comprise first and second resistance values corresponding to the first resistor and the second resistor at the current sampling time, respectively; Before the determination that the resistance values of the first resistor and the second resistor at a current sampling time differ by more than a preset difference threshold, the method further comprises: determining that the first and second resistance values are both within a preset resistance value range; The resistance value range is a minimum to maximum resistance value range of the first resistor and the second resistor.

3. The method of claim 2, wherein, The method further comprises: if it is determined that the first or second resistance value is outside the resistance value range, determining a normal resistor within the resistance value range and sensing temperature by using the normal resistor; if it is determined that the first and second resistance values are both outside the resistance value range, stopping temperature sensing.

4. The method of claim 1 or 2, wherein, The method further comprises: in a case where it is determined that the resistance values differ by no more than the difference threshold, sensing temperature by using the first resistor and the second resistor.

5. The method of claim 4, wherein, The sensing of temperature by using the first resistor and the second resistor comprises: determining a temperature value corresponding to an average of the first and second resistance values; taking the temperature value as a temperature sensed by the temperature sensor.

6. The method of claim 1, wherein, The resistance values comprise first and second resistance values corresponding to the first resistor and the second resistor at the current sampling time, respectively; the first instantaneous resistance value change rate comprises a change rate of a first resistor temperature with time; the second instantaneous resistance value change rate comprises a change rate of a second resistor temperature with time; the determination of the first and second instantaneous resistance value change rates of the first resistor and the second resistor at the current sampling time, respectively, comprises: determining first and second temperatures corresponding to the first and second resistance values, respectively; determining the change rate of the first resistor temperature with time according to the first temperature and a preset temperature change rate function with time; determining the change rate of the second resistor temperature with time according to the second temperature and the change rate function; determining the first and second instantaneous resistance value change rates according to the change rates of the first and second resistor temperatures with time, respectively.

7. The method of claim 1, wherein, The determination of a resistor with an instantaneous resistance value change rate meeting a preset requirement as a normal resistor from the first resistor and the second resistor comprises: determining, from the first resistor and the second resistor, a resistor with the smallest instantaneous resistance value change rate as the normal resistor.

8. A temperature sensor, characterized by The temperature sensor comprises a first resistor and a second resistor, and the method of any one of claims 1-7 is applied to temperature sensing.

9. A vehicle characterized by comprising: The vehicle uses the temperature sensor of claim 8.

10. A computer program product, characterised in that, The computer program product comprises a computer program which, when executed by a processor, implements the method of any one of claims 1-7.

Citation Information

Patent Citations

  • Temperature sensor fault diagnosis method and system

    CN106017737A

  • Data acquisition and detection device of temperature measuring instrument, and data acquisition and detection method for temperature measuring instrument

    CN110285895A