Method for compensating environmental temperature for vehicle

文档序号:889635 发布日期:2021-03-23 浏览:4次 中文

阅读说明:本技术 一种车用环境温度的补偿方法 (Method for compensating environmental temperature for vehicle ) 是由 魏广洁 周定华 代立宏 赵松岭 丁锐 于 2020-11-20 设计创作,主要内容包括:本发明公开了一种车用环境温度的补偿方法,包括:实时获取车速信号,判断车速是否大于车速阈值;当车速大于车速阈值时,对读取的环境温度信号进行补偿策略,输出补偿后的温度作为环境温度输出值。本发明的优点在于:通过对读取的环境温度进行补偿,使得输出的环境温度数据更加准确,为车内的各种需要环境温度参数的部件提供数据支持;通过补偿算法将低速、怠速工况下前舱热回流的影响减少到最低,而且不需要进行硬件的改进,成本低,不需要对整车的结构、布置位置进行修改,仅需要软件上的改进即可实现。(The invention discloses a compensation method of vehicle ambient temperature, which comprises the steps of acquiring a vehicle speed signal in real time, and judging whether the vehicle speed is greater than a vehicle speed threshold value; and when the vehicle speed is greater than the vehicle speed threshold value, performing a compensation strategy on the read ambient temperature signal, and outputting the compensated temperature as an ambient temperature output value. The invention has the advantages that: the read ambient temperature is compensated, so that the output ambient temperature data is more accurate, and data support is provided for various components in the vehicle which need ambient temperature parameters; the influence of the hot reflux of the front cabin under the working conditions of low speed and idling is reduced to the minimum by a compensation algorithm, the improvement of hardware is not needed, the cost is low, the structure and the arrangement position of the whole vehicle are not needed to be modified, and the improvement on software can be realized.)

1. A compensation method for vehicle ambient temperature is characterized in that: the method comprises the following steps:

acquiring a vehicle speed signal in real time, and judging whether the vehicle speed is greater than a vehicle speed threshold value;

and when the vehicle speed is greater than the vehicle speed threshold value, performing a compensation strategy on the read ambient temperature signal, and outputting the compensated temperature as an ambient temperature output value.

2. A method for compensating for an ambient temperature for a vehicle as set forth in claim 1, wherein: the compensation strategy comprises the following steps:

when the temperature read this time is less than the last temperature, the temperature data T read this time is outputnAs temperature compensated output temperature TOutput of

When the temperature read this time is greater than the last output temperature:

if Tn-Tn-1>T, then TOutput ofAdding a temperature compensation threshold value to the last output temperature;

if Tn-Tn-1<T, then TOutput ofTemperature data read in real time;

wherein T isnAmbient temperature, T, read for controller nth framen-1To controlThe ambient temperature read by the frame n-1; t isOutput ofT is the temperature fluctuation threshold value for the actually output ambient temperature data.

3. A method for compensating for an ambient temperature for a vehicle as set forth in claim 2, wherein: when the vehicle speed is greater than the vehicle speed threshold value, the controller periodically reads the temperature data of the sensor, and the reading time period is reduced along with the increase of the speed.

4. A method of compensating for an ambient temperature for a vehicle as set forth in claim 3, wherein: when the vehicle speed is less than or equal to 30Km/h and 20Km/h, the interval period of the Tn and Tn-1 is read to be 4 min; when the vehicle speed is more than 30Km/h, the read Tn and Tn-1 interval cycle is 2 min; and when the vehicle speed is less than or equal to 20Km/h in the middle of timing, resetting the timing until the vehicle speed is more than 20Km/h, and restarting the timing.

5. A method for compensating for an ambient temperature for a vehicle as set forth in claim 1, wherein: when the vehicle speed is less than the vehicle speed threshold value, the controller stops updating the environment temperature, and the output T of the environment temperatureOutput ofAnd keeping the temperature constant, wherein the value is the environment temperature after the compensation strategy is output when the last vehicle speed is greater than the vehicle speed threshold value.

