JP2017145784A - Electronic control device - Google Patents

Electronic control device Download PDF

Info

Publication number
JP2017145784A
JP2017145784A JP2016029187A JP2016029187A JP2017145784A JP 2017145784 A JP2017145784 A JP 2017145784A JP 2016029187 A JP2016029187 A JP 2016029187A JP 2016029187 A JP2016029187 A JP 2016029187A JP 2017145784 A JP2017145784 A JP 2017145784A
Authority
JP
Japan
Prior art keywords
execution
limit value
task
execution interval
synchronization
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
Application number
JP2016029187A
Other languages
Japanese (ja)
Inventor
倩 張
Qian Zhang
倩 張
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2016029187A priority Critical patent/JP2017145784A/en
Publication of JP2017145784A publication Critical patent/JP2017145784A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an electronic control device capable of detecting an acceleration side abnormal state and a deceleration side abnormal state even if any one of these abnormal states may occur.SOLUTION: An electronic control device 10 comprises a signal generating part for generating a TDC synchronous signal on the basis of a detection signal of a crank angle sensor, a task execution part for executing a synchronous task every time a rising edge of the TDC synchronous signal is generated, a measuring part for measuring an execution interval of the synchronous tasks every time they are executed, a threshold setting part, and a judgement part for judging the execution state of the synchronous tasks on the basis of the threshold. The threshold setting part sets a lower limit value for detecting an acceleration side abnormal state and an upper limit value for detecting a deceleration side abnormal state in response to the measured execution interval for every execution interval measurement to become a low value as the execution interval is shorter. The judgement part compares a subsequent execution interval of timing where the threshold is set with the threshold and judges that the execution state of the synchronous task is abnormal when the subsequent execution interval is less than the lower limit value or larger than the upper limit value.SELECTED DRAWING: Figure 3

Description

この明細書における開示は、クランク軸の回転に同期して実行される同期タスクの実行状態の異常を検出できる電子制御装置に関する。   The disclosure in this specification relates to an electronic control device capable of detecting an abnormality in an execution state of a synchronous task executed in synchronization with rotation of a crankshaft.

特許文献1には、クランク同期信号を生成する信号生成部、クランク同期信号に基づいて同期タスクを実行するタスク実行部、同期タスクの実行間隔を計測する計測部、エンジン回転数に応じて閾値を設定する閾値設定部、実行間隔が閾値を超えると同期タスクの実行状態が異常であると判定する判定部を備えた電子制御装置が開示されている。   Patent Document 1 discloses a signal generation unit that generates a crank synchronization signal, a task execution unit that executes a synchronization task based on the crank synchronization signal, a measurement unit that measures an execution interval of the synchronization task, and a threshold value according to the engine speed. An electronic control device including a threshold setting unit to be set and a determination unit that determines that the execution state of the synchronous task is abnormal when the execution interval exceeds the threshold is disclosed.

この電子制御装置において、信号生成部は、クランク角センサから、エンジンのクランク軸が10°CA回転するごとに立ち上がりが生じる検出信号を取得する。そして、取得した検出信号に基づいて、クランク軸が30°CA回転するごとに立ち上がりが生じるクランク同期信号を生成する。エンジン回転数は、クランク軸が30°CA回転するのに要する時間である実行間隔に対応しており、閾値設定部は、エンジン回転数に基づいて閾値を設定する。   In this electronic control device, the signal generation unit obtains a detection signal that rises every time the crankshaft of the engine rotates 10 ° CA from the crank angle sensor. Based on the acquired detection signal, a crank synchronization signal is generated that rises every time the crankshaft rotates 30 ° CA. The engine speed corresponds to the execution interval, which is the time required for the crankshaft to rotate 30 ° CA, and the threshold setting unit sets the threshold based on the engine speed.

特開2001−323836号公報JP 2001-323836 A

同期タスクの実行状態の異常として、加速側の異常と減速側の異常が起こり得る。加速側異常としては、実行間隔が急激に短くなるように同期タスクが実行される異常が考えられる。減速側異常としては、実行間隔が急激に長くなるように同期タスクが実行される異常、同期タスクが発生しない異常、及び同期タスクが終了しない異常などが考えられる。   As an abnormality in the execution state of the synchronous task, an abnormality on the acceleration side and an abnormality on the deceleration side can occur. As the acceleration-side abnormality, an abnormality in which the synchronous task is executed so that the execution interval is rapidly shortened can be considered. As the deceleration-side abnormality, an abnormality in which the synchronization task is executed so that the execution interval becomes abruptly long, an abnormality in which the synchronization task does not occur, an abnormality in which the synchronization task does not end, and the like are considered.

従来の電子制御装置では、所定のエンジン回転数(実行間隔)に対してひとつの閾値が設定され、実行間隔が閾値を超えると同期タスクの実行状態が異常であると判定する。したがって、加速側異常を検出することができない。   In the conventional electronic control device, one threshold is set for a predetermined engine speed (execution interval), and when the execution interval exceeds the threshold, it is determined that the execution state of the synchronous task is abnormal. Therefore, the acceleration side abnormality cannot be detected.

本開示はこのような課題に鑑みてなされたものであり、加速側異常及び減速側異常のいずれが生じても検出できる電子制御装置を提供することを目的とする。   The present disclosure has been made in view of such problems, and an object thereof is to provide an electronic control device that can detect any of an acceleration-side abnormality and a deceleration-side abnormality.

本開示は、上記目的を達成するために以下の技術的手段を採用する。なお、括弧内の符号は、ひとつの態様として後述する実施形態に記載の具体的手段との対応関係を示すものであって、技術的範囲を限定するものではない。   The present disclosure employs the following technical means to achieve the above object. In addition, the code | symbol in parenthesis shows the corresponding relationship with the specific means as described in embodiment mentioned later as one aspect | mode, Comprising: The technical scope is not limited.

