JP2017145784A - Electronic control device - Google Patents
Electronic control device Download PDFInfo
- 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
Links
Images
Landscapes
- Combined Controls Of Internal Combustion Engines (AREA)
- Debugging And Monitoring (AREA)
Abstract
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には、クランク同期信号を生成する信号生成部、クランク同期信号に基づいて同期タスクを実行するタスク実行部、同期タスクの実行間隔を計測する計測部、エンジン回転数に応じて閾値を設定する閾値設定部、実行間隔が閾値を超えると同期タスクの実行状態が異常であると判定する判定部を備えた電子制御装置が開示されている。
この電子制御装置において、信号生成部は、クランク角センサから、エンジンのクランク軸が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.
同期タスクの実行状態の異常として、加速側の異常と減速側の異常が起こり得る。加速側異常としては、実行間隔が急激に短くなるように同期タスクが実行される異常が考えられる。減速側異常としては、実行間隔が急激に長くなるように同期タスクが実行される異常、同期タスクが発生しない異常、及び同期タスクが終了しない異常などが考えられる。 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).
図面を参照しながら、複数の実施形態を説明する。複数の実施形態において、機能的に及び/又は構造的に対応する部分には同一の参照符号を付与する。 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
マイコン12は、CPU、ROM、RAM、レジスタ、及びI/Oポートなどを備えて構成されたマイクロコンピュータである。マイコン12において、CPUが、RAMやレジスタの一時記憶機能を利用しつつ、ROMに予め記憶された制御プログラム、外部から取得した各種データなどに応じて信号処理を行う。また、この信号処理で得られた信号を、出力したりする。このようにして、マイコン12は、各種機能を実行する。マイコン12は、たとえばエンジンが出力すべき目標トルクを算出する。また、エンジンが要求される目標トルクを生じるために、図示しないスロットルバルブを適切な開度に制御するとともに、エンジンの燃料噴射量及び点火タイミングを制御する。
The
入力回路14は、エンジンに取り付けられたクランク角センサなど、各種センサにて検出される検出信号をマイコン12に入力させる。入力回路14は、たとえばクランク角センサの検出信号を波形整形して、クランク同期信号を生成する波形整形回路140を有している。
The
本実施形態では、クランク軸に取り付けられたタイミングロータが、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
出力回路16は、マイコン12から出力された制御信号に応じて、燃料噴射弁やイグナイタなどの各種アクチュエータへ駆動信号を出力する。
The
電源回路18は、車両のバッテリから供給されるバッテリ電圧VBを、所定の電圧に変換して、マイコン12などの電子制御装置10を構成する要素に供給する。電源回路18は、たとえばバッテリ電圧VBを5Vに降圧して、マイコン12に供給する。
The
次に、マイコン12について説明する。
Next, the
図1に示すように、マイコン12は、信号生成部120、タスク実行部121、計測部122、閾値設定部123、及び判定部124を有している。
As illustrated in FIG. 1, the
信号生成部120は、TDC同期信号を生成する。TDC同期信号は、エンジンの各気筒の上死点(Top Dead Center)に同期して立ち上がる信号である。信号生成部120は、欠歯位置を基準としつつ、クランク同期信号に基づいて、TDC同期信号を生成する。クランク同期信号は、上記したようにクランク角センサの検出信号に基づいて生成される。したがって、TDC同期信号は、クランク角センサの検出信号に基づいて、クランク軸が所定角度回転するごとに立ち上がる同期信号である。本実施形態ではエンジンが4気筒であり、TDC同期信号が180°CAごとに立ち上がる。すなわち、クランク同期信号が6回パルスを生じるごとに、TDC同期信号が1回パルスを生じる。
The
タスク実行部121は、TDC同期信号に特定方向のエッジが発生すると、同期タスクを実行する。本実施形態では、TDC同期信号に立ち上がりエッジが発生するごとに、同期タスクを実行する。タスク実行部121は、同期タスクとして、エンジン回転数Neの算出や気筒判別などエンジンの制御に関する処理を実行する。
The
計測部122は、同期タスクの実行ごとに、同期タスクの実行間隔を計測する。実行間隔とは、クランク軸が30°CA回転するのに要する時間である。本実施形態では、計測部122が、同期タスクの終了にともなってリセットされるカウンタを有しており、当該カウンタにより、同期タスクが終了してから次の同期タスクが終了するまでにかかる時間、すなわち実行間隔が計測される。
The
閾値設定部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
次に、図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
同期タスクが終了すると、マイコン12は、同期タスクの実行間隔を計測するためのカウンタCtaskの値を0にリセットする(ステップS14)。そして、一連の処理を終了する。なお、マイコン12は、同期タスク処理により得られるエンジン回転数Ne、及び、リセット直前のカウンタCtaskの値、すなわち実行間隔の少なくとも一方を、マイコン12内のRAMに格納する。
When the synchronization task ends, the
図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
ステップS20で立ち上がりエッジありと判定した場合、マイコン12は、メモリに格納された前回の実行間隔Tn-1に応じて、実行間隔Tnと比較される閾値を設定する(ステップS22)。具体的には、閾値設定部123が、メモリに格納された実行間隔Tn-1に応じて、次のタイミングの実行間隔Tnと比較される下限値Tmin及び上限値Tmaxを設定する。上記したように、実行間隔Tn-1に対応するエンジン回転数Neにより、閾値を設定してもよい。本実施形態では、エンジン回転数Neに応じて閾値を設定する。
If it is determined in step S20 that there is a rising edge, the
閾値設定部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
図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
閾値を設定すると、次いでマイコン12の判定部124は、現在の実行間隔Tn、すなわち現在のCtaskの値が、前回の実行間隔Tn-1に応じて設定された下限値Tmin未満、又は、上限値Tmax以上であるかを判定する(ステップS24)。そして、マイコン12は、実行間隔Tnが下限値Tmin未満の場合、又は、上限値Tmaxより大きいと判定した場合、同期タスクの実行状態に異常が発生したと判断し、異常判定時の処理を実行する(ステップS26)。ステップS26では、たとえば同期タスクの実行に異常が生じたことを示す異常検出フラグを立てる(1をセットする)といった処理を行う。また、この異常検出フラグは、図示しない他の処理で参照されて、何等かのフェイルセーフ処置(例えばマイコン12のリセット等)のトリガとして用いられる。
When the threshold value is set, the
異常判定処理の終了後、マイコン12は、カウンタCtaskを1カウントアップする(ステップS28)。そして、一連の処理を終了する。なお、ステップS24において、実行間隔Tnが下限値Tmin以上、上限値Tmax以下の範囲内にあると判定した場合、ステップS26の処理を実行せずに、ステップS28の処理を実行する。そして、一連の処理を終了する。
After completion of the abnormality determination process, the
また、ステップ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
次に、本実施形態に係る電子制御装置10の効果について説明する。
Next, effects of the
本実施形態では、マイコン12の信号生成部120が、クランク角センサの検出信号に基づいて、180°CAごとに立ち上がるTDC同期信号を生成し、タスク実行部121が、TDC同期信号に立ち上がりエッジが発生するごとに同期タスクを実行する。また、マイコン12の計測部122が、同期タスクの実行ごとに同期タスクの実行間隔を計測し、閾値設定部123が、実行間隔の測定ごとに、測定された実行間隔Tn−1に応じて、加速側異常を検出するための下限値Tminと減速側の異常を検出するための上限値Tmaxをそれぞれ設定する。
In this embodiment, the
そして、マイコン12の判定部124が、現在の実行間隔Tnと、前回の実行間隔Tn−1に応じて設定された下限値Tmin及び上限値Tmaxとを比較し、実行間隔Tnが下限値Tmin未満、又は、上限値Tmaxより大きいと、同期タスクの実行状態に異常が生じていると判定する。
Then, the
したがって、同期タスクの実行状態の異常として、加速側異常と減速側異常のいずれが生じても、検出することができる。図3では、マイコン12のプログラムの暴走により、同期タスクの実行タイミングが早まり、カウンタCtaskの値が下限値Tminに到達するまでに、カウンタCtaskがリセットされる。このような場合、今回の実行間隔Tnが、前回の実行間隔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
図6では、同期タスクの実行中にプログラムが暴走し、これにより、同期タスクが終了しない。このような場合、今回の実行間隔Tnが、前回の実行間隔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
また、本実施形態では、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
(第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
図7は、本実施形態に係る電子制御装置10において、マイコン12が実行する異常検出処理を示している。図7に示すように、マイコン12は、上記したステップS20の処理に代えて、エンジンが完爆状態にあるかを判定する(ステップS21)。たとえばマイコン12は、エンジン回転数Neが所定回転数(たとえば300rpm)以上の場合に、エンジンが完爆状態にあると判定し、所定回転数未満の場合に、完爆状態にない、すなわち始動状態にあると判定する。
FIG. 7 shows an abnormality detection process executed by the
そして、エンジンが完爆状態にあると判定した場合、上記したステップ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
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)
前記同期信号に特定方向のエッジが発生するごとに、同期タスクを実行するタスク実行部(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:
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) |
-
2016
- 2016-02-18 JP JP2016029187A patent/JP2017145784A/en active Pending
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 |