6. A method of compensating for an ambient temperature for a vehicle as claimed in any one of claims 1 to 5, wherein: when the vehicle is restarted, the controller reads the first frame of ambient temperature after the vehicle is started, compares the read ambient temperature with the engine water temperature, and outputs the ambient temperature T when the difference between the engine water temperature and the read ambient temperature is smaller than the set temperature difference valueOutput ofIs the read ambient temperature data.

7. The method of claim 6, wherein the method further comprises: and when the difference between the water temperature of the engine and the read ambient temperature is larger than the set temperature difference value, taking the last ambient temperature output value before flameout as the current temperature data.

Technical Field

The invention relates to the field of automobile temperature acquisition, in particular to a compensation method for automobile ambient temperature.

Background

Most motorcycle type ambient temperature arranges in the front insurance rear portion at present, and the ambient temperature processing mode of collection is simply associated with the speed of a motor vehicle, because the hot backward flow of front deck influences under operating modes such as low-speed, idle speed, leads to the ambient temperature output inaccurate under this operating mode, and the inaccurate part that uses ambient temperature in the car of ambient temperature is to a lot of, and its control, work all can be because the influence of ambient temperature and the inaccuracy that becomes.

Disclosure of Invention

The invention aims to overcome the defects of the prior art and provide a compensation method for the ambient temperature of a vehicle, which is used for performing compensation control on the ambient temperature of the prior art, outputting the compensated ambient temperature and providing more accurate and reliable ambient temperature for the whole vehicle.

In order to achieve the purpose, the invention adopts the technical scheme that: a method for compensating for an ambient temperature of a vehicle, comprising:

acquiring a vehicle speed signal in real time, and judging whether the vehicle speed is greater than a vehicle speed threshold value;

and when the vehicle speed is greater than the vehicle speed threshold value, performing a compensation strategy on the read ambient temperature signal, and outputting the compensated temperature as an ambient temperature output value.

The compensation strategy comprises the following steps:

when the temperature read this time is less than the last temperature, the temperature data T read this time is outputnAs temperature compensated output temperature TOutput of

When the temperature read this time is greater than the last output temperature:

if Tn-Tn-1>T, then TOutput ofAdding a temperature compensation threshold value to the last output temperature;

if Tn-Tn-1<T, then TOutput ofTemperature data read in real time;

wherein T isnAmbient temperature, T, read for controller nth framen-1Reading the ambient temperature for the n-1 th frame of the controller; t isOutput ofT is the temperature fluctuation threshold value for the actually output ambient temperature data.

When the vehicle speed is greater than the vehicle speed threshold value, the controller periodically reads the temperature data of the sensor, and the reading time period is reduced along with the increase of the speed.

When the vehicle speed is less than or equal to 30Km/h and 20Km/h, the interval period of the Tn and Tn-1 is read to be 4 min; when the vehicle speed is more than 30Km/h, the read Tn and Tn-1 interval cycle is 2 min; and when the vehicle speed is less than or equal to 20Km/h in the middle of timing, resetting the timing until the vehicle speed is more than 20Km/h, and restarting the timing.

When the vehicle speed is less than the vehicle speed threshold value, the controller stops updating the environment temperature, and the output T of the environment temperatureOutput ofAnd keeping the temperature constant, wherein the value is the environment temperature after the compensation strategy is output when the last vehicle speed is greater than the vehicle speed threshold value.

When the vehicle is restarted, the controller reads the first frame of ambient temperature after the vehicle is started, compares the read ambient temperature with the engine water temperature, and outputs the ambient temperature T when the difference between the engine water temperature and the read ambient temperature is smaller than the set temperature difference valueOutput ofIs the read ambient temperature data.

And when the difference between the water temperature of the engine and the read ambient temperature is larger than the set temperature difference value, taking the last ambient temperature output value before flameout as the current temperature data.