本開示のひとつは、内燃機関のクランク軸の回転角を検出するクランク角センサの検出信号を取得し、検出信号に基づいて、クランク軸が所定角度回転するごとに立ち上がる同期信号を生成する信号生成部(120)と、
同期信号に特定方向のエッジが発生するごとに、同期タスクを実行するタスク実行部(121)と、
同期タスクの実行ごとに同期タスクの実行間隔を計測する計測部(122)と、
実行間隔の計測ごとに、計測された実行間隔に応じて、加速側の異常を検出するための閾値である下限値、及び、減速側の異常を検出するための閾値である上限値を、実行間隔が短いほどそれぞれ小さい値となるように設定する閾値設定部(123)と、
設定された閾値と、当該閾値が設定されたタイミングの次の実行間隔とを比較し、次の実行間隔が下限値未満、又は、上限値よりも大きい場合に、同期タスクの実行状態が異常であると判定する判定部(124)と、
を備える。
One of the present disclosure acquires a detection signal of a crank angle sensor that detects a rotation angle of a crankshaft of an internal combustion engine, and generates a synchronization signal that rises every time the crankshaft rotates by a predetermined angle based on the detection signal Part (120),
A task execution unit (121) that executes a synchronization task each time an edge in a specific direction occurs in the synchronization signal;
A measurement unit (122) that measures the execution interval of the synchronization task for each execution of the synchronization task;
For each execution interval measurement, a lower limit value that is a threshold value for detecting an abnormality on the acceleration side and an upper limit value that is a threshold value for detecting an abnormality on the deceleration side are executed according to the measured execution interval. A threshold value setting unit (123) that sets a smaller value as the interval is shorter;
The set threshold value is compared with the next execution interval at the timing when the threshold value is set, and if the next execution interval is less than the lower limit value or larger than the upper limit value, the execution status of the synchronous task is abnormal. A determination unit (124) that determines that there is,
Is provided.

これによれば、閾値設定部が、実行間隔の測定ごとに、測定された実行間隔に応じて、加速側の異常を検出するための下限値と減速側の異常を検出するための上限値をそれぞれ設定する。そして、判定部が、設定された下限値及び上限値と次のタイミングで測定された実行間隔とを比較し、その比較結果から異常の有無を判定する。したがって、同期タスクの実行状態の異常として、加速側異常と減速側異常のいずれが生じても、検出することができる。   According to this, for each measurement of the execution interval, the threshold setting unit sets the lower limit value for detecting the acceleration-side abnormality and the upper limit value for detecting the deceleration-side abnormality according to the measured execution interval. Set each. Then, the determination unit compares the set lower limit value and upper limit value with the execution interval measured at the next timing, and determines the presence or absence of abnormality from the comparison result. Therefore, it can be detected whether an abnormality on the acceleration side or an abnormality on the deceleration side occurs as an abnormality in the execution state of the synchronous task.

本開示の他のひとつは、信号生成部は、同期信号として内燃機関の上死点に同期する上死点同期信号を生成する。   In another one of the present disclosure, the signal generation unit generates a top dead center synchronization signal synchronized with the top dead center of the internal combustion engine as a synchronization signal.

たとえば4気筒の内燃機関の場合、180°CAごとに、上死点同期信号が生成される。したがって、減速側異常が生じて異常判定に時間がかかり、同期タスクの実行が抜ける(空きができる)のを抑制することができる。なお、「CA」はクランク角(クランクアングル)である。   For example, in the case of a 4-cylinder internal combustion engine, a top dead center synchronization signal is generated every 180 ° CA. Accordingly, it is possible to suppress the occurrence of a deceleration-side abnormality, which takes time to determine the abnormality, and the execution of the synchronization task is lost (vacant). “CA” is a crank angle (crank angle).

第1実施形態に係る電子制御装置の概略構成を示す図である。It is a figure which shows schematic structure of the electronic controller which concerns on 1st Embodiment. マイコンが実行する同期タスク処理を示すフローチャートである。It is a flowchart which shows the synchronous task process which a microcomputer performs. 加速側異常の検出を説明するためのタイミングチャートである。It is a timing chart for explaining detection of acceleration side abnormality. マイコンが実行する異常検出処理を示すフローチャートである。It is a flowchart which shows the abnormality detection process which a microcomputer performs. エンジン回転数と閾値との対応関係を示す図である。It is a figure which shows the correspondence of an engine speed and a threshold value. 減速側異常の検出を説明するためのタイミングチャートである。It is a timing chart for demonstrating the detection of the deceleration side abnormality. 第2実施形態に係る電子制御装置において、マイコンが実行する異常検出処理を示すフローチャートである。It is a flowchart which shows the abnormality detection process which a microcomputer performs in the electronic control apparatus which concerns on 2nd Embodiment.

図面を参照しながら、複数の実施形態を説明する。複数の実施形態において、機能的に及び/又は構造的に対応する部分には同一の参照符号を付与する。   A plurality of embodiments will be described with reference to the drawings. In several embodiments, functionally and / or structurally corresponding parts are given the same reference numerals.

(第1実施形態)
先ず、図1に基づき、本実施形態に係る電子制御装置の概略構成を説明する。
(First embodiment)
First, a schematic configuration of the electronic control device according to the present embodiment will be described with reference to FIG.

図1に示すように、本実施形態に係る電子制御装置10は、車両に搭載されたエンジン(内燃機関)を制御するエンジンECU(Electronic Control Unit)として構成されている。電子制御装置10は、マイコン12、入力回路14、出力回路16、電源回路18などを備えている。   As shown in FIG. 1, an electronic control device 10 according to the present embodiment is configured as an engine ECU (Electronic Control Unit) that controls an engine (internal combustion engine) mounted on a vehicle. The electronic control device 10 includes a microcomputer 12, an input circuit 14, an output circuit 16, a power circuit 18 and the like.

マイコン12は、CPU、ROM、RAM、レジスタ、及びI/Oポートなどを備えて構成されたマイクロコンピュータである。マイコン12において、CPUが、RAMやレジスタの一時記憶機能を利用しつつ、ROMに予め記憶された制御プログラム、外部から取得した各種データなどに応じて信号処理を行う。また、この信号処理で得られた信号を、出力したりする。このようにして、マイコン12は、各種機能を実行する。マイコン12は、たとえばエンジンが出力すべき目標トルクを算出する。また、エンジンが要求される目標トルクを生じるために、図示しないスロットルバルブを適切な開度に制御するとともに、エンジンの燃料噴射量及び点火タイミングを制御する。   The microcomputer 12 is a microcomputer configured with a CPU, a ROM, a RAM, a register, an I / O port, and the like. In the microcomputer 12, the CPU performs signal processing according to a control program stored in advance in the ROM, various data acquired from the outside, and the like while using a temporary storage function of the RAM or the register. Also, the signal obtained by this signal processing is output. In this way, the microcomputer 12 executes various functions. For example, the microcomputer 12 calculates a target torque to be output by the engine. Further, in order to generate the target torque required by the engine, a throttle valve (not shown) is controlled to an appropriate opening degree, and the fuel injection amount and ignition timing of the engine are controlled.

