Engine oil temperature detection method and device, vehicle and computer storage medium

By using pull-up source switching with different circuit resistances and voltages in the oil temperature detection circuit, combined with the resistance temperature mapping table, the problem of inaccurate oil temperature detection in the existing technology is solved, and accurate oil temperature detection at different temperatures is achieved. Temperature detection.

CN118603349APending Publication Date: 2024-09-06TIANJIN JINGWEI HIRAIN TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410702694.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In the existing technology, the engine oil temperature detection scheme is due to the characteristics of the thermistor inside the temperature sensor. The higher the temperature, the lower the resistance. This results in inaccurate collection and low precision in some temperature intervals, and the accuracy of oil temperature detection cannot be guaranteed. .

Method used

Using an oil temperature detection circuit including the first pull-up source and the second pull-up source, the pull-up sources with different circuit resistances and voltages are switched under different temperature conditions, combined with the preset resistance temperature mapping table, to determine Oil temperature.

Benefits of technology

Selecting appropriate circuit resistance and voltage pull-up sources for oil temperature detection under different temperature conditions ensures the accuracy and accuracy of oil temperature detection and the safety of vehicle operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118603349A
    Figure CN118603349A
Patent Text Reader

Abstract

The invention provides an engine oil temperature detection method and device, a vehicle and a computer storage medium, and the method comprises the steps that a first digital voltage signal value at an output port of a first oil temperature detection circuit in a first circuit state is obtained, and the first circuit state comprises that a first pull-up source is turned on and a second pull-up source is turned off; in response to the fact that the first digital voltage signal value is larger than a preset low-temperature jump threshold value, determining a first target oil temperature based on the resistance value of the first temperature sensor in the first circuit state and a preset resistance value temperature mapping table; in response to the fact that the first digital voltage signal value is smaller than or equal to a preset low-temperature jump threshold value, the first target oil temperature is determined based on the resistance value of the first temperature sensor in a second circuit state and a preset resistance value and temperature mapping table, and the second circuit state comprises that the first pull-up source is closed and the second pull-up source is opened. Pull-up sources with different circuit resistance values and voltages are selected under different temperature working conditions for engine oil temperature detection, and the accuracy of engine oil temperature detection is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle safety technology, and in particular to an oil temperature detection method and device, a vehicle, and a computer storage medium. Background Art

[0002] During vehicle operation, temperature sensors are required to detect the oil temperatures of the front and rear drive axles and the gearbox in order to monitor the vehicle's operating status and thereby ensure the safety and reliability of the vehicle during operation.

[0003] In the prior art, the engine oil temperature detection scheme generally uses a temperature sensor to directly collect data without any processing. Since the temperature sensor contains a thermistor, the higher the temperature, the lower the resistance. The resistance changes with the temperature. The data collection is inaccurate in some temperature ranges, and the collection accuracy is low. The accuracy of oil temperature detection in different temperature ranges cannot be guaranteed. Summary of the invention

[0004] In view of this, the present application provides an oil temperature detection method and device, a vehicle, and a computer storage medium, so as to accurately detect the vehicle oil temperature and ensure the safe operation of the vehicle.

[0005] The technical solution is as follows:

[0006] In a first aspect, an embodiment of the present application provides an oil temperature detection method, the method is applied to an oil temperature detection circuit, the oil temperature detection circuit comprising: a first pull-up source, a second pull-up source, and a first oil temperature detection circuit; wherein the first pull-up source is a 5V voltage pull-up source, the second pull-up source is a power supply voltage pull-up source, the first pull-up source and the second pull-up source have different circuit resistances, and the first oil temperature detection circuit comprises a first temperature sensor;

[0007] The method comprises:

[0008] In a first circuit state, obtaining a first digital voltage signal value at an output port of the first oil temperature detection circuit, wherein the first circuit state includes the first pull-up source being turned on and the second pull-up source being turned off;

[0009] In response to the first digital voltage signal value being greater than a preset low temperature jump threshold, determining a first target oil temperature based on a resistance value of the first temperature sensor in the first circuit state and a preset resistance-temperature mapping table;

[0010] In response to the first digital voltage signal value being less than or equal to a preset low temperature jump threshold, the first target oil temperature is determined based on the resistance of the first temperature sensor in a second circuit state and a preset resistance-temperature mapping table, wherein the second circuit state includes the first pull-up source being turned off and the second pull-up source being turned on.

[0011] Optionally, the oil temperature detection circuit further includes: a second oil temperature detection circuit, the second oil temperature detection circuit includes a second temperature sensor; the method further includes:

[0012] In the first circuit state, obtaining a second digital voltage signal value at an output port of the second oil temperature detection circuit;

[0013] In response to the second digital voltage signal value being greater than a preset low temperature jump threshold, determining a second target oil temperature based on a resistance value of the second temperature sensor in the first circuit state and a preset resistance-temperature mapping table;

[0014] In response to the second digital voltage signal value being less than or equal to a preset low temperature jump threshold, the second target oil temperature is determined based on the resistance of the second temperature sensor in the second circuit state and a preset resistance-temperature mapping table.

[0015] Optionally, the oil temperature detection circuit further includes: a third oil temperature detection circuit, and the third oil temperature detection circuit includes a third temperature sensor; the method further includes:

[0016] In the first circuit state, obtaining a third digital voltage signal value at an output port of the third oil temperature detection circuit;