The invention has the advantages that: the read ambient temperature is compensated, so that the output ambient temperature data is more accurate, and data support is provided for various components in the vehicle which need ambient temperature parameters; the influence of the hot reflux of the front cabin under the working conditions of low speed and idling is reduced to the minimum by a compensation algorithm, the improvement of hardware is not needed, the cost is low, the structure and the arrangement position of the whole vehicle are not needed to be modified, and the improvement on software can be realized.

Detailed Description

The following description of preferred embodiments will provide further details of the present invention.

The application mainly aims at the defect that the setting position of the ambient temperature sensor in the prior art is easy to receive the influence of vehicle operation, and the software written by the method can reduce or avoid the influence, thereby providing more accurate and reliable ambient temperature, providing more accurate data for the work of the vehicle and avoiding the influence of error data on the normal operation of the vehicle. The specific scheme comprises the following steps:

a method for compensating for an ambient temperature of a vehicle, comprising:

acquiring a vehicle speed signal Vt in real time, and judging whether the vehicle speed Vt is greater than a vehicle speed threshold V1;

and when the vehicle speed Vt is greater than the vehicle speed threshold V1, performing a compensation strategy on the read ambient temperature signal, and outputting the compensated temperature as an ambient temperature output value. The compensation strategy comprises the following steps:

when the temperature read this time is less than the last temperature, it is indicated that the temperature is gradually reduced at this time, and the heat generated by the running of the vehicle body does not influence the temperature, and the temperature data T read this time is output at this timenAs temperature compensated output temperature TOutput of

When the temperature read this time is greater than the last output temperature: where the temperature is increasing, possibly as a result of the vehicle, compensation is required,

if Tn-Tn-1>T, then TOutput ofAdding a temperature compensation threshold value to the last output temperature;

if Tn-Tn-1<T, then TOutput ofTemperature data read in real time;

wherein T isnAmbient temperature, T, read for controller nth framen-1Reading the ambient temperature for the n-1 th frame of the controller; t isOutput ofT is the temperature fluctuation threshold value for the actually output ambient temperature data. When Tn is temperature data of the temperature sensor read in the nth frame, namely the temperature data read this time, Tn-1 is temperature data read last time, and when the difference between the two is greater than t, it is indicated that temperature fluctuation is large, increase is fast, and it may be that heat release of the vehicle has an influence, so that the temperature data output this time cannot be output by the read Tn, but the temperature compensation threshold value is added to the environment temperature data actually output last time, and the temperature compensation threshold value may be a reasonable fluctuation value of temperature increase, and can be calibrated. When the temperature data Tn read this time is less than the temperature Tn-1 read last time, the external temperature is coldWhen the vehicle is subjected to heat release, the influence of the heat release is very small, and the read temperature data Tn is used as the current data value of the environment temperature.

When the vehicle speed V is greater than the vehicle speed threshold V1, the controller periodically reads the temperature data of the sensor, and the time period of reading is reduced along with the increase of the speed. Here, the cycle refers to the time interval between Tn and Tn-1 reading data. The faster the speed, the smaller the time interval between readings, i.e. the faster the reading. The actual period can be calibrated, and the application provides a common calibration: when the pressure is 20Km/h<When the vehicle speed is less than or equal to 30Km/h, the interval cycle of Tn and Tn-1 is read to be 4 min; when the vehicle speed is>The interval cycle of Tn and Tn-1 read at 30Km/h is 2 min; and when the vehicle speed is less than or equal to 20Km/h in the middle of timing, resetting the timing, not reading the environmental temperature data of the temperature sensor, restarting the timing until the vehicle speed is more than 20Km/h, and reading the environmental temperature data after the timing meets the cycle requirement. The environmental temperature data read in this application is Tn, and the environmental temperature data output is TOutput ofTo indicate.