入力回路14は、エンジンに取り付けられたクランク角センサなど、各種センサにて検出される検出信号をマイコン12に入力させる。入力回路14は、たとえばクランク角センサの検出信号を波形整形して、クランク同期信号を生成する波形整形回路140を有している。   The input circuit 14 causes the microcomputer 12 to input detection signals detected by various sensors such as a crank angle sensor attached to the engine. The input circuit 14 includes, for example, a waveform shaping circuit 140 that shapes the detection signal of the crank angle sensor to generate a crank synchronization signal.

本実施形態では、クランク軸に取り付けられたタイミングロータが、2枚欠歯した34枚の歯を有しており、クランク軸が1回転すると34個のパルスが発生するようになっている。このため、クランク角センサの検出信号は、クランク軸が10°CA回転するごとに立ち上がりが生じる。波形整形回路140は、クランク角センサの検出信号から、クランク軸が所定角度回転するごとに立ち上がりが生じるクランク同期信号を生成し、マイコン12に出力する。クランク同期信号は、クランク角センサの検出信号のパルス周期よりも長く、後述するTDC同期信号のパルス周期よりも短いパルス周期を有している。本実施形態では、30°CAごとに立ち上がりが生じるクランク同期信号を生成する。   In this embodiment, the timing rotor attached to the crankshaft has 34 teeth with two missing teeth, and 34 pulses are generated when the crankshaft rotates once. For this reason, the detection signal of the crank angle sensor rises every time the crankshaft rotates by 10 ° CA. The waveform shaping circuit 140 generates a crank synchronization signal that rises every time the crankshaft rotates a predetermined angle from the detection signal of the crank angle sensor, and outputs the crank synchronization signal to the microcomputer 12. The crank synchronization signal has a pulse period longer than the pulse period of the detection signal of the crank angle sensor and shorter than the pulse period of the TDC synchronization signal described later. In the present embodiment, a crank synchronization signal that rises every 30 ° CA is generated.

出力回路16は、マイコン12から出力された制御信号に応じて、燃料噴射弁やイグナイタなどの各種アクチュエータへ駆動信号を出力する。   The output circuit 16 outputs a drive signal to various actuators such as a fuel injection valve and an igniter in accordance with a control signal output from the microcomputer 12.

電源回路18は、車両のバッテリから供給されるバッテリ電圧VBを、所定の電圧に変換して、マイコン12などの電子制御装置10を構成する要素に供給する。電源回路18は、たとえばバッテリ電圧VBを5Vに降圧して、マイコン12に供給する。   The power supply circuit 18 converts the battery voltage VB supplied from the vehicle battery into a predetermined voltage, and supplies the voltage to elements constituting the electronic control device 10 such as the microcomputer 12. The power supply circuit 18 steps down the battery voltage VB to 5 V, for example, and supplies it to the microcomputer 12.

次に、マイコン12について説明する。   Next, the microcomputer 12 will be described.

図1に示すように、マイコン12は、信号生成部120、タスク実行部121、計測部122、閾値設定部123、及び判定部124を有している。   As illustrated in FIG. 1, the microcomputer 12 includes a signal generation unit 120, a task execution unit 121, a measurement unit 122, a threshold setting unit 123, and a determination unit 124.

信号生成部120は、TDC同期信号を生成する。TDC同期信号は、エンジンの各気筒の上死点(Top Dead Center)に同期して立ち上がる信号である。信号生成部120は、欠歯位置を基準としつつ、クランク同期信号に基づいて、TDC同期信号を生成する。クランク同期信号は、上記したようにクランク角センサの検出信号に基づいて生成される。したがって、TDC同期信号は、クランク角センサの検出信号に基づいて、クランク軸が所定角度回転するごとに立ち上がる同期信号である。本実施形態ではエンジンが4気筒であり、TDC同期信号が180°CAごとに立ち上がる。すなわち、クランク同期信号が6回パルスを生じるごとに、TDC同期信号が1回パルスを生じる。   The signal generation unit 120 generates a TDC synchronization signal. The TDC synchronization signal is a signal that rises in synchronization with the top dead center of each cylinder of the engine. The signal generator 120 generates a TDC synchronization signal based on the crank synchronization signal while using the missing tooth position as a reference. The crank synchronization signal is generated based on the detection signal of the crank angle sensor as described above. Therefore, the TDC synchronization signal is a synchronization signal that rises every time the crankshaft rotates by a predetermined angle based on the detection signal of the crank angle sensor. In this embodiment, the engine has four cylinders, and the TDC synchronization signal rises every 180 ° CA. That is, every time the crank synchronization signal produces 6 pulses, the TDC synchronization signal produces 1 pulse.

タスク実行部121は、TDC同期信号に特定方向のエッジが発生すると、同期タスクを実行する。本実施形態では、TDC同期信号に立ち上がりエッジが発生するごとに、同期タスクを実行する。タスク実行部121は、同期タスクとして、エンジン回転数Neの算出や気筒判別などエンジンの制御に関する処理を実行する。   The task execution unit 121 executes a synchronization task when an edge in a specific direction occurs in the TDC synchronization signal. In this embodiment, the synchronization task is executed every time a rising edge occurs in the TDC synchronization signal. The task execution unit 121 executes processing related to engine control such as calculation of the engine speed Ne and cylinder discrimination as a synchronization task.

計測部122は、同期タスクの実行ごとに、同期タスクの実行間隔を計測する。実行間隔とは、クランク軸が30°CA回転するのに要する時間である。本実施形態では、計測部122が、同期タスクの終了にともなってリセットされるカウンタを有しており、当該カウンタにより、同期タスクが終了してから次の同期タスクが終了するまでにかかる時間、すなわち実行間隔が計測される。   The measurement unit 122 measures the execution interval of the synchronization task every time the synchronization task is executed. The execution interval is the time required for the crankshaft to rotate 30 ° CA. In the present embodiment, the measurement unit 122 has a counter that is reset when the synchronization task ends, and the counter takes a time from the end of the synchronization task to the end of the next synchronization task, That is, the execution interval is measured.

