Oil temperature measuring device, control method and vehicle

文档序号:1873988 发布日期:2021-11-23 浏览:18次 中文

阅读说明:本技术 一种油温测量装置、控制方法及车辆 (Oil temperature measuring device, control method and vehicle ) 是由 赵令国 田辉 张荣辉 宁甲奎 张召 于 2021-08-24 设计创作,主要内容包括:本发明公开了一种油温测量装置、控制方法及车辆,用于测量油温,包括热敏电阻、上拉电路和控制器;热敏电阻与上拉电路串联连接于供电电源与接地端之间;上拉电路包括至少一个第一上拉电阻、至少一个第二个上拉电阻以及与至少一个第二上拉电阻一一对应电连接的至少一个开关模块;第一上拉电阻和各第二上拉电阻串联或并联连接于热敏电阻与供电电源之间;控制器用于在上拉电路中上拉电阻的阻值为第一上拉电阻的阻值时,根据热敏电阻的阻值,确定油温,以及根据油温,控制各开关模块导通和/或关断,以修正上拉电路中上拉电阻阻值,减小上拉电阻对测量结果的影响,减小了油温的测量误差,提高了测量结果的准确度。(The invention discloses an oil temperature measuring device, a control method and a vehicle, which are used for measuring the oil temperature and comprise a thermistor, a pull-up circuit and a controller; the thermistor and the pull-up circuit are connected in series between the power supply and the grounding end; the pull-up circuit comprises at least one first pull-up resistor, at least one second pull-up resistor and at least one switch module which is electrically connected with the at least one second pull-up resistor in a one-to-one correspondence manner; the first pull-up resistor and each second pull-up resistor are connected in series or in parallel between the thermistor and the power supply; the controller is used for determining the oil temperature according to the resistance value of the thermistor when the resistance value of the pull-up resistor in the pull-up circuit is the resistance value of the first pull-up resistor, and controlling the on/off of each switch module according to the oil temperature so as to correct the resistance value of the pull-up resistor in the pull-up circuit, reduce the influence of the pull-up resistor on a measurement result, reduce the measurement error of the oil temperature and improve the accuracy of the measurement result.)

1. An oil temperature measuring device for measuring oil temperature, comprising: the device comprises a thermistor, a pull-up circuit and a controller;

the thermistor and the pull-up circuit are connected in series between a power supply and a ground terminal;

the pull-up circuit comprises at least one first pull-up resistor, at least one second pull-up resistor and at least one switch module which is electrically connected with the at least one second pull-up resistor in a one-to-one correspondence manner; the first pull-up resistor and each second pull-up resistor are connected in series or in parallel between the thermistor and the power supply;

the controller is used for determining the current resistance value of the thermistor according to the power supply voltage provided by the power supply, the resistance value of the pull-up circuit and the potential difference between the two ends of the thermistor, determining the temperature range where the current oil temperature is located according to the current resistance value of the thermistor, and controlling the switch modules to be switched on and/or switched off according to the temperature range so as to correct the resistance value of the pull-up resistor in the pull-up circuit.

2. The oil temperature measuring device according to claim 1, wherein when the first pull-up resistor and each of the second pull-up resistors are connected in series between the thermistor and the power supply source, each of the second pull-up resistors is connected in series;

the control end of each switch module is electrically connected with the controller; the at least one second pull-up resistor is connected with the input end and the output end of the at least one switch module in parallel in a one-to-one correspondence mode;

the first pull-up resistor is connected in series between the second pull-up resistor and the thermistor.

3. The oil temperature measuring device according to claim 1, wherein when the first pull-up resistor and each of the second pull-up resistors are connected in parallel between the thermistor and the power supply source, each of the second pull-up resistors is connected in parallel;

the control end of each switch module is electrically connected with the controller; and the at least one second pull-up resistor is connected with the input end and the output end of the at least one switch module in series in a one-to-one correspondence mode.

4. A temperature measuring device according to claim 2 or 3, wherein the switching module comprises a transistor.

5. A control method of an oil temperature measuring device for measuring oil temperature, performed using the oil temperature measuring device according to any one of claims 1 to 4, comprising:

acquiring the resistance value of the pull-up circuit and the voltage at two ends of the thermistor in real time;

determining the current resistance value of the thermistor according to the power supply voltage provided by the power supply, the resistance value of the pull-up circuit and the potential difference between the two ends of the thermistor;

determining the temperature range of the current oil temperature according to the current resistance value of the thermistor; wherein N temperature ranges are included, and N is an integer greater than or equal to 2;

and controlling the switch modules to be switched on and/or switched off according to the temperature range of the oil temperature so as to correct the resistance value of the pull-up resistor in the pull-up circuit, and returning to execute the step of acquiring the resistance value of the pull-up circuit and the voltage at two ends of the thermistor in real time.