[0017] In response to the third digital voltage signal value being greater than a preset low temperature jump threshold, determining a third target oil temperature based on a resistance value of the third temperature sensor in the first circuit state and a preset resistance-temperature mapping table;

[0018] In response to the third digital voltage signal value being less than or equal to a preset low temperature jump threshold, the third target oil temperature is determined based on the resistance of the third temperature sensor in the second circuit state and a preset resistance-temperature mapping table.

[0019] Optionally, the first pull-up source includes a first isolation diode, and the second pull-up source includes a second isolation diode, wherein the first isolation diode and the second isolation diode are used to isolate the first oil temperature detection circuit, the second oil temperature detection circuit and the third oil temperature detection circuit, respectively.

[0020] Optionally, the first pull-up source includes a first pull-up series resistor and a first pull-up voltage-dividing resistor, and the first oil temperature detection circuit also includes a first pull-up resistor, a first series resistor and a first voltage-dividing resistor;

[0021] Before determining the first target oil temperature based on the resistance of the first temperature sensor in the first circuit state and a preset resistance-temperature mapping table, the method further includes:

[0022] In the first circuit state, the first digital voltage signal value at the output port of the first oil temperature detection circuit and the pull-up source digital voltage signal value at the first pull-up source are obtained, and the resistance value of the first temperature sensor is calculated based on the first digital voltage signal value, the pull-up source digital voltage signal value, the first pull-up series resistor, the first pull-up voltage divider resistor, the first pull-up resistor, the first series resistor and the first voltage divider resistor.

[0023] Optionally, before determining the first target oil temperature based on the resistance of the first temperature sensor in the second circuit state and a preset resistance-temperature mapping table, the method further includes:

[0024] In the second circuit state, a first digital voltage signal value at the output port of the first oil temperature detection circuit and a pull-up source digital voltage signal value at the first pull-up source are obtained, and a relative digital voltage signal value is calculated based on the first digital voltage signal value, the pull-up source digital voltage signal value, the first pull-up series resistor, and the first pull-up voltage divider resistor;

[0025] In response to the relative digital voltage signal value being greater than a preset high temperature jump threshold, in the second circuit state, calculating the resistance value of the first temperature sensor based on the relative digital voltage signal value, the first pull-up resistor, the first series resistor, and the first voltage divider resistor;

[0026] In response to the relative digital voltage signal value being less than or equal to a preset high temperature jump threshold, the step of determining a first target oil temperature based on the resistance of the first temperature sensor in the first circuit state and a preset resistance-temperature mapping table is performed.

[0027] Optionally, the method further includes: setting the first pull-up source and the second pull-up source to be turned on

[0028] In a second aspect, an embodiment of the present application provides an oil temperature detection device, the device is applied to an oil temperature detection circuit, the oil temperature detection circuit includes: a first pull-up source, a second pull-up source and a first oil temperature detection circuit; wherein the first pull-up source is a 5V voltage pull-up source, the second pull-up source is a power supply voltage pull-up source, the first pull-up source and the second pull-up source have different circuit resistances, and the first oil temperature detection circuit includes a first temperature sensor;

[0029] The device comprises:

[0030] A signal acquisition module, configured to acquire a first digital voltage signal value at an output port of the first oil temperature detection circuit in a first circuit state, wherein the first circuit state includes the first pull-up source being turned on and the second pull-up source being turned off;

[0031] an oil temperature determination module, configured to determine a first target oil temperature based on a resistance value of the first temperature sensor in the first circuit state and a preset resistance-temperature mapping table in response to the first digital voltage signal value being greater than a preset low temperature jump threshold;

[0032] The oil temperature determination module is also used to determine the first target oil temperature based on the resistance of the first temperature sensor in a second circuit state and a preset resistance-temperature mapping table in response to the first digital voltage signal value being less than or equal to a preset low-temperature jump threshold, wherein the second circuit state includes the first pull-up source being turned off and the second pull-up source being turned on.

[0033] In a third aspect, an embodiment of the present application provides a vehicle, including:

[0034] at least one processor;

[0035] a memory communicatively coupled to at least one of the processors;

[0036] Wherein, the memory stores a computer program that can be executed by at least one of the processors, and when at least one of the processors executes the computer program, any of the oil temperature detection methods described in the first aspect is implemented.

[0037] In a fourth aspect, an embodiment of the present application provides a computer storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the oil temperature detection method described in any one of the first aspects is implemented.

[0038] The above technical solution has the following beneficial effects:

[0039] An oil temperature detection method provided by an embodiment of the present application includes: obtaining a first digital voltage signal value at an output port of a first oil temperature detection circuit in a first circuit state, wherein the first circuit state includes a first pull-up source turned on and a second pull-up source turned off; in response to the first digital voltage signal value being greater than a preset low temperature jump threshold, determining a first target oil temperature based on the resistance of a first temperature sensor in the first circuit state and a preset resistance-temperature mapping table; in response to the first digital voltage signal value being less than or equal to a preset low temperature jump threshold, determining the first target oil temperature based on the resistance of the first temperature sensor in a second circuit state and a preset resistance-temperature mapping table, wherein the second circuit state includes a first pull-up source turned off and a second pull-up source turned on. It can be seen that the embodiment of the present application ensures the accuracy of oil temperature detection by selecting pull-up sources including different circuit resistances and voltages to detect oil temperature under different temperature conditions.