When the vehicle speed V is less than the vehicle speed threshold V1 (and greater than 0), the idle speed or low speed at this time has a greater effect on the temperature data collected by the ambient temperature sensor. The controller stops updating the ambient temperature, and the output T of the ambient temperatureOutput ofAnd keeping the value of the ambient temperature unchanged, wherein the value of the ambient temperature is the ambient temperature after the output of the compensation strategy when the last vehicle speed V is greater than the vehicle speed threshold value V1.

When the vehicle is restarted and the starting instant speed is 0, the controller reads the first frame of ambient temperature after the vehicle is started, compares the read ambient temperature with the engine water temperature, and outputs the ambient temperature T when the difference between the engine water temperature and the read ambient temperature is less than the set temperature difference valueOutput ofIs the read ambient temperature data. And when the difference between the water temperature of the engine and the read ambient temperature is larger than the set temperature difference value, taking the last ambient temperature output value before flameout as the current temperature data. And after the vehicle speed is not zero, when the vehicle speed is greater than V1, entering a temperature processing step when the vehicle speed is greater than V1. When the temperature is less than V1 and greater than 0, then

According to the method, the vehicle speed is processed under different conditions, more accurate environment temperature output is provided, when the vehicle speed s is 0 (corresponding to the engine starting at the moment), the vehicle speed is greater than V1, and the vehicle speed is less than V1 and greater than 0, the output environment temperature is more accurate according to the compensation method under different vehicle speeds, and data are provided for temperature control, instrument display and vehicle control of a vehicle air conditioner controller.

The invention aims to provide an environment temperature compensation strategy for a vehicle, which enables the environment temperature output by a controller to be more accurate through the software strategy compensation of the controller.

In order to achieve the purpose, the invention adopts the following technical scheme:

and (1) when the vehicle speed is more than 20Km/h, judging the ambient temperature output of the air conditioner controller according to the following conditions:

when the read temperature output ratio is reduced for the last time, no filtering operation is carried out, and the read real-time temperature is taken as the output environment temperature; the read ambient temperature output represents the following filtering strategy than the last rise in ambient temperature output occurred,

if Tn-Tn-1If greater than 0.5, then TOutput ofThe speed increasing is 0.5 ℃/period, namely the output environment temperature is obtained by adding 0.5 ℃ to the output environment temperature which is output for the last time at the current time;

if Tn-Tn-1Less than or equal to 0.5, then TOutput ofAnd updating in real time, and taking the read ambient temperature as the output ambient temperature.

Note: t isnReading the ambient temperature for the nth frame of the controller when the temperature is 20Km/h<When the vehicle speed is less than or equal to 30 Km/h: t isn、 Tn-1The interval period is 4 min; when the vehicle speed is>30 Km/h: t isn、Tn-1The interval period is 2 min; if the vehicle speed is less than or equal to 20Km/h in the two times of timing, resetting the timing until the vehicle speed is more than 20Km/h and restarting the timing;

condition 2, when the vehicle speed is less than or equal to 20Km/h, the air conditioner controller stops updating the ambient temperature, TOutput ofFor the last time

The ambient temperature output when the vehicle speed is more than 20 Km/h;

and 3, restarting after flameout under two conditions, wherein the judgment conditions are as follows:

and the air conditioner controller collects the ambient temperature of the first frame immediately after starting and compares the ambient temperature with the water temperature of the engine.

The water temperature-environment temperature of the engine is less than or equal to 10 ℃, and TOutput ofThe ambient temperature for this collection;

② when the water temperature of the engine-the ambient temperature is more than 10 ℃, TOutput ofThe ambient temperature that last met condition 1 before flame-out. And then judging according to the condition 1 and the condition 2.

It is clear that the specific implementation of the invention is not restricted to the above-described embodiments, but that various insubstantial modifications of the inventive process concept and technical solutions are within the scope of protection of the invention.

5页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种粮食运输用货仓内部温度检测管理设备

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!