6. The control method according to claim 5, wherein N of the temperature ranges are [ T1min, T1max ], [ T2min, T2max ], [ T3min, T3max ], …, [ TI-1min, TI-1max ], [ TImin, TImax ], [ TI +1min, TI +1max ], …, [ TNmin, TNmax ]; i is more than or equal to 2 and less than or equal to N-1, and I is an integer;

wherein TI-1min < TImin < TI-1max, TI +1min < TImax < TI +1 max.

7. The control method according to claim 6, wherein determining the temperature range in which the current oil temperature is according to the current resistance value of the thermistor comprises:

determining the current oil temperature according to the current resistance value of the thermistor;

judging whether the current oil temperature is greater than or equal to TIMin;

if yes, judging whether the current oil temperature is less than or equal to TIMax;

if yes, determining that the current oil temperature belongs to a temperature range of [ TIMin, TIMax ].

8. The control method according to claim 7, characterized by further comprising:

if the current oil temperature is less than the TIMin, judging whether the current oil temperature is more than or equal to TI-1 min;

if yes, determining that the current oil temperature belongs to the temperature range of [ TI-1min, TI-1max ].

9. The control method according to claim 7, characterized by further comprising:

if the current oil temperature is greater than the TImax, judging whether the current oil temperature is less than or equal to TI +1 max;

if yes, determining that the current oil temperature belongs to the temperature range of [ TI +1min, TI +1max ].

10. A vehicle, characterized by comprising: the oil temperature measuring device of any one of claims 1-4;

the controller of the oil temperature measuring device is configured to execute the control method of the oil temperature measuring device according to any one of claims 5 to 9.

Technical Field

The embodiment of the invention relates to the technical field of electronic measurement, in particular to an oil temperature measuring device, a control method and a vehicle.

Background

The oil temperature is required to be monitored in the running process of the vehicle, and the measurement of the oil temperature can be realized through the thermistor, namely the current oil temperature is calculated through the resistance value of the thermistor. In the existing electronic measuring device for measuring the oil temperature by using the thermistor, a pull-up resistor connected in series with the thermistor is usually a resistor with a specific resistance value. However, the pull-up resistor with a fixed resistance value has low accuracy on the oil temperature measurement result.

Disclosure of Invention

The invention provides an oil temperature measuring device, a control method and a vehicle, which aim to reduce the error of oil temperature measurement and improve the accuracy of the oil temperature measurement.

In a first aspect, an embodiment of the present invention provides an oil temperature measuring device, configured to measure an oil temperature, including: the device comprises a thermistor, a pull-up circuit and a controller;

the thermistor and the pull-up circuit are connected in series between a power supply and a ground terminal;

the pull-up circuit comprises at least one first pull-up resistor, at least one second pull-up resistor and at least one switch module which is electrically connected with the at least one second pull-up resistor in a one-to-one correspondence manner; the first pull-up resistor and each second pull-up resistor are connected in series or in parallel between the thermistor and the power supply;

the controller is used for determining the current resistance value of the thermistor according to the power supply voltage provided by the power supply, the resistance value of the pull-up circuit and the potential difference between the two ends of the thermistor, determining the temperature range where the current oil temperature is located according to the current resistance value of the thermistor, and controlling the switch modules to be switched on and/or switched off according to the temperature range so as to correct the resistance value of the pull-up resistor in the pull-up circuit.

Optionally, when the first pull-up resistor and each of the second pull-up resistors are connected in series between the thermistor and the power supply, each of the second pull-up resistors is connected in series;

the control end of each switch module is electrically connected with the controller; the at least one second pull-up resistor is connected with the input end and the output end of the at least one switch module in parallel in a one-to-one correspondence mode;

the first pull-up resistor is connected in series between the second pull-up resistor and the thermistor.

Optionally, when the first pull-up resistor and each of the second pull-up resistors are connected in parallel between the thermistor and the power supply, each of the second pull-up resistors is connected in parallel;

the control end of each switch module is electrically connected with the controller; and the at least one second pull-up resistor is connected with the input end and the output end of the at least one switch module in series in a one-to-one correspondence mode.

Optionally, the switch module comprises a transistor.

In a second aspect, an embodiment of the present invention further provides a control method for an oil temperature measuring device, which is implemented by using the above oil temperature measuring device, and includes:

acquiring the resistance value of the pull-up circuit and the voltage at two ends of the thermistor in real time;

determining the current resistance value of the thermistor according to the power supply voltage provided by the power supply, the resistance value of the pull-up circuit and the potential difference between the two ends of the thermistor;

determining the temperature range of the current oil temperature according to the current resistance value of the thermistor; wherein N temperature ranges are included, and N is an integer greater than or equal to 2;