[0040] The embodiments of the present application also provide a device, a vehicle, and a computer storage medium corresponding to the above method, which have the same beneficial effects as the above method. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in this embodiment or the prior art, the drawings required for use in the embodiments or the description of the prior art 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 creative work.

[0042] Figure 1 A topological schematic diagram of an oil temperature detection circuit provided in an embodiment of the present application;

[0043] Figure 2 A schematic diagram of a flow chart of an oil temperature detection method provided in an embodiment of the present application;

[0044] Figure 3 A schematic flow chart of another oil temperature detection method provided in an embodiment of the present application;

[0045] Figure 4 A schematic diagram of the structure of an oil temperature detection device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] 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 only 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.

[0047] As introduced in the background technology, in the prior art, oil temperature detection is generally directly collected using a temperature sensor. The temperature sensor has a thermistor inside. The higher the temperature, the lower the resistance. The resistance changes with the temperature. Therefore, if the temperature sensor is directly used to collect oil temperature without any processing, the collection accuracy is low, the collection is inaccurate in some temperature ranges, and the accuracy of the entire temperature collection range cannot be guaranteed.

[0048] In order to accurately detect the vehicle oil temperature and ensure the safe operation of the vehicle. The present application embodiment provides an oil temperature detection method, which can be applied to Figure 1 A topological schematic diagram of an oil temperature detection circuit is shown, the circuit comprising: a first pull-up source PS1, a second pull-up source PS2, a first oil temperature detection circuit, a second oil temperature detection circuit and a third oil temperature detection circuit; wherein the first pull-up source PS1 is a 5V voltage pull-up source, the second pull-up source PS2 is a power supply voltage pull-up source, the circuit resistance values ​​of the first pull-up source PS1 and the second pull-up source PS2 are different, the first oil temperature detection circuit comprises a first temperature sensor X1-13, the second oil temperature detection circuit comprises a second temperature sensor X1-14, and the third oil temperature detection circuit comprises a third temperature sensor X1-25;

[0049] like Figure 1 As shown, the circuits corresponding to the first pull-up source PS1 and the second pull-up source PS2 include: a pull-up series resistor R4 and a pull-up voltage divider resistor R5, wherein the circuit resistance values ​​of the first pull-up source PS1 and the second pull-up source PS2 should be different. Specifically, the pull-up resistor R1 of the first pull-up source PS1 is different from the pull-up resistor R1 of the second pull-up source PS2.

[0050] The three-way oil temperature detection circuit further includes a pull-up resistor R1, a series resistor R2 and a voltage divider resistor R3. The pull-up resistor, the series resistor and the voltage divider resistor included in the three-way oil temperature detection circuit may be the same.

[0051] Continue to refer to Figure 1 In an optional implementation, the circuits corresponding to the first pull-up source PS1 and the second pull-up source PS2 provided in the embodiment of the present application may also include: an isolation diode, which is used to isolate the first oil temperature detection circuit, the second oil temperature detection circuit and the third oil temperature detection circuit to avoid mutual interference among the three oil temperature detection circuits.

[0052] in, Figure 1 It also includes a controllable pull-up source UB_SWITCH reserved for the controller to sleep, and input and output filter capacitors. Since these are irrelevant to the solution provided in the embodiment of the present application, they are not described here.

[0053] It can be understood that the automobile controller is generally a 24V battery power supply system, and the controller can operate normally with a power supply voltage between 16V-32V. The power supply voltage pull-up source involved in the embodiment of the present application may refer to the power supply voltage of the controller as a pull-up source, and its power supply voltage is generally variable.

[0054] See also Figure 2 A flow chart of a method for detecting oil temperature is shown. The method for detecting oil temperature provided by the present application is described below by taking the first oil temperature detection circuit as an example. The method may include:

[0055] Step S100: acquiring a first digital voltage signal value at an output port out1 of a first oil temperature detection circuit in a first circuit state, wherein the first circuit state includes the first pull-up source PS1 being turned on and the second pull-up source PS2 being turned off.

[0056] Specifically, the first pull-up source PS1 is turned on, and the second pull-up source PS2 is turned off, and the first digital voltage signal value at the output port out1 of the first oil temperature detection circuit is collected.

[0057] It should be noted that in order to improve the accuracy of signal value collection, the embodiment of the present application can perform smoothing filtering on the collected digital voltage signal values. For example, 7 digital voltage signal values ​​are collected, the maximum value and the minimum value are removed, and the remaining values ​​are added together to obtain the average value.

[0058] It should also be noted that when the oil temperature detection is not performed, the first pull-up source and the second pull-up source in the oil temperature detection circuit are both in an on state to supply power to different functional components of the vehicle.

[0059] Step S200: In response to the first digital voltage signal value being greater than a preset low temperature jump threshold, determining a first target oil temperature based on a resistance value of a first temperature sensor in a first circuit state and a preset resistance-temperature mapping table.

[0060] Specifically, after obtaining the first digital voltage signal value, it is compared with the preset low-temperature jump threshold. If the first digital voltage signal value is greater than the preset low-temperature jump threshold, the first target oil temperature is determined based on the resistance of the first temperature sensor in the first circuit state and the preset resistance-temperature mapping table. The first target oil temperature is the oil temperature corresponding to the temperature sensor in the first oil temperature detection circuit.

[0061] Step S300: In response to the first digital voltage signal value being less than or equal to a preset low temperature jump threshold, determining a first target oil temperature based on the resistance of the first temperature sensor in a second circuit state and a preset resistance-temperature mapping table, the second circuit state including the first pull-up source being turned off and the second pull-up source being turned on.

