CN105629951A - Reconstruction method of sensor signal in engine experimental environment - Google Patents
Reconstruction method of sensor signal in engine experimental environment Download PDFInfo
- Publication number
- CN105629951A CN105629951A CN201511019530.1A CN201511019530A CN105629951A CN 105629951 A CN105629951 A CN 105629951A CN 201511019530 A CN201511019530 A CN 201511019530A CN 105629951 A CN105629951 A CN 105629951A
- Authority
- CN
- China
- Prior art keywords
- sensor
- signal
- engine
- signals
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0259—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the response to fault detection
- G05B23/0262—Confirmation of fault detection, e.g. extra checks to confirm that a failure has indeed occurred
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24065—Real time diagnostics
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Testing Or Calibration Of Command Recording Devices (AREA)
Abstract
本发明公开了一种发动机实验环境下传感器信号的重构方法,属于发动机研发领域。上位机读取各传感器信号并以一定格式保存,其数据一一对应各传感器信号的数值。上位机中通过读取传感器数值并确定数据类型后,根据传感器静态标定的输出特性公式求解出实际电信号,求解时对取值范围进行限定,保证解的有效性,将实际电信号保存后作为下位机输入,实现传感器信号的重构,进而建立虚拟实验环境。
The invention discloses a method for reconstructing sensor signals in an engine experiment environment, and belongs to the field of engine research and development. The upper computer reads each sensor signal and saves it in a certain format, and its data corresponds to the value of each sensor signal one by one. After reading the sensor value and determining the data type in the upper computer, the actual electrical signal is solved according to the output characteristic formula of the static calibration of the sensor. When solving, the value range is limited to ensure the validity of the solution, and the actual electrical signal is saved as The input of the lower computer realizes the reconstruction of the sensor signal, and then establishes a virtual experiment environment.
Description
技术领域technical field
本发明涉及一种传感器信号重构方法,具体讲是一种发动机实验环境下传感器信号的重构方法,属于发动机研发领域。The invention relates to a sensor signal reconstruction method, in particular to a sensor signal reconstruction method in an engine experiment environment, and belongs to the field of engine research and development.
背景技术Background technique
发动机ECU开发过程中,在进行台架试验验证前,通常在实验室采用信号发生器模拟发动机各种传感器信号,例如转速,节气门位置等信号,将其作为ECU的输入变量通过程序对输入处理后对各种执行器进行控制,以达到控制发动机的正常运转目的。由于信号发生器的输出波形过于理想,而实际发动机传感器输出信号会带有一定的毛刺,并不平滑,在进行台架试验时,如果以信号发生器模拟发动机各种传感器信号给发动机ECU生成控制策略去控制发动机实验,将无法达到预想的实验目的。During the development process of the engine ECU, signal generators are usually used in the laboratory to simulate various sensor signals of the engine, such as the speed, throttle position, etc., before the bench test verification, and use them as the input variables of the ECU to process the input through the program Finally, various actuators are controlled to achieve the purpose of controlling the normal operation of the engine. Since the output waveform of the signal generator is too ideal, and the actual output signal of the engine sensor will have certain burrs, which is not smooth. During the bench test, if the signal generator is used to simulate various sensor signals of the engine to generate control signals for the engine ECU Strategies to control engine experiments will fail to achieve the intended purpose of the experiment.
发动机在实验环境下,各类传感器的信号是不断变化的,且没有明确的变化规律。在稳态工况下,发动机ECU的控制策略是在多种传感器信号的依据下修正得来,而在实验环境下,发动机ECU的工作又是受多种参数的综合影响的,若以单一信号的变化来评判发动机ECU是不准确的,需要同时向发动机ECU提供多路传感器信号,而信号发生器不能同时模拟发动机多种信号的输入。Under the experimental environment of the engine, the signals of various sensors are constantly changing, and there is no clear change rule. In the steady-state condition, the control strategy of the engine ECU is corrected on the basis of various sensor signals, while in the experimental environment, the work of the engine ECU is affected by the comprehensive influence of various parameters. If a single signal It is inaccurate to judge the engine ECU by the change of the engine ECU. It is necessary to provide multiple sensor signals to the engine ECU at the same time, and the signal generator cannot simulate the input of multiple engine signals at the same time.
发明内容Contents of the invention
本发明所要解决的技术问题在于克服现有技术缺陷,提供一种能再现多种传感器信号,以满足发动机实验开发需要的发动机实验环境下传感器信号的重构方法。The technical problem to be solved by the present invention is to overcome the defects of the prior art, and provide a method for reconstructing sensor signals in an engine experiment environment that can reproduce various sensor signals to meet the needs of engine experiment development.
为了解决上述技术问题,本发明提供的发动机实验环境下传感器信号的重构方法,包括以下步骤:In order to solve the above-mentioned technical problems, the reconstruction method of the sensor signal under the engine experiment environment provided by the present invention comprises the following steps:
1)、上位机读取各传感器的信号并按设定的格式间隔保存;所述同一传感器的信号间隔保存;1), the host computer reads the signals of each sensor and saves them at intervals according to the format set; the signals of the same sensor are saved at intervals;
2)、上位机解析各传感器的信号,确定各信号类型后,分别通过传感器的输出特性求解出各自的实际输出信号y:2) The host computer analyzes the signals of each sensor, and after determining each signal type, calculates the respective actual output signal y through the output characteristics of the sensors:
y=a0+a1x+a2x2+…+anxn y=a 0 +a 1 x+a 2 x 2 +…+a n x n
式中,x为传感器的输入,a0为零位输出,a1为传感器的线性灵敏度,a2,……,an为非线性项的待定常数;In the formula, x is the input of the sensor, a 0 is the zero output, a 1 is the linear sensitivity of the sensor, a 2 ,..., a n are the undetermined constants of the nonlinear term;
3)、判断步骤2)取得的各实际输出信号y是否超出对应传感器的取值范围,若超出则舍弃;若符合,将各实际输出信号y以间隔时间T进行存储作为实验时下位机的输入。3), determine whether each actual output signal y obtained in step 2) exceeds the value range of the corresponding sensor, and discard it if it exceeds; if it meets, store each actual output signal y at an interval T as the input of the lower computer during the experiment .
本发明中,所述间隔时间T小于上位机读取各传感器的信号的间隔时间。In the present invention, the interval time T is shorter than the interval time for the host computer to read the signals of each sensor.
本发明的有益效果在于:(1)、通过上位机将读取到的发动机不同时刻的各类信号的存储,并求解出各传感器不同时刻的实际输出信号y后存储,间隔输入到下位机作为输出,避免信号发生器的输出波形过于理想,无法接近实际环境中发动机各种传感器信号的不足,提高发动机ECU开发的可靠性;(2)、本发明可以同时向发动机ECU提供多路传感器信号,实现多重传感器信号的重构,建立虚拟实验环境更加贴近实际,使发动机实验控制更加精确。The beneficial effects of the present invention are: (1), store the various signals of the engine at different times read by the upper computer, and store after solving the actual output signal y of each sensor at different times, and input it to the lower computer at intervals as Output, avoiding the output waveform of the signal generator is too ideal, can not approach the deficiencies of various sensor signals of the engine in the actual environment, and improve the reliability of the development of the engine ECU; (2), the present invention can provide multi-channel sensor signals to the engine ECU at the same time, Realize the reconstruction of multiple sensor signals, establish a virtual experiment environment closer to reality, and make the engine experiment control more accurate.
附图说明Description of drawings
图1是发动机实验环境下传感器信号重构框图;Figure 1 is a block diagram of sensor signal reconstruction in the engine experiment environment;
图2是数据保存文本示例;Figure 2 is an example of data saving text;
图3是建立传感器信号与ECU输入信号对应关系流程图;Fig. 3 is a flow chart of establishing the corresponding relationship between the sensor signal and the ECU input signal;
图4发动机冷起动工况下重构的转速信号的变化曲线;Fig. 4 The change curve of the reconstructed rotational speed signal under the engine cold start condition;
具体实施方式detailed description
下面结合附图对本发明作进一步详细说明。The present invention will be described in further detail below in conjunction with the accompanying drawings.
如图1所示,本发明的发动机实验环境下传感器信号的重构方法,具体过程如下:As shown in Figure 1, the reconstruction method of sensor signal under the engine experiment environment of the present invention, concrete process is as follows:
步骤1、发动机各类物理信号包括温度信号、进气压力信号、蓄电池电压信号、节气门开度信号、曲轴和凸轮轴信号、爆震信号以及氧传感器信号等;其中温度信号、进气压力信号、蓄电池电压信号和节气门开度信号均属于模拟信号,曲轴和凸轮轴信号属于脉冲信号。上位机读取各传感器信号,将各传感器采集的温度、节气门开度、发动机转速、蓄电池电压、进气压力等信号以TXT文本的形式保存下来,TXT文本中数据保存的时间间隔为1s,TXT文本与各传感器的信号值一一对应。Step 1. Various physical signals of the engine include temperature signals, intake air pressure signals, battery voltage signals, throttle opening signals, crankshaft and camshaft signals, knock signals, and oxygen sensor signals; among them, temperature signals, intake air pressure signals , The battery voltage signal and the throttle opening signal are all analog signals, and the crankshaft and camshaft signals are pulse signals. The upper computer reads the signals of each sensor, and saves the temperature, throttle opening, engine speed, battery voltage, intake pressure and other signals collected by each sensor in the form of TXT text. The time interval for saving data in TXT text is 1s. The TXT text corresponds to the signal value of each sensor one by one.
如图2所示,TXT文本中,第一行为保存的各传感器信号名称,即为数据类型和单位,第一列为保存数据的序号,后面依次对应的是各个传感器采集到的数据值,最后一列为保存数据的时间,数据值为空白时表示未采集该传感器的数据;数据文件只精确到秒,每秒对应一个至两个数据点不等。在采集传感器信号的过程中,数据类型远不止这几种,实际使用时可根据实际进行变化,但是数据的格式是确定的。As shown in Figure 2, in the TXT text, the first row is the name of each sensor signal saved, that is, the data type and unit, the first column is the serial number of the saved data, and the following ones correspond to the data values collected by each sensor in turn, and finally One column is the time to save the data. When the data value is blank, it means that the data of the sensor has not been collected; the data file is only accurate to the second, and each second corresponds to one or two data points. In the process of collecting sensor signals, there are far more than these types of data, which can be changed according to the actual use, but the format of the data is determined.
步骤2、上位机保存的TXT数据文本中,显示的是各个传感器相对应的物理信号值,而下位机(ECU)输出的是相当于传感器输出的电压等电信号,对应于各传感器的输入和输出信号,所以建立各传感器信号与发动机ECU信号模拟系统之间关系的纽带就在于传感器的输出特性关系,同时模拟系统输出的信号必须符合传感器的输出特性,并且覆盖传感器的工作范围。Step 2. In the TXT data text saved by the upper computer, the physical signal value corresponding to each sensor is displayed, and the output of the lower computer (ECU) is an electrical signal equivalent to the voltage output by the sensor, corresponding to the input and output of each sensor. The output signal, so the link between the sensor signal and the engine ECU signal simulation system is the output characteristic relationship of the sensor. At the same time, the signal output by the simulation system must conform to the output characteristics of the sensor and cover the working range of the sensor.
建立传感器输入信号与最终输出给ECU信号的对应关系,需要对应输入的四项内容:数据类型、传感器的输出特性公式、数据取值范围和数据值。To establish the corresponding relationship between the sensor input signal and the final output signal to the ECU, four items need to be input: data type, sensor output characteristic formula, data value range and data value.
1)、确定数据类型1), determine the data type
下位机(ECU)输入信号的类型有三种:模拟量信号、开关量信号、脉冲信号,需要确定数据文本中所需要模拟的传感器信号的类型,例如,节气门开度信号属于模拟量信号。There are three types of lower computer (ECU) input signals: analog signal, switch signal, and pulse signal. It is necessary to determine the type of sensor signal that needs to be simulated in the data text. For example, the throttle opening signal is an analog signal.
2)、传感器的输出特性公式2), the output characteristic formula of the sensor
传感器的输出特性即为传感器的输入与输出之间的关系。对于传感器来说,数据文本中保存的是传感器输入信号的数值,而下位机(ECU)输入信号的是传感器的输出电压/频率信号的值,所以需要传感器的输出特性公式对数据文本中的数据进行转换。The output characteristic of a sensor is the relationship between the input and output of the sensor. For the sensor, the value of the input signal of the sensor is saved in the data text, and the input signal of the lower computer (ECU) is the value of the output voltage/frequency signal of the sensor, so the output characteristic formula of the sensor needs to be compared to the data in the data text to convert.
一般情况下需要用到的是传感器的静态特性,指传感器的输入信号为稳态信号或者变化缓慢的信号时,传感器的输出随输入的变化。传感器的输出特性可由n次方代数方程式来表示,即:In general, what needs to be used is the static characteristic of the sensor, which refers to the change of the output of the sensor with the input when the input signal of the sensor is a steady-state signal or a slowly changing signal. The output characteristics of the sensor can be expressed by the nth power algebraic equation, namely:
y=a0+a1x+a2x2+…+anxn y=a 0 +a 1 x+a 2 x 2 +…+a n x n
式中,x为传感器的输入,比如温度、压力等;y实际输出信号,一般为电信号;a0为零位输出;a1为表示为传感器的线性灵敏度,a0和a1为已知参数;a2,……,an为非线性项的待定常数,由实际测量数据得到x与y的数值,不同x对应不同y的值,以x为横坐标,y为纵坐标,绘出特性曲线来,根据曲线判断y与x的函数关系,确定x的最高阶次,然后将数值导入数学软件Matlab中,根据其特定功能函数,确定a2,……,an的具体值,确定最终实际输出特性的函数表达式。In the formula, x is the input of the sensor, such as temperature, pressure, etc.; the actual output signal of y is generally an electrical signal; a 0 is the zero output; a 1 is the linear sensitivity of the sensor, and a 0 and a 1 are known Parameters; a 2 ,..., a n are the undetermined constants of nonlinear items, the values of x and y are obtained from the actual measurement data, different x corresponds to different y values, with x as the abscissa and y as the ordinate, draw According to the characteristic curve, judge the functional relationship between y and x according to the curve, determine the highest order of x, then import the value into the mathematics software Matlab, and determine the specific values of a 2 ,..., a n according to its specific function function, and determine A function expression for the final actual output feature.
3)、确定数据取值范围3) Determine the range of data values
不同传感器输出特性所在的取值范围是不一样的,为避免在信号的数值转换过程中出现无效解,需要确定数据的取值范围,使得解有效。The value ranges of the output characteristics of different sensors are different. In order to avoid invalid solutions in the process of signal value conversion, it is necessary to determine the value range of the data to make the solutions valid.
4)数据值4) Data value
若步骤3)中得到的实际输出信号y不符合对应传感器的取值范围,则舍弃不用;若符合,将得到不同时刻的实际输出信号y存储在上位机的存储单元中,每隔500ms发送到下位机(ECU)同时输出。由于TXT文本中数据保存的时间间隔为1s,1s之内最多两个数据,故取时间间隔为500ms。If the actual output signal y obtained in step 3) does not conform to the value range of the corresponding sensor, it will be discarded; if it does, the actual output signal y obtained at different times will be stored in the storage unit of the host computer and sent to The lower computer (ECU) outputs at the same time. Since the time interval for saving data in the TXT text is 1s, and there are at most two data within 1s, the time interval is taken as 500ms.
以转速信号为例,将发动机冷起动工况下不同时刻转速信号采集保存在上位机中,数据保存在图2表的第二列,第二列第二行为时刻1脉冲信号数据文本,第二列第三行为时刻2脉冲信号的数据文本,以此类推,在重构时,由于在保存数据时定义了不同列的数据类型,选择图2第二列的数据即自动确定文本类型为脉冲信号,上位机自动调用转速传感器静态标定的输出特性公式,将输入带入公式求得的解为y,转速传感器正常工作范围数值为[a,b],判断y是否超出[a,b],没有超出将其作为有效值,超出则舍弃,将不同时刻y的值即转速数值存储的上位机中,按设定的间隔时间向下位机(ECU)发送作为其转速信号的输入。Taking the speed signal as an example, collect and save the speed signals at different times under the engine cold start condition in the host computer, and save the data in the second column of the table in Figure 2. The third line in the column is the data text of the pulse signal at time 2, and so on. During reconstruction, since the data types of different columns are defined when saving the data, selecting the data in the second column in Figure 2 will automatically determine the text type as the pulse signal , the upper computer automatically invokes the output characteristic formula of the static calibration of the speed sensor, and the solution obtained by putting the input into the formula is y, and the normal working range value of the speed sensor is [a, b], judge whether y exceeds [a, b], no If it is exceeded, it is regarded as an effective value, and if it is exceeded, it is discarded. In the upper computer that stores the value of y at different times, that is, the rotational speed value, it is sent to the lower computer (ECU) at a set interval as the input of its rotational speed signal.
如图4所示,可以清楚看出图中转速信号的变化曲线较好地重构了实验环境下的转速信号。As shown in Figure 4, it can be clearly seen that the change curve of the rotational speed signal in the figure well reconstructs the rotational speed signal in the experimental environment.
本发明的应用途径很多,以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进,这些改进也应视为本发明的保护范围。There are many application approaches of the present invention, and the above is only a preferred embodiment of the present invention. It should be pointed out that for those of ordinary skill in the art, some improvements can be made without departing from the principles of the present invention. These improvements should also be regarded as the protection scope of the present invention.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511019530.1A CN105629951A (en) | 2015-12-30 | 2015-12-30 | Reconstruction method of sensor signal in engine experimental environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511019530.1A CN105629951A (en) | 2015-12-30 | 2015-12-30 | Reconstruction method of sensor signal in engine experimental environment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105629951A true CN105629951A (en) | 2016-06-01 |
Family
ID=56045006
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511019530.1A Pending CN105629951A (en) | 2015-12-30 | 2015-12-30 | Reconstruction method of sensor signal in engine experimental environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105629951A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2000010059A1 (en) * | 1998-08-17 | 2000-02-24 | Aspen Technology, Inc. | Sensor validation apparatus and method |
CN101331504A (en) * | 2005-11-18 | 2008-12-24 | 卡特彼勒公司 | Virtual sensor system and method based on process model |
CN101441474A (en) * | 2008-11-24 | 2009-05-27 | 北京康拓科技开发总公司 | Spacecraft reconstruction test emulation integrated apparatus and method thereof |
CN101681155A (en) * | 2007-06-15 | 2010-03-24 | 卡特彼勒公司 | Virtual sensor system and method |
CN101745916A (en) * | 2009-12-16 | 2010-06-23 | 电子科技大学 | Parallel robot device with functions of fault tolerance and fault correction and fault tolerating and correcting method thereof |
-
2015
- 2015-12-30 CN CN201511019530.1A patent/CN105629951A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2000010059A1 (en) * | 1998-08-17 | 2000-02-24 | Aspen Technology, Inc. | Sensor validation apparatus and method |
CN101331504A (en) * | 2005-11-18 | 2008-12-24 | 卡特彼勒公司 | Virtual sensor system and method based on process model |
CN101681155A (en) * | 2007-06-15 | 2010-03-24 | 卡特彼勒公司 | Virtual sensor system and method |
CN101441474A (en) * | 2008-11-24 | 2009-05-27 | 北京康拓科技开发总公司 | Spacecraft reconstruction test emulation integrated apparatus and method thereof |
CN101745916A (en) * | 2009-12-16 | 2010-06-23 | 电子科技大学 | Parallel robot device with functions of fault tolerance and fault correction and fault tolerating and correcting method thereof |
Non-Patent Citations (1)
Title |
---|
刘丹: "多功能传感器信号重构方法及实验研究", 《中国博士学位论文全文数据库(电子期刊) 信息科技辑》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104408271B (en) | A kind of gasoline engine scaling method based on model | |
CN102620939B (en) | Engine torque predicting method and engine torque predicting device | |
CN104236893A (en) | Performance parameter test system and performance parameter test method of hydraulic damper | |
CN104238376B (en) | Low-temperature and low-air-pressure environment generator set running simulating system based on data | |
CN103759629A (en) | Device and method for measuring engine valve landing radial deflection | |
CN103728043B (en) | Distribution transformer temperature monitoring device | |
CN102175280A (en) | Digitalized vehicle instrument simulating device | |
CN103267652B (en) | Intelligent online diagnosis method for early failures of equipment | |
CN202582586U (en) | Signal acquisition instrument online calibration system | |
CN103411719A (en) | Conducting ring brush wire contact pressure detection method and device | |
CN107218146A (en) | Characteristic self-learning device of wide-area oxygen sensor and use method thereof | |
CN105629951A (en) | Reconstruction method of sensor signal in engine experimental environment | |
CN102507901B (en) | Soil humidity measurement device and method based on dual-sensor data fusion technique | |
CN204422702U (en) | A kind of ratio electromagnet performance test system | |
CN101510746B (en) | Control object parameter identification method based on DC motor speed control | |
CN104361818B (en) | Diesel engine electric control teaching experimental system and simulation method thereof | |
CN108828011A (en) | A kind of impedance modulation damage detecting method of fatigue crack | |
CN202511926U (en) | Dynamometer system with vehicle chassis dynamometer machine | |
CN104038132B (en) | There is time-varying and measure the state observation method of the servomotor postponing output and noise | |
CN102620876B (en) | Dynamometer system of vehicle chassis dynamometer | |
CN104484276A (en) | Simple test method and simple test device of temperature detection program | |
CN203616646U (en) | Resistor-type analog signal generation sampling amplifier circuit | |
CN203588070U (en) | Current-mode analog signal generation sampling amplification circuit | |
CN202770654U (en) | Intelligent marine steering engine test device | |
Fachao et al. | Design of an Engine Test Bench Based on Virtual Instrument Technology |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160601 |
|
WD01 | Invention patent application deemed withdrawn after publication |