and controlling the switch modules to be switched on and/or switched off according to the temperature range of the oil temperature so as to correct the resistance value of the pull-up resistor in the pull-up circuit, and returning to execute the step of acquiring the resistance value of the pull-up circuit and the voltage at two ends of the thermistor in real time.

Optionally, the value ranges of the N temperature ranges are [ T1min, T1max ], [ T2min, T2max ], [ T3min, T3max ], …, [ TI-1min, TI-1max ], [ TImin, TImax ], [ TI +1min, TI +1max ], …, [ TNmin, TNmax ]; i is more than or equal to 2 and less than or equal to N-1, and I is an integer;

wherein TI-1min < TImin < TI-1max, TI +1min < TImax < TI +1 max.

Optionally, determining a temperature range where the current oil temperature is located according to the current resistance value of the thermistor, including:

determining the current oil temperature according to the current resistance value of the thermistor;

judging whether the current oil temperature is greater than or equal to TIMin;

if yes, judging whether the current oil temperature is less than or equal to TIMax;

if yes, determining that the current oil temperature belongs to a temperature range of [ TIMin, TIMax ].

Optionally, the control method of the oil temperature measuring device further includes:

if the current oil temperature is less than the TIMin, judging whether the current oil temperature is more than or equal to TI-1 min;

if yes, determining that the current oil temperature belongs to the temperature range of [ TI-1min, TI-1max ].

Optionally, the control method of the oil temperature measuring device further includes:

if the current oil temperature is greater than the TImax, judging whether the current oil temperature is less than or equal to TI +1 max;

if yes, determining that the current oil temperature belongs to the temperature range of [ TI +1min, TI +1max ].

In a third aspect, an embodiment of the present invention further provides a vehicle, including the above oil temperature measuring device;

the controller of the oil temperature measuring device is used for executing the control method of the oil temperature measuring device.

According to the oil temperature measuring device provided by the embodiment of the invention, the pull-up circuit connected in series between the thermistor and the power supply is arranged, the pull-up circuit comprises at least one first pull-up resistor, at least one second pull-up resistor and the switch modules in one-to-one correspondence to the at least one second pull-up resistor, and the resistance value of the pull-up resistor in the pull-up circuit is controlled by controlling the on/off of the switch modules through the controller, so that the resistance value of the resistor in the pull-up circuit is variable, the error of oil temperature measurement in each stage is reduced, and the accuracy of oil temperature measurement is improved.

Drawings

Fig. 1 is a schematic structural diagram of an oil temperature measuring device according to an embodiment of the present invention;

FIG. 2 is a schematic structural diagram of another oil temperature measuring device provided by the embodiment of the invention;

FIG. 3 is a schematic structural diagram of another oil temperature measuring device according to an embodiment of the present invention;

FIG. 4 is a flowchart of a control method of an oil temperature measuring device according to an embodiment of the present invention;

fig. 5 is a flowchart of another control method for an oil temperature measuring device according to an embodiment of the present invention.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.

An embodiment of the present invention provides an oil temperature measuring device, which is used for measuring an oil temperature in a vehicle transmission, and fig. 1 is a schematic structural diagram of the oil temperature measuring device provided by the embodiment of the present invention, as shown in fig. 1, the oil temperature measuring device includes a thermistor Rt, a pull-up circuit 10 and a controller 20; the thermistor Rt and the pull-up circuit 10 are connected in series between the power supply VCC and the ground terminal GND; the pull-up circuit 10 comprises at least one first pull-up resistor Rp0, at least one second pull-up resistor Rp1 and at least one switch module 30 electrically connected with at least one second pull-up resistor Rp1 in a one-to-one correspondence manner; the first pull-up resistor Rp0 and each second pull-up resistor Rp1 are connected in series or in parallel between the thermistor Rt and the power supply VCC; the controller 20 is configured to determine a current resistance value of the thermistor Rt according to a power supply voltage provided by the power supply VCC, a resistance value of the pull-up circuit 10, and a potential difference between two ends of the thermistor Rt, determine a temperature range in which a current oil temperature is located according to the resistance value of the thermistor Rt, and control each switch module 30 to turn on and/or off according to the temperature range, so as to correct the pull-up resistance value in the pull-up circuit 10.

Specifically, the pull-up circuit 10 and the thermistor Rt divide a voltage V provided by the power supply VCC, the a/D port of the controller 20 can collect a voltage Vt at both ends of the thermistor Rt, and calculate a current resistance value of the thermistor Rt according to the voltage Vt at both ends of the thermistor Rt, a resistance value of the pull-up resistor in the pull-up circuit 10, and the voltage V provided by the power supply VCC; assuming that the resistance value of the pull-up resistor in the pull-up circuit 10 is Rp and the voltage provided by the power supply VCC is V, the current resistance value of the thermistor Rt is: vt Rp/(V-Vt); after the resistance value of the thermistor Rt is obtained, the current oil temperature can be determined by a look-up table or a temperature-resistance value calculation formula. Generally, at different temperatures, the resistance value of the pull-up resistor in the pull-up circuit 10 has a difference on the error influence of the oil temperature measurement result; for example, when the resistance value of the pull-up resistor is small, the error influence on the detection result of the higher oil temperature is small, and the error influence on the detection result of the lower oil temperature is large; when the pull-up resistor is large in resistance, the influence on the error of the detection result of the lower oil temperature is small, and the influence on the error of the detection result of the higher oil temperature is large.