[0062] Specifically, if the first digital voltage signal value is less than or equal to the preset low temperature jump threshold, the first target oil temperature is determined based on the resistance of the first temperature sensor in the second circuit state and the preset resistance-temperature mapping table, and the second circuit state includes the first pull-up source PS1 being turned off and the second pull-up source PS2 being turned on.

[0063] In the embodiment of the present application, the oil temperature detection is divided into two detection intervals. In the high-temperature detection interval, the power supply voltage is used as the pull-up source, and in the low-temperature detection interval, 5V is used as the pull-up source. The resistance values ​​of the hardware circuits for temperature collection in the two parts are different to ensure the accuracy of the collected temperature.

[0064] It is understandable that since the AD acquisition bit of the single-chip microcomputer is 10 bits, the maximum AD value that can be collected is 1023. However, according to the results obtained from theoretical calculations, when the temperature is low, the AD value collection of the single-chip microcomputer exceeds the limit and the actual AD value cannot be collected. Therefore, it is impossible to achieve accurate collection of each temperature segment. Based on this, the embodiment of the present application optimizes the design of the sensor acquisition circuit. At low temperatures, 5V can be used as the pull-up source. Through the voltage divider resistor, it can be calculated that the AD value can be actually collected at low temperatures. By controlling the controllable power supply and selecting the appropriate pull-up source, accurate collection of each temperature segment can be achieved.

[0065] The resistance-temperature mapping table preset in the embodiment of the present application can be obtained by a pre-calibration method. For example, refer to the resistance-temperature mapping table provided in Table 1 below, which shows the correspondence between different resistance values ​​of the temperature sensor and the oil temperature. The temperature in Table 1 is with an accuracy of 1 degree. The temperature accuracy refers to the minimum value of measuring or displaying the temperature difference. In actual applications, other temperature accuracies can be set as required. For example, the resistance-temperature mapping table can be pre-set with an accuracy of 0.1 degree to obtain a more accurate oil temperature detection temperature.

[0066]

[0067]

[0068] Table 1

[0069] It should be noted that the low temperature jump threshold can be obtained by pre-calibration. For example, as shown in Table 2 below, the digital voltage signal values ​​(i.e., the AD values ​​in the table) under different oil temperature conditions are obtained by calibration under the conditions of a pull-up source of 5V, a pull-up resistor of 33 ohms, a series resistor of 200 ohms, and a voltage divider resistor of 1100 ohms. As shown in Table 2, at different temperatures, the resistance of the load (temperature sensor) decreases as the temperature increases. In the embodiment of the present application, the oil temperature detection can be divided into two detection intervals. For example, the temperature is divided into a high temperature detection interval (40-140 degrees) and a low temperature detection interval (-40-40 degrees). Therefore, the low temperature jump threshold can be set to the AD value collected under the condition of 50 degrees, that is, the low temperature jump threshold is set to 97.60849.

[0070]

[0071]

[0072] Table 2

[0073] From the above, the embodiment of the present application provides an oil temperature detection method, which can select pull-up sources with different circuit resistance values ​​and voltages to perform oil temperature detection under different temperature conditions, thereby ensuring the accuracy of oil temperature detection.

[0074] In an optional implementation, the embodiment of the present application can also obtain the second target oil temperature of the second oil temperature detection circuit and the third target oil temperature of the third oil temperature detection circuit through the same steps as the first target oil temperature acquisition method provided in the aforementioned embodiment.

[0075] Specifically, it may include:

[0076] In the first circuit state, obtaining a second digital voltage signal value at an output port of the second oil temperature detection circuit;

[0077] In response to the second digital voltage signal value being greater than a preset low temperature jump threshold, determining a second target oil temperature based on a resistance value of the second temperature sensor in the first circuit state and a preset resistance-temperature mapping table;

[0078] In response to the second digital voltage signal value being less than or equal to a preset low temperature jump threshold, a second target oil temperature is determined based on a resistance value of the second temperature sensor in a second circuit state and a preset resistance-temperature mapping table.

[0079] as well as,

[0080] In the first circuit state, obtaining a third digital voltage signal value at an output port of the third oil temperature detection circuit;

[0081] In response to the third digital voltage signal value being greater than a preset low temperature jump threshold, determining a third target oil temperature based on a resistance value of the third temperature sensor in the first circuit state and a preset resistance-temperature mapping table;

[0082] In response to the third digital voltage signal value being less than or equal to a preset low temperature jump threshold, a third target oil temperature is determined based on a resistance value of the third temperature sensor in the second circuit state and a preset resistance-temperature mapping table.

[0083] Specifically, the embodiments of the present application can monitor the oil temperatures at different parts of the automobile respectively through three-way oil temperature detection circuits. In specific applications, the components monitored by the oil temperature detection circuits provided in the embodiments of the present application can be set according to actual needs. The present application does not limit the components monitored by the three-way oil temperature detection circuits. In an optional implementation method, the components monitored by the three-way oil temperature detection circuits can be set to the front drive axle, the rear drive axle and the gearbox.

[0084] It should be noted that, in the embodiment of the present application, the digital voltage signal value can be acquired through AD acquisition by a single-chip microcomputer (Microcontroller Unit, MCU), and the acquisition results are logically processed by software to obtain three-way oil temperature, and then the three-way oil temperature results are uploaded to the instrument through CAN communication for corresponding presentation.