閾値設定部123は、実行間隔の計測ごとに、計測された実行間隔に応じて、同期タスクの実行状態の異常を検出するための閾値を設定する。閾値設定部123は、閾値として、加速側異常を検出するための下限値、及び、減速側異常を検出するための上限値を、実行間隔が短いほどそれぞれ小さい値となるように設定する。なお、実行間隔とは、上記したように、クランク軸が30°CA回転するのに要する時間であるため、エンジン回転数に応じて閾値を設定するようにしてもよい。この場合も、実行間隔に応じて閾値を設定していることとなる。   For each measurement of the execution interval, the threshold setting unit 123 sets a threshold for detecting an abnormality in the execution state of the synchronous task according to the measured execution interval. The threshold value setting unit 123 sets a lower limit value for detecting an acceleration-side abnormality and an upper limit value for detecting a deceleration-side abnormality so that the threshold value becomes smaller as the execution interval is shorter. Since the execution interval is the time required for the crankshaft to rotate 30 ° CA as described above, a threshold value may be set according to the engine speed. Also in this case, the threshold value is set according to the execution interval.

加速側異常とは、たとえばプログラムの暴走により、実行間隔が急激に短くなるように同期タスクが実行される異常である。加速側異常とは、正常状態に対してエンジンの高回転側、すなわち車両の加速側で同期タスクが実行される異常である。減速側異常とは、たとえばプログラムの暴走により、実行間隔が急激に長くなるように同期タスクが実行される異常、同期タスクが発生しない異常、及び同期タスクが終了しない異常である。減速側異常とは、正常状態に対してエンジンの低回転側、すなわち車両の減速側で生じる異常である。   The acceleration-side abnormality is an abnormality in which the synchronous task is executed so that the execution interval is rapidly shortened due to, for example, a program runaway. An acceleration-side abnormality is an abnormality in which a synchronous task is executed on the high-speed side of the engine, that is, on the acceleration side of the vehicle with respect to a normal state. The deceleration-side abnormality is, for example, an abnormality in which a synchronous task is executed so that an execution interval becomes abruptly long due to a program runaway, an abnormality in which a synchronization task does not occur, and an abnormality in which a synchronization task does not end. The deceleration side abnormality is an abnormality that occurs on the low rotation side of the engine, that is, on the deceleration side of the vehicle with respect to a normal state.

判定部124は、閾値設定部123により設定された閾値と、閾値が設定されたタイミングの次の実行間隔とを比較する。そして、判定部214は、次の実行間隔が下限値未満、又は、上限値よりも大きい場合に、同期タスクの実行状態が異常であると判定する。一方、次の実行間隔が下限値以上、上限値以下の範囲内の場合に、同期タスクの実行状態が正常であると判定する。   The determination unit 124 compares the threshold set by the threshold setting unit 123 with the next execution interval at the timing when the threshold is set. Then, the determination unit 214 determines that the execution state of the synchronous task is abnormal when the next execution interval is less than the lower limit value or larger than the upper limit value. On the other hand, when the next execution interval is within the range between the lower limit value and the upper limit value, it is determined that the execution state of the synchronous task is normal.

次に、図2〜図5に基づき、マイコン15が実行する同期タスク処理及び異常検出処理について説明する。   Next, a synchronization task process and an abnormality detection process executed by the microcomputer 15 will be described with reference to FIGS.

先ず、同期タスク処理について説明する。マイコン12は、TDC同期信号に立ち上がりエッジが発生するごとに、図2に示す処理を実行する。マイコン12は、先ず、割込ハンドラ処理を実行する(ステップS10)。割込ハンドラ処理により、同期タスクが起動される。これにより、マイコン12は、同期タスク処理を実行する(ステップS12)。同期タスクを起動させると、割込ハンドラ処理は終了となる。ステップS12では、上記したようにエンジンの制御に関する所定処理が実行される。ステップS10,S12の処理は、タスク実行部121により実行される。   First, synchronous task processing will be described. The microcomputer 12 executes the process shown in FIG. 2 every time a rising edge occurs in the TDC synchronization signal. First, the microcomputer 12 executes an interrupt handler process (step S10). A synchronous task is activated by the interrupt handler process. Thereby, the microcomputer 12 performs a synchronous task process (step S12). When the synchronous task is activated, the interrupt handler process ends. In step S12, the predetermined process related to engine control is executed as described above. The processes in steps S10 and S12 are executed by the task execution unit 121.

同期タスクが終了すると、マイコン12は、同期タスクの実行間隔を計測するためのカウンタCtaskの値を0にリセットする(ステップS14)。そして、一連の処理を終了する。なお、マイコン12は、同期タスク処理により得られるエンジン回転数Ne、及び、リセット直前のカウンタCtaskの値、すなわち実行間隔の少なくとも一方を、マイコン12内のRAMに格納する。   When the synchronization task ends, the microcomputer 12 resets the value of the counter Ctask for measuring the execution interval of the synchronization task to 0 (step S14). Then, a series of processing ends. The microcomputer 12 stores in the RAM in the microcomputer 12 at least one of the engine speed Ne obtained by the synchronous task processing and the value of the counter Ctask immediately before reset, that is, the execution interval.

図3に示すように、同期タスク処理では、TDC同期信号に立ち上がりエッジが発生するごとに、割込ハンドラ処理が実行され、ひいては、同期タスク処理が実行される。そして、同期タスク処理が終了すると、カウンタCtaskがリセットされる。   As shown in FIG. 3, in the synchronous task process, every time a rising edge occurs in the TDC synchronization signal, the interrupt handler process is executed, and consequently the synchronous task process is executed. When the synchronous task process ends, the counter Ctask is reset.