The pull-up circuit 10 includes at least one first pull-up resistor Rp0, at least one second pull-up resistor Rp1, and at least one switch module 30 electrically connected to the at least one second pull-up resistor Rp1 in a one-to-one correspondence manner, and the on or off of the switch module 30 can control the number of the second pull-up resistors Rp1 in a path of the pull-up circuit 10, so as to control the resistance value of the pull-up resistors in the pull-up circuit 10. The controller 20 obtains the resistance value of the thermistor Rt through the a/D port, determines the temperature range of the current oil temperature according to the resistance value of the thermistor Rt, and controls the on and/or off of each switch module 30 according to the temperature range to change the resistance value of the pull-up resistor in the pull-up circuit 10, so that the resistance value of the pull-up resistor is reduced when the oil temperature is higher, and the resistance value of the pull-up resistor is increased when the oil temperature is lower, so as to reduce the measurement error of the oil temperature and improve the accuracy of the oil temperature detection result.

According to the oil temperature measuring device provided by the embodiment of the invention, the pull-up circuit connected in series between the thermistor and the power supply is arranged, the pull-up circuit comprises at least one first pull-up resistor, at least one second pull-up resistor and the switch modules in one-to-one correspondence to the at least one second pull-up resistor, and the resistance value of the pull-up resistor in the pull-up circuit is controlled by controlling the on/off of the switch modules through the controller, so that the resistance value of the resistor in the pull-up circuit is variable, the error of oil temperature measurement in each stage is reduced, and the accuracy of oil temperature measurement is improved.

It should be noted that, in fig. 1, only the pull-up circuit 10 includes one first pull-up resistor Rp0 and two second pull-up resistors Rp1 as an example, it is understood that the pull-up circuit 10 may include a plurality of first pull-up resistors Rp0 and a plurality of second pull-up resistors Rp1, and for convenience of description, the following embodiments are described with the pull-up circuit 10 including one first pull-up resistor Rp0 and two second pull-up resistors Rp1 as an example, unless otherwise specified.

Optionally, fig. 2 is a schematic structural diagram of an oil temperature measuring device according to an embodiment of the present invention, as shown in fig. 2, when the first pull-up resistor Rp0 and each second pull-up resistor Rp1 are connected in parallel between the thermistor and the power supply VCC, each second pull-up resistor Rp1 is connected in parallel; the control end of each switch module 30 is electrically connected with the controller 20; at least one second pull-up resistor Rp1 is connected in series with the input and output terminals of the at least one switch module 30 in a one-to-one correspondence.

For example, in the initial stage of oil temperature detection, each switch module 30 is in an off state, only the first pull-up resistor Rp0 is connected in series between the thermistor Rt and the power supply VCC, and the controller 20 determines the current oil temperature according to the resistance value of the thermistor Rt; if the current oil temperature is high, the on state of each switch module 30 can be controlled, and the resistance value of the pull-up resistor in the pull-up circuit 10 is the resistance value of a first pull-up resistor Rp0 and two second pull-up resistors Rp1 which are connected in parallel; when the oil temperature is reduced, the controller 20 may control one of the switch modules 30 to be in an off state and the other switch module 30 to be in an on state, so that the resistance value of the pull-up resistor in the pull-up circuit 10 is the resistance value of a first pull-up resistor Rp0 and a second pull-up resistor Rp1 connected in parallel; when the oil temperature continues to decrease, the controller 20 may control both the switch modules 30 to be in the off state, so that the resistance value of the pull-up resistor is the resistance value of one first pull-up resistor Rp 0; therefore, the on/off of the switch module 30 is controlled according to the change of the oil temperature, and the resistance value of the pull-up resistor in the pull-up circuit 10 can be changed, so that the measurement error of the oil temperature is reduced, and the accuracy of the oil temperature detection result is improved.

It should be noted that fig. 2 is only an exemplary implementation manner of the embodiment of the present invention, and fig. 2 only exemplarily shows that the pull-up circuit 10 includes two second pull-up resistors Rp1, so as to be capable of implementing resistance adjustment corresponding to three different oil temperature segments, whereas in the embodiment of the present invention, the pull-up circuit 10 may further include more second pull-up resistors to implement resistance adjustment corresponding to more oil temperature ranges, and the technical principle thereof is similar to the above description of fig. 2, and is not repeated herein.