[0085] In an optional implementation, before determining the first target oil temperature based on the resistance of the first temperature sensor in the first circuit state and a preset resistance-temperature mapping table in step S200, the method may further include:

[0086] In the first circuit state, a first digital voltage signal value at the output port of the first oil temperature detection circuit and a pull-up source digital voltage signal value at the first pull-up source are obtained, and a resistance value of the first temperature sensor is calculated based on the first digital voltage signal value, the pull-up source digital voltage signal value, the first pull-up series resistor, the first pull-up voltage divider resistor, the first pull-up resistor, the first series resistor, and the first voltage divider resistor, including:

[0087] R OUT =(R1*R5*(R2+R3)*AD 端口 ) / ((R3*(R5+R4)*AD 上拉源 )-((R1+R2+R3)*R5*

[0088] AD 端口 ));(1)

[0089] Among them, R OUTis the resistance value of the first temperature sensor, R1 is the first pull-up resistor, R2 is the first series resistor, R3 is the first voltage divider resistor, R4 is the first pull-up series resistor, R5 is the first pull-up voltage divider resistor, AD 端口 is the first digital voltage signal value, AD 上拉源 It is the pull-up source digital voltage signal value.

[0090] Specifically, within the low temperature detection range, the resistance value of the first temperature sensor is obtained by calculation using the above formula, so that the oil temperature is subsequently determined based on the resistance value of the first temperature sensor and a preset resistance-temperature mapping table.

[0091] In an optional implementation, before determining the first target oil temperature based on the resistance of the first temperature sensor in the second circuit state and a preset resistance-temperature mapping table in step S300, the method may further include:

[0092] In the second circuit state, a first digital voltage signal value at the output port of the first oil temperature detection circuit and a pull-up source digital voltage signal value at the first pull-up source are obtained, and a relative digital voltage signal value is calculated based on the first digital voltage signal value, the pull-up source digital voltage signal value, the first pull-up series resistor, and the first pull-up voltage divider resistor, including:

[0093] AD 相对 =((R4+R5)*AD 上拉源 ) / (R5*AD 端口 ); (2)

[0094] Among them, AD 相对 is the relative digital voltage signal value, R4 is the first pull-up series resistor, R5 is the first pull-up voltage divider resistor, AD 端口 is the first digital voltage signal value, AD 上拉源 is the pull-up source digital voltage signal value;

[0095] In response to the relative digital voltage signal value being greater than a preset high temperature jump threshold, in the second circuit state, the resistance value of the first temperature sensor is calculated based on the relative digital voltage signal value, the first pull-up resistor, the first series resistor, and the first voltage divider resistor, including:

[0096] R OUT =(R1*(R2+R3)*100) / (AD 相对 *R3-((R1+R2+R3)*100)); (3)

[0097] Among them, R OUT is the resistance value of the first temperature sensor, AD 相对 is the relative digital voltage signal value, R1 is the first pull-up resistor, R2 is the first series resistor, and R3 is the first voltage-dividing resistor;

[0098] In response to the relative digital voltage signal value being less than or equal to the preset high temperature jump threshold, the first target oil temperature is determined based on the resistance of the first temperature sensor in the first circuit state and the preset resistance-temperature mapping table in step S200.

[0099] Specifically, when the first digital voltage signal value is less than or equal to the preset low-temperature jump threshold, it indicates that the high-temperature detection interval should be entered. At this time, the relative digital voltage signal value is calculated based on the proportional relationship between the voltage of the pull-up source and the port voltage of the sensor after hardware circuit processing, and the relative digital voltage signal value is compared with the preset high-temperature jump threshold; if the relative digital voltage signal value is greater than the preset high-temperature jump threshold, it is determined that the current working condition does meet the high-temperature detection area, and the current resistance value of the temperature sensor when the pull-up source is the power supply voltage is calculated according to the corresponding formula; if the relative digital voltage signal value is less than or equal to the preset high-temperature jump threshold, it means that the current working condition meets the low-temperature detection area, and it should jump to the step of determining the first target oil temperature based on the resistance value of the first temperature sensor under the first circuit state and the preset resistance-temperature mapping table.

[0100] Therefore, after the embodiment of the present application jumps into the high temperature detection interval when the first digital voltage signal value is less than or equal to the preset low temperature jump threshold, the relative digital voltage signal value is calculated to match whether the current oil temperature detection condition is actually in the high temperature detection interval, thereby ensuring that the corresponding pull-up source is used to realize oil temperature detection in different oil temperature detection intervals, realizing accurate monitoring of the entire range of automobile oil temperature from -40 degrees to 140 degrees, and ensuring the accuracy and precision of the temperature displayed on the instrument.

[0101] It can be understood that when the power supply voltage is used as the pull-up source, the AD value collected at different voltages at the same temperature is different, so the collected AD value is affected by the power supply voltage. In order to maintain a single variable, the AD value is only affected by the current resistance of the sensor. Under different power supply voltages, the voltage collected by the pull-up source is the same constant as the port voltage of the sensor after being processed by the hardware circuit. Based on this proportional relationship, the current sensor resistance can be obtained using relative AD, ensuring a single variable.