次に、異常検出処理について説明する。マイコン12は、一定時間(たとえば1ms)ごとに、図4に示す処理を実行する。マイコン12は、上記した同期タスク処理よりも、異常検出処理の割込を優先する。マイコン12は、先ず、予め設定された所定時間内に、TDC同期信号の立ち上がりエッジが生じたかを判定する(ステップS20)。換言すれば、立ち上がりエッジが生じない状態が、所定時間以上継続していないかを判定する。所定時間としては、たとえばエンジンが停止していると見なすことのできる時間が設定される。   Next, the abnormality detection process will be described. The microcomputer 12 executes the process shown in FIG. 4 at regular time intervals (for example, 1 ms). The microcomputer 12 gives priority to the interruption of the abnormality detection process over the synchronous task process described above. First, the microcomputer 12 determines whether or not a rising edge of the TDC synchronization signal has occurred within a preset predetermined time (step S20). In other words, it is determined whether or not a state where no rising edge occurs continues for a predetermined time or more. As the predetermined time, for example, a time during which the engine can be considered to be stopped is set.

ステップS20で立ち上がりエッジありと判定した場合、マイコン12は、メモリに格納された前回の実行間隔Tn-1に応じて、実行間隔Tと比較される閾値を設定する(ステップS22)。具体的には、閾値設定部123が、メモリに格納された実行間隔Tn-1に応じて、次のタイミングの実行間隔Tと比較される下限値Tmin及び上限値Tmaxを設定する。上記したように、実行間隔Tn-1に対応するエンジン回転数Neにより、閾値を設定してもよい。本実施形態では、エンジン回転数Neに応じて閾値を設定する。 If it is determined in step S20 that there is a rising edge, the microcomputer 12 sets a threshold to be compared with the execution interval T n according to the previous execution interval T n-1 stored in the memory (step S22). Specifically, the threshold setting unit 123, in response to the execution interval T n-1 stored in the memory, to set the lower limit Tmin and the upper limit Tmax, which is compared to the execution interval T n of the next timing. As described above, the threshold value may be set by the engine speed Ne corresponding to the execution interval T n−1 . In this embodiment, a threshold value is set according to the engine speed Ne.

閾値設定部123は、エンジン回転数Neが高いほど、すなわち実行間隔Tn-1が短いほど、下限値Tmin及び上限値Tmaxの値としてそれぞれ小さい値を設定する。本実施形態では、図5に示すように、下限値Tmin及び上限値Tmaxとエンジン回転数Neとの対応関係を示すマップが、マイコン12内のROMに格納されている。閾値設定部123は、マップから、エンジン回転数Neでの下限値Tmin及び上限値Tmaxを読み出し、下限値Tmin及び上限値Tmaxを設定する。しかしながら、マップに限らず、所定の関数により、エンジン回転数Neに応じて下限値Tmin及び上限値Tmaxを設定するようにしてもよい。 The threshold value setting unit 123 sets smaller values as the lower limit value Tmin and the upper limit value Tmax as the engine speed Ne is higher, that is, as the execution interval Tn-1 is shorter. In the present embodiment, as shown in FIG. 5, a map indicating the correspondence relationship between the lower limit value Tmin and the upper limit value Tmax and the engine speed Ne is stored in the ROM in the microcomputer 12. The threshold setting unit 123 reads the lower limit value Tmin and the upper limit value Tmax at the engine speed Ne from the map, and sets the lower limit value Tmin and the upper limit value Tmax. However, the lower limit value Tmin and the upper limit value Tmax may be set according to the engine speed Ne by a predetermined function, not limited to the map.

図5に示す例では、エンジン回転数Neが1000rpmのときに、上限値18ms、下限値7msに相当する値が設定され、エンジン回転数Neが2500rpmのときに、上限値11ms、下限値4msに相当する値が設定される。また、エンジン回転数Neが5000rpmのときに、上限値7ms、下限値2msに相当する値が設定される。カウンタCtaskは、後述するステップS28の処理により、1ずつカウントアップされるため、例えば18msに相当する値とは、18msを異常検出処理の実行周期(1ms)で割った値、すなわち18である。   In the example shown in FIG. 5, when the engine speed Ne is 1000 rpm, values corresponding to the upper limit value 18 ms and the lower limit value 7 ms are set, and when the engine speed Ne is 2500 rpm, the upper limit value 11 ms and the lower limit value 4 ms are set. The corresponding value is set. Further, when the engine speed Ne is 5000 rpm, values corresponding to the upper limit value 7 ms and the lower limit value 2 ms are set. Since the counter Ctask is counted up by one by the process of step S28 described later, for example, the value corresponding to 18 ms is a value obtained by dividing 18 ms by the execution period (1 ms) of the abnormality detection process, that is, 18.

閾値を設定すると、次いでマイコン12の判定部124は、現在の実行間隔T、すなわち現在のCtaskの値が、前回の実行間隔Tn-1に応じて設定された下限値Tmin未満、又は、上限値Tmax以上であるかを判定する(ステップS24)。そして、マイコン12は、実行間隔Tnが下限値Tmin未満の場合、又は、上限値Tmaxより大きいと判定した場合、同期タスクの実行状態に異常が発生したと判断し、異常判定時の処理を実行する(ステップS26)。ステップS26では、たとえば同期タスクの実行に異常が生じたことを示す異常検出フラグを立てる(1をセットする)といった処理を行う。また、この異常検出フラグは、図示しない他の処理で参照されて、何等かのフェイルセーフ処置(例えばマイコン12のリセット等)のトリガとして用いられる。 When the threshold value is set, the determination unit 124 of the microcomputer 12 then determines that the current execution interval T n , that is, the current Ctask value is less than the lower limit value Tmin set according to the previous execution interval T n−1 , or It is determined whether or not the upper limit value Tmax is exceeded (step S24). Then, when the execution interval Tn is less than the lower limit value Tmin, or when it is determined that the execution interval Tn is greater than the upper limit value Tmax, the microcomputer 12 determines that an abnormality has occurred in the execution state of the synchronization task, and executes the process at the time of the abnormality determination (Step S26). In step S26, for example, a process of setting an abnormality detection flag indicating that an abnormality has occurred in the execution of the synchronization task (setting 1) is performed. The abnormality detection flag is referred to in other processing (not shown) and used as a trigger for some fail-safe treatment (for example, reset of the microcomputer 12 or the like).