Illustratively, the switching module 30 may include a transistor T; the transistor T may be a fet or a triode, for example, when the transistor is a fet, the gate thereof is the control terminal of the switch module 30, the source thereof is the input terminal of the switch module 30, and the drain thereof is the output terminal of the switch module 30. The controller 20 controls the transistor T to be turned on or off through the gate of the transistor T, and when the transistor T is turned on, the second pull-up resistor Rp1 connected in series thereto is connected in parallel with the first pull-up resistor Rp 0.

According to the oil temperature measuring device provided by the embodiment of the invention, the first pull-up resistors are connected with the second pull-up resistors in parallel, the second pull-up resistors are connected with the switch modules in series in a one-to-one correspondence manner, the switch modules can comprise transistors, and the conduction or partial conduction of the transistors is controlled according to the oil temperature, so that the first pull-up resistors are connected with the second pull-up resistors in parallel or connected with partial second pull-up resistors in parallel, the resistance values of the pull-up resistors are adjusted according to different oil temperatures, the influence of the pull-up resistors on the measuring result is reduced, the measuring error of the oil temperature is reduced, and the accuracy of the measuring result is improved.

Optionally, fig. 3 is a schematic structural diagram of another oil temperature measuring device according to an embodiment of the present invention, as shown in fig. 3, when the first pull-up resistor Rp0 and each second pull-up resistor Rp1 are connected in series between the thermistor Rt and the power supply VCC, each second pull-up resistor Rp1 is connected in series; the control end of each switch module 30 is electrically connected with the controller 20; the at least one second pull-up resistor Rp1 is connected in parallel with the input end and the output end of the at least one switch module 30 in a one-to-one correspondence manner; the first pull-up resistor Rp0 is connected in series between the second pull-up resistor Rp1 and the thermistor Rt.

For example, in the initial stage of oil temperature detection, the states of the switch modules 30 may be set according to the currently detected oil temperature, for example, the switch modules 30 are all in the on state according to the oil temperature, only the first pull-up resistor Rp0 is connected in series between the thermistor Rt and the power supply VCC, and the controller 20 detects the current change according to the resistance value of the thermistor Rt; when the oil temperature is low, each switch module 30 can be controlled to be turned off, and the resistance value of the pull-up resistor in the pull-up circuit 10 is the resistance value of a series connection of one first pull-up resistor Rp0 and two second pull-up resistors Rp 1; when the oil temperature becomes high, the controller 20 may control one of the switch modules 30 to be in an off state and the other switch module 30 to be in an on state, so that the resistance value of the pull-up resistor in the pull-up circuit 10 is the resistance value of a series connection of a first pull-up resistor Rp0 and a second pull-up resistor Rp 1; when the oil temperature continues to rise, the controller 20 may control both the two switch modules 30 to be in a conducting state, so that the resistance value of the pull-up resistor is the resistance value of one first pull-up resistor Rp 0; therefore, the on/off of the switch module 30 is controlled according to the change of the oil temperature, and the resistance value of the pull-up resistor in the pull-up circuit 10 can be changed, so that the measurement error of the oil temperature is reduced, and the accuracy of the oil temperature detection result is improved.

It should be noted that fig. 3 is only an exemplary implementation manner of the embodiment of the present invention, and fig. 3 only exemplarily shows that the pull-up circuit 10 includes two second pull-up resistors Rp1, so as to be capable of implementing resistance adjustment corresponding to three different oil temperature segments, whereas in the embodiment of the present invention, the pull-up circuit 10 may further include more second pull-up resistors to implement resistance adjustment corresponding to more oil temperature segments, and the technical principle of the pull-up circuit is similar to the above description of fig. 3, and is not repeated herein.

Illustratively, the switching module 30 may include a transistor T; the transistor T may be a fet or a triode, for example, when the transistor is a fet, the gate thereof is the control terminal of the switch module 30, the source thereof is the input terminal of the switch module 30, and the drain thereof is the output terminal of the switch module 30. The controller 20 controls the transistor T to be turned on or off through the gate of the transistor T, and when the transistor T is turned off, the second pull-up resistor Rp1 connected in parallel thereto is connected in series with the first pull-up resistor Rp 0.

In the control method of the oil temperature measuring device provided by the embodiment of the invention, the first pull-up resistors in the pull-up circuits are connected in series with the second pull-up resistors, the second pull-up resistors are connected in series, and the second pull-up resistors are connected in parallel with the input end and the output end of the switch module in a one-to-one correspondence manner, wherein the switch module can be a transistor, and the conduction or partial conduction of each transistor is controlled according to the oil temperature, so that the first pull-up resistors are connected in series with the second pull-up resistors or connected in series with part of the second pull-up resistors, the resistance values of the pull-up resistors are adjusted according to different oil temperatures, the influence of the pull-up resistors on the measuring result is reduced, the measuring error of the oil temperature is reduced, and the accuracy of the measuring result is improved.