[0102] It should be noted that, similar to the low temperature jump threshold, the high temperature jump threshold can also be obtained by pre-calibration. For example, as shown in Table 3 below, the digital voltage signal values ​​(i.e., the AD values ​​in Table 3) and the corresponding relative digital voltage signal values ​​(i.e., the relative AD values ​​in Table 3) under different oil temperature conditions are obtained by calibration under the conditions of the pull-up source being low voltage 16V / normal voltage 24V / high voltage 36V, the pull-up resistor being 20 ohms, the series resistor being 200 ohms, and the voltage divider resistor being 1100 ohms. The high temperature jump threshold in the embodiment of the present application can be set to the relative AD value under the condition of 40 degrees, that is, the high jump signal threshold is set to 521.4886.

[0103]

[0104]

[0105]

[0106]

[0107]

[0108] Table 3

[0109] It should also be noted that the low temperature jump threshold and the high temperature jump threshold are set based on specific circuit structures and parameters. The embodiments of the present application do not impose specific numerical limitations on the low temperature jump threshold and the high temperature jump threshold. The above description is for illustration only.

[0110] In an optional implementation, the method may further include: setting the first pull-up source and the second pull-up source to be turned on.

[0111] Specifically, since the first pull-up source and the second pull-up source are also used to power different functional components of the vehicle, during the oil temperature detection process, after obtaining the first digital voltage signal value at the output port of the first oil temperature detection circuit, the first pull-up source and the second pull-up source should be set to on to ensure the normal operation of the vehicle.

[0112] Combine the following Figure 3 The flowchart of another oil temperature detection method is shown to illustrate the overall framework of the oil temperature detection method provided in the embodiment of the present application:

[0113] In the initial state, the 5V pull-up source and the power supply voltage pull-up source are both turned on. After the temperature detection is turned on, the 5V pull-up source is turned on, the power supply voltage pull-up source is turned off, and the AD value at the output port is collected.

[0114] When it is determined that the AD value at the output port is greater than the low-temperature jump threshold, enter the low-temperature interval detection, keep the 5V pull-up source turned on, and the power supply voltage pull-up source turned off. The AD value at the output port is collected to obtain the AD value at the pull-up source. Then, based on the collected AD value at the output port, it can be confirmed again that it is in the low-temperature interval detection condition, and the oil temperature can be obtained by looking up the table based on the circuit parameters and the collected AD value. Finally, the 5V pull-up source and the power supply voltage pull-up source need to be restored to the on state.

[0115] When it is determined that the AD value at the output port is less than or equal to the low temperature jump threshold, enter the high temperature interval detection, turn off the 5V pull-up source, turn on the power supply voltage pull-up source, collect the AD value at the output port to the AD value at the pull-up source, and calculate the relative AD value. Next, determine whether the relative AD value is greater than the high temperature jump threshold. If it is greater, it is determined to be in the high temperature interval detection condition, and the oil temperature is calculated based on the circuit parameters and the collected AD value; if it is less than or equal, jump to the low temperature interval detection step.

[0116] In summary, in hardware, the embodiment of the present application uses two different pull-up sources, the power supply and the 5V power supply, for switching, and the pull-up resistors of different pull-up sources have different resistance values. The digital voltage values ​​corresponding to the full range of oil temperature are collected by reasonably allocating the voltage divider resistors. In software, the temperature detection state machine is switched in combination with the data collected by the hardware, and the temperature is queried according to the preset resistance-temperature mapping table in different temperature ranges.

[0117] Corresponding to the above method, the embodiment of the present application also provides an oil temperature detection device, which can be applied to an oil temperature detection circuit. The oil temperature detection circuit can participate in Figure 1 The circuit topology diagram and corresponding description shown are discussed in detail here.

[0118] See also Figure 4 , showing a schematic diagram of the structure of the device, the device may include:

[0119] A signal acquisition module 401, used to acquire a first digital voltage signal value at an output port of a first oil temperature detection circuit in a first circuit state, wherein the first circuit state includes a first pull-up source being turned on and a second pull-up source being turned off;

[0120] The oil temperature determination module 402 is used to determine a first target oil temperature based on a resistance value of a first temperature sensor in a first circuit state and a preset resistance-temperature mapping table in response to the first digital voltage signal value being greater than a preset low temperature jump threshold;

[0121] The oil temperature determination module 402 is also used to determine the first target oil temperature in response to the first digital voltage signal value being less than or equal to a preset low temperature jump threshold value based on the resistance value of the first temperature sensor in the second circuit state and a preset resistance-temperature mapping table, and the second circuit state includes the first pull-up source being turned off and the second pull-up source being turned on.

[0122] In an optional implementation, the signal acquisition module 401 is further used to acquire a second digital voltage signal value at an output port of the second oil temperature detection circuit in the first circuit state;

[0123] The oil temperature determination module 402 is further configured to determine a second target oil temperature based on a resistance value of a second temperature sensor in a first circuit state and a preset resistance-temperature mapping table in response to the second digital voltage signal value being greater than a preset low temperature jump threshold;

[0124] The oil temperature determination module 402 is further configured to determine a second target oil temperature based on the resistance of the second temperature sensor in the second circuit state and a preset resistance-temperature mapping table in response to the second digital voltage signal value being less than or equal to a preset low temperature jump threshold.

[0125] In an optional implementation, the signal acquisition module 401 is further used to acquire a third digital voltage signal value at an output port of the third oil temperature detection circuit in the first circuit state;

[0126] The oil temperature determination module 402 is further configured to determine a third target oil temperature based on a resistance value of a third temperature sensor in a first circuit state and a preset resistance-temperature mapping table in response to the third digital voltage signal value being greater than a preset low temperature jump threshold;