異常判定処理の終了後、マイコン12は、カウンタCtaskを1カウントアップする(ステップS28)。そして、一連の処理を終了する。なお、ステップS24において、実行間隔Tnが下限値Tmin以上、上限値Tmax以下の範囲内にあると判定した場合、ステップS26の処理を実行せずに、ステップS28の処理を実行する。そして、一連の処理を終了する。   After completion of the abnormality determination process, the microcomputer 12 increments the counter Ctask by 1 (step S28). Then, a series of processing ends. If it is determined in step S24 that the execution interval Tn is within the range between the lower limit value Tmin and the upper limit value Tmax, the process of step S28 is executed without executing the process of step S26. Then, a series of processing ends.

また、ステップS20において、所定時間内にTDC同期信号の立ち上がりエッジが生じないと判定した場合、マイコン12は、カウンタCtaskの値を0にリセットし(ステップS30)、一連の処理を終了する。   If it is determined in step S20 that the rising edge of the TDC synchronization signal does not occur within the predetermined time, the microcomputer 12 resets the value of the counter Ctask to 0 (step S30) and ends the series of processes.

次に、本実施形態に係る電子制御装置10の効果について説明する。   Next, effects of the electronic control device 10 according to the present embodiment will be described.

本実施形態では、マイコン12の信号生成部120が、クランク角センサの検出信号に基づいて、180°CAごとに立ち上がるTDC同期信号を生成し、タスク実行部121が、TDC同期信号に立ち上がりエッジが発生するごとに同期タスクを実行する。また、マイコン12の計測部122が、同期タスクの実行ごとに同期タスクの実行間隔を計測し、閾値設定部123が、実行間隔の測定ごとに、測定された実行間隔Tn−1に応じて、加速側異常を検出するための下限値Tminと減速側の異常を検出するための上限値Tmaxをそれぞれ設定する。 In this embodiment, the signal generation unit 120 of the microcomputer 12 generates a TDC synchronization signal that rises every 180 ° CA based on the detection signal of the crank angle sensor, and the task execution unit 121 has a rising edge in the TDC synchronization signal. Run synchronization tasks as they occur. Moreover, the measurement part 122 of the microcomputer 12 measures the execution interval of a synchronous task for every execution of a synchronous task, and the threshold value setting part 123 respond | corresponds to the measured execution interval Tn-1 for every measurement of an execution interval. A lower limit value Tmin for detecting an acceleration-side abnormality and an upper limit value Tmax for detecting a deceleration-side abnormality are set.

そして、マイコン12の判定部124が、現在の実行間隔Tと、前回の実行間隔Tn−1に応じて設定された下限値Tmin及び上限値Tmaxとを比較し、実行間隔Tが下限値Tmin未満、又は、上限値Tmaxより大きいと、同期タスクの実行状態に異常が生じていると判定する。 Then, the determination unit 124 of the microcomputer 12 compares the current execution interval T n with the lower limit value Tmin and the upper limit value Tmax set according to the previous execution interval T n−1 , and the execution interval T n is the lower limit. If it is less than the value Tmin or greater than the upper limit value Tmax, it is determined that an abnormality has occurred in the execution state of the synchronous task.

したがって、同期タスクの実行状態の異常として、加速側異常と減速側異常のいずれが生じても、検出することができる。図3では、マイコン12のプログラムの暴走により、同期タスクの実行タイミングが早まり、カウンタCtaskの値が下限値Tminに到達するまでに、カウンタCtaskがリセットされる。このような場合、今回の実行間隔Tが、前回の実行間隔Tn−1に応じて設定された下限値Tmin未満であるため、同期タスクの実行状態に異常(加速側異常)が生じたことを検出することができる。加速側異常は、上記のみならず、プログラムの異常により、割込ハンドラ処理の実行タイミングが早まること、TDC同期信号の生成タイミングが本体よりも早まることなどにより生じうる。 Therefore, it can be detected whether an abnormality on the acceleration side or an abnormality on the deceleration side occurs as an abnormality in the execution state of the synchronous task. In FIG. 3, due to the program runaway of the microcomputer 12, the execution timing of the synchronous task is advanced, and the counter Ctask is reset until the value of the counter Ctask reaches the lower limit value Tmin. In such a case, since the current execution interval T n is less than the lower limit value Tmin set according to the previous execution interval T n−1 , an abnormality (acceleration-side abnormality) occurred in the execution state of the synchronous task. Can be detected. The acceleration-side abnormality may occur not only as described above but also due to an advance in the execution timing of the interrupt handler process due to an abnormality in the program, or an earlier generation timing of the TDC synchronization signal than the main body.

図6では、同期タスクの実行中にプログラムが暴走し、これにより、同期タスクが終了しない。このような場合、今回の実行間隔Tが、前回の実行間隔Tn−1に応じて設定された上限値Tmaxよりも大きくなるため、同期タスクの実行状態に異常(減速側異常)が生じたことを検出することができる。減速側異常は、上記のみならず、プログラムの異常により、同期タスクの実行タイミング自体が遅れること、割込ハンドラ処理の実行タイミングが遅れること、TDC同期信号に立ち上がりエッジが発生したにもかかわらず同期タスクが発生しないことなどにより生じうる。いずれの場合も、カウンタCtaskの値が上限値Tmaxを超えることで、異常が生じたことを検出できる。なお、図3及び図6では、下限値Tmin及び上限値Tmaxを二点鎖線で示している。 In FIG. 6, the program runs away during execution of the synchronization task, and the synchronization task does not end. In such a case, since the current execution interval T n becomes larger than the upper limit value Tmax set according to the previous execution interval T n−1 , an abnormality (deceleration-side abnormality) occurs in the synchronous task execution state. Can be detected. In addition to the above, the deceleration-side abnormality is not only synchronized with the program, but the synchronization task execution timing itself is delayed, the interrupt handler processing execution timing is delayed, and the TDC synchronization signal has a rising edge. This can occur due to the absence of a task. In any case, when the value of the counter Ctask exceeds the upper limit value Tmax, it can be detected that an abnormality has occurred. 3 and 6, the lower limit value Tmin and the upper limit value Tmax are indicated by a two-dot chain line.