Based on the same inventive concept, the embodiment of the invention also provides a control method of the oil temperature measuring device, the control method of the oil temperature measuring device can be used for measuring the oil temperature in the vehicle engine, the control method of the oil temperature measuring device can be executed by the oil temperature measuring device provided by the embodiment of the invention, and the oil temperature measuring device provided by the embodiment of the invention can be integrated in the vehicle.

Fig. 4 is a flowchart of a control method of an oil temperature measuring device according to an embodiment of the present invention, and as shown in fig. 4, the control method of the oil temperature measuring device includes:

and S110, acquiring the resistance value of the pull-up circuit and the voltage at two ends of the thermistor in real time.

And S120, determining the current resistance value of the thermistor according to the power supply voltage provided by the power supply, the resistance value of the pull-up circuit and the potential difference between the two ends of the thermistor.

And S130, determining the temperature range of the current oil temperature according to the current resistance value of the thermistor.

Specifically, in an initial stage of oil temperature detection, the controller may first set an oil temperature by itself, set states of the switch modules according to the oil temperature, then obtain a voltage across the thermistor and a resistance value of the pull-up resistor in real time during operation of a transmission of the vehicle, calculate a resistance value of the thermistor according to a power supply voltage provided by a power supply, the voltage across the thermistor and the resistance value of the pull-up resistor in real time, determine a temperature range in which the current oil temperature is located according to the resistance value of the current thermistor through a table lookup or a temperature-resistance value calculation formula, and control states of the switch modules in the pull-up circuit according to the oil temperature in the temperature range in which the current oil temperature is located. The temperature control circuit comprises N temperature ranges, wherein N is an integer greater than or equal to 2, and the state of each switch module can be controlled according to different temperature ranges.

And S140, controlling the on/off of each switch module according to the temperature range of the oil temperature so as to correct the pull-up resistance value in the pull-up circuit.

Specifically, under different temperatures, the resistance value of the pull-up resistor in the pull-up circuit has difference on the error influence of the oil temperature measurement result; for example, when the resistance value of the pull-up resistor is small, the error influence on the detection result of the higher oil temperature is small, and the error influence on the detection result of the lower oil temperature is large; when the pull-up resistor is large in resistance, the influence on the error of the detection result of the lower oil temperature is small, and the influence on the error of the detection result of the higher oil temperature is large. Therefore, in order to ensure the accuracy of measuring the oil temperature in each temperature stage, the on and/or off of each switch module can be controlled according to the oil temperature, so that the first pull-up resistor and each second pull-up resistor are connected in series or in parallel, and the resistance value of the pull-up resistor in the pull-up circuit is corrected. For example, as shown in fig. 1 or fig. 2, when the oil temperature is low, each switch module 30 may be controlled to be turned off, so as to ensure that the resistance of the pull-up resistor in the pull-up circuit 10 is large enough to reduce the measurement error; or, as shown in fig. 3, when the oil temperature is high, each switch module 30 may be controlled to be turned on, so as to ensure that the resistance of the pull-up resistor in the pull-up circuit 10 is small, so as to reduce the measurement error. After the resistance value of a pull-up resistor in the pull-up circuit is corrected according to the oil temperature, the current resistance value of the thermistor is determined according to the voltage at the two ends of the thermistor, the voltage provided by a power supply and the resistance value of the pull-up resistor, the oil temperature is recalculated according to the current resistance value of the thermistor so as to reduce the error of oil temperature measurement, the step of measuring the oil temperature is continuously carried out after the oil temperature is recalculated, and the on and/or off of each switch module is controlled according to the oil temperature in real time until a control instruction for stopping measurement is received so as not to carry out measurement.

According to the control method of the oil temperature measuring device, the current oil temperature is determined by acquiring the resistance value of the pull-up resistor in real time, a plurality of temperature ranges of the oil temperature are set, and the resistance value of the pull-up resistor in the pull-up circuit is adjusted in real time according to the temperature range of the current oil temperature, so that the oil temperature measuring result is ensured to have small error, and the accuracy of oil temperature measurement is improved.

Optionally, fig. 5 is a flowchart of another control method for an oil temperature measuring device according to an embodiment of the present invention, in the embodiment of the present invention, value ranges of N temperature ranges are set as [ T1min, T1max ], [ T2min, T2max ], [ T3min, T3max ], …, [ TI-1min, TI-1max ], [ TImin, TImax ], [ TI +1min, TI +1max ], …, [ TNmin, TNmax ]; i is more than or equal to 2 and less than or equal to N-1, and I is an integer; wherein TI-1min < TImin < TI-1max, TI +1min < TImax < TI +1 max; as shown in fig. 5, the control method of the oil temperature measuring device includes:

and S211, acquiring the resistance value of the pull-up circuit and the voltage at two ends of the thermistor in real time.

And S212, determining the current resistance value of the thermistor according to the power supply voltage provided by the power supply, the resistance value of the pull-up circuit and the potential difference between the two ends of the thermistor.

And S213, determining the current oil temperature according to the current resistance value of the thermistor.

S214, judging whether the current oil temperature is greater than or equal to TIMin; if yes, go to S215; if not, go to S217.

S215, judging whether the current oil temperature is less than or equal to TIMax; if yes, go to S216; if not, S219 is executed.

S216, determining that the current oil temperature belongs to the temperature range of [ TIMin, TIMax ].

S217, judging whether the current oil temperature is more than or equal to TI-1 min; if yes, go to step S218.

S218, determining that the current oil temperature belongs to the temperature range of [ TI-1min, TI-1max ].

Specifically, if the current oil temperature is determined to be less than TI-1min, whether the current oil temperature is greater than or equal to TI-2min or not can be continuously judged, and if the current oil temperature is determined to be greater than or equal to TI-2min, the current oil temperature can be determined to belong to the temperature range of [ TI-2min, TI-2max ], and the like.

S219, judging whether the current oil temperature is less than or equal to TI +1 max; if yes, go to step S220.

S220, determining that the current oil temperature belongs to the temperature range of [ TI +1min, TI +1max ].

Specifically, if the current oil temperature is determined to be greater than TI +1max, it may be continuously determined whether the current oil temperature is less than or equal to TI +2max, and if the current oil temperature is determined to be less than or equal to TI-2min, it may be determined that the current oil temperature belongs to the temperature range of [ TI +2min, TI +2max ], and so on.

And S221, controlling the on/off of each switch module according to the temperature range of the oil temperature so as to correct the resistance value of the pull-up resistor in the pull-up circuit.

Specifically, TImin may be a minimum value of a temperature range in which the oil temperature determined in a previous detection period is located, and TImax may be a maximum value of a temperature range in which the oil temperature determined in a previous detection period is located, when determining the temperature range in which the current oil temperature is located, it may be first determined whether the current detected oil temperature is still within the temperature range [ TImin, TImax ], and if determining whether the current detected oil temperature is still within the temperature range [ TImin, TImax ], the state of each switch module is maintained unchanged; if the current detected oil temperature is determined not to be in the temperature range [ TIMin, TIMax ], continuously matching the detected oil temperature with each temperature range until the range of the oil temperature is determined, controlling the on/off of each switch module according to the temperature range of the current oil temperature to correct the resistance value of a pull-up resistor in the pull-up circuit, re-determining the resistance value of a thermistor according to the power supply voltage provided by the power supply, the corrected resistance value of the pull-up circuit and the potential difference between two ends of the thermistor after the resistance value of the pull-up resistor is corrected, determining the oil temperature according to the re-determined resistance value of the thermistor, and taking the oil temperature as the actual oil temperature.

Wherein, adjacent temperature ranges have cross ranges, namely TI-1min < TImin < TI-1max, TI +1min < TImax < TI +1 max. The temperature ranges are set to ensure that after the pull-up resistor is corrected to reacquire the oil temperature, each switch module does not act immediately according to the reacquired oil temperature. Illustratively, the minimum setting of each temperature range is TI +1min as an example, if the current temperature range matched with the resistance of the pull-up circuit is [ TImin, TImax ], and the detected oil temperature is within the temperature range [ TI +1min, TI +1max ], the switch module of the pull-up circuit is controlled to be turned on or off so that the resistance of the pull-up circuit is the resistance matched with the temperature range [ TI +1min, TI +1max ], after the oil temperature is recalculated according to the corrected pull-up resistor, the setting of TI +1min should be smaller than the minimum possible value of the recalculated oil temperature, and the switch module is prevented from acting again according to the recalculated oil temperature so that the resistance of the pull-up circuit returns to the resistance corresponding to the temperature range of [ TImin, TImax ], so as to avoid repeatedly switching on or off of each switch module. The maximum value of each temperature range is illustrated by taking TI-1max as an example, if the current temperature range matched with the resistance value of the pull-up circuit is [ TImin, TImax ], and the detected oil temperature is [ TI-1min, TI-1max ], the switch module of the pull-up circuit is controlled to act to enable the resistance value of the pull-up circuit to be the resistance value matched with the temperature range [ TI-1min, TI-1max ], after the oil temperature is recalculated according to the corrected pull-up resistor, the setting of the TI-1max is larger than the maximum value which can be reached by the recalculated oil temperature, the switch module is prevented from acting again according to the recalculated oil temperature, the resistance value of the pull-up circuit returns to the resistance value corresponding to the temperature range of the [ TImin, TImax ], and the switch state of each switch module is prevented from jumping back and forth.