[0127] The oil temperature determination module 402 is further configured to determine a third target oil temperature based on the resistance of the third temperature sensor in the second circuit state and a preset resistance-temperature mapping table in response to the third digital voltage signal value being less than or equal to a preset low temperature jump threshold.

[0128] In an optional implementation, the oil temperature determination module 402 includes: a resistance determination submodule, which is used to obtain a first digital voltage signal value at the output port of the first oil temperature detection circuit and a pull-up source digital voltage signal value at the first pull-up source in a first circuit state, and calculate the resistance value of the first temperature sensor based on the first digital voltage signal value, the pull-up source digital voltage signal value, the first pull-up series resistor, the first pull-up voltage divider resistor, the first pull-up resistor, the first series resistor and the first voltage divider resistor, including:

[0129] R OUT =(R1*R5*(R2+R3)*AD 端口 ) / ((R3*(R5+R4)*AD 上拉源)-((R1+R2+R3)*R5*

[0130] AD 端口 ));(4)

[0131] Among them, R OUT is the resistance value of the first temperature sensor, R1 is the first pull-up resistor, R2 is the first series resistor, R3 is the first voltage divider resistor, R4 is the first pull-up series resistor, R5 is the first pull-up voltage divider resistor, AD 端口 is the first digital voltage signal value, AD 上拉源 It is the pull-up source digital voltage signal value.

[0132] In an optional implementation, the signal acquisition module 401 is further used to acquire the first digital voltage signal value at the output port of the first oil temperature detection circuit and the pull-up source digital voltage signal value at the first pull-up source in the second circuit state;

[0133] The oil temperature determination module 402 further includes: a signal calculation submodule, which is used to calculate a relative digital voltage signal value based on the first digital voltage signal value, the pull-up source digital voltage signal value, the first pull-up series resistor and the first pull-up voltage divider resistor, including:

[0134] AD 相对 =((R4+R5)*AD 上拉源 ) / (R5*AD 端口 ); (5)

[0135] Among them, AD 相对 is the relative digital voltage signal value, R4 is the first pull-up series resistor, R5 is the first pull-up voltage divider resistor, AD 端口 is the first digital voltage signal value, AD 上拉源 is the pull-up source digital voltage signal value;

[0136] The oil temperature determination module 402 is further configured to calculate the resistance value of the first temperature sensor based on the relative digital voltage signal value, the first pull-up resistor, the first series resistor, and the first voltage divider resistor in response to the relative digital voltage signal value being greater than a preset high temperature jump threshold value in the second circuit state, including:

[0137] R OUT =(R1*(R2+R3)*100) / (AD 相对 *R3-((R1+R2+R3)*100)); (6)

[0138] Among them, R OUT is the resistance value of the first temperature sensor, AD 相对 is the relative digital voltage signal value, R1 is the first pull-up resistor, R2 is the first series resistor, and R3 is the first voltage-dividing resistor;

[0139] The oil temperature determination module 402 is also used to execute the step of determining the first target oil temperature based on the resistance of the first temperature sensor in the first circuit state and a preset resistance-temperature mapping table in response to the relative digital voltage signal value being less than or equal to a preset high temperature jump threshold.

[0140] In an optional implementation, the device further includes: a power on / off module, configured to set the first pull-up source and the second pull-up source to be on.

[0141] It should be noted that the steps executed by each module in an oil temperature detection device provided in an embodiment of the present application and the related technical features correspond to the method provided in the embodiment of the application. The description of the device part can be found in the embodiment of the aforementioned method part and will not be repeated here.

[0142] The present application also provides a vehicle, including:

[0143] at least one processor;

[0144] a memory communicatively coupled to the at least one processor;

[0145] The memory stores a computer program that can be executed by at least one processor, and when the at least one processor executes the computer program, any one of the oil temperature detection methods provided in the aforementioned embodiments is implemented.

[0146] An embodiment of the present application further provides a computer storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, any one of the oil temperature detection methods provided in the aforementioned embodiments is implemented.

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

[0148] Those skilled in the art can understand that the flowchart shown in the figure is only an example in which the embodiments of the present application can be implemented, and the scope of application of the embodiments of the present application is not limited by any aspect of the flowchart.

[0149] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and equipment can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.

[0150] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0151] 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 computer-readable storage medium. 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, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods 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.

[0152] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for detecting engine oil temperature, It is characterized in that The method is applied to an oil temperature detection circuit, the oil temperature detection circuit comprising: a first pull-up source, a second pull-up source and a first oil temperature detection circuit; wherein the first pull-up source is a 5V voltage pull-up source, the second pull-up source is a power supply voltage pull-up source, the first pull-up source and the second pull-up source have different circuit resistances, and the first oil temperature detection circuit comprises a first temperature sensor; The method comprises: In a first circuit state, obtaining a first digital voltage signal value at an output port of the first oil temperature detection circuit, wherein the first circuit state includes the first pull-up source being turned on and the second pull-up source being turned off; In response to the first digital voltage signal value being greater than a preset low temperature jump threshold, determining a first target oil temperature based on a resistance value of the first temperature sensor in the first circuit state and a preset resistance-temperature mapping table; In response to the first digital voltage signal value being less than or equal to a preset low temperature jump threshold, the first target oil temperature is determined based on the resistance of the first temperature sensor in a second circuit state and a preset resistance-temperature mapping table, wherein the second circuit state includes the first pull-up source being turned off and the second pull-up source being turned on.