特に、本実施形態では、前回の実行間隔Tn−1(エンジン回転数Ne)応じて、下限値Tmin及び上限値Tmaxがそれぞれ設定される。したがって、エンジン回転数が低回転から高回転に変化し、そのタイミングで減速側異常が生じたとしても、異常検出遅れを抑制することができる。 In particular, in the present embodiment, the lower limit value Tmin and the upper limit value Tmax are set according to the previous execution interval T n-1 (engine speed Ne). Therefore, even if the engine speed changes from low to high and a deceleration-side abnormality occurs at that timing, the abnormality detection delay can be suppressed.

また、本実施形態では、マイコン12の信号生成部120が、クランク軸の回転に同期する同期信号として、上死点に同期して180°CAごとに立ち上がるTDC同期信号を生成する。したがって、減速側異常が生じて異常判定に時間がかかることで、同期タスクの実行が抜けるのを抑制することができる。   Further, in the present embodiment, the signal generation unit 120 of the microcomputer 12 generates a TDC synchronization signal that rises every 180 ° CA in synchronization with the top dead center, as a synchronization signal synchronized with the rotation of the crankshaft. Therefore, it is possible to prevent the execution of the synchronous task from being lost due to the occurrence of deceleration-side abnormality and the time required for abnormality determination.

また、本実施形態では、TDC同期信号の立ち上がりエッジが所定時間内に生じないと判定した場合、同期タスクの実行状態が正常か否かの判定を実行しないようにしている。したがって、エンジンが停止している場合(エンスト時を含む)や、信号配線などのハードウエア上の故障によってTDC同期信号がマイコン12へ入力されない場合に、同期タスクの実行状態が異常であると誤って判定してしまうのを防ぐこともできる。   Further, in this embodiment, when it is determined that the rising edge of the TDC synchronization signal does not occur within a predetermined time, the determination as to whether the execution state of the synchronization task is normal is not executed. Therefore, when the engine is stopped (including when the engine is stalled), or when the TDC synchronization signal is not input to the microcomputer 12 due to a hardware failure such as signal wiring, it is erroneously assumed that the execution state of the synchronization task is abnormal. Can also be prevented.

(第2実施形態)
本実施形態は、先行実施形態を参照できる。このため、先行実施形態に示した電子制御装置10と共通する部分についての説明は省略する。
(Second Embodiment)
This embodiment can refer to the preceding embodiment. For this reason, the description about the part which is common in the electronic control apparatus 10 shown to previous embodiment is abbreviate | omitted.

図7は、本実施形態に係る電子制御装置10において、マイコン12が実行する異常検出処理を示している。図7に示すように、マイコン12は、上記したステップS20の処理に代えて、エンジンが完爆状態にあるかを判定する(ステップS21)。たとえばマイコン12は、エンジン回転数Neが所定回転数(たとえば300rpm)以上の場合に、エンジンが完爆状態にあると判定し、所定回転数未満の場合に、完爆状態にない、すなわち始動状態にあると判定する。   FIG. 7 shows an abnormality detection process executed by the microcomputer 12 in the electronic control apparatus 10 according to the present embodiment. As shown in FIG. 7, the microcomputer 12 determines whether or not the engine is in a complete explosion state in place of the processing in step S20 described above (step S21). For example, the microcomputer 12 determines that the engine is in a complete explosion state when the engine rotational speed Ne is equal to or higher than a predetermined rotational speed (for example, 300 rpm). It is determined that

そして、エンジンが完爆状態にあると判定した場合、上記したステップS22以降の処理を実行する。すなわち、同期タスクの実行状態が正常か否かの判定を実行する。一方、ステップS21で、エンジンが完爆前の始動状態にあると判定すると、上記したステップS30を実行する。   When it is determined that the engine is in a complete explosion state, the above-described processing from step S22 is executed. That is, it is determined whether or not the execution state of the synchronization task is normal. On the other hand, if it is determined in step S21 that the engine is in the starting state before the complete explosion, step S30 described above is executed.

このように、エンジンが完爆前の始動状態では、同期タスクの実行状態が正常か否かの判定を行わないようにしている。エンジン回転数Neが安定した完爆状態のみで、同期タスクの実行状態が正常か否かの判定を実行するため、異常判定の精度を向上することができる。   As described above, in the start state before the complete explosion of the engine, it is not determined whether or not the execution state of the synchronous task is normal. Since it is determined whether or not the execution state of the synchronous task is normal only in a complete explosion state in which the engine speed Ne is stable, the accuracy of abnormality determination can be improved.

なお、第1実施形態に示したステップS20の処理によっても、エンジンが完爆状態にあるかを判定することができる。   Note that it is also possible to determine whether or not the engine is in a complete explosion state by the process of step S20 shown in the first embodiment.

この明細書の開示は、例示された実施形態に制限されない。開示は、例示された実施形態と、それらに基づく当業者による変形態様を包含する。たとえば、開示は、実施形態において示された要素の組み合わせに限定されない。開示は、多様な組み合わせによって実施可能である。開示される技術的範囲は、実施形態の記載に限定されない。開示されるいくつかの技術的範囲は、特許請求の範囲の記載によって示され、さらに特許請求の範囲の記載と均等の意味及び範囲内でのすべての変更を含むものと解されるべきである。   The disclosure of this specification is not limited to the illustrated embodiments. The disclosure encompasses the illustrated embodiments and variations by those skilled in the art based thereon. For example, the disclosure is not limited to the combination of elements shown in the embodiments. The disclosure can be implemented in various combinations. The technical scope disclosed is not limited to the description of the embodiments. The several technical scopes disclosed are indicated by the description of the claims, and should be understood to include all modifications within the meaning and scope equivalent to the description of the claims. .

マイコン12が信号生成部120を有し、この信号生成部120が同期信号としてTDC同期信号を生成する例を示した。しかしながら、クランク同期信号を同期信号としてもよい。この場合、マイコン12は信号生成部120を有さず、入力回路14が信号生成部に相当することとなる。   The microcomputer 12 has the signal generation part 120, and this signal generation part 120 showed the example which produces | generates a TDC synchronizing signal as a synchronizing signal. However, the crank synchronization signal may be a synchronization signal. In this case, the microcomputer 12 does not have the signal generation unit 120, and the input circuit 14 corresponds to the signal generation unit.