Exemplarily, referring to fig. 3, the control method is exemplified by the circuit configuration shown in fig. 3, and as shown in fig. 3, when the pull-up circuit 10 includes 1 first pull-up resistor Rp0 and 2 second pull-up resistors Rp1, and the first pull-up resistor Rp0 and each of the second pull-up resistors Rp1 are connected in series between the thermistor and the power supply, each of the second pull-up resistors Rp1 is connected in series; the control end of each switch module is electrically connected with the controller; the at least one second pull-up resistor Rp1 is connected in parallel with the input terminal and the output terminal of the at least one switch module in a one-to-one correspondence.

Specifically, 3 temperature ranges can be set as [ T1min, T1max ], [ T2min, T2max ], and [ T3min, T3max ], respectively, and when it is determined that the current oil temperature is in the temperature range [ T1min, T1max ], the controller 20 can control each switch module 30 to turn off, so that the first pull-up resistor Rp0 is connected in series with each second pull-up resistor Rp1, the resistance value of the pull-up resistor in the pull-up circuit 10 is increased, and the measurement error of the oil temperature is reduced; when the current oil temperature is determined to be in the temperature range [ T2min, T2max ], one of the switch modules 30 may be controlled to be turned off by the controller 20, so that the first pull-up resistor Rp0 is connected in series with the second pull-up resistor Rp1, and compared with the resistance reduction when the oil temperature is in the temperature range [ T1min, T1max ], the measurement error of the oil temperature is reduced; when the current oil temperature is determined to be in the temperature range [ T3min, T3max ], the controller 20 controls each of the switch modules 30 to be turned on, so that the resistance value of the pull-up circuit 10 is only the resistance value of the first pull-up resistor Rp0, and is further reduced compared with the resistance value when the oil temperature is in the temperature range [ T2min, T2max ], and the measurement error of the oil temperature is reduced.

Alternatively, for example, referring to fig. 1 or 2, the control method is exemplified below by taking the circuit configuration shown in fig. 1 or 2 as an example, as shown in fig. 1 or 2, when the first pull-up resistor Rp0 and each second pull-up resistor Rp1 are connected in parallel between the thermistor Rt and the power supply VCC, each second pull-up resistor Rp1 is connected in parallel; the control end of each switch module 30 is electrically connected with the controller 20; at least one second pull-up resistor Rp1 is connected in series with the input and output terminals of the at least one switch module 30 in a one-to-one correspondence.

Specifically, 3 temperature ranges can be set as [ T1min, T1max ], [ T2min, T2max ], and [ T3min, T3max ], and when it is determined that the current oil temperature is in the temperature range [ T1min, T1max ], the controller 20 can control each switch module 30 to turn off, so that the thermistor Rt is connected in series with only the first pull-up resistor Rp0 in the pull-up circuit 10, the resistance value of the pull-up resistor in the pull-up circuit 10 is ensured to be large enough, and the measurement error of the oil temperature is reduced; when the current oil temperature is determined to be in the temperature range [ T2min, T2max ], one of the switch modules 30 is controlled to be turned off and the other switch module 30 is controlled to be turned on by the controller 20, so that the first pull-up resistor Rp0 is connected in parallel with the second pull-up resistor Rp1, and compared with the reduction of the resistance value when the oil temperature is in the temperature range [ T1min, T1max ], the measurement error of the oil temperature can be reduced; when the current oil temperature is determined to be in the temperature range [ T3min, T3max ], the controller 20 controls each of the switch modules 30 to be turned on, so that the resistance of the pull-up circuit 10 is the resistance of the first pull-up resistor Rp0 and the two pull-up resistors Rp1 connected in parallel, and compared with the resistance when the oil temperature is in the temperature range [ T2min, T2max ], the resistance is further reduced, and the measurement error of the oil temperature can be reduced.

It should be noted that the above embodiment is only described by taking the example that the pull-up circuit 10 includes 1 first pull-up resistor Rp0 and 2 second pull-up resistors Rp1, and it is understood that the pull-up circuit 10 may further include more second pull-up resistors Rp1, and the temperature range of the oil temperature may be increased according to the number of the second pull-up resistors Rp1, so as to achieve more accurate oil temperature measurement.

Based on the same inventive concept, a vehicle provided in an embodiment of the present invention includes the oil temperature measuring device provided in any embodiment of the present invention, wherein the controller of the oil temperature measuring device is a control method of the oil temperature measuring device provided in any embodiment of the present invention, so that the vehicle provided in the embodiment of the present invention includes the technical features of the oil temperature measuring device provided in any embodiment of the present invention, and the beneficial effects of the oil temperature measuring device provided in the embodiment of the present invention can be achieved.

It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于游标效应的光纤光栅温度传感器和传感装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!