2. The method according to claim 1, It is characterized in that The oil temperature detection circuit further includes: a second oil temperature detection circuit, wherein the second oil temperature detection circuit includes a second temperature sensor; the method further includes: In the first circuit state, obtaining a second digital voltage signal value at an output port of the second oil temperature detection circuit; In response to the second digital voltage signal value being greater than a preset low temperature jump threshold, determining a second target oil temperature based on a resistance value of the second temperature sensor in the first circuit state and a preset resistance-temperature mapping table; In response to the second digital voltage signal value being less than or equal to a preset low temperature jump threshold, the second target oil temperature is determined based on the resistance of the second temperature sensor in the second circuit state and a preset resistance-temperature mapping table.

3. The method according to claim 2, It is characterized in that The oil temperature detection circuit further includes: a third oil temperature detection circuit, and the third oil temperature detection circuit includes a third temperature sensor; the method further includes: In the first circuit state, obtaining a third digital voltage signal value at an output port of the third oil temperature detection circuit; In response to the third digital voltage signal value being greater than a preset low temperature jump threshold, determining a third target oil temperature based on a resistance value of the third temperature sensor in the first circuit state and a preset resistance-temperature mapping table; In response to the third digital voltage signal value being less than or equal to a preset low temperature jump threshold, the third target oil temperature is determined based on the resistance of the third temperature sensor in the second circuit state and a preset resistance-temperature mapping table.

4. The method according to claim 3, It is characterized in that The first pull-up source includes a first isolation diode, and the second pull-up source includes a second isolation diode, wherein the first isolation diode and the second isolation diode are used to isolate the first oil temperature detection circuit, the second oil temperature detection circuit, and the third oil temperature detection circuit, respectively.

5. The method according to claim 1, It is characterized in that The first pull-up source includes a first pull-up series resistor and a first pull-up voltage-dividing resistor, and the first oil temperature detection circuit also includes a first pull-up resistor, a first series resistor and a first voltage-dividing resistor; Before determining the first target oil temperature based on the resistance of the first temperature sensor in the first circuit state and a preset resistance-temperature mapping table, the method further includes: In the first circuit state, the first digital voltage signal value at the output port of the first oil temperature detection circuit and the pull-up source digital voltage signal value at the first pull-up source are obtained, and the resistance value of the first temperature sensor is calculated based on the first digital voltage signal value, the pull-up source digital voltage signal value, the first pull-up series resistor, the first pull-up voltage divider resistor, the first pull-up resistor, the first series resistor and the first voltage divider resistor.

6. The method according to claim 5, It is characterized in that Before determining the first target oil temperature based on the resistance of the first temperature sensor in the second circuit state and a preset resistance-temperature mapping table, the method further includes: In the second circuit state, a first digital voltage signal value at the output port of the first oil temperature detection circuit and a pull-up source digital voltage signal value at the first pull-up source are obtained, and a relative digital voltage signal value is calculated based on the first digital voltage signal value, the pull-up source digital voltage signal value, the first pull-up series resistor, and the first pull-up voltage divider resistor; In response to the relative digital voltage signal value being greater than a preset high temperature jump threshold, in the second circuit state, calculating the resistance value of the first temperature sensor based on the relative digital voltage signal value, the first pull-up resistor, the first series resistor, and the first voltage divider resistor, including: In response to the relative digital voltage signal value being less than or equal to a preset high temperature jump threshold, the step of determining a first target oil temperature based on the resistance of the first temperature sensor in the first circuit state and a preset resistance-temperature mapping table is performed.

7. The method according to any one of claims 1 to 6, It is characterized in that The method further includes setting the first pull-up source and the second pull-up source to be turned on.

8. An oil temperature detection device, It is characterized in that The device is applied to an oil temperature detection circuit, the oil temperature detection circuit comprising: a first pull-up source, a second pull-up source and a first oil temperature detection circuit; wherein the first pull-up source is a 5V voltage pull-up source, the second pull-up source is a power supply voltage pull-up source, the circuit resistance values ​​of the first pull-up source and the second pull-up source are different, and the first oil temperature detection circuit comprises a first temperature sensor; The device comprises: A signal acquisition module, configured to acquire a first digital voltage signal value at an output port of the first oil temperature detection circuit in a first circuit state, wherein the first circuit state includes the first pull-up source being turned on and the second pull-up source being turned off; an oil temperature determination module, configured to determine a first target oil temperature based on a resistance value of the first temperature sensor in the first circuit state and a preset resistance-temperature mapping table in response to the first digital voltage signal value being greater than a preset low temperature jump threshold; The oil temperature determination module is also used to determine the first target oil temperature based on the resistance of the first temperature sensor in a second circuit state and a preset resistance-temperature mapping table in response to the first digital voltage signal value being less than or equal to a preset low-temperature jump threshold, wherein the second circuit state includes the first pull-up source being turned off and the second pull-up source being turned on.

9. A vehicle, It is characterized in that include: at least one processor; a memory communicatively coupled to at least one of the processors; Wherein, the memory stores a computer program that can be executed by at least one of the processors, and when at least one of the processors executes the computer program, the oil temperature detection method according to any one of claims 1 to 7 is implemented.

10. A computer storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the oil temperature detection method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Segmented temperature acquisition system and method for integrated hydrodynamic retarder

    CN120792761A