10…電子制御装置、
12…マイコン、
120…信号生成部、
121…タスク実行部、
122…計測部、
123…閾値設定部、
124…判定部、
14…入力回路、
140…波形整形回路、
16…出力回路、
18…電源回路
10 ... Electronic control unit,
12 ... Microcomputer,
120... Signal generator,
121 ... task execution unit,
122 ... measuring unit,
123 ... Threshold setting unit,
124 ... determination unit
14 ... Input circuit,
140 ... waveform shaping circuit,
16 ... output circuit,
18 ... Power supply circuit

Claims (5)

内燃機関のクランク軸の回転角を検出するクランク角センサの検出信号を取得し、前記検出信号に基づいて、前記クランク軸が所定角度回転するごとに立ち上がる同期信号を生成する信号生成部(120)と、
前記同期信号に特定方向のエッジが発生するごとに、同期タスクを実行するタスク実行部(121)と、
前記同期タスクの実行ごとに前記同期タスクの実行間隔を計測する計測部(122)と、
前記実行間隔の計測ごとに、計測された前記実行間隔に応じて、加速側の異常を検出するための閾値である下限値、及び、減速側の異常を検出するための閾値である上限値を、前記実行間隔が短いほどそれぞれ小さい値となるように設定する閾値設定部(123)と、
設定された前記閾値と、当該閾値が設定されたタイミングの次の前記実行間隔とを比較し、次の前記実行間隔が前記下限値未満、又は、前記上限値よりも大きい場合に、前記同期タスクの実行状態が異常であると判定する判定部(124)と、
を備える電子制御装置。
A signal generation unit (120) that acquires a detection signal of a crank angle sensor that detects a rotation angle of a crankshaft of an internal combustion engine and generates a synchronization signal that rises every time the crankshaft rotates by a predetermined angle based on the detection signal. When,
A task execution unit (121) that executes a synchronization task each time an edge in a specific direction occurs in the synchronization signal;
A measurement unit (122) that measures an execution interval of the synchronization task for each execution of the synchronization task;
For each measurement of the execution interval, a lower limit value that is a threshold value for detecting an abnormality on the acceleration side and an upper limit value that is a threshold value for detecting an abnormality on the deceleration side are determined according to the measured execution interval. , A threshold value setting unit (123) that sets a smaller value as the execution interval is shorter;
The set threshold value is compared with the next execution interval of the timing at which the threshold value is set, and the next task is less than the lower limit value or larger than the upper limit value, the synchronization task A determination unit (124) that determines that the execution state of is abnormal;
An electronic control device comprising:
前記信号生成部は、前記同期信号として、前記内燃機関の上死点に同期する上死点同期信号を生成する請求項1に記載の電子制御装置。   The electronic control device according to claim 1, wherein the signal generation unit generates a top dead center synchronization signal synchronized with a top dead center of the internal combustion engine as the synchronization signal. 前記信号生成部は、前記同期信号として、クランク同期信号を生成することを特徴とする請求項1に記載の電子制御装置。   The electronic control device according to claim 1, wherein the signal generation unit generates a crank synchronization signal as the synchronization signal. 前記判定部は、前記内燃機関が完爆前の始動状態において前記同期タスクの実行状態が正常であるか否かの判定を実行せず、前記内燃機関が完爆状態において前記同期タスクの実行状態の判定を実行する請求項1〜3いずれか1項に記載の電子制御装置。   The determination unit does not determine whether or not the execution state of the synchronous task is normal in the start state before the complete explosion of the internal combustion engine, and the execution state of the synchronous task in the complete explosion state of the internal combustion engine The electronic control device according to claim 1, wherein the determination is performed. 前記閾値設定部は、前記下限値及び前記上限値と前記実行間隔との対応関係を示すマップを有しており、該マップを用いて前記下限値及び前記上限値を設定する請求項1〜4いずれか1項に記載の電子制御装置。   The threshold value setting unit has a map showing a correspondence relationship between the lower limit value and the upper limit value and the execution interval, and sets the lower limit value and the upper limit value using the map. The electronic control apparatus of any one of Claims.
JP2016029187A 2016-02-18 2016-02-18 Electronic control device Pending JP2017145784A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016029187A JP2017145784A (en) 2016-02-18 2016-02-18 Electronic control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016029187A JP2017145784A (en) 2016-02-18 2016-02-18 Electronic control device

Publications (1)

Publication Number Publication Date
JP2017145784A true JP2017145784A (en) 2017-08-24

Family

ID=59682028

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016029187A Pending JP2017145784A (en) 2016-02-18 2016-02-18 Electronic control device

Country Status (1)

Country Link
JP (1) JP2017145784A (en)

Similar Documents

Publication Publication Date Title
US6775611B2 (en) Engine control apparatus
JP4586903B2 (en) Engine control device
EP3043052B1 (en) Malfunction diagnosis device for crank-angle sensor, and malfunction diagnosis method for crank-angle sensor
JP7322852B2 (en) Misfire detection device for internal combustion engine
US10273929B2 (en) Ignition timing control apparatus for internal combustion engine
US9771885B2 (en) Engine control apparatus
JP2017048684A (en) Engine control system
JP2001280193A (en) Engine controller
JP5304724B2 (en) Engine control device
JP2017145784A (en) Electronic control device
JP5550770B1 (en) Vehicle electronic control device and vehicle electronic control method
CN109790782B (en) Control device and control method for internal combustion engine
JP6213368B2 (en) Electronic control unit
JP2019143540A (en) Injection monitoring device
JP6565660B2 (en) Electronic control unit
JP3443922B2 (en) Ignition device for two-cylinder internal combustion engine
JP2007218203A (en) Ignition failure diagnostic device, ignition failure diagnostic system and ignition failure diagnostic method
JP6717185B2 (en) Engine controller
JP2527971B2 (en) Control device for internal combustion engine
JP2003184629A (en) Crank angle determining device for internal combustion engine
JP6631452B2 (en) Electronic control unit
JP2005315169A (en) Crankshaft rotation synchronous processing system and engine control device
JP5983544B2 (en) In-vehicle electronic control unit
JP4000918B2 (en) Ignition timing control device for internal combustion engine
KR101806644B1 (en) Method for sensing reverse rotation of engine in vehicle using tooth period of crankshaft